2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
624 common_out_object_file
640 gcc_gxx_include_dir_add_sysroot
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
680 ORIGINAL_NM_FOR_TARGET
682 ORIGINAL_LD_FOR_TARGET
683 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 ORIGINAL_AS_FOR_TARGET
727 NATIVE_SYSTEM_HEADER_DIR
760 CROSS_SYSTEM_HEADER_DIR
761 TARGET_SYSTEM_ROOT_DEFINE
763 RUNTIME_ROOT_PREFIX_DEFINE
764 SYSROOT_CFLAGS_FOR_TARGET
774 valgrind_path_defines
849 program_transform_name
860 ac_subst_files
='option_includes
863 enable_option_checking
868 enable_generated_files_in_srcdir
878 enable_gather_detailed_mem_stats
890 with_native_system_header_dir
892 with_runtime_root_prefix
901 enable_sjlj_exceptions
903 enable_leading_mingw64_underscores
906 enable_win32_registry
912 enable_gnu_indirect_function
913 enable_initfini_array
915 enable_gnu_unique_object
916 enable_linker_build_id
920 enable_maintainer_mode
921 enable_version_specific_runtime_libs
922 enable_canonical_prefixes
924 enable_libquadmath_support
925 with_warn_frame_larger_than_extra_text
926 with_linker_hash_style
928 ac_precious_vars
='build_alias
949 # Initialize some variables set by options.
951 ac_init_version
=false
952 ac_unrecognized_opts
=
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
963 program_transform_name
=s
,x
,x
,
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir
='${exec_prefix}/bin'
978 sbindir
='${exec_prefix}/sbin'
979 libexecdir
='${exec_prefix}/libexec'
980 datarootdir
='${prefix}/share'
981 datadir
='${datarootdir}'
982 sysconfdir
='${prefix}/etc'
983 sharedstatedir
='${prefix}/com'
984 localstatedir
='${prefix}/var'
985 includedir
='${prefix}/include'
986 oldincludedir
='/usr/include'
987 docdir
='${datarootdir}/doc/${PACKAGE}'
988 infodir
='${datarootdir}/info'
993 libdir
='${exec_prefix}/lib'
994 localedir
='${datarootdir}/locale'
995 mandir
='${datarootdir}/man'
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\
$ac_option
1009 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1015 case $ac_dashdash$ac_option in
1019 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1021 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1022 bindir
=$ac_optarg ;;
1024 -build |
--build |
--buil |
--bui |
--bu)
1025 ac_prev
=build_alias
;;
1026 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1027 build_alias
=$ac_optarg ;;
1029 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1030 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1031 ac_prev
=cache_file
;;
1032 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1033 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1034 cache_file
=$ac_optarg ;;
1036 --config-cache |
-C)
1037 cache_file
=config.cache
;;
1039 -datadir |
--datadir |
--datadi |
--datad)
1041 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1042 datadir
=$ac_optarg ;;
1044 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1045 |
--dataroo |
--dataro |
--datar)
1046 ac_prev
=datarootdir
;;
1047 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1048 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1049 datarootdir
=$ac_optarg ;;
1051 -disable-* |
--disable-*)
1052 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1055 as_fn_error
"invalid feature name: $ac_useropt"
1056 ac_useropt_orig
=$ac_useropt
1057 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "enable_
$ac_useropt"
1062 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep
=', ';;
1065 eval enable_
$ac_useropt=no
;;
1067 -docdir |
--docdir |
--docdi |
--doc |
--do)
1069 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1070 docdir
=$ac_optarg ;;
1072 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1074 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1075 dvidir
=$ac_optarg ;;
1077 -enable-* |
--enable-*)
1078 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1081 as_fn_error
"invalid feature name: $ac_useropt"
1082 ac_useropt_orig
=$ac_useropt
1083 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1086 "enable_
$ac_useropt"
1088 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep
=', ';;
1091 eval enable_
$ac_useropt=\
$ac_optarg ;;
1093 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1094 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1095 |
--exec |
--exe |
--ex)
1096 ac_prev
=exec_prefix
;;
1097 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1098 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1099 |
--exec=* |
--exe=* |
--ex=*)
1100 exec_prefix
=$ac_optarg ;;
1102 -gas |
--gas |
--ga |
--g)
1103 # Obsolete; use --with-gas.
1106 -help |
--help |
--hel |
--he |
-h)
1107 ac_init_help
=long
;;
1108 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1109 ac_init_help
=recursive
;;
1110 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1111 ac_init_help
=short
;;
1113 -host |
--host |
--hos |
--ho)
1114 ac_prev
=host_alias
;;
1115 -host=* |
--host=* |
--hos=* |
--ho=*)
1116 host_alias
=$ac_optarg ;;
1118 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1120 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1122 htmldir
=$ac_optarg ;;
1124 -includedir |
--includedir |
--includedi |
--included |
--include \
1125 |
--includ |
--inclu |
--incl |
--inc)
1126 ac_prev
=includedir
;;
1127 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1128 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1129 includedir
=$ac_optarg ;;
1131 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1133 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1134 infodir
=$ac_optarg ;;
1136 -libdir |
--libdir |
--libdi |
--libd)
1138 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1139 libdir
=$ac_optarg ;;
1141 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1142 |
--libexe |
--libex |
--libe)
1143 ac_prev
=libexecdir
;;
1144 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1145 |
--libexe=* |
--libex=* |
--libe=*)
1146 libexecdir
=$ac_optarg ;;
1148 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1149 ac_prev
=localedir
;;
1150 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1151 localedir
=$ac_optarg ;;
1153 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1154 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1155 ac_prev
=localstatedir
;;
1156 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1157 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1158 localstatedir
=$ac_optarg ;;
1160 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1162 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1163 mandir
=$ac_optarg ;;
1165 -nfp |
--nfp |
--nf)
1166 # Obsolete; use --without-fp.
1169 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1170 |
--no-cr |
--no-c |
-n)
1173 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1174 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1177 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1178 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1179 |
--oldin |
--oldi |
--old |
--ol |
--o)
1180 ac_prev
=oldincludedir
;;
1181 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1182 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1183 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1184 oldincludedir
=$ac_optarg ;;
1186 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1188 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1189 prefix
=$ac_optarg ;;
1191 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1192 |
--program-pre |
--program-pr |
--program-p)
1193 ac_prev
=program_prefix
;;
1194 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1195 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1196 program_prefix
=$ac_optarg ;;
1198 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1199 |
--program-suf |
--program-su |
--program-s)
1200 ac_prev
=program_suffix
;;
1201 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1202 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1203 program_suffix
=$ac_optarg ;;
1205 -program-transform-name |
--program-transform-name \
1206 |
--program-transform-nam |
--program-transform-na \
1207 |
--program-transform-n |
--program-transform- \
1208 |
--program-transform |
--program-transfor \
1209 |
--program-transfo |
--program-transf \
1210 |
--program-trans |
--program-tran \
1211 |
--progr-tra |
--program-tr |
--program-t)
1212 ac_prev
=program_transform_name
;;
1213 -program-transform-name=* |
--program-transform-name=* \
1214 |
--program-transform-nam=* |
--program-transform-na=* \
1215 |
--program-transform-n=* |
--program-transform-=* \
1216 |
--program-transform=* |
--program-transfor=* \
1217 |
--program-transfo=* |
--program-transf=* \
1218 |
--program-trans=* |
--program-tran=* \
1219 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1220 program_transform_name
=$ac_optarg ;;
1222 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1224 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1225 pdfdir
=$ac_optarg ;;
1227 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1229 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1232 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1233 |
-silent |
--silent |
--silen |
--sile |
--sil)
1236 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1238 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1240 sbindir
=$ac_optarg ;;
1242 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1243 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1244 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1246 ac_prev
=sharedstatedir
;;
1247 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1248 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1249 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1251 sharedstatedir
=$ac_optarg ;;
1253 -site |
--site |
--sit)
1255 -site=* |
--site=* |
--sit=*)
1258 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1260 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1261 srcdir
=$ac_optarg ;;
1263 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1264 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1265 ac_prev
=sysconfdir
;;
1266 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1267 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1268 sysconfdir
=$ac_optarg ;;
1270 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1271 ac_prev
=target_alias
;;
1272 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1273 target_alias
=$ac_optarg ;;
1275 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1278 -version |
--version |
--versio |
--versi |
--vers |
-V)
1279 ac_init_version
=: ;;
1282 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1285 as_fn_error
"invalid package name: $ac_useropt"
1286 ac_useropt_orig
=$ac_useropt
1287 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1292 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep
=', ';;
1295 eval with_
$ac_useropt=\
$ac_optarg ;;
1297 -without-* |
--without-*)
1298 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1301 as_fn_error
"invalid package name: $ac_useropt"
1302 ac_useropt_orig
=$ac_useropt
1303 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1308 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep
=', ';;
1311 eval with_
$ac_useropt=no
;;
1314 # Obsolete; use --with-x.
1317 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1318 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1319 ac_prev
=x_includes
;;
1320 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1321 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1322 x_includes
=$ac_optarg ;;
1324 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1325 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1326 ac_prev
=x_libraries
;;
1327 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1328 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1329 x_libraries
=$ac_optarg ;;
1331 -*) as_fn_error
"unrecognized option: \`$ac_option'
1332 Try \`$0 --help' for more information."
1336 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
1338 case $ac_envvar in #(
1339 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1340 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1342 eval $ac_envvar=\
$ac_optarg
1343 export $ac_envvar ;;
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1356 if test -n "$ac_prev"; then
1357 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1358 as_fn_error
"missing argument to $ac_option"
1361 if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1364 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1369 # Check all directory arguments for consistency.
1370 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir
1375 eval ac_val
=\$
$ac_var
1376 # Remove trailing slashes.
1379 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\
$ac_val;;
1382 # Be sure to have absolute directory names.
1384 [\\/$
]* | ?
:[\\/]* ) continue;;
1385 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1387 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1395 target
=$target_alias
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x
; then
1399 if test "x$build_alias" = x
; then
1400 cross_compiling
=maybe
1401 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1402 If a cross compiler is detected then cross compile mode will be used." >&2
1403 elif test "x$build_alias" != "x$host_alias"; then
1409 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1411 test "$silent" = yes && exec 6>/dev
/null
1414 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di
=`ls -di .` &&
1416 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1417 as_fn_error
"working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 as_fn_error
"pwd does not report name of working directory"
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424 ac_srcdir_defaulted
=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir
=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1454 ac_srcdir_defaulted
=no
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1458 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1460 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1472 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1474 for ac_var
in $ac_precious_vars; do
1475 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1477 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1482 # Report the --help message.
1484 if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1488 \`configure' configures this package to adapt to many kinds of systems.
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE. See below for descriptions of some of the useful variables.
1495 Defaults for the options are specified in brackets.
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1508 Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1519 For better control, use the options below.
1521 Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1551 --build=BUILD configure
for building on BUILD
[guessed
]
1552 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1553 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1557 if test -n "$ac_init_help"; then
1562 --disable-option-checking ignore unrecognized
--enable/--with options
1563 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1564 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1565 --enable-generated-files-in-srcdir
1566 put copies of generated files
in source dir intended
1567 for creating
source tarballs
for users without
1568 texinfo bison or flex
1569 --disable-largefile omit support
for large files
1570 --enable-werror-always enable -Werror despite compiler version
1571 --enable-checking[=LIST
]
1572 enable expensive run-time checks. With LIST
, enable
1573 only specific categories of checks. Categories are
:
1574 yes,no
,all
,none
,release. Flags are
:
1575 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1576 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1577 --enable-coverage[=LEVEL
]
1578 enable compiler
's code coverage collection. Use to
1579 measure compiler performance and locate unused parts
1580 of the compiler. With LEVEL, specify optimization.
1581 Values are opt, noopt, default is noopt
1582 --enable-gather-detailed-mem-stats
1583 enable detailed memory allocation stats gathering
1584 --enable-multilib enable library support for multiple ABIs
1585 --enable-multiarch enable support for multiarch paths
1586 --enable-__cxa_atexit enable __cxa_atexit for C++
1587 --enable-decimal-float={no,yes,bid,dpd}
1588 enable decimal float extension to C. Selecting 'bid
'
1589 or 'dpd
' choses which decimal floating point format
1591 --enable-fixed-point enable fixed-point arithmetic extension to C
1592 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1594 --enable-tls enable or disable generation of tls code overriding
1595 the assembler check for tls support
1596 --enable-objc-gc enable the use of Boehm's garbage collector with the
1597 GNU Objective-C runtime
1598 --disable-shared don
't provide a shared libgcc
1599 --enable-languages=LIST specify which front-ends to build
1600 --disable-rpath do not hardcode runtime library paths
1601 --enable-sjlj-exceptions
1602 arrange to use setjmp/longjmp exception handling
1603 --enable-secureplt enable -msecure-plt by default for PowerPC
1604 --enable-leading-mingw64-underscores
1605 enable leading underscores on 64 bit mingw targets
1606 --enable-cld enable -mcld by default for 32bit x86
1607 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1609 --disable-win32-registry
1610 disable lookup of installation paths in the Registry
1612 --enable-win32-registry enable registry lookup (default)
1613 --enable-win32-registry=KEY
1614 use KEY instead of GCC version as the last portion
1616 --enable-shared[=PKGS] build shared libraries [default=yes]
1617 --enable-static[=PKGS] build static libraries [default=yes]
1618 --enable-fast-install[=PKGS]
1619 optimize for fast installation [default=yes]
1620 --disable-libtool-lock avoid locking (might break parallel builds)
1621 --enable-gnu-indirect-function
1622 enable the use of the @gnu_indirect_function to
1624 --enable-initfini-array use .init_array/.fini_array sections
1625 --enable-comdat enable COMDAT group support
1626 --enable-gnu-unique-object
1627 enable the use of the @gnu_unique_object ELF
1628 extension on glibc systems
1629 --enable-linker-build-id
1630 compiler will always pass --build-id to linker
1631 --enable-maintainer-mode
1632 enable make rules and dependencies not useful (and
1633 sometimes confusing) to the casual installer
1634 --enable-version-specific-runtime-libs
1635 specify that runtime libraries should be installed
1636 in a compiler-specific directory
1637 --enable-canonical-prefixes
1638 enable or disable prefix canonicalization
1639 --enable-plugin enable plugin support
1640 --disable-libquadmath-support
1641 disable libquadmath support for Fortran
1644 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1645 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1646 --with-build-libsubdir=DIR Directory where to find libraries for build system
1647 --with-local-prefix=DIR specifies directory to put local include
1648 --with-gxx-include-dir=DIR
1649 specifies directory to put g++ header files
1650 --with-cpp-install-dir=DIR
1651 install the user visible C preprocessor in DIR
1652 (relative to PREFIX) as well as PREFIX/bin
1653 --with-gnu-ld arrange to work with GNU ld
1654 --with-ld arrange to use the specified ld (full pathname)
1655 --with-demangler-in-ld try to use demangler in GNU ld
1656 --with-gnu-as arrange to work with GNU as
1657 --with-as arrange to use the specified as (full pathname)
1658 --with-stabs arrange to use stabs instead of host debug format
1659 --with-dwarf2 force the default debug format to be DWARF 2
1660 --with-native-system-header-dir=dir
1661 use dir as the directory to look for standard
1662 system header files in. Defaults to /usr/include.
1663 --with-build-sysroot=sysroot
1664 use sysroot as the system root during the build
1665 --with-runtime-root-prefix=prefix
1666 prepend prefix to paths used by the compiler to
1667 name the dynamic linker and other files used at
1668 runtime. Defaults to empty (no prefix).
1669 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1670 --with-specs=SPECS add SPECS to driver command-line processing
1671 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1672 --with-bugurl=URL Direct users to URL to report a bug
1673 --with-multilib-list select multilibs (SH and x86-64 only)
1674 --with-gnu-ld assume the C compiler uses GNU ld default=no
1675 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1676 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1677 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1679 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1680 --with-plugin-ld=[ARG
] specify the plugin linker
1681 --with-long-double-128 use
128-bit long double by default
1682 --with-gc={page
,zone
} this option is not supported anymore. It used to
1683 choose the garbage collection mechanism to use with
1685 --with-system-zlib use installed libz
1686 --with-warn-frame-larger-than-extra-text=TEXT
1687 specifies extra text
for frame size warnings
1688 --with-linker-hash-style={sysv
,gnu
,both
}
1689 specify the linker
hash style
1691 Some influential environment variables
:
1692 CC C compiler
command
1693 CFLAGS C compiler flags
1694 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1695 nonstandard directory
<lib dir
>
1696 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1697 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1698 you have headers
in a nonstandard directory
<include dir
>
1699 CXX C
++ compiler
command
1700 CXXFLAGS C
++ compiler flags
1702 CXXCPP C
++ preprocessor
1703 GMPLIBS How to link GMP
1704 GMPINC How to
find GMP include files
1705 ISLLIBS How to link ISL
1706 ISLINC How to
find ISL include files
1707 CLOOGLIBS How to link CLOOG
1708 CLOOGINC How to
find CLOOG include files
1710 Use these variables to override the choices made by
`configure' or to help
1711 it to find libraries and programs with nonstandard names/locations.
1713 Report bugs to the package provider.
1718 if test "$ac_init_help" = "recursive"; then
1719 # If there are subdirs, report their specific --help.
1720 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1721 test -d "$ac_dir" ||
1722 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1729 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1730 # A ".." for each directory in $ac_dir_suffix.
1731 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1732 case $ac_top_builddir_sub in
1733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1737 ac_abs_top_builddir=$ac_pwd
1738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1739 # for backward compatibility:
1740 ac_top_builddir=$ac_top_build_prefix
1743 .) # We are building in place.
1745 ac_top_srcdir=$ac_top_builddir_sub
1746 ac_abs_top_srcdir=$ac_pwd ;;
1747 [\\/]* | ?:[\\/]* ) # Absolute name.
1748 ac_srcdir=$srcdir$ac_dir_suffix;
1749 ac_top_srcdir=$srcdir
1750 ac_abs_top_srcdir=$srcdir ;;
1752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1753 ac_top_srcdir=$ac_top_build_prefix$srcdir
1754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1758 cd "$ac_dir" || { ac_status=$?; continue; }
1759 # Check for guested configure.
1760 if test -f "$ac_srcdir/configure.gnu"; then
1762 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1763 elif test -f "$ac_srcdir/configure"; then
1765 $SHELL "$ac_srcdir/configure" --help=recursive
1767 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1769 cd "$ac_pwd" || { ac_status=$?; break; }
1773 test -n "$ac_init_help" && exit $ac_status
1774 if $ac_init_version; then
1777 generated by GNU Autoconf 2.64
1779 Copyright (C) 2009 Free Software Foundation, Inc.
1780 This configure script is free software; the Free Software Foundation
1781 gives unlimited permission to copy, distribute and modify it.
1786 ## ------------------------ ##
1787 ## Autoconf initialization. ##
1788 ## ------------------------ ##
1790 # ac_fn_c_try_compile LINENO
1791 # --------------------------
1792 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_c_try_compile ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 rm -f conftest.$ac_objext
1797 if { { ac_try="$ac_compile"
1799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1800 *) ac_try_echo
=$ac_try;;
1802 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_compile") 2>conftest.err
1806 if test -s conftest.err
; then
1807 grep -v '^ *+' conftest.err
>conftest.er1
1808 cat conftest.er1
>&5
1809 mv -f conftest.er1 conftest.err
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_c_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest.
$ac_objext; then :
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.
$ac_ext >&5
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1826 } # ac_fn_c_try_compile
1828 # ac_fn_cxx_try_compile LINENO
1829 # ----------------------------
1830 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_cxx_try_compile
()
1833 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1834 rm -f conftest.
$ac_objext
1835 if { { ac_try
="$ac_compile"
1837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_compile") 2>conftest.err
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && {
1851 test -z "$ac_cxx_werror_flag" ||
1852 test ! -s conftest.err
1853 } && test -s conftest.$ac_objext; then :
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1861 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 } # ac_fn_cxx_try_compile
1866 # ac_fn_c_try_cpp LINENO
1867 # ----------------------
1868 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_cpp conftest.$ac_ext"
1874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1875 *) ac_try_echo
=$ac_try;;
1877 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1881 if test -s conftest.err
; then
1882 grep -v '^ *+' conftest.err
>conftest.er1
1883 cat conftest.er1
>&5
1884 mv -f conftest.er1 conftest.err
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } >/dev
/null
&& {
1888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1889 test ! -s conftest.err
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.
$ac_ext >&5
1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1903 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1904 # -------------------------------------------------------
1905 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1906 # the include files in INCLUDES and setting the cache variable VAR
1908 ac_fn_c_check_header_mongrel
()
1910 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1911 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915 $as_echo_n "(cached) " >&6
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1921 # Is the header compilable?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1923 $as_echo_n "checking $2 usability... " >&6; }
1924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1929 if ac_fn_c_try_compile
"$LINENO"; then :
1930 ac_header_compiler
=yes
1932 ac_header_compiler
=no
1934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1936 $as_echo "$ac_header_compiler" >&6; }
1938 # Is the header present?
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1940 $as_echo_n "checking $2 presence... " >&6; }
1941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1945 if ac_fn_c_try_cpp
"$LINENO"; then :
1946 ac_header_preproc
=yes
1948 ac_header_preproc
=no
1950 rm -f conftest.err conftest.
$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1952 $as_echo "$ac_header_preproc" >&6; }
1954 # So? What about this header?
1955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1958 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1960 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1964 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1966 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1968 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1970 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1972 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1978 $as_echo_n "(cached) " >&6
1980 eval "$3=\$ac_header_compiler"
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1988 } # ac_fn_c_check_header_mongrel
1990 # ac_fn_c_try_run LINENO
1991 # ----------------------
1992 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1993 # that executables *can* be run.
1996 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1997 if { { ac_try
="$ac_link"
1999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2000 *) ac_try_echo=$ac_try;;
2002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2003 $as_echo "$ac_try_echo"; } >&5
2004 (eval "$ac_link") 2>&5
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2008 { { case "(($ac_try" in
2009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2010 *) ac_try_echo
=$ac_try;;
2012 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013 $as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_try") 2>&5
2016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017 test $ac_status = 0; }; }; then :
2020 $as_echo "$as_me: program exited with status $ac_status" >&5
2021 $as_echo "$as_me: failed program was:" >&5
2022 sed 's/^/| /' conftest.
$ac_ext >&5
2024 ac_retval
=$ac_status
2026 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2027 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2032 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2033 # -------------------------------------------------------
2034 # Tests whether HEADER exists and can be compiled using the include files in
2035 # INCLUDES, setting the cache variable VAR accordingly.
2036 ac_fn_c_check_header_compile
()
2038 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2042 $as_echo_n "(cached) " >&6
2044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2049 if ac_fn_c_try_compile
"$LINENO"; then :
2054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2061 } # ac_fn_c_check_header_compile
2063 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2064 # --------------------------------------------
2065 # Tries to find the compile-time value of EXPR in a program that includes
2066 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2068 ac_fn_c_compute_int
()
2070 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2071 if test "$cross_compiling" = yes; then
2072 # Depending upon the size, compute the lo and hi bounds.
2073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2079 static int test_array [1 - 2 * !(($2) >= 0)];
2086 if ac_fn_c_try_compile
"$LINENO"; then :
2089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2095 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2102 if ac_fn_c_try_compile
"$LINENO"; then :
2103 ac_hi
=$ac_mid; break
2105 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2106 if test $ac_lo -le $ac_mid; then
2110 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2121 static int test_array [1 - 2 * !(($2) < 0)];
2128 if ac_fn_c_try_compile
"$LINENO"; then :
2131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2137 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2144 if ac_fn_c_try_compile
"$LINENO"; then :
2145 ac_lo
=$ac_mid; break
2147 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2148 if test $ac_mid -le $ac_hi; then
2152 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2162 # Binary search between lo and hi bounds.
2163 while test "x$ac_lo" != "x$ac_hi"; do
2164 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2171 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2178 if ac_fn_c_try_compile
"$LINENO"; then :
2181 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2186 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2193 static long int longval () { return $2; }
2194 static unsigned long int ulongval () { return $2; }
2201 FILE *f = fopen ("conftest.val", "w");
2206 long int i = longval ();
2209 fprintf (f, "%ld", i);
2213 unsigned long int i = ulongval ();
2216 fprintf (f, "%lu", i);
2218 /* Do not output a trailing newline, as this causes \r\n confusion
2219 on some platforms. */
2220 return ferror (f) || fclose (f) != 0;
2226 if ac_fn_c_try_run
"$LINENO"; then :
2227 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2231 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2232 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2236 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2239 } # ac_fn_c_compute_int
2241 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2242 # -------------------------------------------
2243 # Tests whether TYPE exists after having included INCLUDES, setting cache
2244 # variable VAR accordingly.
2245 ac_fn_c_check_type
()
2247 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249 $as_echo_n "checking for $2... " >&6; }
2250 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2251 $as_echo_n "(cached) " >&6
2254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2266 if ac_fn_c_try_compile
"$LINENO"; then :
2267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2279 if ac_fn_c_try_compile
"$LINENO"; then :
2284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290 $as_echo "$ac_res" >&6; }
2291 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2293 } # ac_fn_c_check_type
2295 # ac_fn_c_find_intX_t LINENO BITS VAR
2296 # -----------------------------------
2297 # Finds a signed integer type with width BITS, setting cache variable VAR
2299 ac_fn_c_find_intX_t
()
2301 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2303 $as_echo_n "checking for int$2_t... " >&6; }
2304 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2305 $as_echo_n "(cached) " >&6
2308 for ac_type
in int
$2_t 'int' 'long int' \
2309 'long long int' 'short int' 'signed char'; do
2310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2312 $ac_includes_default
2316 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2323 if ac_fn_c_try_compile
"$LINENO"; then :
2324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2326 $ac_includes_default
2330 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2331 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2338 if ac_fn_c_try_compile
"$LINENO"; then :
2345 eval "$3=\$ac_type" ;;
2348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2352 if test "x$as_val" = x
""no
; then :
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2364 } # ac_fn_c_find_intX_t
2366 # ac_fn_c_try_link LINENO
2367 # -----------------------
2368 # Try to link conftest.$ac_ext, and return whether this succeeded.
2371 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2372 rm -f conftest.
$ac_objext conftest
$ac_exeext
2373 if { { ac_try
="$ac_link"
2375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379 $as_echo "$ac_try_echo"; } >&5
2380 (eval "$ac_link") 2>conftest.err
2382 if test -s conftest.err; then
2383 grep -v '^ *+' conftest.err >conftest.er1
2384 cat conftest.er1 >&5
2385 mv -f conftest.er1 conftest.err
2387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2388 test $ac_status = 0; } && {
2389 test -z "$ac_c_werror_flag" ||
2390 test ! -s conftest.err
2391 } && test -s conftest$ac_exeext && {
2392 test "$cross_compiling" = yes ||
2393 $as_test_x conftest$ac_exeext
2397 $as_echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2402 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2403 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2404 # interfere with the next link command; also delete a directory that is
2405 # left behind by Apple's compiler. We do this before executing the actions.
2406 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2407 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2410 } # ac_fn_c_try_link
2412 # ac_fn_c_find_uintX_t LINENO BITS VAR
2413 # ------------------------------------
2414 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2416 ac_fn_c_find_uintX_t ()
2418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2420 $as_echo_n "checking for uint$2_t... " >&6; }
2421 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2422 $as_echo_n "(cached) " >&6
2425 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2426 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2429 $ac_includes_default
2433 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2440 if ac_fn_c_try_compile "$LINENO"; then :
2445 eval "$3=\$ac_type" ;;
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 if test "x$as_val" = x""no; then :
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2459 $as_echo "$ac_res" >&6; }
2460 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2462 } # ac_fn_c_find_uintX_t
2464 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2465 # ----------------------------------------------
2466 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2467 ac_fn_c_check_header_preproc ()
2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2471 $as_echo_n "checking for $2... " >&6; }
2472 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2473 $as_echo_n "(cached) " >&6
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2479 if ac_fn_c_try_cpp "$LINENO"; then :
2484 rm -f conftest.err conftest.$ac_ext
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488 $as_echo "$ac_res" >&6; }
2489 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2491 } # ac_fn_c_check_header_preproc
2493 # ac_fn_cxx_try_cpp LINENO
2494 # ------------------------
2495 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2496 ac_fn_cxx_try_cpp ()
2498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2499 if { { ac_try="$ac_cpp conftest.$ac_ext"
2501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2502 *) ac_try_echo
=$ac_try;;
2504 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2505 $as_echo "$ac_try_echo"; } >&5
2506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2508 if test -s conftest.err
; then
2509 grep -v '^ *+' conftest.err
>conftest.er1
2510 cat conftest.er1
>&5
2511 mv -f conftest.er1 conftest.err
2513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2514 test $ac_status = 0; } >/dev
/null
&& {
2515 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2516 test ! -s conftest.err
2520 $as_echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.
$ac_ext >&5
2525 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2528 } # ac_fn_cxx_try_cpp
2530 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2531 # ------------------------------------------------
2532 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2533 ac_fn_cxx_check_header_preproc
()
2535 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2537 $as_echo_n "checking for $2... " >&6; }
2538 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2539 $as_echo_n "(cached) " >&6
2541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h. */
2545 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2550 rm -f conftest.err conftest.
$ac_ext
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2554 $as_echo "$ac_res" >&6; }
2555 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2557 } # ac_fn_cxx_check_header_preproc
2559 # ac_fn_c_check_func LINENO FUNC VAR
2560 # ----------------------------------
2561 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2562 ac_fn_c_check_func
()
2564 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2566 $as_echo_n "checking for $2... " >&6; }
2567 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2568 $as_echo_n "(cached) " >&6
2570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h. */
2572 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2574 #define $2 innocuous_$2
2576 /* System header to define __stub macros and hopefully few prototypes,
2577 which can conflict with char $2 (); below.
2578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2579 <limits.h> exists even on freestanding compilers. */
2582 # include <limits.h>
2584 # include <assert.h>
2589 /* Override any GCC internal prototype to avoid an error.
2590 Use char because int might match the return type of a GCC
2591 builtin and then its argument prototype would still apply. */
2596 /* The GNU C library defines this for functions which it implements
2597 to always fail with ENOSYS. Some functions are actually named
2598 something starting with __ and the normal name is an alias. */
2599 #if defined __stub_$2 || defined __stub___$2
2611 if ac_fn_c_try_link
"$LINENO"; then :
2616 rm -f core conftest.err conftest.
$ac_objext \
2617 conftest
$ac_exeext conftest.
$ac_ext
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621 $as_echo "$ac_res" >&6; }
2622 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2624 } # ac_fn_c_check_func
2626 # ac_fn_cxx_try_link LINENO
2627 # -------------------------
2628 # Try to link conftest.$ac_ext, and return whether this succeeded.
2629 ac_fn_cxx_try_link
()
2631 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2632 rm -f conftest.
$ac_objext conftest
$ac_exeext
2633 if { { ac_try
="$ac_link"
2635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2636 *) ac_try_echo=$ac_try;;
2638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2639 $as_echo "$ac_try_echo"; } >&5
2640 (eval "$ac_link") 2>conftest.err
2642 if test -s conftest.err; then
2643 grep -v '^ *+' conftest.err >conftest.er1
2644 cat conftest.er1 >&5
2645 mv -f conftest.er1 conftest.err
2647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2648 test $ac_status = 0; } && {
2649 test -z "$ac_cxx_werror_flag" ||
2650 test ! -s conftest.err
2651 } && test -s conftest$ac_exeext && {
2652 test "$cross_compiling" = yes ||
2653 $as_test_x conftest$ac_exeext
2657 $as_echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2662 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2663 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2664 # interfere with the next link command; also delete a directory that is
2665 # left behind by Apple's compiler. We do this before executing the actions.
2666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2670 } # ac_fn_cxx_try_link
2671 cat >config.log <<_ACEOF
2672 This file contains any messages produced by compilers while
2673 running configure, to aid debugging if configure makes a mistake.
2675 It was created by $as_me, which was
2676 generated by GNU Autoconf 2.64. Invocation command line was
2688 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2689 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2690 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2691 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2692 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2694 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2695 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2697 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2698 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2699 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2700 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2701 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2702 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2703 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 test -z "$as_dir" && as_dir=.
2712 $as_echo "PATH: $as_dir"
2728 # Keep a trace of the command line.
2729 # Strip out --no-create and --no-recursion so they do not pile up.
2730 # Strip out --silent because we don't want to record it for future runs.
2731 # Also quote any args containing shell meta-characters.
2732 # Make two passes to allow for proper duplicate-argument suppression.
2736 ac_must_keep_next=false
2742 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2744 | -silent | --silent | --silen | --sile | --sil)
2747 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2750 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2752 as_fn_append ac_configure_args1 " '$ac_arg'"
2753 if test $ac_must_keep_next = true; then
2754 ac_must_keep_next=false # Got value, back to normal.
2757 *=* | --config-cache | -C | -disable-* | --disable-* \
2758 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2759 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2760 | -with-* | --with-* | -without-* | --without-* | --x)
2761 case "$ac_configure_args0 " in
2762 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2765 -* ) ac_must_keep_next=true ;;
2768 as_fn_append ac_configure_args " '$ac_arg'"
2773 { ac_configure_args0=; unset ac_configure_args0;}
2774 { ac_configure_args1=; unset ac_configure_args1;}
2776 # When interrupted or exit'd, cleanup temporary files, and complete
2777 # config.log. We remove comments because anyway the quotes in there
2778 # would cause problems or look ugly.
2779 # WARNING: Use '\'' to represent an apostrophe within the trap.
2780 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2781 trap 'exit_status=$?
2782 # Save into config.log some information that might help in debugging.
2787 ## ---------------- ##
2788 ## Cache variables. ##
2789 ## ---------------- ##
2792 # The following way of writing the cache mishandles newlines in values,
2794 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2795 eval ac_val=\$$ac_var
2799 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2800 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2803 _ | IFS | as_nl) ;; #(
2804 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2805 *) { eval $ac_var=; unset $ac_var;} ;;
2810 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2811 *${as_nl}ac_space=\ *)
2813 "s/'\''/'\''\\\\'\'''\''/g;
2814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2825 ## ----------------- ##
2826 ## Output variables. ##
2827 ## ----------------- ##
2830 for ac_var in $ac_subst_vars
2832 eval ac_val=\$$ac_var
2834 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2836 $as_echo "$ac_var='\''$ac_val'\''"
2840 if test -n "$ac_subst_files"; then
2842 ## ------------------- ##
2843 ## File substitutions. ##
2844 ## ------------------- ##
2847 for ac_var in $ac_subst_files
2849 eval ac_val=\$$ac_var
2851 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2853 $as_echo "$ac_var='\''$ac_val'\''"
2858 if test -s confdefs.h; then
2868 test "$ac_signal" != 0 &&
2869 $as_echo "$as_me: caught signal $ac_signal"
2870 $as_echo "$as_me: exit $exit_status"
2872 rm -f core *.core core.conftest.* &&
2873 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2876 for ac_signal in 1 2 13 15; do
2877 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2881 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2882 rm -f -r conftest* confdefs.h
2884 $as_echo "/* confdefs.h */" > confdefs.h
2886 # Predefined preprocessor variables.
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_NAME "$PACKAGE_NAME"
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_STRING "$PACKAGE_STRING"
2904 cat >>confdefs.h <<_ACEOF
2905 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2908 cat >>confdefs.h <<_ACEOF
2909 #define PACKAGE_URL "$PACKAGE_URL"
2913 # Let the site file select an alternate cache file if it wants to.
2914 # Prefer an explicitly selected file to automatically selected ones.
2917 if test -n "$CONFIG_SITE"; then
2918 ac_site_file1=$CONFIG_SITE
2919 elif test "x$prefix" != xNONE; then
2920 ac_site_file1=$prefix/share/config.site
2921 ac_site_file2=$prefix/etc/config.site
2923 ac_site_file1=$ac_default_prefix/share/config.site
2924 ac_site_file2=$ac_default_prefix/etc/config.site
2926 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2928 test "x$ac_site_file" = xNONE && continue
2929 if test -r "$ac_site_file"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2931 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2932 sed 's/^/| /' "$ac_site_file" >&5
2937 if test -r "$cache_file"; then
2938 # Some versions of bash will fail to source /dev/null (special
2939 # files actually), so we avoid doing that.
2940 if test -f "$cache_file"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2942 $as_echo "$as_me: loading cache $cache_file" >&6;}
2944 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2945 *) . "./$cache_file";;
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2950 $as_echo "$as_me: creating cache $cache_file" >&6;}
2954 # Check that the precious variables saved in the cache have kept the same
2956 ac_cache_corrupted=false
2957 for ac_var in $ac_precious_vars; do
2958 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2959 eval ac_new_set=\$ac_env_${ac_var}_set
2960 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2961 eval ac_new_val=\$ac_env_${ac_var}_value
2962 case $ac_old_set,$ac_new_set in
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2965 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2966 ac_cache_corrupted=: ;;
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2969 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2970 ac_cache_corrupted=: ;;
2973 if test "x$ac_old_val" != "x$ac_new_val"; then
2974 # differences in whitespace do not lead to failure.
2975 ac_old_val_w=`echo x
$ac_old_val`
2976 ac_new_val_w=`echo x
$ac_new_val`
2977 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2979 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2980 ac_cache_corrupted=:
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2983 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2984 eval $ac_var=\$ac_old_val
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2987 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2989 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2992 # Pass precious variables to config.status.
2993 if test "$ac_new_set" = set; then
2995 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2996 *) ac_arg=$ac_var=$ac_new_val ;;
2998 case " $ac_configure_args " in
2999 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3000 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3004 if $ac_cache_corrupted; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3008 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3009 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3011 ## -------------------- ##
3012 ## Main body of script. ##
3013 ## -------------------- ##
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3029 gcc_version=`cat $srcdir/BASE-VER
`
3031 # Determine the host, build, and target systems
3033 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3034 for ac_t in install-sh install.sh shtool; do
3035 if test -f "$ac_dir/$ac_t"; then
3037 ac_install_sh="$ac_aux_dir/$ac_t -c"
3042 if test -z "$ac_aux_dir"; then
3043 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3046 # These three variables are undocumented and unsupported,
3047 # and are intended to be withdrawn in a future Autoconf release.
3048 # They can cause serious problems if a builder's source tree is in a directory
3049 # whose full name contains unusual characters.
3050 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3051 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3052 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3055 # Make sure we can run config.sub.
3056 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3057 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3060 $as_echo_n "checking build system type... " >&6; }
3061 if test "${ac_cv_build+set}" = set; then :
3062 $as_echo_n "(cached) " >&6
3064 ac_build_alias=$build_alias
3065 test "x$ac_build_alias" = x &&
3066 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3067 test "x$ac_build_alias" = x &&
3068 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3069 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3070 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3074 $as_echo "$ac_cv_build" >&6; }
3075 case $ac_cv_build in
3077 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3080 ac_save_IFS=$IFS; IFS='-'
3086 # Remember, the first character of IFS is used to create $*,
3087 # except with old shells:
3090 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3094 $as_echo_n "checking host system type... " >&6; }
3095 if test "${ac_cv_host+set}" = set; then :
3096 $as_echo_n "(cached) " >&6
3098 if test "x$host_alias" = x; then
3099 ac_cv_host=$ac_cv_build
3101 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3102 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3107 $as_echo "$ac_cv_host" >&6; }
3110 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3113 ac_save_IFS=$IFS; IFS='-'
3119 # Remember, the first character of IFS is used to create $*,
3120 # except with old shells:
3123 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3127 $as_echo_n "checking target system type... " >&6; }
3128 if test "${ac_cv_target+set}" = set; then :
3129 $as_echo_n "(cached) " >&6
3131 if test "x$target_alias" = x; then
3132 ac_cv_target=$ac_cv_host
3134 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3135 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3140 $as_echo "$ac_cv_target" >&6; }
3141 case $ac_cv_target in
3143 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3145 target=$ac_cv_target
3146 ac_save_IFS=$IFS; IFS='-'
3152 # Remember, the first character of IFS is used to create $*,
3153 # except with old shells:
3156 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3159 # The aliases save the names the user supplied, while $host etc.
3160 # will get canonicalized.
3161 test -n "$target_alias" &&
3162 test "$program_prefix$program_suffix$program_transform_name" = \
3164 program_prefix=${target_alias}-
3166 # Determine the noncanonical target name, for directory use.
3167 case ${build_alias} in
3168 "") build_noncanonical=${build} ;;
3169 *) build_noncanonical=${build_alias} ;;
3172 case ${host_alias} in
3173 "") host_noncanonical=${build_noncanonical} ;;
3174 *) host_noncanonical=${host_alias} ;;
3177 case ${target_alias} in
3178 "") target_noncanonical=${host_noncanonical} ;;
3179 *) target_noncanonical=${target_alias} ;;
3185 # Determine the target- and build-specific subdirectories
3187 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3188 # have matching libraries, they should use host libraries: Makefile.tpl
3189 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3190 # However, they still use the build modules, because the corresponding
3191 # host modules (e.g. bison) are only built for the host when bootstrap
3193 # - build_subdir is where we find build modules, and never changes.
3194 # - build_libsubdir is where we find build libraries, and can be overridden.
3196 # Prefix 'build-' so this never conflicts with target_subdir.
3197 build_subdir="build-${build_noncanonical}"
3199 # Check whether --with-build-libsubdir was given.
3200 if test "${with_build_libsubdir+set}" = set; then :
3201 withval=$with_build_libsubdir; build_libsubdir="$withval"
3203 build_libsubdir="$build_subdir"
3206 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3207 if ( test $srcdir = . && test -d gcc ) \
3208 || test -d $srcdir/../host-${host_noncanonical}; then
3209 host_subdir="host-${host_noncanonical}"
3214 target_subdir=${target_noncanonical}
3217 # Set program_transform_name
3218 test "$program_prefix" != NONE &&
3219 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3220 # Use a double $ so make ignores it.
3221 test "$program_suffix" != NONE &&
3222 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3223 # Double any \ or $.
3224 # By default was `s
,x
,x
', remove it if useless.
3225 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3226 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3229 # Check for bogus environment variables.
3230 # Test if LIBRARY_PATH contains the notation for the current directory
3231 # since this would lead to problems installing/building glibc.
3232 # LIBRARY_PATH contains the current directory if one of the following
3234 # - one of the terminals (":" and ";") is the first or last sign
3235 # - two terminals occur directly after each other
3236 # - the path contains an element with a dot in it
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3238 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3239 case ${LIBRARY_PATH} in
3240 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3241 library_path_setting="contains current directory"
3244 library_path_setting="ok"
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3248 $as_echo "$library_path_setting" >&6; }
3249 if test "$library_path_setting" != "ok"; then
3251 *** LIBRARY_PATH shouldn't contain the current directory when
3252 *** building gcc. Please change the environment variable
3253 *** and run configure again.
" "$LINENO" 5
3256 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3257 # since this would lead to problems installing/building glibc.
3258 # GCC_EXEC_PREFIX contains the current directory if one of the following
3260 # - one of the terminals (":" and ";") is the first or last sign
3261 # - two terminals occur directly after each other
3262 # - the path contains an element with a dot in it
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3264 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3265 case ${GCC_EXEC_PREFIX} in
3266 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3267 gcc_exec_prefix_setting="contains current directory
"
3270 gcc_exec_prefix_setting="ok
"
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3274 $as_echo "$gcc_exec_prefix_setting" >&6; }
3275 if test "$gcc_exec_prefix_setting" != "ok
"; then
3277 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3278 *** building gcc. Please change the environment variable
3279 *** and run configure again." "$LINENO" 5
3286 # Specify the local prefix
3289 # Check whether --with-local-prefix was given.
3290 if test "${with_local_prefix+set}" = set; then :
3291 withval=$with_local_prefix; case "${withval}" in
3292 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3294 *) local_prefix=$with_local_prefix ;;
3299 # Default local prefix if it is empty
3300 if test x$local_prefix = x; then
3301 local_prefix=/usr/local
3304 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3305 # passed in by the toplevel make and thus we'd get different behavior
3306 # depending on where we built the sources.
3307 gcc_gxx_include_dir
=
3308 # Specify the g++ header file directory
3310 # Check whether --with-gxx-include-dir was given.
3311 if test "${with_gxx_include_dir+set}" = set; then :
3312 withval
=$with_gxx_include_dir; case "${withval}" in
3313 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3315 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3320 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3321 if test x
${gcc_gxx_include_dir} = x
; then
3322 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3323 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3325 libstdcxx_incdir
='include/c++/$(version)'
3326 if test x
$host != x
$target; then
3327 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3329 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3333 gcc_gxx_include_dir_add_sysroot
=0
3334 if test "${with_sysroot+set}" = set; then
3335 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3336 if test "${gcc_gxx_without_sysroot}"; then
3337 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3338 gcc_gxx_include_dir_add_sysroot
=1
3343 # Check whether --with-cpp_install_dir was given.
3344 if test "${with_cpp_install_dir+set}" = set; then :
3345 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3346 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3347 elif test x
$withval != xno
; then
3348 cpp_install_dir
=$withval
3353 # We would like to our source tree to be readonly. However when releases or
3354 # pre-releases are generated, the flex/bison generated files as well as the
3355 # various formats of manuals need to be included along with the rest of the
3356 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3360 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3361 # Check whether --enable-generated-files-in-srcdir was given.
3362 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3363 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3365 generated_files_in_srcdir
=no
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3370 $as_echo "$generated_files_in_srcdir" >&6; }
3372 if test "$generated_files_in_srcdir" = "yes"; then
3379 # -------------------
3380 # Find default linker
3381 # -------------------
3385 # Check whether --with-gnu-ld was given.
3386 if test "${with_gnu_ld+set}" = set; then :
3387 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3393 # With pre-defined ld
3395 # Check whether --with-ld was given.
3396 if test "${with_ld+set}" = set; then :
3397 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3400 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3401 if test ! -x "$DEFAULT_LINKER"; then
3402 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3403 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3407 cat >>confdefs.h
<<_ACEOF
3408 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3414 $as_echo_n "checking whether a default linker was specified... " >&6; }
3415 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3416 if test x
"$gnu_ld_flag" = x
"no"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3418 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3421 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3428 # With demangler in GNU ld
3430 # Check whether --with-demangler-in-ld was given.
3431 if test "${with_demangler_in_ld+set}" = set; then :
3432 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3438 # ----------------------
3439 # Find default assembler
3440 # ----------------------
3444 # Check whether --with-gnu-as was given.
3445 if test "${with_gnu_as+set}" = set; then :
3446 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3453 # Check whether --with-as was given.
3454 if test "${with_as+set}" = set; then :
3455 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3458 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3459 if test ! -x "$DEFAULT_ASSEMBLER"; then
3460 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3461 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3465 cat >>confdefs.h
<<_ACEOF
3466 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3472 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3473 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3474 if test x
"$gas_flag" = x
"no"; then
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3476 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3479 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3490 # If a non-executable a.out is present (e.g. created by GNU as above even if
3491 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3492 # file, even when creating an executable, so an execution test fails.
3493 # Remove possible default executable files to avoid this.
3495 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3496 # Autoconf includes it.
3497 rm -f a.out a.exe b.out
3499 # Find the native compiler
3501 ac_cpp
='$CPP $CPPFLAGS'
3502 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3505 if test -n "$ac_tool_prefix"; then
3506 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3507 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if test "${ac_cv_prog_CC+set}" = set; then :
3511 $as_echo_n "(cached) " >&6
3513 if test -n "$CC"; then
3514 ac_cv_prog_CC
="$CC" # Let the user override the test.
3516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3520 test -z "$as_dir" && as_dir
=.
3521 for ac_exec_ext
in '' $ac_executable_extensions; do
3522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3523 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 if test -n "$CC"; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3536 $as_echo "$CC" >&6; }
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3544 if test -z "$ac_cv_prog_CC"; then
3546 # Extract the first word of "gcc", so it can be a program name with args.
3547 set dummy gcc
; ac_word
=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3553 if test -n "$ac_ct_CC"; then
3554 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3560 test -z "$as_dir" && as_dir
=.
3561 for ac_exec_ext
in '' $ac_executable_extensions; do
3562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3563 ac_cv_prog_ac_ct_CC
="gcc"
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3574 if test -n "$ac_ct_CC"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3576 $as_echo "$ac_ct_CC" >&6; }
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3582 if test "x$ac_ct_CC" = x
; then
3585 case $cross_compiling:$ac_tool_warned in
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3589 ac_tool_warned
=yes ;;
3597 if test -z "$CC"; then
3598 if test -n "$ac_tool_prefix"; then
3599 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3600 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602 $as_echo_n "checking for $ac_word... " >&6; }
3603 if test "${ac_cv_prog_CC+set}" = set; then :
3604 $as_echo_n "(cached) " >&6
3606 if test -n "$CC"; then
3607 ac_cv_prog_CC
="$CC" # Let the user override the test.
3609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3613 test -z "$as_dir" && as_dir
=.
3614 for ac_exec_ext
in '' $ac_executable_extensions; do
3615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3616 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 if test -n "$CC"; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3629 $as_echo "$CC" >&6; }
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 $as_echo "no" >&6; }
3638 if test -z "$CC"; then
3639 # Extract the first word of "cc", so it can be a program name with args.
3640 set dummy cc
; ac_word
=$2
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642 $as_echo_n "checking for $ac_word... " >&6; }
3643 if test "${ac_cv_prog_CC+set}" = set; then :
3644 $as_echo_n "(cached) " >&6
3646 if test -n "$CC"; then
3647 ac_cv_prog_CC
="$CC" # Let the user override the test.
3650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3654 test -z "$as_dir" && as_dir
=.
3655 for ac_exec_ext
in '' $ac_executable_extensions; do
3656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3658 ac_prog_rejected
=yes
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 if test $ac_prog_rejected = yes; then
3670 # We found a bogon in the path, so make sure we never use it.
3671 set dummy
$ac_cv_prog_CC
3673 if test $# != 0; then
3674 # We chose a different compiler from the bogus one.
3675 # However, it has the same basename, so the bogon will be chosen
3676 # first if we set CC to just the basename; use the full file name.
3678 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3684 if test -n "$CC"; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3686 $as_echo "$CC" >&6; }
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3694 if test -z "$CC"; then
3695 if test -n "$ac_tool_prefix"; then
3696 for ac_prog
in cl.exe
3698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3699 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701 $as_echo_n "checking for $ac_word... " >&6; }
3702 if test "${ac_cv_prog_CC+set}" = set; then :
3703 $as_echo_n "(cached) " >&6
3705 if test -n "$CC"; then
3706 ac_cv_prog_CC
="$CC" # Let the user override the test.
3708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3712 test -z "$as_dir" && as_dir
=.
3713 for ac_exec_ext
in '' $ac_executable_extensions; do
3714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3715 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 if test -n "$CC"; then
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728 $as_echo "$CC" >&6; }
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3735 test -n "$CC" && break
3738 if test -z "$CC"; then
3740 for ac_prog
in cl.exe
3742 # Extract the first word of "$ac_prog", so it can be a program name with args.
3743 set dummy
$ac_prog; ac_word
=$2
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3747 $as_echo_n "(cached) " >&6
3749 if test -n "$ac_ct_CC"; then
3750 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3756 test -z "$as_dir" && as_dir
=.
3757 for ac_exec_ext
in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759 ac_cv_prog_ac_ct_CC
="$ac_prog"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3770 if test -n "$ac_ct_CC"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3772 $as_echo "$ac_ct_CC" >&6; }
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3779 test -n "$ac_ct_CC" && break
3782 if test "x$ac_ct_CC" = x
; then
3785 case $cross_compiling:$ac_tool_warned in
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3789 ac_tool_warned
=yes ;;
3798 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800 as_fn_error
"no acceptable C compiler found in \$PATH
3801 See \`config.log' for more details." "$LINENO" 5; }
3803 # Provide some information about the compiler.
3804 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3807 for ac_option
in --version -v -V -qversion; do
3808 { { ac_try
="$ac_compiler $ac_option >&5"
3810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814 $as_echo "$ac_try_echo"; } >&5
3815 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3817 if test -s conftest.err; then
3819 ... rest of stderr output deleted ...
3820 10q' conftest.err >conftest.er1
3821 cat conftest.er1 >&5
3822 rm -f conftest.er1 conftest.err
3824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825 test $ac_status = 0; }
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3839 ac_clean_files_save=$ac_clean_files
3840 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3841 # Try to create an executable without -o first, disregard a.out.
3842 # It will help us diagnose broken compilers, and finding out an intuition
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3845 $as_echo_n "checking for C compiler default output file name... " >&6; }
3846 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3848 # The possible output files:
3849 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3852 for ac_file in $ac_files
3855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3856 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3861 if { { ac_try="$ac_link_default"
3863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3864 *) ac_try_echo
=$ac_try;;
3866 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868 (eval "$ac_link_default") 2>&5
3870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871 test $ac_status = 0; }; then :
3872 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3873 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3874 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3875 # so that the user can short-circuit this test for compilers unknown to
3877 for ac_file
in $ac_files ''
3879 test -f "$ac_file" ||
continue
3881 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3884 # We found the default executable, but exeext='' is most
3888 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3890 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3892 # We set ac_cv_exeext here because the later test for it is not
3893 # safe: cross compilers may not add the suffix if given an `-o'
3894 # argument, so we may need to know it at that point already.
3895 # Even if this section looks crufty: it has the advantage of
3902 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3908 $as_echo "$ac_file" >&6; }
3909 if test -z "$ac_file"; then :
3910 $as_echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.
$ac_ext >&5
3913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3915 { as_fn_set_status
77
3916 as_fn_error
"C compiler cannot create executables
3917 See \`config.log' for more details." "$LINENO" 5; }; }
3919 ac_exeext
=$ac_cv_exeext
3921 # Check that the compiler produces executables we can run. If not, either
3922 # the compiler is broken, or we cross compile.
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3924 $as_echo_n "checking whether the C compiler works... " >&6; }
3925 # If not cross compiling, check that we can run a simple program.
3926 if test "$cross_compiling" != yes; then
3927 if { ac_try
='./$ac_file'
3928 { { case "(($ac_try" in
3929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3933 $as_echo "$ac_try_echo"; } >&5
3934 (eval "$ac_try") 2>&5
3936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937 test $ac_status = 0; }; }; then
3940 if test "$cross_compiling" = maybe; then
3943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3945 as_fn_error "cannot run C compiled programs.
3946 If you meant to cross compile
, use \
`--host'.
3947 See \`config.log
' for more details." "$LINENO" 5; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3952 $as_echo "yes" >&6; }
3954 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3955 ac_clean_files=$ac_clean_files_save
3956 # Check that the compiler produces executables we can run. If not, either
3957 # the compiler is broken, or we cross compile.
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3959 $as_echo_n "checking whether we are cross compiling... " >&6; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3961 $as_echo "$cross_compiling" >&6; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3964 $as_echo_n "checking for suffix of executables... " >&6; }
3965 if { { ac_try="$ac_link"
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_link") 2>&5
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; then :
3976 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3977 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3978 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3980 for ac_file
in conftest.exe conftest conftest.
*; do
3981 test -f "$ac_file" ||
continue
3983 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3984 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3993 See \`config.log' for more details." "$LINENO" 5; }
3995 rm -f conftest
$ac_cv_exeext
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3997 $as_echo "$ac_cv_exeext" >&6; }
3999 rm -f conftest.
$ac_ext
4000 EXEEXT
=$ac_cv_exeext
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4003 $as_echo_n "checking for suffix of object files... " >&6; }
4004 if test "${ac_cv_objext+set}" = set; then :
4005 $as_echo_n "(cached) " >&6
4007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4018 rm -f conftest.o conftest.obj
4019 if { { ac_try
="$ac_compile"
4021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 $as_echo "$ac_try_echo"; } >&5
4026 (eval "$ac_compile") 2>&5
4028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029 test $ac_status = 0; }; then :
4030 for ac_file in conftest.o conftest.obj conftest.*; do
4031 test -f "$ac_file" || continue;
4033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4034 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4039 $as_echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4044 as_fn_error "cannot compute suffix of object files
: cannot compile
4045 See \
`config.log' for more details." "$LINENO" 5; }
4047 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4050 $as_echo "$ac_cv_objext" >&6; }
4051 OBJEXT=$ac_cv_objext
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4054 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4055 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4056 $as_echo_n "(cached) " >&6
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4072 if ac_fn_c_try_compile "$LINENO"; then :
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4082 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4083 if test $ac_compiler_gnu = yes; then
4088 ac_test_CFLAGS=${CFLAGS+set}
4089 ac_save_CFLAGS=$CFLAGS
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4091 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4092 if test "${ac_cv_prog_cc_g+set}" = set; then :
4093 $as_echo_n "(cached) " >&6
4095 ac_save_c_werror_flag=$ac_c_werror_flag
4096 ac_c_werror_flag=yes
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4110 if ac_fn_c_try_compile "$LINENO"; then :
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4125 if ac_fn_c_try_compile "$LINENO"; then :
4128 ac_c_werror_flag=$ac_save_c_werror_flag
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4141 if ac_fn_c_try_compile "$LINENO"; then :
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149 ac_c_werror_flag=$ac_save_c_werror_flag
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4152 $as_echo "$ac_cv_prog_cc_g" >&6; }
4153 if test "$ac_test_CFLAGS" = set; then
4154 CFLAGS=$ac_save_CFLAGS
4155 elif test $ac_cv_prog_cc_g = yes; then
4156 if test "$GCC" = yes; then
4162 if test "$GCC" = yes; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4169 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4170 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4171 $as_echo_n "(cached) " >&6
4173 ac_cv_prog_cc_c89=no
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4179 #include <sys/types.h>
4180 #include <sys/stat.h>
4181 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4182 struct buf { int x; };
4183 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4184 static char *e (p, i)
4190 static char *f (char * (*g) (char **, int), char **p, ...)
4195 s = g (p, va_arg (v,int));
4200 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4201 function prototypes and stuff, but not '\xHH' hex character constants.
4202 These don't provoke an error unfortunately, instead are silently treated
4203 as 'x'. The following induces an error, until -std is added to get
4204 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4205 array size at least. It's necessary to write '\x00'==0 to get something
4206 that's true only with -std. */
4207 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4209 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4210 inside strings and character constants. */
4212 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4214 int test (int i, double x);
4215 struct s1 {int (*f) (int a);};
4216 struct s2 {int (*f) (double a);};
4217 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4223 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4228 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4229 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4231 CC="$ac_save_CC $ac_arg"
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233 ac_cv_prog_cc_c89=$ac_arg
4235 rm -f core conftest.err conftest.$ac_objext
4236 test "x$ac_cv_prog_cc_c89" != "xno" && break
4238 rm -f conftest.$ac_ext
4243 case "x$ac_cv_prog_cc_c89" in
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4246 $as_echo "none needed" >&6; } ;;
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4249 $as_echo "unsupported" >&6; } ;;
4251 CC="$CC $ac_cv_prog_cc_c89"
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4253 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4255 if test "x$ac_cv_prog_cc_c89" != xno; then :
4260 ac_cpp='$CPP $CPPFLAGS'
4261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265 if test "x$CC" != xcc; then
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4267 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4270 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4272 set dummy $CC; ac_cc=`$as_echo "$2" |
4273 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4274 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4275 $as_echo_n "(cached) " >&6
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4288 # Make sure it works both with $CC and with simple cc.
4289 # We do the test twice because some compilers refuse to overwrite an
4290 # existing .o file with -o, though they will create one.
4291 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4293 if { { case "(($ac_try" in
4294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4295 *) ac_try_echo
=$ac_try;;
4297 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 $as_echo "$ac_try_echo"; } >&5
4299 (eval "$ac_try") 2>&5
4301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302 test $ac_status = 0; } &&
4303 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4308 $as_echo "$ac_try_echo"; } >&5
4309 (eval "$ac_try") 2>&5
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; };
4314 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4315 if test "x$CC" != xcc; then
4316 # Test first that cc exists at all.
4317 if { ac_try='cc -c conftest.$ac_ext >&5'
4318 { { case "(($ac_try" in
4319 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4320 *) ac_try_echo
=$ac_try;;
4322 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_try") 2>&5
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; }; }; then
4328 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4330 if { { case "(($ac_try" in
4331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 $as_echo "$ac_try_echo"; } >&5
4336 (eval "$ac_try") 2>&5
4338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339 test $ac_status = 0; } &&
4340 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4342 *) ac_try_echo
=$ac_try;;
4344 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4345 $as_echo "$ac_try_echo"; } >&5
4346 (eval "$ac_try") 2>&5
4348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4349 test $ac_status = 0; };
4354 # cc exists but doesn't like -o.
4355 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4360 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4362 rm -f core conftest
*
4365 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4367 $as_echo "yes" >&6; }
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4372 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4376 # expand $ac_aux_dir to an absolute path
4377 am_aux_dir
=`cd $ac_aux_dir && pwd`
4379 # FIXME: we rely on the cache variable name because
4380 # there is no other way.
4382 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4383 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4384 if test "$am_t" != yes; then
4385 # Losing compiler, so override with the script.
4386 # FIXME: It is wrong to rewrite CC.
4387 # But if we don't then we get into trouble of one sort or another.
4388 # A longer-term fix would be to have automake use am__CC in this case,
4389 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4390 CC
="$am_aux_dir/compile $CC"
4395 ac_cpp
='$CXXCPP $CPPFLAGS'
4396 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4399 if test -z "$CXX"; then
4400 if test -n "$CCC"; then
4403 if test -n "$ac_tool_prefix"; then
4404 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4407 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 $as_echo_n "checking for $ac_word... " >&6; }
4410 if test "${ac_cv_prog_CXX+set}" = set; then :
4411 $as_echo_n "(cached) " >&6
4413 if test -n "$CXX"; then
4414 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4420 test -z "$as_dir" && as_dir
=.
4421 for ac_exec_ext
in '' $ac_executable_extensions; do
4422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4423 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4434 if test -n "$CXX"; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4436 $as_echo "$CXX" >&6; }
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439 $as_echo "no" >&6; }
4443 test -n "$CXX" && break
4446 if test -z "$CXX"; then
4448 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4450 # Extract the first word of "$ac_prog", so it can be a program name with args.
4451 set dummy
$ac_prog; ac_word
=$2
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4453 $as_echo_n "checking for $ac_word... " >&6; }
4454 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4455 $as_echo_n "(cached) " >&6
4457 if test -n "$ac_ct_CXX"; then
4458 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4464 test -z "$as_dir" && as_dir
=.
4465 for ac_exec_ext
in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4467 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4478 if test -n "$ac_ct_CXX"; then
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4480 $as_echo "$ac_ct_CXX" >&6; }
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 $as_echo "no" >&6; }
4487 test -n "$ac_ct_CXX" && break
4490 if test "x$ac_ct_CXX" = x
; then
4493 case $cross_compiling:$ac_tool_warned in
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4497 ac_tool_warned
=yes ;;
4505 # Provide some information about the compiler.
4506 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4509 for ac_option
in --version -v -V -qversion; do
4510 { { ac_try
="$ac_compiler $ac_option >&5"
4512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4516 $as_echo "$ac_try_echo"; } >&5
4517 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4519 if test -s conftest.err; then
4521 ... rest of stderr output deleted ...
4522 10q' conftest.err >conftest.er1
4523 cat conftest.er1 >&5
4524 rm -f conftest.er1 conftest.err
4526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4527 test $ac_status = 0; }
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4531 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4532 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4533 $as_echo_n "(cached) " >&6
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4549 if ac_fn_cxx_try_compile "$LINENO"; then :
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4559 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4560 if test $ac_compiler_gnu = yes; then
4565 ac_test_CXXFLAGS=${CXXFLAGS+set}
4566 ac_save_CXXFLAGS=$CXXFLAGS
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4568 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4569 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4570 $as_echo_n "(cached) " >&6
4572 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4573 ac_cxx_werror_flag=yes
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4587 if ac_fn_cxx_try_compile "$LINENO"; then :
4588 ac_cv_prog_cxx_g=yes
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4602 if ac_fn_cxx_try_compile "$LINENO"; then :
4605 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4618 if ac_fn_cxx_try_compile "$LINENO"; then :
4619 ac_cv_prog_cxx_g=yes
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4629 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4630 if test "$ac_test_CXXFLAGS" = set; then
4631 CXXFLAGS=$ac_save_CXXFLAGS
4632 elif test $ac_cv_prog_cxx_g = yes; then
4633 if test "$GXX" = yes; then
4639 if test "$GXX" = yes; then
4646 ac_cpp='$CPP $CPPFLAGS'
4647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4654 if test -n "$ac_tool_prefix"; then
4655 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4656 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658 $as_echo_n "checking for $ac_word... " >&6; }
4659 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
4662 if test -n "$GNATBIND"; then
4663 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 GNATBIND=$ac_cv_prog_GNATBIND
4683 if test -n "$GNATBIND"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4685 $as_echo "$GNATBIND" >&6; }
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 $as_echo "no" >&6; }
4693 if test -z "$ac_cv_prog_GNATBIND"; then
4694 ac_ct_GNATBIND=$GNATBIND
4695 # Extract the first word of "gnatbind", so it can be a program name with args.
4696 set dummy gnatbind; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4700 $as_echo_n "(cached) " >&6
4702 if test -n "$ac_ct_GNATBIND"; then
4703 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4723 if test -n "$ac_ct_GNATBIND"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4725 $as_echo "$ac_ct_GNATBIND" >&6; }
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4731 if test "x$ac_ct_GNATBIND" = x; then
4734 case $cross_compiling:$ac_tool_warned in
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4738 ac_tool_warned=yes ;;
4740 GNATBIND=$ac_ct_GNATBIND
4743 GNATBIND="$ac_cv_prog_GNATBIND"
4746 if test -n "$ac_tool_prefix"; then
4747 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4748 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750 $as_echo_n "checking for $ac_word... " >&6; }
4751 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4752 $as_echo_n "(cached) " >&6
4754 if test -n "$GNATMAKE"; then
4755 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4774 GNATMAKE=$ac_cv_prog_GNATMAKE
4775 if test -n "$GNATMAKE"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4777 $as_echo "$GNATMAKE" >&6; }
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 $as_echo "no" >&6; }
4785 if test -z "$ac_cv_prog_GNATMAKE"; then
4786 ac_ct_GNATMAKE=$GNATMAKE
4787 # Extract the first word of "gnatmake", so it can be a program name with args.
4788 set dummy gnatmake; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4794 if test -n "$ac_ct_GNATMAKE"; then
4795 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4815 if test -n "$ac_ct_GNATMAKE"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4817 $as_echo "$ac_ct_GNATMAKE" >&6; }
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4823 if test "x$ac_ct_GNATMAKE" = x; then
4826 case $cross_compiling:$ac_tool_warned in
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4830 ac_tool_warned=yes ;;
4832 GNATMAKE=$ac_ct_GNATMAKE
4835 GNATMAKE="$ac_cv_prog_GNATMAKE"
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4839 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4840 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
4843 cat >conftest.adb <<EOF
4844 procedure conftest is begin null; end conftest;
4846 acx_cv_cc_gcc_supports_ada=no
4847 # There is a bug in old released versions of GCC which causes the
4848 # driver to exit successfully when the appropriate language module
4849 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4850 # Therefore we must check for the error message as well as an
4851 # unsuccessful exit.
4852 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4853 # given a .adb file, but produce no object file. So we must check
4854 # if an object file was really produced to guard against this.
4855 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4856 if test x"$errors" = x && test -f conftest.$ac_objext; then
4857 acx_cv_cc_gcc_supports_ada=yes
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4862 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4864 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4871 # autoconf is lame and doesn't give us any substitution variable for this.
4872 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4873 NO_MINUS_C_MINUS_O=yes
4875 OUTPUT_OPTION='-o $@'
4880 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4881 # optimizations to be activated explicitly by the toplevel.
4883 */prev-gcc/xgcc*) ;;
4884 *) CFLAGS=`echo "$CFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4885 CXXFLAGS=`echo "$CXXFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4890 # Determine PICFLAG for target gnatlib.
4896 # PIC is the default on some targets or must not be used.
4898 # PIC is the default on this platform
4899 # Common symbols not allowed in MH_DYLIB files
4900 PICFLAG_FOR_TARGET=-fno-common
4903 # PIC is the default.
4906 # PIC is the default for 64-bit PA HP-UX.
4908 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4910 i[34567]86-*-interix[3-9]*)
4911 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4912 # Instead, we relocate shared libraries at runtime.
4914 i[34567]86-*-nto-qnx*)
4915 # QNX uses GNU C++, but need to define -shared option too, otherwise
4917 PICFLAG_FOR_TARGET='-fPIC -shared'
4919 i[34567]86-pc-msdosdjgpp*)
4920 # DJGPP does not support shared libraries at all.
4923 # On IA64 HP-UX, PIC is the default but the pic flag
4924 # sets the default TLS model and affects inlining.
4925 PICFLAG_FOR_TARGET=-fPIC
4928 # PIC is the default.
4930 rs6000-ibm-aix* | powerpc-ibm-aix*)
4931 # All AIX code is PIC.
4934 # Some targets support both -fPIC and -fpic, but prefer the latter.
4936 i[34567]86-*-* | x86_64-*-*)
4937 PICFLAG_FOR_TARGET=-fpic
4940 PICFLAG_FOR_TARGET=-fpic
4942 # FIXME: Override -fPIC default in libgcc only?
4943 sh-*-linux* | sh[2346lbe]*-*-linux*)
4944 PICFLAG_FOR_TARGET=-fpic
4946 # FIXME: Simplify to sh*-*-netbsd*?
4947 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4948 sh64-*-netbsd* | sh64l*-*-netbsd*)
4949 PICFLAG_FOR_TARGET=-fpic
4951 # Default to -fPIC unless specified otherwise.
4953 PICFLAG_FOR_TARGET=-fPIC
4957 # If the user explicitly uses -fpic/-fPIC, keep that.
4958 case "${CFLAGS_FOR_TARGET}" in
4960 PICFLAG_FOR_TARGET=-fpic
4963 PICFLAG_FOR_TARGET=-fPIC
4969 # -------------------------
4970 # Check C compiler features
4971 # -------------------------
4975 ac_cpp='$CPP $CPPFLAGS'
4976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4980 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4981 # On Suns, sometimes $CPP names a directory.
4982 if test -n "$CPP" && test -d "$CPP"; then
4985 if test -z "$CPP"; then
4986 if test "${ac_cv_prog_CPP+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4989 # Double quotes because CPP needs to be expanded
4990 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4993 for ac_c_preproc_warn_flag in '' yes
4995 # Use a header file that comes with gcc, so configuring glibc
4996 # with a fresh cross-compiler works.
4997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4998 # <limits.h> exists even on freestanding compilers.
4999 # On the NeXT, cc -E runs the code through the compiler's parser,
5000 # not just through cpp. "Syntax error" is here to catch this case.
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5004 # include <limits.h>
5006 # include <assert.h>
5010 if ac_fn_c_try_cpp "$LINENO"; then :
5013 # Broken: fails on valid input.
5016 rm -f conftest.err conftest.$ac_ext
5018 # OK, works on sane cases. Now check whether nonexistent headers
5019 # can be detected and how.
5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021 /* end confdefs.h. */
5022 #include <ac_nonexistent.h>
5024 if ac_fn_c_try_cpp "$LINENO"; then :
5025 # Broken: success on invalid input.
5028 # Passes both tests.
5032 rm -f conftest.err conftest.$ac_ext
5035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5036 rm -f conftest.err conftest.
$ac_ext
5037 if $ac_preproc_ok; then :
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5050 $as_echo "$CPP" >&6; }
5052 for ac_c_preproc_warn_flag
in '' yes
5054 # Use a header file that comes with gcc, so configuring glibc
5055 # with a fresh cross-compiler works.
5056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057 # <limits.h> exists even on freestanding compilers.
5058 # On the NeXT, cc -E runs the code through the compiler's parser,
5059 # not just through cpp. "Syntax error" is here to catch this case.
5060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5063 # include <limits.h>
5065 # include <assert.h>
5069 if ac_fn_c_try_cpp
"$LINENO"; then :
5072 # Broken: fails on valid input.
5075 rm -f conftest.err conftest.
$ac_ext
5077 # OK, works on sane cases. Now check whether nonexistent headers
5078 # can be detected and how.
5079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h. */
5081 #include <ac_nonexistent.h>
5083 if ac_fn_c_try_cpp
"$LINENO"; then :
5084 # Broken: success on invalid input.
5087 # Passes both tests.
5091 rm -f conftest.err conftest.
$ac_ext
5094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5095 rm -f conftest.err conftest.
$ac_ext
5096 if $ac_preproc_ok; then :
5099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5101 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5102 See \`config.log' for more details." "$LINENO" 5; }
5106 ac_cpp
='$CPP $CPPFLAGS'
5107 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5113 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5114 if test "${ac_cv_path_GREP+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5117 if test -z "$GREP"; then
5118 ac_path_GREP_found
=false
5119 # Loop through the user's path and test for each of PROGNAME-LIST
5120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5121 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5124 test -z "$as_dir" && as_dir
=.
5125 for ac_prog
in grep ggrep
; do
5126 for ac_exec_ext
in '' $ac_executable_extensions; do
5127 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5128 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5129 # Check for GNU ac_path_GREP and select it if it is found.
5130 # Check for GNU $ac_path_GREP
5131 case `"$ac_path_GREP" --version 2>&1` in
5133 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5136 $as_echo_n 0123456789 >"conftest.in"
5139 cat "conftest.in" "conftest.in" >"conftest.tmp"
5140 mv "conftest.tmp" "conftest.in"
5141 cp "conftest.in" "conftest.nl"
5142 $as_echo 'GREP' >> "conftest.nl"
5143 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5144 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5145 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5146 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5147 # Best one so far, save it but keep looking for a better one
5148 ac_cv_path_GREP
="$ac_path_GREP"
5149 ac_path_GREP_max
=$ac_count
5151 # 10*(2^10) chars as input seems more than enough
5152 test $ac_count -gt 10 && break
5154 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5157 $ac_path_GREP_found && break 3
5162 if test -z "$ac_cv_path_GREP"; then
5163 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5166 ac_cv_path_GREP
=$GREP
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5171 $as_echo "$ac_cv_path_GREP" >&6; }
5172 GREP
="$ac_cv_path_GREP"
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5176 $as_echo_n "checking for egrep... " >&6; }
5177 if test "${ac_cv_path_EGREP+set}" = set; then :
5178 $as_echo_n "(cached) " >&6
5180 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5181 then ac_cv_path_EGREP
="$GREP -E"
5183 if test -z "$EGREP"; then
5184 ac_path_EGREP_found
=false
5185 # Loop through the user's path and test for each of PROGNAME-LIST
5186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5187 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5190 test -z "$as_dir" && as_dir
=.
5191 for ac_prog
in egrep; do
5192 for ac_exec_ext
in '' $ac_executable_extensions; do
5193 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5194 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5195 # Check for GNU ac_path_EGREP and select it if it is found.
5196 # Check for GNU $ac_path_EGREP
5197 case `"$ac_path_EGREP" --version 2>&1` in
5199 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5202 $as_echo_n 0123456789 >"conftest.in"
5205 cat "conftest.in" "conftest.in" >"conftest.tmp"
5206 mv "conftest.tmp" "conftest.in"
5207 cp "conftest.in" "conftest.nl"
5208 $as_echo 'EGREP' >> "conftest.nl"
5209 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5210 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5211 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5212 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5213 # Best one so far, save it but keep looking for a better one
5214 ac_cv_path_EGREP
="$ac_path_EGREP"
5215 ac_path_EGREP_max
=$ac_count
5217 # 10*(2^10) chars as input seems more than enough
5218 test $ac_count -gt 10 && break
5220 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5223 $ac_path_EGREP_found && break 3
5228 if test -z "$ac_cv_path_EGREP"; then
5229 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5232 ac_cv_path_EGREP
=$EGREP
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5238 $as_echo "$ac_cv_path_EGREP" >&6; }
5239 EGREP
="$ac_cv_path_EGREP"
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5243 $as_echo_n "checking for ANSI C header files... " >&6; }
5244 if test "${ac_cv_header_stdc+set}" = set; then :
5245 $as_echo_n "(cached) " >&6
5247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5262 if ac_fn_c_try_compile
"$LINENO"; then :
5263 ac_cv_header_stdc
=yes
5265 ac_cv_header_stdc
=no
5267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5269 if test $ac_cv_header_stdc = yes; then
5270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5277 $EGREP "memchr" >/dev
/null
2>&1; then :
5280 ac_cv_header_stdc
=no
5286 if test $ac_cv_header_stdc = yes; then
5287 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5294 $EGREP "free" >/dev
/null
2>&1; then :
5297 ac_cv_header_stdc
=no
5303 if test $ac_cv_header_stdc = yes; then
5304 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5305 if test "$cross_compiling" = yes; then :
5308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5312 #if ((' ' & 0x0FF) == 0x020)
5313 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5314 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5316 # define ISLOWER(c) \
5317 (('a' <= (c) && (c) <= 'i') \
5318 || ('j' <= (c) && (c) <= 'r') \
5319 || ('s' <= (c) && (c) <= 'z'))
5320 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5323 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5328 for (i = 0; i < 256; i++)
5329 if (XOR (islower (i), ISLOWER (i))
5330 || toupper (i) != TOUPPER (i))
5335 if ac_fn_c_try_run
"$LINENO"; then :
5338 ac_cv_header_stdc
=no
5340 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5341 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5347 $as_echo "$ac_cv_header_stdc" >&6; }
5348 if test $ac_cv_header_stdc = yes; then
5350 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5354 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5355 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5356 inttypes.h stdint.h unistd.h
5358 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5359 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5361 eval as_val
=\$
$as_ac_Header
5362 if test "x$as_val" = x
""yes; then :
5363 cat >>confdefs.h
<<_ACEOF
5364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5373 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5374 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5381 if test "$MINIX" = yes; then
5383 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5386 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5389 $as_echo "#define _MINIX 1" >>confdefs.h
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5395 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5396 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5397 $as_echo_n "(cached) " >&6
5399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5402 # define __EXTENSIONS__ 1
5403 $ac_includes_default
5412 if ac_fn_c_try_compile
"$LINENO"; then :
5413 ac_cv_safe_to_define___extensions__
=yes
5415 ac_cv_safe_to_define___extensions__
=no
5417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5420 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5421 test $ac_cv_safe_to_define___extensions__ = yes &&
5422 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5424 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5426 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5428 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5430 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5434 ac_cpp
='$CPP $CPPFLAGS'
5435 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5439 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5440 # On Suns, sometimes $CPP names a directory.
5441 if test -n "$CPP" && test -d "$CPP"; then
5444 if test -z "$CPP"; then
5445 if test "${ac_cv_prog_CPP+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
5448 # Double quotes because CPP needs to be expanded
5449 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5452 for ac_c_preproc_warn_flag
in '' yes
5454 # Use a header file that comes with gcc, so configuring glibc
5455 # with a fresh cross-compiler works.
5456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5457 # <limits.h> exists even on freestanding compilers.
5458 # On the NeXT, cc -E runs the code through the compiler's parser,
5459 # not just through cpp. "Syntax error" is here to catch this case.
5460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5463 # include <limits.h>
5465 # include <assert.h>
5469 if ac_fn_c_try_cpp
"$LINENO"; then :
5472 # Broken: fails on valid input.
5475 rm -f conftest.err conftest.
$ac_ext
5477 # OK, works on sane cases. Now check whether nonexistent headers
5478 # can be detected and how.
5479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5481 #include <ac_nonexistent.h>
5483 if ac_fn_c_try_cpp
"$LINENO"; then :
5484 # Broken: success on invalid input.
5487 # Passes both tests.
5491 rm -f conftest.err conftest.
$ac_ext
5494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5495 rm -f conftest.err conftest.
$ac_ext
5496 if $ac_preproc_ok; then :
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5509 $as_echo "$CPP" >&6; }
5511 for ac_c_preproc_warn_flag
in '' yes
5513 # Use a header file that comes with gcc, so configuring glibc
5514 # with a fresh cross-compiler works.
5515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5516 # <limits.h> exists even on freestanding compilers.
5517 # On the NeXT, cc -E runs the code through the compiler's parser,
5518 # not just through cpp. "Syntax error" is here to catch this case.
5519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5522 # include <limits.h>
5524 # include <assert.h>
5528 if ac_fn_c_try_cpp
"$LINENO"; then :
5531 # Broken: fails on valid input.
5534 rm -f conftest.err conftest.
$ac_ext
5536 # OK, works on sane cases. Now check whether nonexistent headers
5537 # can be detected and how.
5538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540 #include <ac_nonexistent.h>
5542 if ac_fn_c_try_cpp
"$LINENO"; then :
5543 # Broken: success on invalid input.
5546 # Passes both tests.
5550 rm -f conftest.err conftest.
$ac_ext
5553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5554 rm -f conftest.err conftest.
$ac_ext
5555 if $ac_preproc_ok; then :
5558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5560 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5561 See \`config.log' for more details." "$LINENO" 5; }
5565 ac_cpp
='$CPP $CPPFLAGS'
5566 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5567 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5568 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5571 $as_echo_n "checking for inline... " >&6; }
5572 if test "${ac_cv_c_inline+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5576 for ac_kw
in inline __inline__ __inline
; do
5577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5581 static $ac_kw foo_t static_foo () {return 0; }
5582 $ac_kw foo_t foo () {return 0; }
5586 if ac_fn_c_try_compile
"$LINENO"; then :
5587 ac_cv_c_inline
=$ac_kw
5589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5590 test "$ac_cv_c_inline" != no
&& break
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5595 $as_echo "$ac_cv_c_inline" >&6; }
5597 case $ac_cv_c_inline in
5600 case $ac_cv_c_inline in
5602 *) ac_val
=$ac_cv_c_inline;;
5604 cat >>confdefs.h
<<_ACEOF
5606 #define inline $ac_val
5613 # Check whether --enable-largefile was given.
5614 if test "${enable_largefile+set}" = set; then :
5615 enableval
=$enable_largefile;
5618 if test "$enable_largefile" != no
; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5621 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5622 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5623 $as_echo_n "(cached) " >&6
5625 ac_cv_sys_largefile_CC
=no
5626 if test "$GCC" != yes; then
5629 # IRIX 6.2 and later do not support large files by default,
5630 # so use the C compiler's -n32 option if that helps.
5631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5633 #include <sys/types.h>
5634 /* Check that off_t can represent 2**63 - 1 correctly.
5635 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5636 since some C++ compilers masquerading as C compilers
5637 incorrectly reject 9223372036854775807. */
5638 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5639 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5640 && LARGE_OFF_T % 2147483647 == 1)
5650 if ac_fn_c_try_compile
"$LINENO"; then :
5653 rm -f core conftest.err conftest.
$ac_objext
5655 if ac_fn_c_try_compile
"$LINENO"; then :
5656 ac_cv_sys_largefile_CC
=' -n32'; break
5658 rm -f core conftest.err conftest.
$ac_objext
5662 rm -f conftest.
$ac_ext
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5666 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5667 if test "$ac_cv_sys_largefile_CC" != no
; then
5668 CC
=$CC$ac_cv_sys_largefile_CC
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5672 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5673 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5674 $as_echo_n "(cached) " >&6
5677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679 #include <sys/types.h>
5680 /* Check that off_t can represent 2**63 - 1 correctly.
5681 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5682 since some C++ compilers masquerading as C compilers
5683 incorrectly reject 9223372036854775807. */
5684 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5685 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5686 && LARGE_OFF_T % 2147483647 == 1)
5696 if ac_fn_c_try_compile
"$LINENO"; then :
5697 ac_cv_sys_file_offset_bits
=no
; break
5699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5702 #define _FILE_OFFSET_BITS 64
5703 #include <sys/types.h>
5704 /* Check that off_t can represent 2**63 - 1 correctly.
5705 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5706 since some C++ compilers masquerading as C compilers
5707 incorrectly reject 9223372036854775807. */
5708 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5709 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5710 && LARGE_OFF_T % 2147483647 == 1)
5720 if ac_fn_c_try_compile
"$LINENO"; then :
5721 ac_cv_sys_file_offset_bits
=64; break
5723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5724 ac_cv_sys_file_offset_bits
=unknown
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5729 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5730 case $ac_cv_sys_file_offset_bits in #(
5733 cat >>confdefs.h
<<_ACEOF
5734 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5739 if test $ac_cv_sys_file_offset_bits = unknown
; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5741 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5742 if test "${ac_cv_sys_large_files+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748 #include <sys/types.h>
5749 /* Check that off_t can represent 2**63 - 1 correctly.
5750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5751 since some C++ compilers masquerading as C compilers
5752 incorrectly reject 9223372036854775807. */
5753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5755 && LARGE_OFF_T % 2147483647 == 1)
5765 if ac_fn_c_try_compile
"$LINENO"; then :
5766 ac_cv_sys_large_files
=no
; break
5768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5771 #define _LARGE_FILES 1
5772 #include <sys/types.h>
5773 /* Check that off_t can represent 2**63 - 1 correctly.
5774 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5775 since some C++ compilers masquerading as C compilers
5776 incorrectly reject 9223372036854775807. */
5777 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5778 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5779 && LARGE_OFF_T % 2147483647 == 1)
5789 if ac_fn_c_try_compile
"$LINENO"; then :
5790 ac_cv_sys_large_files
=1; break
5792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5793 ac_cv_sys_large_files
=unknown
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5798 $as_echo "$ac_cv_sys_large_files" >&6; }
5799 case $ac_cv_sys_large_files in #(
5802 cat >>confdefs.h
<<_ACEOF
5803 #define _LARGE_FILES $ac_cv_sys_large_files
5812 # sizeof(char) is 1 by definition.
5813 # The cast to long int works around a bug in the HP C Compiler
5814 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5815 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5816 # This bug is HP SR number 8606223364.
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5818 $as_echo_n "checking size of void *... " >&6; }
5819 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5822 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5825 if test "$ac_cv_type_void_p" = yes; then
5826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5828 { as_fn_set_status
77
5829 as_fn_error
"cannot compute sizeof (void *)
5830 See \`config.log' for more details." "$LINENO" 5; }; }
5832 ac_cv_sizeof_void_p
=0
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5838 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5842 cat >>confdefs.h
<<_ACEOF
5843 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5847 # The cast to long int works around a bug in the HP C Compiler
5848 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5849 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5850 # This bug is HP SR number 8606223364.
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5852 $as_echo_n "checking size of short... " >&6; }
5853 if test "${ac_cv_sizeof_short+set}" = set; then :
5854 $as_echo_n "(cached) " >&6
5856 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5859 if test "$ac_cv_type_short" = yes; then
5860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5862 { as_fn_set_status
77
5863 as_fn_error
"cannot compute sizeof (short)
5864 See \`config.log' for more details." "$LINENO" 5; }; }
5866 ac_cv_sizeof_short
=0
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5872 $as_echo "$ac_cv_sizeof_short" >&6; }
5876 cat >>confdefs.h
<<_ACEOF
5877 #define SIZEOF_SHORT $ac_cv_sizeof_short
5881 # The cast to long int works around a bug in the HP C Compiler
5882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5884 # This bug is HP SR number 8606223364.
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5886 $as_echo_n "checking size of int... " >&6; }
5887 if test "${ac_cv_sizeof_int+set}" = set; then :
5888 $as_echo_n "(cached) " >&6
5890 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5893 if test "$ac_cv_type_int" = yes; then
5894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5896 { as_fn_set_status
77
5897 as_fn_error
"cannot compute sizeof (int)
5898 See \`config.log' for more details." "$LINENO" 5; }; }
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5906 $as_echo "$ac_cv_sizeof_int" >&6; }
5910 cat >>confdefs.h
<<_ACEOF
5911 #define SIZEOF_INT $ac_cv_sizeof_int
5915 # The cast to long int works around a bug in the HP C Compiler
5916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5918 # This bug is HP SR number 8606223364.
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5920 $as_echo_n "checking size of long... " >&6; }
5921 if test "${ac_cv_sizeof_long+set}" = set; then :
5922 $as_echo_n "(cached) " >&6
5924 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5927 if test "$ac_cv_type_long" = yes; then
5928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5930 { as_fn_set_status
77
5931 as_fn_error
"cannot compute sizeof (long)
5932 See \`config.log' for more details." "$LINENO" 5; }; }
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5940 $as_echo "$ac_cv_sizeof_long" >&6; }
5944 cat >>confdefs.h
<<_ACEOF
5945 #define SIZEOF_LONG $ac_cv_sizeof_long
5949 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5950 if test "x$ac_cv_type_long_long" = x
""yes; then :
5952 cat >>confdefs.h
<<_ACEOF
5953 #define HAVE_LONG_LONG 1
5956 # The cast to long int works around a bug in the HP C Compiler
5957 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5958 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5959 # This bug is HP SR number 8606223364.
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5961 $as_echo_n "checking size of long long... " >&6; }
5962 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5963 $as_echo_n "(cached) " >&6
5965 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5968 if test "$ac_cv_type_long_long" = yes; then
5969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5971 { as_fn_set_status
77
5972 as_fn_error
"cannot compute sizeof (long long)
5973 See \`config.log' for more details." "$LINENO" 5; }; }
5975 ac_cv_sizeof_long_long
=0
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5981 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5985 cat >>confdefs.h
<<_ACEOF
5986 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5992 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5993 if test "x$ac_cv_type___int64" = x
""yes; then :
5995 cat >>confdefs.h
<<_ACEOF
5996 #define HAVE___INT64 1
5999 # The cast to long int works around a bug in the HP C Compiler
6000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6002 # This bug is HP SR number 8606223364.
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
6004 $as_echo_n "checking size of __int64... " >&6; }
6005 if test "${ac_cv_sizeof___int64+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
6008 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6011 if test "$ac_cv_type___int64" = yes; then
6012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6014 { as_fn_set_status
77
6015 as_fn_error
"cannot compute sizeof (__int64)
6016 See \`config.log' for more details." "$LINENO" 5; }; }
6018 ac_cv_sizeof___int64
=0
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6024 $as_echo "$ac_cv_sizeof___int64" >&6; }
6028 cat >>confdefs.h
<<_ACEOF
6029 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6035 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6036 case $ac_cv_c_int8_t in #(
6040 cat >>confdefs.h
<<_ACEOF
6041 #define int8_t $ac_cv_c_int8_t
6046 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6047 case $ac_cv_c_int16_t in #(
6051 cat >>confdefs.h
<<_ACEOF
6052 #define int16_t $ac_cv_c_int16_t
6057 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6058 case $ac_cv_c_int32_t in #(
6062 cat >>confdefs.h
<<_ACEOF
6063 #define int32_t $ac_cv_c_int32_t
6068 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6069 case $ac_cv_c_int64_t in #(
6073 cat >>confdefs.h
<<_ACEOF
6074 #define int64_t $ac_cv_c_int64_t
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6081 $as_echo_n "checking for long long int... " >&6; }
6082 if test "${ac_cv_type_long_long_int+set}" = set; then :
6083 $as_echo_n "(cached) " >&6
6085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6088 /* For now, do not test the preprocessor; as of 2007 there are too many
6089 implementations with broken preprocessors. Perhaps this can
6090 be revisited in 2012. In the meantime, code should not expect
6091 #if to work with literals wider than 32 bits. */
6092 /* Test literals. */
6093 long long int ll = 9223372036854775807ll;
6094 long long int nll = -9223372036854775807LL;
6095 unsigned long long int ull = 18446744073709551615ULL;
6096 /* Test constant expressions. */
6097 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6099 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6105 /* Test availability of runtime routines for shift and division. */
6106 long long int llmax = 9223372036854775807ll;
6107 unsigned long long int ullmax = 18446744073709551615ull;
6108 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6109 | (llmax / ll) | (llmax % ll)
6110 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6111 | (ullmax / ull) | (ullmax % ull));
6117 if ac_fn_c_try_link
"$LINENO"; then :
6118 if test "$cross_compiling" = yes; then :
6119 ac_cv_type_long_long_int
=yes
6121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h. */
6126 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6127 # define LLONG_MAX (HALF - 1 + HALF)
6132 long long int n = 1;
6136 long long int m = n << i;
6139 if (LLONG_MAX / 2 < m)
6147 if ac_fn_c_try_run
"$LINENO"; then :
6148 ac_cv_type_long_long_int
=yes
6150 ac_cv_type_long_long_int
=no
6152 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6153 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6157 ac_cv_type_long_long_int
=no
6159 rm -f core conftest.err conftest.
$ac_objext \
6160 conftest
$ac_exeext conftest.
$ac_ext
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6163 $as_echo "$ac_cv_type_long_long_int" >&6; }
6164 if test $ac_cv_type_long_long_int = yes; then
6166 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6172 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6173 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6175 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6178 test $ac_cv_type_long_long_int = yes \
6179 && ac_type
='long long int' \
6180 || ac_type
='long int'
6182 cat >>confdefs.h
<<_ACEOF
6183 #define intmax_t $ac_type
6190 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6191 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6193 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6196 for ac_type
in 'int' 'long int' 'long long int'; do
6197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199 $ac_includes_default
6203 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6210 if ac_fn_c_try_compile
"$LINENO"; then :
6212 cat >>confdefs.h
<<_ACEOF
6213 #define intptr_t $ac_type
6218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6219 test -z "$ac_type" && break
6224 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6225 case $ac_cv_c_uint8_t in #(
6229 $as_echo "#define _UINT8_T 1" >>confdefs.h
6232 cat >>confdefs.h
<<_ACEOF
6233 #define uint8_t $ac_cv_c_uint8_t
6238 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6239 case $ac_cv_c_uint16_t in #(
6244 cat >>confdefs.h
<<_ACEOF
6245 #define uint16_t $ac_cv_c_uint16_t
6250 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6251 case $ac_cv_c_uint32_t in #(
6255 $as_echo "#define _UINT32_T 1" >>confdefs.h
6258 cat >>confdefs.h
<<_ACEOF
6259 #define uint32_t $ac_cv_c_uint32_t
6264 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6265 case $ac_cv_c_uint64_t in #(
6269 $as_echo "#define _UINT64_T 1" >>confdefs.h
6272 cat >>confdefs.h
<<_ACEOF
6273 #define uint64_t $ac_cv_c_uint64_t
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6280 $as_echo_n "checking for unsigned long long int... " >&6; }
6281 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6282 $as_echo_n "(cached) " >&6
6284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6287 /* For now, do not test the preprocessor; as of 2007 there are too many
6288 implementations with broken preprocessors. Perhaps this can
6289 be revisited in 2012. In the meantime, code should not expect
6290 #if to work with literals wider than 32 bits. */
6291 /* Test literals. */
6292 long long int ll = 9223372036854775807ll;
6293 long long int nll = -9223372036854775807LL;
6294 unsigned long long int ull = 18446744073709551615ULL;
6295 /* Test constant expressions. */
6296 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6298 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6304 /* Test availability of runtime routines for shift and division. */
6305 long long int llmax = 9223372036854775807ll;
6306 unsigned long long int ullmax = 18446744073709551615ull;
6307 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6308 | (llmax / ll) | (llmax % ll)
6309 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6310 | (ullmax / ull) | (ullmax % ull));
6316 if ac_fn_c_try_link
"$LINENO"; then :
6317 ac_cv_type_unsigned_long_long_int
=yes
6319 ac_cv_type_unsigned_long_long_int
=no
6321 rm -f core conftest.err conftest.
$ac_objext \
6322 conftest
$ac_exeext conftest.
$ac_ext
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6325 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6326 if test $ac_cv_type_unsigned_long_long_int = yes; then
6328 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6334 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6335 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6337 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6340 test $ac_cv_type_unsigned_long_long_int = yes \
6341 && ac_type
='unsigned long long int' \
6342 || ac_type
='unsigned long int'
6344 cat >>confdefs.h
<<_ACEOF
6345 #define uintmax_t $ac_type
6352 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6353 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6355 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6358 for ac_type
in 'unsigned int' 'unsigned long int' \
6359 'unsigned long long int'; do
6360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6362 $ac_includes_default
6366 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6373 if ac_fn_c_try_compile
"$LINENO"; then :
6375 cat >>confdefs.h
<<_ACEOF
6376 #define uintptr_t $ac_type
6381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6382 test -z "$ac_type" && break
6400 # ---------------------
6401 # Warnings and checking
6402 # ---------------------
6404 # Check $CC warning features (if it's GCC).
6405 # We want to use -pedantic, but we don't want warnings about
6408 # * overlong strings
6409 # * C++11 narrowing conversions in { }
6410 # So, we only use -pedantic if we can disable those warnings.
6413 save_CFLAGS
="$CFLAGS"
6414 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6415 # Do the check with the no- prefix removed since gcc silently
6416 # accepts any -Wno-* option on purpose
6417 case $real_option in
6418 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6419 *) option
=$real_option ;;
6421 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6424 $as_echo_n "checking whether $CC supports $option... " >&6; }
6425 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6426 $as_echo_n "(cached) " >&6
6429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6440 if ac_fn_c_try_compile
"$LINENO"; then :
6441 eval "$as_acx_Woption=yes"
6443 eval "$as_acx_Woption=no"
6445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6448 eval ac_res
=\$
$as_acx_Woption
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6450 $as_echo "$ac_res" >&6; }
6451 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6452 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6455 CFLAGS
="$save_CFLAGS"
6458 save_CFLAGS
="$CFLAGS"
6459 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6460 # Do the check with the no- prefix removed since gcc silently
6461 # accepts any -Wno-* option on purpose
6462 case $real_option in
6463 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6464 *) option
=$real_option ;;
6466 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6469 $as_echo_n "checking whether $CC supports $option... " >&6; }
6470 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6471 $as_echo_n "(cached) " >&6
6474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6485 if ac_fn_c_try_compile
"$LINENO"; then :
6486 eval "$as_acx_Woption=yes"
6488 eval "$as_acx_Woption=no"
6490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6493 eval ac_res
=\$
$as_acx_Woption
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6495 $as_echo "$ac_res" >&6; }
6496 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6497 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6500 CFLAGS
="$save_CFLAGS"
6503 save_CFLAGS
="$CFLAGS"
6504 for real_option
in -Wmissing-format-attribute; do
6505 # Do the check with the no- prefix removed since gcc silently
6506 # accepts any -Wno-* option on purpose
6507 case $real_option in
6508 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6509 *) option
=$real_option ;;
6511 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6514 $as_echo_n "checking whether $CC supports $option... " >&6; }
6515 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6516 $as_echo_n "(cached) " >&6
6519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6530 if ac_fn_c_try_compile
"$LINENO"; then :
6531 eval "$as_acx_Woption=yes"
6533 eval "$as_acx_Woption=no"
6535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6538 eval ac_res
=\$
$as_acx_Woption
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6540 $as_echo "$ac_res" >&6; }
6541 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6542 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6545 CFLAGS
="$save_CFLAGS"
6548 save_CFLAGS
="$CFLAGS"
6549 for real_option
in -Wold-style-definition -Wc++-compat; do
6550 # Do the check with the no- prefix removed since gcc silently
6551 # accepts any -Wno-* option on purpose
6552 case $real_option in
6553 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6554 *) option
=$real_option ;;
6556 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6559 $as_echo_n "checking whether $CC supports $option... " >&6; }
6560 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6561 $as_echo_n "(cached) " >&6
6564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6575 if ac_fn_c_try_compile
"$LINENO"; then :
6576 eval "$as_acx_Woption=yes"
6578 eval "$as_acx_Woption=no"
6580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6583 eval ac_res
=\$
$as_acx_Woption
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6585 $as_echo "$ac_res" >&6; }
6586 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6587 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6590 CFLAGS
="$save_CFLAGS"
6592 # Do the check with the no- prefix removed from the warning options
6593 # since gcc silently accepts any -Wno-* option on purpose
6594 if test "$GCC" = yes; then :
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6596 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6597 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6598 $as_echo_n "(cached) " >&6
6600 save_CFLAGS
="$CFLAGS"
6601 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6613 if ac_fn_c_try_compile
"$LINENO"; then :
6614 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6616 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6619 CFLAGS
="$save_CFLAGS"
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6622 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6623 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6624 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6629 # Check whether --enable-werror-always was given.
6630 if test "${enable_werror_always+set}" = set; then :
6631 enableval
=$enable_werror_always;
6633 enable_werror_always
=no
6636 if test $enable_werror_always = yes; then :
6637 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6642 # The above macros do nothing if the compiler is not GCC. However, the
6643 # Makefile has more goo to add other flags, so these variables are used
6644 # to enable warnings only for GCC.
6647 if test "x$GCC" = "xyes"; then
6648 warn_cflags
='$(GCC_WARN_CFLAGS)'
6649 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6654 # Disable exceptions and RTTI if building with g++
6656 save_CFLAGS
="$CFLAGS"
6657 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6658 # Do the check with the no- prefix removed since gcc silently
6659 # accepts any -Wno-* option on purpose
6660 case $real_option in
6661 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6662 *) option
=$real_option ;;
6664 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6667 $as_echo_n "checking whether $CC supports $option... " >&6; }
6668 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6669 $as_echo_n "(cached) " >&6
6672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6683 if ac_fn_c_try_compile
"$LINENO"; then :
6684 eval "$as_acx_Woption=yes"
6686 eval "$as_acx_Woption=no"
6688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6691 eval ac_res
=\$
$as_acx_Woption
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6693 $as_echo "$ac_res" >&6; }
6694 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6695 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6698 CFLAGS
="$save_CFLAGS"
6701 # Enable expensive internal checks
6703 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6707 # Check whether --enable-checking was given.
6708 if test "${enable_checking+set}" = set; then :
6709 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6712 # Determine the default checks.
6713 if test x
$is_release = x
; then
6714 ac_checking_flags
=yes
6716 ac_checking_flags
=release
6720 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6721 for check
in release
$ac_checking_flags
6724 # these set all the flags to specific states
6725 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6726 ac_fold_checking
= ; ac_gc_checking
=1 ;
6727 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6728 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6729 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6730 ac_types_checking
=1 ;;
6731 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6732 ac_fold_checking
= ; ac_gc_checking
= ;
6733 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6734 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6735 ac_tree_checking
= ; ac_valgrind_checking
= ;
6736 ac_types_checking
= ;;
6737 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6738 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6739 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6740 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6741 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6742 ac_types_checking
=1 ;;
6743 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6744 ac_fold_checking
= ; ac_gc_checking
= ;
6745 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6746 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6747 ac_tree_checking
= ; ac_valgrind_checking
= ;
6748 ac_types_checking
= ;;
6749 # these enable particular checks
6750 assert
) ac_assert_checking
=1 ;;
6751 df
) ac_df_checking
=1 ;;
6752 fold) ac_fold_checking
=1 ;;
6753 gc
) ac_gc_checking
=1 ;;
6754 gcac
) ac_gc_always_collect
=1 ;;
6755 gimple
) ac_gimple_checking
=1 ;;
6756 misc
) ac_checking
=1 ;;
6757 rtl
) ac_rtl_checking
=1 ;;
6758 rtlflag
) ac_rtlflag_checking
=1 ;;
6759 runtime
) ac_runtime_checking
=1 ;;
6760 tree
) ac_tree_checking
=1 ;;
6761 types
) ac_types_checking
=1 ;;
6762 valgrind
) ac_valgrind_checking
=1 ;;
6763 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6769 if test x
$ac_checking != x
; then
6771 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6773 nocommon_flag
=-fno-common
6776 if test x
$ac_df_checking != x
; then
6778 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6781 if test x
$ac_assert_checking != x
; then
6783 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6786 if test x
$ac_gimple_checking != x
; then
6788 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6792 if test x
$ac_runtime_checking != x
; then
6794 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6797 if test x
$ac_tree_checking != x
; then
6799 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6801 TREEBROWSER
=tree-browser.o
6804 if test x
$ac_types_checking != x
; then
6806 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6811 if test x
$ac_rtl_checking != x
; then
6813 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6816 if test x
$ac_rtlflag_checking != x
; then
6818 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6821 if test x
$ac_gc_checking != x
; then
6823 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6826 if test x
$ac_gc_always_collect != x
; then
6828 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6831 if test x
$ac_fold_checking != x
; then
6833 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6836 valgrind_path_defines
=
6839 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6840 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6848 if test x
$ac_valgrind_checking != x
; then
6849 # It is certainly possible that there's valgrind but no valgrind.h.
6850 # GCC relies on making annotations so we must have both.
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6852 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6855 #include <valgrind/memcheck.h>
6856 #ifndef VALGRIND_DISCARD
6857 #error VALGRIND_DISCARD not defined
6860 if ac_fn_c_try_cpp
"$LINENO"; then :
6861 gcc_cv_header_valgrind_memcheck_h
=yes
6863 gcc_cv_header_valgrind_memcheck_h
=no
6865 rm -f conftest.err conftest.
$ac_ext
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6867 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6869 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6872 #include <memcheck.h>
6873 #ifndef VALGRIND_DISCARD
6874 #error VALGRIND_DISCARD not defined
6877 if ac_fn_c_try_cpp
"$LINENO"; then :
6878 gcc_cv_header_memcheck_h
=yes
6880 gcc_cv_header_memcheck_h
=no
6882 rm -f conftest.err conftest.
$ac_ext
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6884 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6886 # Prepare PATH_SEPARATOR.
6887 # The user is always right.
6888 if test "${PATH_SEPARATOR+set}" != set; then
6889 echo "#! /bin/sh" >conf$$.sh
6890 echo "exit 0" >>conf$$.sh
6892 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6900 # Find out how to test for executable files. Don't use a zero-byte file,
6901 # as systems may use methods other than mode bits to determine executability.
6902 cat >conf$$.
file <<_ASEOF
6906 chmod +x conf$$.
file
6907 if test -x conf$$.
file >/dev
/null
2>&1; then
6908 ac_executable_p
="test -x"
6910 ac_executable_p
="test -f"
6914 # Extract the first word of "valgrind", so it can be a program name with args.
6915 set dummy valgrind
; ac_word
=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6919 $as_echo_n "(cached) " >&6
6921 case "$valgrind_path" in
6923 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6926 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6927 for ac_dir
in $PATH; do
6929 test -z "$ac_dir" && ac_dir
=.
6930 for ac_exec_ext
in '' $ac_executable_extensions; do
6931 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6932 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6933 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6943 valgrind_path
="$ac_cv_path_valgrind_path"
6944 if test -n "$valgrind_path"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6946 $as_echo "$valgrind_path" >&6; }
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 $as_echo "no" >&6; }
6952 if test "x$valgrind_path" = "x" \
6953 ||
(test $have_valgrind_h = no \
6954 && test $gcc_cv_header_memcheck_h = no \
6955 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6956 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6958 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6959 valgrind_command
="$valgrind_path -q"
6961 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6963 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6965 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6968 if test $gcc_cv_header_memcheck_h = yes; then
6970 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6977 # Enable code coverage collection
6978 # Check whether --enable-coverage was given.
6979 if test "${enable_coverage+set}" = set; then :
6980 enableval
=$enable_coverage; case "${enableval}" in
6982 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6985 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6988 # a.k.a. --disable-coverage
6992 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7001 # Check whether --enable-gather-detailed-mem-stats was given.
7002 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7003 enableval
=$enable_gather_detailed_mem_stats;
7005 enable_gather_detailed_mem_stats
=no
7008 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7010 cat >>confdefs.h
<<_ACEOF
7011 #define GATHER_STATISTICS $gather_stats
7015 # -------------------------------
7016 # Miscenalleous configure options
7017 # -------------------------------
7021 # Check whether --with-stabs was given.
7022 if test "${with_stabs+set}" = set; then :
7023 withval
=$with_stabs; stabs
="$with_stabs"
7029 # Determine whether or not multilibs are enabled.
7030 # Check whether --enable-multilib was given.
7031 if test "${enable_multilib+set}" = set; then :
7032 enableval
=$enable_multilib;
7039 # Determine whether or not multiarch is enabled.
7040 # Check whether --enable-multiarch was given.
7041 if test "${enable_multiarch+set}" = set; then :
7042 enableval
=$enable_multiarch; case "${enableval}" in
7043 yes|no|auto
) enable_multiarch
=$enableval;;
7044 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7047 enable_multiarch
=auto
7050 if test x
${enable_multiarch} = xauto
; then
7051 if test x
${with_native_system_header_dir} != x
; then
7052 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7055 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7056 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7061 $as_echo_n "checking for multiarch configuration... " >&6; }
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7064 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7066 # needed for setting the multiarch name for soft-float/hard-float ABIs
7070 # Enable __cxa_atexit for C++.
7071 # Check whether --enable-__cxa_atexit was given.
7072 if test "${enable___cxa_atexit+set}" = set; then :
7073 enableval
=$enable___cxa_atexit;
7077 # Enable C extension for decimal float if target supports it.
7079 # Check whether --enable-decimal-float was given.
7080 if test "${enable_decimal_float+set}" = set; then :
7081 enableval
=$enable_decimal_float;
7082 case $enable_decimal_float in
7083 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7084 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7085 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7091 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7093 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7095 enable_decimal_float
=yes
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7099 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7100 enable_decimal_float
=no
7107 # x86's use BID format instead of DPD
7108 case x
$enable_decimal_float in
7111 i?
86*-*-* | x86_64
*-*-*)
7112 enable_decimal_float
=bid
7115 enable_decimal_float
=dpd
7118 default_decimal_float
=$enable_decimal_float
7121 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7122 # dependency on libdecnumber.
7123 default_decimal_float
=dpd
7130 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7132 cat >>confdefs.h
<<_ACEOF
7133 #define ENABLE_DECIMAL_FLOAT $dfp
7137 # Use default_decimal_float for dependency.
7138 enable_decimal_float
=$default_decimal_float
7140 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7142 cat >>confdefs.h
<<_ACEOF
7143 #define ENABLE_DECIMAL_BID_FORMAT $bid
7147 # Enable C extension for fixed-point arithmetic.
7148 # Check whether --enable-fixed-point was given.
7149 if test "${enable_fixed_point+set}" = set; then :
7150 enableval
=$enable_fixed_point;
7155 enable_fixed_point
=yes
7159 enable_fixed_point
=yes
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7163 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7164 enable_fixed_point
=no
7172 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7174 cat >>confdefs.h
<<_ACEOF
7175 #define ENABLE_FIXED_POINT $fixedpoint
7180 # Pass with no value to take the default
7181 # Pass with a value to specify a thread package
7182 # Check whether --enable-threads was given.
7183 if test "${enable_threads+set}" = set; then :
7184 enableval
=$enable_threads;
7190 # Check whether --enable-tls was given.
7191 if test "${enable_tls+set}" = set; then :
7192 enableval
=$enable_tls;
7195 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7196 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7204 # Check whether --enable-objc-gc was given.
7205 if test "${enable_objc_gc+set}" = set; then :
7206 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7217 # Check whether --with-dwarf2 was given.
7218 if test "${with_dwarf2+set}" = set; then :
7219 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7225 # Check whether --enable-shared was given.
7226 if test "${enable_shared+set}" = set; then :
7227 enableval
=$enable_shared;
7228 case $enable_shared in
7232 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7233 for pkg
in $enableval; do
7234 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7249 # Check whether --with-native-system-header-dir was given.
7250 if test "${with_native_system_header_dir+set}" = set; then :
7251 withval
=$with_native_system_header_dir;
7252 case ${with_native_system_header_dir} in
7253 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7254 /* |
[A-Za-z
]:[\\/]*) ;;
7255 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7257 configured_native_system_header_dir
="${withval}"
7260 configured_native_system_header_dir
=
7265 # Check whether --with-build-sysroot was given.
7266 if test "${with_build_sysroot+set}" = set; then :
7267 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7268 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7271 SYSROOT_CFLAGS_FOR_TARGET
=
7277 # Check whether --with-runtime-root-prefix was given.
7278 if test "${with_runtime_root_prefix+set}" = set; then :
7279 withval
=$with_runtime_root_prefix;
7280 case ${with_runtime_root_prefix} in
7281 yes|no
) as_fn_error
"bad value ${withval} given for runtime root prefix" "$LINENO" 5 ;;
7283 *) as_fn_error
"${withval} should be an absolute directory" "$LINENO" 5 ;;
7285 RUNTIME_ROOT_PREFIX_DEFINE
="-DRUNTIME_ROOT_PREFIX=\\\"${withval}\\\""
7288 RUNTIME_ROOT_PREFIX_DEFINE
=""
7293 if test "x$prefix" = xNONE
; then
7294 test_prefix
=/usr
/local
7298 if test "x$exec_prefix" = xNONE
; then
7299 test_exec_prefix
=$test_prefix
7301 test_exec_prefix
=$exec_prefix
7305 # Check whether --with-sysroot was given.
7306 if test "${with_sysroot+set}" = set; then :
7307 withval
=$with_sysroot;
7308 case ${with_sysroot} in
7309 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7310 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7313 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7314 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7316 case ${TARGET_SYSTEM_ROOT} in
7317 "${test_prefix}"|
"${test_prefix}/"*|\
7318 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7319 '${prefix}'|
'${prefix}/'*|\
7320 '${exec_prefix}'|
'${exec_prefix}/'*)
7321 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7322 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7329 TARGET_SYSTEM_ROOT_DEFINE
=
7330 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7339 # Check whether --with-specs was given.
7340 if test "${with_specs+set}" = set; then :
7341 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7351 # Check whether --with-pkgversion was given.
7352 if test "${with_pkgversion+set}" = set; then :
7353 withval
=$with_pkgversion; case "$withval" in
7354 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7356 *) PKGVERSION
="($withval) " ;;
7367 # Check whether --with-bugurl was given.
7368 if test "${with_bugurl+set}" = set; then :
7369 withval
=$with_bugurl; case "$withval" in
7370 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7373 *) BUGURL
="$withval"
7377 BUGURL
="http://gcc.gnu.org/bugs.html"
7387 REPORT_BUGS_TO
="<$BUGURL>"
7388 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7395 # Sanity check enable_languages in case someone does not run the toplevel
7396 # configure # script.
7397 # Check whether --enable-languages was given.
7398 if test "${enable_languages+set}" = set; then :
7399 enableval
=$enable_languages; case ,${enable_languages}, in
7401 # go safe -- we cannot be much sure without the toplevel
7403 # analysis of which target libs are present and usable
7407 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7412 enable_languages
=c
,${enable_languages}
7421 # Check whether --with-multilib-list was given.
7422 if test "${with_multilib_list+set}" = set; then :
7423 withval
=$with_multilib_list; :
7425 with_multilib_list
=default
7429 # -------------------------
7430 # Checks for other programs
7431 # -------------------------
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7434 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7436 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7437 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7438 $as_echo_n "(cached) " >&6
7440 cat >conftest.
make <<\_ACEOF
7443 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7445 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7446 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7448 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7450 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7454 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7456 $as_echo "yes" >&6; }
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460 $as_echo "no" >&6; }
7461 SET_MAKE
="MAKE=${MAKE-make}"
7465 # Find some useful tools
7466 for ac_prog
in gawk mawk nawk
awk
7468 # Extract the first word of "$ac_prog", so it can be a program name with args.
7469 set dummy
$ac_prog; ac_word
=$2
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471 $as_echo_n "checking for $ac_word... " >&6; }
7472 if test "${ac_cv_prog_AWK+set}" = set; then :
7473 $as_echo_n "(cached) " >&6
7475 if test -n "$AWK"; then
7476 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7482 test -z "$as_dir" && as_dir
=.
7483 for ac_exec_ext
in '' $ac_executable_extensions; do
7484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7485 ac_cv_prog_AWK
="$ac_prog"
7486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496 if test -n "$AWK"; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7498 $as_echo "$AWK" >&6; }
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7505 test -n "$AWK" && break
7508 # We need awk to create options.c and options.h.
7509 # Bail out if it's missing.
7511 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7515 $as_echo_n "checking whether ln -s works... " >&6; }
7516 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7517 $as_echo_n "(cached) " >&6
7519 rm -f conftestdata_t
7520 echo >conftestdata_f
7521 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7523 gcc_cv_prog_LN_S
="ln -s"
7525 if ln conftestdata_f conftestdata_t
2>/dev
/null
7529 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7531 gcc_cv_prog_LN_S
="cp -p"
7537 rm -f conftestdata_f conftestdata_t
7540 LN_S
="$gcc_cv_prog_LN_S"
7541 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7543 $as_echo "yes" >&6; }
7545 if test "$gcc_cv_prog_LN_S" = "ln"; then
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7547 $as_echo "no, using ln" >&6; }
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7550 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7555 $as_echo_n "checking whether ln works... " >&6; }
7556 if test "${acx_cv_prog_LN+set}" = set; then :
7557 $as_echo_n "(cached) " >&6
7559 rm -f conftestdata_t
7560 echo >conftestdata_f
7561 if ln conftestdata_f conftestdata_t
2>/dev
/null
7567 rm -f conftestdata_f conftestdata_t
7570 if test $acx_cv_prog_LN = no
; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7573 $as_echo "no, using $LN" >&6; }
7575 LN
="$acx_cv_prog_LN"
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7577 $as_echo "yes" >&6; }
7580 if test -n "$ac_tool_prefix"; then
7581 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7582 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
7588 if test -n "$RANLIB"; then
7589 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7595 test -z "$as_dir" && as_dir
=.
7596 for ac_exec_ext
in '' $ac_executable_extensions; do
7597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7598 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 RANLIB
=$ac_cv_prog_RANLIB
7609 if test -n "$RANLIB"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7611 $as_echo "$RANLIB" >&6; }
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7619 if test -z "$ac_cv_prog_RANLIB"; then
7620 ac_ct_RANLIB
=$RANLIB
7621 # Extract the first word of "ranlib", so it can be a program name with args.
7622 set dummy ranlib
; ac_word
=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7626 $as_echo_n "(cached) " >&6
7628 if test -n "$ac_ct_RANLIB"; then
7629 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7635 test -z "$as_dir" && as_dir
=.
7636 for ac_exec_ext
in '' $ac_executable_extensions; do
7637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7638 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7649 if test -n "$ac_ct_RANLIB"; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7651 $as_echo "$ac_ct_RANLIB" >&6; }
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7657 if test "x$ac_ct_RANLIB" = x
; then
7660 case $cross_compiling:$ac_tool_warned in
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7664 ac_tool_warned
=yes ;;
7666 RANLIB
=$ac_ct_RANLIB
7669 RANLIB
="$ac_cv_prog_RANLIB"
7675 # Find a good install program. We prefer a C program (faster),
7676 # so one script is as good as another. But avoid the broken or
7677 # incompatible versions:
7678 # SysV /etc/install, /usr/sbin/install
7679 # SunOS /usr/etc/install
7680 # IRIX /sbin/install
7682 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7683 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7684 # ./install, which can be erroneously created by make from ./install.sh.
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7686 $as_echo_n "checking for a BSD compatible install... " >&6; }
7687 if test -z "$INSTALL"; then
7688 if test "${ac_cv_path_install+set}" = set; then :
7689 $as_echo_n "(cached) " >&6
7691 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7692 for ac_dir
in $PATH; do
7693 # Account for people who put trailing slashes in PATH elements.
7695 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7697 # OSF1 and SCO ODT 3.0 have their own names for install.
7698 for ac_prog
in ginstall scoinst
install; do
7699 if test -f $ac_dir/$ac_prog; then
7700 if test $ac_prog = install &&
7701 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7702 # AIX install. It has an incompatible calling convention.
7703 # OSF/1 installbsd also uses dspmsg, but is usable.
7706 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7717 if test "${ac_cv_path_install+set}" = set; then
7718 INSTALL
="$ac_cv_path_install"
7720 # As a last resort, use the slow shell script. We don't cache a
7721 # path for INSTALL within a source directory, because that will
7722 # break other packages using the cache if that directory is
7723 # removed, or if the path is relative.
7724 INSTALL
="$ac_install_sh"
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7728 $as_echo "$INSTALL" >&6; }
7730 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7731 # It thinks the first close brace ends the variable substitution.
7732 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7734 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7737 # See if cmp has --ignore-initial.
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7739 $as_echo_n "checking for cmp's capabilities... " >&6; }
7740 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7741 $as_echo_n "(cached) " >&6
7745 gcc_cv_prog_cmp_skip
=slowcompare
7746 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7747 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7750 gcc_cv_prog_cmp_skip
=gnucompare
7753 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7754 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7755 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7758 gcc_cv_prog_cmp_skip
=fastcompare
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7766 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7767 make_compare_target
=$gcc_cv_prog_cmp_skip
7771 # See if we have the mktemp command.
7772 # Extract the first word of "mktemp", so it can be a program name with args.
7773 set dummy mktemp
; ac_word
=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
7779 if test -n "$have_mktemp_command"; then
7780 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7786 test -z "$as_dir" && as_dir
=.
7787 for ac_exec_ext
in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7789 ac_cv_prog_have_mktemp_command
="yes"
7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7800 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7801 if test -n "$have_mktemp_command"; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7803 $as_echo "$have_mktemp_command" >&6; }
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806 $as_echo "no" >&6; }
7811 # See if makeinfo has been installed and is modern enough
7812 # that we can use it.
7814 # Extract the first word of "makeinfo", so it can be a program name with args.
7815 set dummy makeinfo
; ac_word
=$2
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817 $as_echo_n "checking for $ac_word... " >&6; }
7818 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7819 $as_echo_n "(cached) " >&6
7821 if test -n "$MAKEINFO"; then
7822 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7828 test -z "$as_dir" && as_dir
=.
7829 for ac_exec_ext
in '' $ac_executable_extensions; do
7830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7831 ac_cv_prog_MAKEINFO
="makeinfo"
7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 MAKEINFO
=$ac_cv_prog_MAKEINFO
7842 if test -n "$MAKEINFO"; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7844 $as_echo "$MAKEINFO" >&6; }
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7851 if test -n "$MAKEINFO"; then
7852 # Found it, now check the version.
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7854 $as_echo_n "checking for modern makeinfo... " >&6; }
7855 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7856 $as_echo_n "(cached) " >&6
7858 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7859 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7861 case $ac_prog_version in
7862 '') gcc_cv_prog_makeinfo_modern
=no
;;
7863 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7864 *) gcc_cv_prog_makeinfo_modern
=no
;;
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7869 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7871 gcc_cv_prog_makeinfo_modern
=no
7873 if test $gcc_cv_prog_makeinfo_modern = no
; then
7874 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7877 if test $gcc_cv_prog_makeinfo_modern = no
; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7879 *** Makeinfo is missing or too old.
7880 *** Info documentation will not be built." >&5
7881 $as_echo "$as_me: WARNING:
7882 *** Makeinfo is missing or too old.
7883 *** Info documentation will not be built." >&2;}
7890 # Is pod2man recent enough to regenerate manpages?
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7892 $as_echo_n "checking for recent Pod::Man... " >&6; }
7893 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7895 $as_echo "yes" >&6; }
7896 GENERATED_MANPAGES
=generated-manpages
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7904 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7909 # Extract the first word of "$ac_prog", so it can be a program name with args.
7910 set dummy
$ac_prog; ac_word
=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 $as_echo_n "checking for $ac_word... " >&6; }
7913 if test "${ac_cv_prog_FLEX+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
7916 if test -n "$FLEX"; then
7917 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7923 test -z "$as_dir" && as_dir
=.
7924 for ac_exec_ext
in '' $ac_executable_extensions; do
7925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7926 ac_cv_prog_FLEX
="$ac_prog"
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 FLEX
=$ac_cv_prog_FLEX
7937 if test -n "$FLEX"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7939 $as_echo "$FLEX" >&6; }
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7946 test -n "$FLEX" && break
7948 test -n "$FLEX" || FLEX
="$MISSING flex"
7952 for ac_prog
in bison
7954 # Extract the first word of "$ac_prog", so it can be a program name with args.
7955 set dummy
$ac_prog; ac_word
=$2
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957 $as_echo_n "checking for $ac_word... " >&6; }
7958 if test "${ac_cv_prog_BISON+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7961 if test -n "$BISON"; then
7962 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7968 test -z "$as_dir" && as_dir
=.
7969 for ac_exec_ext
in '' $ac_executable_extensions; do
7970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971 ac_cv_prog_BISON
="$ac_prog"
7972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 BISON
=$ac_cv_prog_BISON
7982 if test -n "$BISON"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7984 $as_echo "$BISON" >&6; }
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7991 test -n "$BISON" && break
7993 test -n "$BISON" || BISON
="$MISSING bison"
7996 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7997 # check for build == host before using them.
8000 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8001 && test -d ..
/binutils
; then
8002 NM
='${objdir}/../binutils/nm-new'
8004 # Extract the first word of "nm", so it can be a program name with args.
8005 set dummy nm
; ac_word
=$2
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007 $as_echo_n "checking for $ac_word... " >&6; }
8008 if test "${ac_cv_prog_NM+set}" = set; then :
8009 $as_echo_n "(cached) " >&6
8011 if test -n "$NM"; then
8012 ac_cv_prog_NM
="$NM" # Let the user override the test.
8014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8018 test -z "$as_dir" && as_dir
=.
8019 for ac_exec_ext
in '' $ac_executable_extensions; do
8020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8033 if test -n "$NM"; then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8035 $as_echo "$NM" >&6; }
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038 $as_echo "no" >&6; }
8045 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8046 && test -d ..
/binutils
; then
8047 AR
='${objdir}/../binutils/ar'
8049 # Extract the first word of "ar", so it can be a program name with args.
8050 set dummy
ar; ac_word
=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if test "${ac_cv_prog_AR+set}" = set; then :
8054 $as_echo_n "(cached) " >&6
8056 if test -n "$AR"; then
8057 ac_cv_prog_AR
="$AR" # Let the user override the test.
8059 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8063 test -z "$as_dir" && as_dir
=.
8064 for ac_exec_ext
in '' $ac_executable_extensions; do
8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8074 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8078 if test -n "$AR"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8080 $as_echo "$AR" >&6; }
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 $as_echo "no" >&6; }
8090 # --------------------
8091 # Checks for C headers
8092 # --------------------
8094 # Need to reject headers which give warnings, so that the -Werror bootstrap
8095 # works later. *sigh* This needs to come before all header checks.
8097 ac_c_preproc_warn_flag
=yes
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8100 $as_echo_n "checking for ANSI C header files... " >&6; }
8101 if test "${ac_cv_header_stdc+set}" = set; then :
8102 $as_echo_n "(cached) " >&6
8104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8119 if ac_fn_c_try_compile
"$LINENO"; then :
8120 ac_cv_header_stdc
=yes
8122 ac_cv_header_stdc
=no
8124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8126 if test $ac_cv_header_stdc = yes; then
8127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h. */
8133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8134 $EGREP "memchr" >/dev
/null
2>&1; then :
8137 ac_cv_header_stdc
=no
8143 if test $ac_cv_header_stdc = yes; then
8144 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8151 $EGREP "free" >/dev
/null
2>&1; then :
8154 ac_cv_header_stdc
=no
8160 if test $ac_cv_header_stdc = yes; then
8161 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8162 if test "$cross_compiling" = yes; then :
8165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8169 #if ((' ' & 0x0FF) == 0x020)
8170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8173 # define ISLOWER(c) \
8174 (('a' <= (c) && (c) <= 'i') \
8175 || ('j' <= (c) && (c) <= 'r') \
8176 || ('s' <= (c) && (c) <= 'z'))
8177 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8180 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8185 for (i = 0; i < 256; i++)
8186 if (XOR (islower (i), ISLOWER (i))
8187 || toupper (i) != TOUPPER (i))
8192 if ac_fn_c_try_run
"$LINENO"; then :
8195 ac_cv_header_stdc
=no
8197 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8198 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8204 $as_echo "$ac_cv_header_stdc" >&6; }
8205 if test $ac_cv_header_stdc = yes; then
8207 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8212 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8213 if test "${ac_cv_header_time+set}" = set; then :
8214 $as_echo_n "(cached) " >&6
8216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218 #include <sys/types.h>
8219 #include <sys/time.h>
8225 if ((struct tm *) 0)
8231 if ac_fn_c_try_compile
"$LINENO"; then :
8232 ac_cv_header_time
=yes
8234 ac_cv_header_time
=no
8236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8239 $as_echo "$ac_cv_header_time" >&6; }
8240 if test $ac_cv_header_time = yes; then
8242 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8247 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8248 if test "${gcc_cv_header_string+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8252 /* end confdefs.h. */
8254 #include <strings.h>
8263 if ac_fn_c_try_compile
"$LINENO"; then :
8264 gcc_cv_header_string
=yes
8266 gcc_cv_header_string
=no
8268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8271 $as_echo "$gcc_cv_header_string" >&6; }
8272 if test $gcc_cv_header_string = yes; then
8274 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8279 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8280 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8281 $as_echo_n "(cached) " >&6
8283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8285 #include <sys/types.h>
8286 #include <sys/wait.h>
8288 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8291 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8299 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8304 if ac_fn_c_try_compile
"$LINENO"; then :
8305 ac_cv_header_sys_wait_h
=yes
8307 ac_cv_header_sys_wait_h
=no
8309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8312 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8313 if test $ac_cv_header_sys_wait_h = yes; then
8315 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8319 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8320 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8321 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8322 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8324 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8325 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8326 eval as_val
=\$
$as_ac_Header
8327 if test "x$as_val" = x
""yes; then :
8328 cat >>confdefs.h
<<_ACEOF
8329 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8336 # Check for thread headers.
8337 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8338 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8344 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8345 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8352 # These tests can't be done till we know if we have limits.h.
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8354 $as_echo_n "checking for CHAR_BIT... " >&6; }
8355 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8356 $as_echo_n "(cached) " >&6
8358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h. */
8360 #ifdef HAVE_LIMITS_H
8367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8368 $EGREP "found" >/dev
/null
2>&1; then :
8369 gcc_cv_decl_char_bit
=yes
8371 gcc_cv_decl_char_bit
=no
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8378 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8379 if test $gcc_cv_decl_char_bit = no
; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8381 $as_echo_n "checking number of bits in a byte... " >&6; }
8382 if test "${gcc_cv_c_nbby+set}" = set; then :
8383 $as_echo_n "(cached) " >&6
8387 while test $i -lt 65; do
8388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8395 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8396 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8402 if ac_fn_c_try_compile
"$LINENO"; then :
8403 gcc_cv_c_nbby
=$i; break
8405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8408 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8412 $as_echo "$gcc_cv_c_nbby" >&6; }
8413 if test $gcc_cv_c_nbby = failed
; then
8414 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8417 cat >>confdefs.h
<<_ACEOF
8418 #define CHAR_BIT $gcc_cv_c_nbby
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8424 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8425 if test "${ac_cv_c_bigendian+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
8428 ac_cv_c_bigendian
=unknown
8429 # See if we're dealing with a universal compiler.
8430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8432 #ifndef __APPLE_CC__
8433 not a universal capable compiler
8438 if ac_fn_c_try_compile
"$LINENO"; then :
8440 # Check for potential -arch flags. It is not universal unless
8441 # there are at least two -arch flags with different values.
8444 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8445 if test -n "$ac_prev"; then
8447 i?
86 | x86_64 | ppc | ppc64
)
8448 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8451 ac_cv_c_bigendian
=universal
8457 elif test "x$ac_word" = "x-arch"; then
8462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8463 if test $ac_cv_c_bigendian = unknown
; then
8464 # See if sys/param.h defines the BYTE_ORDER macro.
8465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8467 #include <sys/types.h>
8468 #include <sys/param.h>
8473 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8474 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8483 if ac_fn_c_try_compile
"$LINENO"; then :
8484 # It does; now see whether it defined to BIG_ENDIAN or not.
8485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8487 #include <sys/types.h>
8488 #include <sys/param.h>
8493 #if BYTE_ORDER != BIG_ENDIAN
8501 if ac_fn_c_try_compile
"$LINENO"; then :
8502 ac_cv_c_bigendian
=yes
8504 ac_cv_c_bigendian
=no
8506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8510 if test $ac_cv_c_bigendian = unknown
; then
8511 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8519 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8527 if ac_fn_c_try_compile
"$LINENO"; then :
8528 # It does; now see whether it defined to _BIG_ENDIAN or not.
8529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8530 /* end confdefs.h. */
8544 if ac_fn_c_try_compile
"$LINENO"; then :
8545 ac_cv_c_bigendian
=yes
8547 ac_cv_c_bigendian
=no
8549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8553 if test $ac_cv_c_bigendian = unknown
; then
8554 # Compile a test program.
8555 if test "$cross_compiling" = yes; then :
8556 # Try to guess by grepping values from an object file.
8557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8559 short int ascii_mm[] =
8560 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8561 short int ascii_ii[] =
8562 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8563 int use_ascii (int i) {
8564 return ascii_mm[i] + ascii_ii[i];
8566 short int ebcdic_ii[] =
8567 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8568 short int ebcdic_mm[] =
8569 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8570 int use_ebcdic (int i) {
8571 return ebcdic_mm[i] + ebcdic_ii[i];
8578 return use_ascii (foo) == use_ebcdic (foo);
8583 if ac_fn_c_try_compile
"$LINENO"; then :
8584 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8585 ac_cv_c_bigendian
=yes
8587 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8588 if test "$ac_cv_c_bigendian" = unknown
; then
8589 ac_cv_c_bigendian
=no
8591 # finding both strings is unlikely to happen, but who knows?
8592 ac_cv_c_bigendian
=unknown
8596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8600 $ac_includes_default
8605 /* Are we little or big endian? From Harbison&Steele. */
8609 char c[sizeof (long int)];
8612 return u.c[sizeof (long int) - 1] == 1;
8618 if ac_fn_c_try_run
"$LINENO"; then :
8619 ac_cv_c_bigendian
=no
8621 ac_cv_c_bigendian
=yes
8623 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8624 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8630 $as_echo "$ac_cv_c_bigendian" >&6; }
8631 case $ac_cv_c_bigendian in #(
8633 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8639 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8643 as_fn_error
"unknown endianness
8644 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8648 # ----------------------
8649 # Checks for C++ headers
8650 # ----------------------
8653 ac_cpp
='$CXXCPP $CPPFLAGS'
8654 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8655 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8656 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8658 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8659 if test -z "$CXXCPP"; then
8660 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8661 $as_echo_n "(cached) " >&6
8663 # Double quotes because CXXCPP needs to be expanded
8664 for CXXCPP
in "$CXX -E" "/lib/cpp"
8667 for ac_cxx_preproc_warn_flag
in '' yes
8669 # Use a header file that comes with gcc, so configuring glibc
8670 # with a fresh cross-compiler works.
8671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8672 # <limits.h> exists even on freestanding compilers.
8673 # On the NeXT, cc -E runs the code through the compiler's parser,
8674 # not just through cpp. "Syntax error" is here to catch this case.
8675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h. */
8678 # include <limits.h>
8680 # include <assert.h>
8684 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8687 # Broken: fails on valid input.
8690 rm -f conftest.err conftest.
$ac_ext
8692 # OK, works on sane cases. Now check whether nonexistent headers
8693 # can be detected and how.
8694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8695 /* end confdefs.h. */
8696 #include <ac_nonexistent.h>
8698 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8699 # Broken: success on invalid input.
8702 # Passes both tests.
8706 rm -f conftest.err conftest.
$ac_ext
8709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8710 rm -f conftest.err conftest.
$ac_ext
8711 if $ac_preproc_ok; then :
8716 ac_cv_prog_CXXCPP
=$CXXCPP
8719 CXXCPP
=$ac_cv_prog_CXXCPP
8721 ac_cv_prog_CXXCPP
=$CXXCPP
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8724 $as_echo "$CXXCPP" >&6; }
8726 for ac_cxx_preproc_warn_flag
in '' yes
8728 # Use a header file that comes with gcc, so configuring glibc
8729 # with a fresh cross-compiler works.
8730 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8731 # <limits.h> exists even on freestanding compilers.
8732 # On the NeXT, cc -E runs the code through the compiler's parser,
8733 # not just through cpp. "Syntax error" is here to catch this case.
8734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8737 # include <limits.h>
8739 # include <assert.h>
8743 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8746 # Broken: fails on valid input.
8749 rm -f conftest.err conftest.
$ac_ext
8751 # OK, works on sane cases. Now check whether nonexistent headers
8752 # can be detected and how.
8753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8755 #include <ac_nonexistent.h>
8757 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8758 # Broken: success on invalid input.
8761 # Passes both tests.
8765 rm -f conftest.err conftest.
$ac_ext
8768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8769 rm -f conftest.err conftest.
$ac_ext
8770 if $ac_preproc_ok; then :
8773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8776 See \`config.log' for more details." >&5
8777 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8778 See \`config.log' for more details." >&2;}; }
8782 ac_cpp
='$CPP $CPPFLAGS'
8783 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8784 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8785 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8789 ac_cpp
='$CXXCPP $CPPFLAGS'
8790 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8791 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8792 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8797 for ac_header
in unordered_map
8799 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8800 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8801 cat >>confdefs.h
<<_ACEOF
8802 #define HAVE_UNORDERED_MAP 1
8808 for ac_header
in tr1/unordered_map
8810 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8811 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8812 cat >>confdefs.h
<<_ACEOF
8813 #define HAVE_TR1_UNORDERED_MAP 1
8819 for ac_header
in ext
/hash_map
8821 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8822 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8823 cat >>confdefs.h
<<_ACEOF
8824 #define HAVE_EXT_HASH_MAP 1
8832 ac_cpp
='$CPP $CPPFLAGS'
8833 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8834 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8835 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8843 # These libraries may be used by collect2.
8844 # We may need a special search path to get them linked.
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8846 $as_echo_n "checking for collect2 libraries... " >&6; }
8847 if test "${gcc_cv_collect2_libs+set}" = set; then :
8848 $as_echo_n "(cached) " >&6
8851 for libs
in '' -lld -lmld \
8852 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8853 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8859 /* Override any GCC internal prototype to avoid an error.
8860 Use char because int might match the return type of a GCC
8861 builtin and then its argument prototype would still apply. */
8874 if ac_fn_c_try_link
"$LINENO"; then :
8875 gcc_cv_collect2_libs
="$libs"; break
8877 rm -f core conftest.err conftest.
$ac_objext \
8878 conftest
$ac_exeext conftest.
$ac_ext
8881 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8884 $as_echo "$gcc_cv_collect2_libs" >&6; }
8885 case $gcc_cv_collect2_libs in
8887 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8891 # When building Ada code on Alpha, we need exc_resume which is usually in
8892 # -lexc. So test for it.
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8896 $as_echo_n "checking for library containing exc_resume... " >&6; }
8897 if test "${ac_cv_search_exc_resume+set}" = set; then :
8898 $as_echo_n "(cached) " >&6
8900 ac_func_search_save_LIBS
=$LIBS
8901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8904 /* Override any GCC internal prototype to avoid an error.
8905 Use char because int might match the return type of a GCC
8906 builtin and then its argument prototype would still apply. */
8914 return exc_resume ();
8919 for ac_lib
in '' exc
; do
8920 if test -z "$ac_lib"; then
8921 ac_res
="none required"
8924 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8926 if ac_fn_c_try_link
"$LINENO"; then :
8927 ac_cv_search_exc_resume
=$ac_res
8929 rm -f core conftest.err conftest.
$ac_objext \
8931 if test "${ac_cv_search_exc_resume+set}" = set; then :
8935 if test "${ac_cv_search_exc_resume+set}" = set; then :
8938 ac_cv_search_exc_resume
=no
8941 LIBS
=$ac_func_search_save_LIBS
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8944 $as_echo "$ac_cv_search_exc_resume" >&6; }
8945 ac_res
=$ac_cv_search_exc_resume
8946 if test "$ac_res" != no
; then :
8947 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8955 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8959 $as_echo_n "checking for library containing kstat_open... " >&6; }
8960 if test "${ac_cv_search_kstat_open+set}" = set; then :
8961 $as_echo_n "(cached) " >&6
8963 ac_func_search_save_LIBS
=$LIBS
8964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h. */
8967 /* Override any GCC internal prototype to avoid an error.
8968 Use char because int might match the return type of a GCC
8969 builtin and then its argument prototype would still apply. */
8977 return kstat_open ();
8982 for ac_lib
in '' kstat
; do
8983 if test -z "$ac_lib"; then
8984 ac_res
="none required"
8987 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8989 if ac_fn_c_try_link
"$LINENO"; then :
8990 ac_cv_search_kstat_open
=$ac_res
8992 rm -f core conftest.err conftest.
$ac_objext \
8994 if test "${ac_cv_search_kstat_open+set}" = set; then :
8998 if test "${ac_cv_search_kstat_open+set}" = set; then :
9001 ac_cv_search_kstat_open
=no
9004 LIBS
=$ac_func_search_save_LIBS
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9007 $as_echo "$ac_cv_search_kstat_open" >&6; }
9008 ac_res
=$ac_cv_search_kstat_open
9009 if test "$ac_res" != no
; then :
9010 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9014 EXTRA_GCC_LIBS
="$LIBS"
9018 # Some systems put ldexp and frexp in libm instead of libc; assume
9019 # they're both in the same place. jcf-dump needs them.
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9023 $as_echo_n "checking for library containing ldexp... " >&6; }
9024 if test "${ac_cv_search_ldexp+set}" = set; then :
9025 $as_echo_n "(cached) " >&6
9027 ac_func_search_save_LIBS
=$LIBS
9028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9031 /* Override any GCC internal prototype to avoid an error.
9032 Use char because int might match the return type of a GCC
9033 builtin and then its argument prototype would still apply. */
9046 for ac_lib
in '' m
; do
9047 if test -z "$ac_lib"; then
9048 ac_res
="none required"
9051 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9053 if ac_fn_c_try_link
"$LINENO"; then :
9054 ac_cv_search_ldexp
=$ac_res
9056 rm -f core conftest.err conftest.
$ac_objext \
9058 if test "${ac_cv_search_ldexp+set}" = set; then :
9062 if test "${ac_cv_search_ldexp+set}" = set; then :
9065 ac_cv_search_ldexp
=no
9068 LIBS
=$ac_func_search_save_LIBS
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9071 $as_echo "$ac_cv_search_ldexp" >&6; }
9072 ac_res
=$ac_cv_search_ldexp
9073 if test "$ac_res" != no
; then :
9074 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9082 # Use <inttypes.h> only if it exists,
9083 # doesn't clash with <sys/types.h>, and declares intmax_t.
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9085 $as_echo_n "checking for inttypes.h... " >&6; }
9086 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9087 $as_echo_n "(cached) " >&6
9089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9090 /* end confdefs.h. */
9091 #include <sys/types.h>
9092 #include <inttypes.h>
9101 if ac_fn_c_try_compile
"$LINENO"; then :
9102 gcc_cv_header_inttypes_h
=yes
9104 gcc_cv_header_inttypes_h
=no
9106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9110 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9111 if test $gcc_cv_header_inttypes_h = yes; then
9113 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9119 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9120 sysconf strsignal getrusage nl_langinfo \
9121 gettimeofday mbstowcs wcswidth mmap setlocale \
9122 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
9124 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9125 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9126 eval as_val
=\$
$as_ac_var
9127 if test "x$as_val" = x
""yes; then :
9128 cat >>confdefs.h
<<_ACEOF
9129 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9136 if test x
$ac_cv_func_mbstowcs = xyes
; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9138 $as_echo_n "checking whether mbstowcs works... " >&6; }
9139 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
9142 if test "$cross_compiling" = yes; then :
9143 gcc_cv_func_mbstowcs_works
=yes
9145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9146 /* end confdefs.h. */
9154 if ac_fn_c_try_run
"$LINENO"; then :
9155 gcc_cv_func_mbstowcs_works
=yes
9157 gcc_cv_func_mbstowcs_works
=no
9159 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9160 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9165 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9166 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9168 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9173 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9174 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9178 cat >>confdefs.h
<<_ACEOF
9184 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9185 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9189 cat >>confdefs.h
<<_ACEOF
9190 #define caddr_t char *
9197 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9198 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9199 gcc_header_sys_mman_h
=yes
9201 gcc_header_sys_mman_h
=no
9204 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9205 if test "x$ac_cv_func_mmap" = x
""yes; then :
9211 if test "$gcc_header_sys_mman_h" != yes \
9212 ||
test "$gcc_func_mmap" != yes; then
9213 gcc_cv_func_mmap_file
=no
9214 gcc_cv_func_mmap_dev_zero
=no
9215 gcc_cv_func_mmap_anon
=no
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9218 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9219 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
9222 # Add a system to this blacklist if
9223 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9224 # memory area containing the same data that you'd get if you applied
9225 # read() to the same fd. The only system known to have a problem here
9226 # is VMS, where text files have record structure.
9229 gcc_cv_func_mmap_file
=no
;;
9231 gcc_cv_func_mmap_file
=yes;;
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9235 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9237 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9238 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9239 $as_echo_n "(cached) " >&6
9241 # Add a system to this blacklist if it has mmap() but /dev/zero
9242 # does not exist, or if mmapping /dev/zero does not give anonymous
9243 # zeroed pages with both the following properties:
9244 # 1. If you map N consecutive pages in with one call, and then
9245 # unmap any subset of those pages, the pages that were not
9246 # explicitly unmapped remain accessible.
9247 # 2. If you map two adjacent blocks of memory and then unmap them
9248 # both at once, they must both go away.
9249 # Systems known to be in this category are Windows (all variants),
9252 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9253 gcc_cv_func_mmap_dev_zero
=no
;;
9255 gcc_cv_func_mmap_dev_zero
=yes;;
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9259 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9261 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9263 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9264 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9265 $as_echo_n "(cached) " >&6
9267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9268 /* end confdefs.h. */
9269 #include <sys/types.h>
9270 #include <sys/mman.h>
9273 #ifndef MAP_ANONYMOUS
9274 #define MAP_ANONYMOUS MAP_ANON
9280 int n = MAP_ANONYMOUS;
9285 if ac_fn_c_try_compile
"$LINENO"; then :
9286 gcc_cv_decl_map_anon
=yes
9288 gcc_cv_decl_map_anon
=no
9290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9293 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9295 if test $gcc_cv_decl_map_anon = no
; then
9296 gcc_cv_func_mmap_anon
=no
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9299 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9300 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9301 $as_echo_n "(cached) " >&6
9303 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9304 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9305 # doesn't give anonymous zeroed pages with the same properties listed
9306 # above for use of /dev/zero.
9307 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9309 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9310 gcc_cv_func_mmap_anon
=no
;;
9312 gcc_cv_func_mmap_anon
=yes;;
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9316 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9320 if test $gcc_cv_func_mmap_file = yes; then
9322 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9325 if test $gcc_cv_func_mmap_dev_zero = yes; then
9327 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9330 if test $gcc_cv_func_mmap_anon = yes; then
9332 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9339 # Under VMS, vfork works very differently than on Unix. The standard test
9340 # won't work, and it isn't easily adaptable. It makes more sense to
9342 ac_cv_func_vfork_works
=yes
9345 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9346 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9350 cat >>confdefs.h
<<_ACEOF
9356 for ac_header
in vfork.h
9358 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9359 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9360 cat >>confdefs.h
<<_ACEOF
9361 #define HAVE_VFORK_H 1
9367 for ac_func
in fork vfork
9369 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9370 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9371 eval as_val
=\$
$as_ac_var
9372 if test "x$as_val" = x
""yes; then :
9373 cat >>confdefs.h
<<_ACEOF
9374 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9380 if test "x$ac_cv_func_fork" = xyes
; then
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9382 $as_echo_n "checking for working fork... " >&6; }
9383 if test "${ac_cv_func_fork_works+set}" = set; then :
9384 $as_echo_n "(cached) " >&6
9386 if test "$cross_compiling" = yes; then :
9387 ac_cv_func_fork_works
=cross
9389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h. */
9391 $ac_includes_default
9396 /* By Ruediger Kuhlmann. */
9403 if ac_fn_c_try_run
"$LINENO"; then :
9404 ac_cv_func_fork_works
=yes
9406 ac_cv_func_fork_works
=no
9408 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9409 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9414 $as_echo "$ac_cv_func_fork_works" >&6; }
9417 ac_cv_func_fork_works
=$ac_cv_func_fork
9419 if test "x$ac_cv_func_fork_works" = xcross
; then
9421 *-*-amigaos* |
*-*-msdosdjgpp*)
9422 # Override, as these systems have only a dummy fork() stub
9423 ac_cv_func_fork_works
=no
9426 ac_cv_func_fork_works
=yes
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9430 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9432 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9433 if test "x$ac_cv_func_vfork" = xyes
; then
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9435 $as_echo_n "checking for working vfork... " >&6; }
9436 if test "${ac_cv_func_vfork_works+set}" = set; then :
9437 $as_echo_n "(cached) " >&6
9439 if test "$cross_compiling" = yes; then :
9440 ac_cv_func_vfork_works
=cross
9442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444 /* Thanks to Paul Eggert for this test. */
9445 $ac_includes_default
9446 #include <sys/wait.h>
9450 /* On some sparc systems, changes by the child to local and incoming
9451 argument registers are propagated back to the parent. The compiler
9452 is told about this with #include <vfork.h>, but some compilers
9453 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9454 static variable whose address is put into a register that is
9455 clobbered by the vfork. */
9458 sparc_address_test (int arg)
9460 sparc_address_test (arg) int arg;
9481 pid_t parent = getpid ();
9484 sparc_address_test (0);
9489 /* Here is another test for sparc vfork register problems. This
9490 test uses lots of local variables, at least as many local
9491 variables as main has allocated so far including compiler
9492 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9493 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9494 reuse the register of parent for one of the local variables,
9495 since it will think that parent can't possibly be used any more
9496 in this routine. Assigning to the local variable will thus
9497 munge parent in the parent process. */
9499 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9500 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9501 /* Convince the compiler that p..p7 are live; otherwise, it might
9502 use the same hardware register for all 8 local variables. */
9503 if (p != p1 || p != p2 || p != p3 || p != p4
9504 || p != p5 || p != p6 || p != p7)
9507 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9508 from child file descriptors. If the child closes a descriptor
9509 before it execs or exits, this munges the parent's descriptor
9510 as well. Test for this by closing stdout in the child. */
9511 _exit(close(fileno(stdout)) != 0);
9516 while (wait(&status) != child)
9519 /* Was there some problem with vforking? */
9522 /* Did the child fail? (This shouldn't happen.) */
9525 /* Did the vfork/compiler bug occur? */
9526 || parent != getpid()
9528 /* Did the file descriptor bug occur? */
9529 || fstat(fileno(stdout), &st) != 0
9534 if ac_fn_c_try_run
"$LINENO"; then :
9535 ac_cv_func_vfork_works
=yes
9537 ac_cv_func_vfork_works
=no
9539 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9540 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9545 $as_echo "$ac_cv_func_vfork_works" >&6; }
9548 if test "x$ac_cv_func_fork_works" = xcross
; then
9549 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9551 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9554 if test "x$ac_cv_func_vfork_works" = xyes
; then
9556 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9560 $as_echo "#define vfork fork" >>confdefs.h
9563 if test "x$ac_cv_func_fork_works" = xyes
; then
9565 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9570 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9571 # iconv() prototype.
9573 ac_cpp
='$CXXCPP $CPPFLAGS'
9574 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9575 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9576 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9579 if test "X$prefix" = "XNONE"; then
9580 acl_final_prefix
="$ac_default_prefix"
9582 acl_final_prefix
="$prefix"
9584 if test "X$exec_prefix" = "XNONE"; then
9585 acl_final_exec_prefix
='${prefix}'
9587 acl_final_exec_prefix
="$exec_prefix"
9589 acl_save_prefix
="$prefix"
9590 prefix
="$acl_final_prefix"
9591 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9592 prefix
="$acl_save_prefix"
9595 # Check whether --with-gnu-ld was given.
9596 if test "${with_gnu_ld+set}" = set; then :
9597 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9602 # Prepare PATH_SEPARATOR.
9603 # The user is always right.
9604 if test "${PATH_SEPARATOR+set}" != set; then
9605 echo "#! /bin/sh" >conf$$.sh
9606 echo "exit 0" >>conf$$.sh
9608 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9616 if test "$GCC" = yes; then
9617 # Check if gcc -print-prog-name=ld gives a path.
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9619 $as_echo_n "checking for ld used by GCC... " >&6; }
9622 # gcc leaves a trailing carriage return which upsets mingw
9623 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9625 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9628 # Accept absolute paths.
9629 [\\/]* |
[A-Za-z
]:[\\/]*)
9630 re_direlt
='/[^/][^/]*/\.\./'
9631 # Canonicalize the path of ld
9632 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9633 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9634 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9636 test -z "$LD" && LD
="$ac_prog"
9639 # If it fails, then pretend we aren't using GCC.
9643 # If it is relative, then search for the first ld in PATH.
9647 elif test "$with_gnu_ld" = yes; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9649 $as_echo_n "checking for GNU ld... " >&6; }
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9652 $as_echo_n "checking for non-GNU ld... " >&6; }
9654 if test "${acl_cv_path_LD+set}" = set; then :
9655 $as_echo_n "(cached) " >&6
9657 if test -z "$LD"; then
9658 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9659 for ac_dir
in $PATH; do
9660 test -z "$ac_dir" && ac_dir
=.
9661 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9662 acl_cv_path_LD
="$ac_dir/$ac_prog"
9663 # Check to see if the program is GNU ld. I'd rather use --version,
9664 # but apparently some GNU ld's only accept -v.
9665 # Break only if it was the GNU/non-GNU ld that we prefer.
9666 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9667 test "$with_gnu_ld" != no
&& break
9669 test "$with_gnu_ld" != yes && break
9675 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9679 LD
="$acl_cv_path_LD"
9680 if test -n "$LD"; then
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9682 $as_echo "$LD" >&6; }
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685 $as_echo "no" >&6; }
9687 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9689 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9690 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9691 $as_echo_n "(cached) " >&6
9693 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9694 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9695 acl_cv_prog_gnu_ld
=yes
9697 acl_cv_prog_gnu_ld
=no
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9701 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9702 with_gnu_ld
=$acl_cv_prog_gnu_ld
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9707 $as_echo_n "checking for shared library run path origin... " >&6; }
9708 if test "${acl_cv_rpath+set}" = set; then :
9709 $as_echo_n "(cached) " >&6
9712 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9713 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9720 $as_echo "$acl_cv_rpath" >&6; }
9722 libext
="$acl_cv_libext"
9723 shlibext
="$acl_cv_shlibext"
9724 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9725 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9726 hardcode_direct
="$acl_cv_hardcode_direct"
9727 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9728 # Check whether --enable-rpath was given.
9729 if test "${enable_rpath+set}" = set; then :
9730 enableval
=$enable_rpath; :
9744 acl_save_prefix
="$prefix"
9745 prefix
="$acl_final_prefix"
9746 acl_save_exec_prefix
="$exec_prefix"
9747 exec_prefix
="$acl_final_exec_prefix"
9749 eval additional_includedir
=\"$includedir\"
9750 eval additional_libdir
=\"$libdir\"
9752 exec_prefix
="$acl_save_exec_prefix"
9753 prefix
="$acl_save_prefix"
9756 # Check whether --with-libiconv-prefix was given.
9757 if test "${with_libiconv_prefix+set}" = set; then :
9758 withval
=$with_libiconv_prefix;
9759 if test "X$withval" = "Xno"; then
9762 if test "X$withval" = "X"; then
9764 acl_save_prefix
="$prefix"
9765 prefix
="$acl_final_prefix"
9766 acl_save_exec_prefix
="$exec_prefix"
9767 exec_prefix
="$acl_final_exec_prefix"
9769 eval additional_includedir
=\"$includedir\"
9770 eval additional_libdir
=\"$libdir\"
9772 exec_prefix
="$acl_save_exec_prefix"
9773 prefix
="$acl_save_prefix"
9776 additional_includedir
="$withval/include"
9777 additional_libdir
="$withval/lib"
9788 names_already_handled
=
9789 names_next_round
='iconv '
9790 while test -n "$names_next_round"; do
9791 names_this_round
="$names_next_round"
9793 for name
in $names_this_round; do
9795 for n
in $names_already_handled; do
9796 if test "$n" = "$name"; then
9801 if test -z "$already_handled"; then
9802 names_already_handled
="$names_already_handled $name"
9803 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9804 eval value
=\"\
$HAVE_LIB$uppername\"
9805 if test -n "$value"; then
9806 if test "$value" = yes; then
9807 eval value
=\"\
$LIB$uppername\"
9808 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9809 eval value
=\"\
$LTLIB$uppername\"
9810 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9819 if test $use_additional = yes; then
9820 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9821 found_dir
="$additional_libdir"
9822 found_so
="$additional_libdir/lib$name.$shlibext"
9823 if test -f "$additional_libdir/lib$name.la"; then
9824 found_la
="$additional_libdir/lib$name.la"
9827 if test -f "$additional_libdir/lib$name.$libext"; then
9828 found_dir
="$additional_libdir"
9829 found_a
="$additional_libdir/lib$name.$libext"
9830 if test -f "$additional_libdir/lib$name.la"; then
9831 found_la
="$additional_libdir/lib$name.la"
9836 if test "X$found_dir" = "X"; then
9837 for x
in $LDFLAGS $LTLIBICONV; do
9839 acl_save_prefix
="$prefix"
9840 prefix
="$acl_final_prefix"
9841 acl_save_exec_prefix
="$exec_prefix"
9842 exec_prefix
="$acl_final_exec_prefix"
9844 exec_prefix
="$acl_save_exec_prefix"
9845 prefix
="$acl_save_prefix"
9849 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9850 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9852 found_so
="$dir/lib$name.$shlibext"
9853 if test -f "$dir/lib$name.la"; then
9854 found_la
="$dir/lib$name.la"
9857 if test -f "$dir/lib$name.$libext"; then
9859 found_a
="$dir/lib$name.$libext"
9860 if test -f "$dir/lib$name.la"; then
9861 found_la
="$dir/lib$name.la"
9867 if test "X$found_dir" != "X"; then
9872 if test "X$found_dir" != "X"; then
9873 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9874 if test "X$found_so" != "X"; then
9875 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9876 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9879 for x
in $ltrpathdirs; do
9880 if test "X$x" = "X$found_dir"; then
9885 if test -z "$haveit"; then
9886 ltrpathdirs
="$ltrpathdirs $found_dir"
9888 if test "$hardcode_direct" = yes; then
9889 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9891 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9892 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9894 for x
in $rpathdirs; do
9895 if test "X$x" = "X$found_dir"; then
9900 if test -z "$haveit"; then
9901 rpathdirs
="$rpathdirs $found_dir"
9905 for x
in $LDFLAGS $LIBICONV; do
9907 acl_save_prefix
="$prefix"
9908 prefix
="$acl_final_prefix"
9909 acl_save_exec_prefix
="$exec_prefix"
9910 exec_prefix
="$acl_final_exec_prefix"
9912 exec_prefix
="$acl_save_exec_prefix"
9913 prefix
="$acl_save_prefix"
9915 if test "X$x" = "X-L$found_dir"; then
9920 if test -z "$haveit"; then
9921 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9923 if test "$hardcode_minus_L" != no
; then
9924 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9926 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9932 if test "X$found_a" != "X"; then
9933 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9935 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9938 additional_includedir
=
9939 case "$found_dir" in
9941 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9942 additional_includedir
="$basedir/include"
9945 if test "X$additional_includedir" != "X"; then
9946 if test "X$additional_includedir" != "X/usr/include"; then
9948 if test "X$additional_includedir" = "X/usr/local/include"; then
9949 if test -n "$GCC"; then
9951 linux
*) haveit
=yes;;
9955 if test -z "$haveit"; then
9956 for x
in $CPPFLAGS $INCICONV; do
9958 acl_save_prefix
="$prefix"
9959 prefix
="$acl_final_prefix"
9960 acl_save_exec_prefix
="$exec_prefix"
9961 exec_prefix
="$acl_final_exec_prefix"
9963 exec_prefix
="$acl_save_exec_prefix"
9964 prefix
="$acl_save_prefix"
9966 if test "X$x" = "X-I$additional_includedir"; then
9971 if test -z "$haveit"; then
9972 if test -d "$additional_includedir"; then
9973 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9979 if test -n "$found_la"; then
9980 save_libdir
="$libdir"
9982 */* |
*\\*) .
"$found_la" ;;
9983 *) .
"./$found_la" ;;
9985 libdir
="$save_libdir"
9986 for dep
in $dependency_libs; do
9989 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9990 if test "X$additional_libdir" != "X/usr/lib"; then
9992 if test "X$additional_libdir" = "X/usr/local/lib"; then
9993 if test -n "$GCC"; then
9995 linux
*) haveit
=yes;;
9999 if test -z "$haveit"; then
10001 for x
in $LDFLAGS $LIBICONV; do
10003 acl_save_prefix
="$prefix"
10004 prefix
="$acl_final_prefix"
10005 acl_save_exec_prefix
="$exec_prefix"
10006 exec_prefix
="$acl_final_exec_prefix"
10008 exec_prefix
="$acl_save_exec_prefix"
10009 prefix
="$acl_save_prefix"
10011 if test "X$x" = "X-L$additional_libdir"; then
10016 if test -z "$haveit"; then
10017 if test -d "$additional_libdir"; then
10018 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10022 for x
in $LDFLAGS $LTLIBICONV; do
10024 acl_save_prefix
="$prefix"
10025 prefix
="$acl_final_prefix"
10026 acl_save_exec_prefix
="$exec_prefix"
10027 exec_prefix
="$acl_final_exec_prefix"
10029 exec_prefix
="$acl_save_exec_prefix"
10030 prefix
="$acl_save_prefix"
10032 if test "X$x" = "X-L$additional_libdir"; then
10037 if test -z "$haveit"; then
10038 if test -d "$additional_libdir"; then
10039 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10046 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10047 if test "$enable_rpath" != no
; then
10049 for x
in $rpathdirs; do
10050 if test "X$x" = "X$dir"; then
10055 if test -z "$haveit"; then
10056 rpathdirs
="$rpathdirs $dir"
10059 for x
in $ltrpathdirs; do
10060 if test "X$x" = "X$dir"; then
10065 if test -z "$haveit"; then
10066 ltrpathdirs
="$ltrpathdirs $dir"
10071 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10074 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10077 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10078 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10084 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10085 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10091 if test "X$rpathdirs" != "X"; then
10092 if test -n "$hardcode_libdir_separator"; then
10094 for found_dir
in $rpathdirs; do
10095 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10097 acl_save_libdir
="$libdir"
10099 eval flag
=\"$hardcode_libdir_flag_spec\"
10100 libdir
="$acl_save_libdir"
10101 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10103 for found_dir
in $rpathdirs; do
10104 acl_save_libdir
="$libdir"
10105 libdir
="$found_dir"
10106 eval flag
=\"$hardcode_libdir_flag_spec\"
10107 libdir
="$acl_save_libdir"
10108 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10112 if test "X$ltrpathdirs" != "X"; then
10113 for found_dir
in $ltrpathdirs; do
10114 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10124 am_save_CPPFLAGS
="$CPPFLAGS"
10126 for element
in $INCICONV; do
10128 for x
in $CPPFLAGS; do
10130 acl_save_prefix
="$prefix"
10131 prefix
="$acl_final_prefix"
10132 acl_save_exec_prefix
="$exec_prefix"
10133 exec_prefix
="$acl_final_exec_prefix"
10135 exec_prefix
="$acl_save_exec_prefix"
10136 prefix
="$acl_save_prefix"
10138 if test "X$x" = "X$element"; then
10143 if test -z "$haveit"; then
10144 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10150 $as_echo_n "checking for iconv... " >&6; }
10151 if test "${am_cv_func_iconv+set}" = set; then :
10152 $as_echo_n "(cached) " >&6
10155 am_cv_func_iconv
="no, consider installing GNU libiconv"
10157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10158 /* end confdefs.h. */
10159 #include <stdlib.h>
10164 iconv_t cd = iconv_open("","");
10165 iconv(cd,NULL,NULL,NULL,NULL);
10171 if ac_fn_cxx_try_link
"$LINENO"; then :
10172 am_cv_func_iconv
=yes
10174 rm -f core conftest.err conftest.
$ac_objext \
10175 conftest
$ac_exeext conftest.
$ac_ext
10176 if test "$am_cv_func_iconv" != yes; then
10177 am_save_LIBS
="$LIBS"
10178 LIBS
="$LIBS $LIBICONV"
10179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10181 #include <stdlib.h>
10186 iconv_t cd = iconv_open("","");
10187 iconv(cd,NULL,NULL,NULL,NULL);
10193 if ac_fn_cxx_try_link
"$LINENO"; then :
10194 am_cv_lib_iconv
=yes
10195 am_cv_func_iconv
=yes
10197 rm -f core conftest.err conftest.
$ac_objext \
10198 conftest
$ac_exeext conftest.
$ac_ext
10199 LIBS
="$am_save_LIBS"
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10204 $as_echo "$am_cv_func_iconv" >&6; }
10205 if test "$am_cv_func_iconv" = yes; then
10207 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10210 if test "$am_cv_lib_iconv" = yes; then
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10212 $as_echo_n "checking how to link with libiconv... " >&6; }
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10214 $as_echo "$LIBICONV" >&6; }
10216 CPPFLAGS
="$am_save_CPPFLAGS"
10223 if test "$am_cv_func_iconv" = yes; then
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10225 $as_echo_n "checking for iconv declaration... " >&6; }
10226 if test "${am_cv_proto_iconv+set}" = set; then :
10227 $as_echo_n "(cached) " >&6
10230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10231 /* end confdefs.h. */
10233 #include <stdlib.h>
10239 #if defined(__STDC__) || defined(__cplusplus)
10240 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10253 if ac_fn_cxx_try_compile
"$LINENO"; then :
10254 am_cv_proto_iconv_arg1
=""
10256 am_cv_proto_iconv_arg1
="const"
10258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10259 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);"
10262 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10264 }$am_cv_proto_iconv" >&5
10266 }$am_cv_proto_iconv" >&6; }
10268 cat >>confdefs.h
<<_ACEOF
10269 #define ICONV_CONST $am_cv_proto_iconv_arg1
10275 ac_cpp
='$CPP $CPPFLAGS'
10276 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10277 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10278 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10281 # Until we have in-tree GNU iconv:
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10287 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10288 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10289 $as_echo_n "(cached) " >&6
10291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h. */
10293 #include <locale.h>
10302 if ac_fn_c_try_link
"$LINENO"; then :
10303 am_cv_val_LC_MESSAGES
=yes
10305 am_cv_val_LC_MESSAGES
=no
10307 rm -f core conftest.err conftest.
$ac_objext \
10308 conftest
$ac_exeext conftest.
$ac_ext
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10311 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10312 if test $am_cv_val_LC_MESSAGES = yes; then
10314 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10321 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10322 if test "${am_cv_langinfo_codeset+set}" = set; then :
10323 $as_echo_n "(cached) " >&6
10325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10327 #include <langinfo.h>
10331 char* cs = nl_langinfo(CODESET);
10336 if ac_fn_c_try_link
"$LINENO"; then :
10337 am_cv_langinfo_codeset
=yes
10339 am_cv_langinfo_codeset
=no
10341 rm -f core conftest.err conftest.
$ac_objext \
10342 conftest
$ac_exeext conftest.
$ac_ext
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10346 $as_echo "$am_cv_langinfo_codeset" >&6; }
10347 if test $am_cv_langinfo_codeset = yes; then
10349 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10354 # We will need to find libiberty.h and ansidecl.h
10355 saved_CFLAGS
="$CFLAGS"
10356 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10357 saved_CXXFLAGS
="$CXXFLAGS"
10358 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10359 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10360 strsignal strstr stpcpy strverscmp \
10361 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10362 free
basename getopt
clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10364 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10366 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10367 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10368 $as_echo_n "(cached) " >&6
10370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h. */
10373 #define $ac_tr_decl 1
10375 #include "ansidecl.h"
10376 #include "system.h"
10382 char *(*pfn) = (char *(*)) $ac_func ;
10388 if ac_fn_c_try_compile
"$LINENO"; then :
10389 eval "gcc_cv_have_decl_$ac_func=yes"
10391 eval "gcc_cv_have_decl_$ac_func=no"
10393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10396 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10398 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10399 #define $ac_tr_decl 1
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10405 #define $ac_tr_decl 0
10413 for ac_func
in getrlimit setrlimit getrusage
10415 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10417 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10418 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10419 $as_echo_n "(cached) " >&6
10421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10424 #define $ac_tr_decl 1
10426 #include "ansidecl.h"
10427 #include "system.h"
10428 #ifdef HAVE_SYS_RESOURCE_H
10429 #include <sys/resource.h>
10437 char *(*pfn) = (char *(*)) $ac_func ;
10443 if ac_fn_c_try_compile
"$LINENO"; then :
10444 eval "gcc_cv_have_decl_$ac_func=yes"
10446 eval "gcc_cv_have_decl_$ac_func=no"
10448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10451 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10453 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10454 #define $ac_tr_decl 1
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10460 #define $ac_tr_decl 0
10468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10469 /* end confdefs.h. */
10471 #include "ansidecl.h"
10472 #include "system.h"
10473 #ifdef HAVE_SYS_RESOURCE_H
10474 #include <sys/resource.h>
10485 if ac_fn_c_try_compile
"$LINENO"; then :
10489 $as_echo "#define rlim_t long" >>confdefs.h
10492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10494 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10495 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10496 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10497 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10498 for ac_func
in ldgetname
10500 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10502 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10503 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10504 $as_echo_n "(cached) " >&6
10506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h. */
10509 #define $ac_tr_decl 1
10511 #include "ansidecl.h"
10512 #include "system.h"
10513 #ifdef HAVE_LDFCN_H
10524 char *(*pfn) = (char *(*)) $ac_func ;
10530 if ac_fn_c_try_compile
"$LINENO"; then :
10531 eval "gcc_cv_have_decl_$ac_func=yes"
10533 eval "gcc_cv_have_decl_$ac_func=no"
10535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10538 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10540 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10541 #define $ac_tr_decl 1
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10547 #define $ac_tr_decl 0
10555 for ac_func
in times
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_SYS_TIMES_H
10571 #include <sys/times.h>
10579 char *(*pfn) = (char *(*)) $ac_func ;
10585 if ac_fn_c_try_compile
"$LINENO"; then :
10586 eval "gcc_cv_have_decl_$ac_func=yes"
10588 eval "gcc_cv_have_decl_$ac_func=no"
10590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10593 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10595 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10596 #define $ac_tr_decl 1
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10602 #define $ac_tr_decl 0
10610 for ac_func
in sigaltstack
10612 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10614 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10615 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10616 $as_echo_n "(cached) " >&6
10618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10619 /* end confdefs.h. */
10621 #define $ac_tr_decl 1
10623 #include "ansidecl.h"
10624 #include "system.h"
10625 #include <signal.h>
10632 char *(*pfn) = (char *(*)) $ac_func ;
10638 if ac_fn_c_try_compile
"$LINENO"; then :
10639 eval "gcc_cv_have_decl_$ac_func=yes"
10641 eval "gcc_cv_have_decl_$ac_func=no"
10643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10646 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10648 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10649 #define $ac_tr_decl 1
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10655 #define $ac_tr_decl 0
10663 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10666 ac_cpp
='$CXXCPP $CPPFLAGS'
10667 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10668 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10669 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10671 for ac_func
in madvise
10673 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10675 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10676 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10677 $as_echo_n "(cached) " >&6
10679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h. */
10682 #define $ac_tr_decl 1
10684 #include "ansidecl.h"
10685 #include "system.h"
10692 char *(*pfn) = (char *(*)) $ac_func ;
10698 if ac_fn_cxx_try_compile
"$LINENO"; then :
10699 eval "gcc_cv_have_decl_$ac_func=yes"
10701 eval "gcc_cv_have_decl_$ac_func=no"
10703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10706 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10708 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10709 #define $ac_tr_decl 1
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10714 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10715 #define $ac_tr_decl 0
10723 ac_cpp
='$CPP $CPPFLAGS'
10724 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10725 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10726 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10729 # More time-related stuff.
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10731 $as_echo_n "checking for struct tms... " >&6; }
10732 if test "${ac_cv_struct_tms+set}" = set; then :
10733 $as_echo_n "(cached) " >&6
10736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10739 #include "ansidecl.h"
10740 #include "system.h"
10741 #ifdef HAVE_SYS_TIMES_H
10742 #include <sys/times.h>
10753 if ac_fn_c_try_compile
"$LINENO"; then :
10754 ac_cv_struct_tms
=yes
10756 ac_cv_struct_tms
=no
10758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10761 $as_echo "$ac_cv_struct_tms" >&6; }
10762 if test $ac_cv_struct_tms = yes; then
10764 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10768 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10769 # revisit after autoconf 2.50.
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10771 $as_echo_n "checking for clock_t... " >&6; }
10772 if test "${gcc_cv_type_clock_t+set}" = set; then :
10773 $as_echo_n "(cached) " >&6
10776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10779 #include "ansidecl.h"
10780 #include "system.h"
10790 if ac_fn_c_try_compile
"$LINENO"; then :
10791 gcc_cv_type_clock_t
=yes
10793 gcc_cv_type_clock_t
=no
10795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10798 $as_echo "$gcc_cv_type_clock_t" >&6; }
10799 if test $gcc_cv_type_clock_t = yes; then
10801 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10805 # Check if F_SETLKW is supported by fcntl.
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10807 $as_echo_n "checking for F_SETLKW... " >&6; }
10808 if test "${ac_cv_f_setlkw+set}" = set; then :
10809 $as_echo_n "(cached) " >&6
10812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10813 /* end confdefs.h. */
10825 return fcntl (1, F_SETLKW, &fl);
10830 if ac_fn_c_try_compile
"$LINENO"; then :
10835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10838 $as_echo "$ac_cv_f_setlkw" >&6; }
10839 if test $ac_cv_f_setlkw = yes; then
10841 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10845 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10846 CFLAGS
="$saved_CFLAGS"
10847 CXXFLAGS
="$saved_CXXFLAGS"
10849 # mkdir takes a single argument on some systems.
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10851 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10852 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10853 $as_echo_n "(cached) " >&6
10855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10858 #include <sys/types.h>
10859 #ifdef HAVE_SYS_STAT_H
10860 # include <sys/stat.h>
10862 #ifdef HAVE_UNISTD_H
10863 # include <unistd.h>
10865 #ifdef HAVE_DIRECT_H
10866 # include <direct.h>
10876 if ac_fn_c_try_compile
"$LINENO"; then :
10877 gcc_cv_mkdir_takes_one_arg
=no
10879 gcc_cv_mkdir_takes_one_arg
=yes
10881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10884 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10885 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10887 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10898 # With Setjmp/Longjmp based exception handling.
10899 # Check whether --enable-sjlj-exceptions was given.
10900 if test "${enable_sjlj_exceptions+set}" = set; then :
10901 enableval
=$enable_sjlj_exceptions; case $target in
10903 if test $enableval != yes; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10905 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10910 force_sjlj_exceptions
=yes
10914 force_sjlj_exceptions
=yes
10918 force_sjlj_exceptions
=no
10923 if test $force_sjlj_exceptions = yes; then
10924 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10926 cat >>confdefs.h
<<_ACEOF
10927 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10932 # --------------------------------------------------------
10933 # Build, host, and target specific configuration fragments
10934 # --------------------------------------------------------
10936 # Collect build-machine-specific information.
10937 .
${srcdir}/config.build
10939 # Collect host-machine-specific information.
10940 .
${srcdir}/config.
host
10944 # Collect target-machine-specific information.
10945 .
${srcdir}/config.gcc
10947 extra_objs
="${host_extra_objs} ${extra_objs}"
10948 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10950 # Default the target-machine variables that were not explicitly set.
10951 if test x
"$tm_file" = x
10952 then tm_file
=$cpu_type/$cpu_type.h
; fi
10954 if test x
"$extra_headers" = x
10955 then extra_headers
=; fi
10957 if test x
$md_file = x
10958 then md_file
=$cpu_type/$cpu_type.md
; fi
10960 if test x
$out_file = x
10961 then out_file
=$cpu_type/$cpu_type.c
; fi
10963 if test x
"$tmake_file" = x
10964 then tmake_file
=$cpu_type/t-
$cpu_type
10967 # Support --enable-initfini-array.
10968 if test x
$enable_initfini_array != xno
; then
10969 tm_file
="${tm_file} initfini-array.h"
10972 if test x
"$dwarf2" = xyes
10973 then tm_file
="$tm_file tm-dwarf2.h"
10976 # Say what files are being used for the output code and MD file.
10977 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10978 echo "Using \`$srcdir/config/$md_file' as machine description file."
10980 # If any of the xm_file variables contain nonexistent files, warn
10981 # about them and drop them.
10984 for x
in $build_xm_file; do
10985 if test -f $srcdir/config
/$x
10987 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10988 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10991 build_xm_file
="$bx"
10994 for x
in $host_xm_file; do
10995 if test -f $srcdir/config
/$x
10997 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10998 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11004 for x
in $xm_file; do
11005 if test -f $srcdir/config
/$x
11007 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11008 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11014 for f
in $tm_file; do
11017 if test $count = ax
; then
11018 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11020 echo "Using the following target machine macro files:"
11021 for f
in $tm_file; do
11022 echo " $srcdir/config/$f"
11026 if test x
$need_64bit_hwint = xyes
; then
11028 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11032 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11034 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11038 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11040 cat >>confdefs.h
<<_ACEOF
11041 #define HAVE_GNU_LD $gnu_ld_bool
11045 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11047 cat >>confdefs.h
<<_ACEOF
11048 #define HAVE_GNU_AS $gnu_as_bool
11053 for f
in $host_xm_file; do
11056 if test $count = a
; then
11058 elif test $count = ax
; then
11059 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11061 echo "Using the following host machine macro files:"
11062 for f
in $host_xm_file; do
11063 echo " $srcdir/config/$f"
11066 echo "Using ${out_host_hook_obj} for host machine hooks."
11068 if test "$host_xm_file" != "$build_xm_file"; then
11070 for f
in $build_xm_file; do
11073 if test $count = a
; then
11075 elif test $count = ax
; then
11076 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11078 echo "Using the following build machine macro files:"
11079 for f
in $build_xm_file; do
11080 echo " $srcdir/config/$f"
11085 if test -n "$configured_native_system_header_dir"; then
11086 native_system_header_dir
=$configured_native_system_header_dir
11088 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11092 powerpc
*-*-darwin*)
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11094 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11095 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11096 $as_echo_n "(cached) " >&6
11098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h. */
11101 #include <sys/cdefs.h>
11102 #include <sys/signal.h>
11103 #include <ucontext.h>
11104 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11107 if ac_fn_c_try_compile
"$LINENO"; then :
11108 gcc_cv_mcontext_underscores
=no
11110 gcc_cv_mcontext_underscores
=yes
11112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11115 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11116 if test $gcc_cv_mcontext_underscores = yes; then
11118 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11128 # Check if a valid thread package
11129 case ${enable_threads} in
11132 target_thread_file
='single'
11136 target_thread_file
='single'
11138 aix | dce | lynx | mipssde | posix | rtems | \
11139 single | tpf | vxworks | win32
)
11140 target_thread_file
=${enable_threads}
11143 echo "${enable_threads} is an unknown thread package" 1>&2
11148 if test x
${thread_file} = x
; then
11149 # No thread file set by target-specific clauses in config.gcc,
11150 # so use file chosen by default logic above
11151 thread_file
=${target_thread_file}
11159 if test x
$enable___cxa_atexit = xyes || \
11160 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11161 if test x
$host = x
$target; then
11163 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11164 # keyed to flag_use_cxa_atexit
11172 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11173 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11176 echo "__cxa_atexit can't be enabled on this target"
11182 # We can't check for __cxa_atexit when building a cross, so assume
11186 if test x
$use_cxa_atexit = xyes
; then
11188 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11193 # Look for a file containing extra machine modes.
11194 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11195 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11198 cat >>confdefs.h
<<_ACEOF
11199 #define EXTRA_MODES_FILE "config/$extra_modes"
11204 # Convert extra_options into a form suitable for Makefile use.
11207 for f
in $extra_options; do
11208 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11209 all_opt_files
="$all_opt_files $srcdir/config/$f"
11213 # auto-host.h is the file containing items generated by autoconf and is
11214 # the first file included by config.h.
11215 # If host=build, it is correct to have bconfig include auto-host.h
11216 # as well. If host!=build, we are in error and need to do more
11217 # work to find out the build config parameters.
11218 if test x
$host = x
$build
11220 build_auto
=auto-host.h
11222 # We create a subdir, then run autoconf in the subdir.
11223 # To prevent recursion we set host and build for the new
11224 # invocation of configure to the build for this invocation
11231 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11232 *) realsrcdir
=..
/${srcdir};;
11234 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11235 LDFLAGS
="${LDFLAGS_FOR_BUILD}" GMPINC
="" \
11236 ${realsrcdir}/configure \
11237 --enable-languages=${enable_languages-all} \
11238 --target=$target_alias --host=$build_alias --build=$build_alias
11240 # We just finished tests for the build machine, so rename
11241 # the file auto-build.h in the gcc directory.
11242 mv auto-host.h ..
/auto-build.h
11245 build_auto
=auto-build.h
11249 tm_file
="${tm_file} defaults.h"
11250 tm_p_file
="${tm_p_file} tm-preds.h"
11251 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11252 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11253 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11254 # put this back in temporarily.
11255 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11261 # Compile in configure arguments.
11262 if test -f configargs.h
; then
11263 # Being re-configured.
11264 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11265 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11267 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11270 # Double all backslashes and backslash all quotes to turn
11271 # gcc_config_arguments into a C string.
11272 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11273 $gcc_config_arguments
11275 gcc_config_arguments_str
=`cat conftest.out`
11278 cat > configargs.h
<<EOF
11279 /* Generated automatically. */
11280 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11281 static const char thread_model[] = "$thread_file";
11283 static const struct {
11284 const char *name, *value;
11285 } configure_default_options[] = $configure_default_options;
11288 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11289 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11290 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11291 if test -f $srcdir/REVISION
; then
11292 gcc_REVISION
=`cat $srcdir/REVISION`
11296 cat > plugin-version.h
<<EOF
11297 #include "configargs.h"
11299 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11300 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11301 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11302 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11304 static char basever[] = "$gcc_BASEVER";
11305 static char datestamp[] = "$gcc_DATESTAMP";
11306 static char devphase[] = "$gcc_DEVPHASE";
11307 static char revision[] = "$gcc_REVISION";
11309 /* FIXME plugins: We should make the version information more precise.
11310 One way to do is to add a checksum. */
11312 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11313 devphase, revision,
11314 configuration_arguments};
11317 # Internationalization
11318 # If we haven't got the data from the intl directory,
11319 # assume NLS is disabled.
11328 if test -f ..
/intl
/config.intl
; then
11329 . ..
/intl
/config.intl
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11332 $as_echo_n "checking whether NLS is requested... " >&6; }
11333 if test x
"$USE_NLS" != xyes
; then
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 $as_echo "no" >&6; }
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11338 $as_echo "yes" >&6; }
11340 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11344 $as_echo_n "checking for catalogs to be installed... " >&6; }
11345 # Look for .po and .gmo files in the source directory.
11348 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11349 # If there aren't any .gmo files the shell will give us the
11350 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11352 case "$cat" in *\
**)
11355 # The quadruple backslash is collapsed to a double backslash
11356 # by the backticks, then collapsed again by the double quotes,
11357 # leaving us with one backslash in the sed expression (right
11358 # before the dot that mustn't act as a wildcard).
11359 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11360 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11361 # The user is allowed to set LINGUAS to a list of languages to
11362 # install catalogs for. If it's empty that means "all of them."
11363 if test "x$LINGUAS" = x
; then
11364 CATALOGS
="$CATALOGS $cat"
11365 XLINGUAS
="$XLINGUAS $lang"
11367 case "$LINGUAS" in *$lang*)
11368 CATALOGS
="$CATALOGS $cat"
11369 XLINGUAS
="$XLINGUAS $lang"
11374 LINGUAS
="$XLINGUAS"
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11376 $as_echo "$LINGUAS" >&6; }
11389 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11390 # -liconv on the link line twice.
11391 case "$LIBINTL" in *$LIBICONV*)
11395 # Check whether --enable-secureplt was given.
11396 if test "${enable_secureplt+set}" = set; then :
11397 enableval
=$enable_secureplt;
11401 # Check whether --enable-leading-mingw64-underscores was given.
11402 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11403 enableval
=$enable_leading_mingw64_underscores;
11406 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11408 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11412 # Check whether --enable-cld was given.
11413 if test "${enable_cld+set}" = set; then :
11414 enableval
=$enable_cld;
11420 # Check whether --enable-frame-pointer was given.
11421 if test "${enable_frame_pointer+set}" = set; then :
11422 enableval
=$enable_frame_pointer;
11426 linux
* | darwin
[8912]*)
11427 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11429 enable_frame_pointer
=no
11432 enable_frame_pointer
=yes
11439 # Windows32 Registry support for specifying GCC installation paths.
11440 # Check whether --enable-win32-registry was given.
11441 if test "${enable_win32_registry+set}" = set; then :
11442 enableval
=$enable_win32_registry;
11447 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11448 if test "x$enable_win32_registry" != xno
; then
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11450 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11451 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11452 $as_echo_n "(cached) " >&6
11454 ac_func_search_save_LIBS
=$LIBS
11455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11456 /* end confdefs.h. */
11458 /* Override any GCC internal prototype to avoid an error.
11459 Use char because int might match the return type of a GCC
11460 builtin and then its argument prototype would still apply. */
11464 char RegOpenKeyExA ();
11468 return RegOpenKeyExA ();
11473 for ac_lib
in '' advapi32
; do
11474 if test -z "$ac_lib"; then
11475 ac_res
="none required"
11478 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11480 if ac_fn_c_try_link
"$LINENO"; then :
11481 ac_cv_search_RegOpenKeyExA
=$ac_res
11483 rm -f core conftest.err conftest.
$ac_objext \
11485 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11489 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11492 ac_cv_search_RegOpenKeyExA
=no
11494 rm conftest.
$ac_ext
11495 LIBS
=$ac_func_search_save_LIBS
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11498 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11499 ac_res
=$ac_cv_search_RegOpenKeyExA
11500 if test "$ac_res" != no
; then :
11501 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11504 enable_win32_registry
=no
11509 if test "x$enable_win32_registry" != xno
; then
11511 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11514 if test "x$enable_win32_registry" != xyes \
11515 && test "x$enable_win32_registry" != x
; then
11517 cat >>confdefs.h
<<_ACEOF
11518 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11526 # Get an absolute path to the GCC top-level source directory
11527 holddir
=`${PWDCMD-pwd}`
11529 topdir
=`${PWDCMD-pwd}`
11532 # Conditionalize the makefile for this host machine.
11534 for f
in ${host_xmake_file}
11536 if test -f ${srcdir}/config
/$f
11538 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11542 # Conditionalize the makefile for this target machine.
11544 for f
in ${tmake_file}
11546 if test -f ${srcdir}/config
/$f
11548 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11551 tmake_file
="${tmake_file_}"
11553 out_object_file
=`basename $out_file .c`.o
11554 common_out_object_file
=`basename $common_out_file .c`.o
11556 tm_file_list
="options.h"
11557 tm_include_list
="options.h insn-constants.h"
11558 for f
in $tm_file; do
11561 f
=`echo $f | sed 's/^..//'`
11562 tm_file_list
="${tm_file_list} $f"
11563 tm_include_list
="${tm_include_list} $f"
11566 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11567 tm_include_list
="${tm_include_list} $f"
11570 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11571 tm_include_list
="${tm_include_list} config/$f"
11578 for f
in $tm_p_file; do
11581 tm_p_file_list
="${tm_p_file_list} $f"
11582 tm_p_include_list
="${tm_p_include_list} $f"
11585 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11586 tm_p_include_list
="${tm_p_include_list} config/$f"
11592 for f
in $xm_file; do
11595 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11596 xm_include_list
="${xm_include_list} $f"
11599 xm_file_list
="${xm_file_list} $f"
11600 xm_include_list
="${xm_include_list} $f"
11603 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11604 xm_include_list
="${xm_include_list} config/$f"
11610 host_xm_include_list
=
11611 for f
in $host_xm_file; do
11614 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11615 host_xm_include_list
="${host_xm_include_list} $f"
11618 host_xm_file_list
="${host_xm_file_list} $f"
11619 host_xm_include_list
="${host_xm_include_list} $f"
11622 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11623 host_xm_include_list
="${host_xm_include_list} config/$f"
11628 build_xm_file_list
=
11629 for f
in $build_xm_file; do
11632 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11633 build_xm_include_list
="${build_xm_include_list} $f"
11635 auto-build.h | auto-host.h
)
11636 build_xm_file_list
="${build_xm_file_list} $f"
11637 build_xm_include_list
="${build_xm_include_list} $f"
11640 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11641 build_xm_include_list
="${build_xm_include_list} config/$f"
11646 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11647 # cross-compiler which does not use the native headers and libraries.
11648 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11651 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11653 if test "x$with_build_sysroot" != x
; then
11654 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11656 # This value is used, even on a native system, because
11657 # CROSS_SYSTEM_HEADER_DIR is just
11658 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11659 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11662 if test x
$host != x
$target
11664 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11666 SYSTEM_HEADER_DIR
=$build_system_header_dir
11667 case "$host","$target" in
11668 # Darwin crosses can use the host system's libraries and headers,
11669 # because of the fat library support. Of course, it must be the
11670 # same version of Darwin on both sides. Allow the user to
11671 # just say --target=foo-darwin without a version number to mean
11672 # "the version on this system".
11673 *-*-darwin*,*-*-darwin*)
11674 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11675 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11676 if test $hostos = $targetos -o $targetos = darwin
; then
11678 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11683 i?
86-*-*,x86_64-
*-* \
11684 | powerpc
*-*-*,powerpc64
*-*-*)
11685 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11690 if test "x$with_headers" = x
; then
11697 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11698 SYSTEM_HEADER_DIR
=$build_system_header_dir
11701 # If this is a cross-compiler that does not
11702 # have its own set of headers then define
11705 # If this is using newlib, without having the headers available now,
11706 # then define inhibit_libc in LIBGCC2_CFLAGS.
11707 # This prevents libgcc2 from containing any code which requires libc
11709 : ${inhibit_libc=false}
11710 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11711 test x
$with_newlib = xyes
; } &&
11712 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11717 # When building gcc with a cross-compiler, we need to adjust things so
11718 # that the generator programs are still built with the native compiler.
11719 # Also, we cannot run fixincludes.
11721 # These are the normal (build=host) settings:
11722 CC_FOR_BUILD
='$(CC)'
11723 CXX_FOR_BUILD
='$(CXX)'
11724 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11725 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11726 BUILD_LDFLAGS
='$(LDFLAGS)'
11727 STMP_FIXINC
=stmp-fixinc
11729 # And these apply if build != host, or we are generating coverage data
11730 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11732 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11733 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11734 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11737 # Expand extra_headers to include complete path.
11738 # This substitutes for lots of t-* files.
11739 extra_headers_list
=
11740 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11741 for file in ${extra_headers} ; do
11742 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11745 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11746 if test x
"$use_gcc_tgmath" = xyes
11747 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11750 # Define collect2 in Makefile.
11751 case $host_can_use_collect2 in
11753 *) collect2
='collect2$(exeext)' ;;
11757 # Add a definition of USE_COLLECT2 if system wants one.
11758 case $use_collect2 in
11759 no
) use_collect2
= ;;
11762 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11763 xm_defines
="${xm_defines} USE_COLLECT2"
11764 case $host_can_use_collect2 in
11766 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11773 cat >>confdefs.h
<<_ACEOF
11774 #define FRPLUGINSONAME "${host_function_reordering_plugin_soname}"
11779 cat >>confdefs.h
<<_ACEOF
11780 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11784 # ---------------------------
11785 # Assembler & linker features
11786 # ---------------------------
11788 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11789 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11790 # However when ld-new is first executed from the build tree, libtool will
11791 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11792 # to the build tree. While doing this we need to use the previous-stage
11793 # linker, or we have an infinite loop. The presence of a shell script as
11794 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11795 # the gcc/collect-ld script. So we need to know how libtool works, or
11796 # exec-tool will fail.
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11802 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11807 macro_version
='2.2.7a'
11808 macro_revision
='1.3134'
11822 ltmain
="$ac_aux_dir/ltmain.sh"
11824 # Backslashify metacharacters that are still active within
11825 # double-quoted strings.
11826 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11828 # Same as above, but do not quote variable references.
11829 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11831 # Sed substitution to delay expansion of an escaped shell variable in a
11832 # double_quote_subst'ed string.
11833 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11835 # Sed substitution to delay expansion of an escaped single quote.
11836 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11838 # Sed substitution to avoid accidental globbing in evaled expressions
11839 no_glob_subst
='s/\*/\\\*/g'
11841 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11842 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11843 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11846 $as_echo_n "checking how to print strings... " >&6; }
11847 # Test print first, because it will be a builtin if present.
11848 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11849 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11851 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11854 # Use this function as a fallback that always works.
11855 func_fallback_echo ()
11857 eval 'cat <<_LTECHO_EOF
11861 ECHO='func_fallback_echo
'
11864 # func_echo_all arg...
11865 # Invoke $ECHO with all args, space-separated.
11872 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11873 $as_echo "printf" >&6; } ;;
11874 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11875 $as_echo "print -r" >&6; } ;;
11876 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11877 $as_echo "cat" >&6; } ;;
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11894 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11895 if test "${ac_cv_path_SED+set}" = set; then :
11896 $as_echo_n "(cached) " >&6
11898 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11899 for ac_i in 1 2 3 4 5 6 7; do
11900 ac_script="$ac_script$as_nl$ac_script"
11902 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11903 { ac_script=; unset ac_script;}
11904 if test -z "$SED"; then
11905 ac_path_SED_found=false
11906 # Loop through the user's path and
test for each of PROGNAME-LIST
11907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11908 for as_dir
in $PATH
11911 test -z "$as_dir" && as_dir
=.
11912 for ac_prog
in sed gsed
; do
11913 for ac_exec_ext
in '' $ac_executable_extensions; do
11914 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11915 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11916 # Check for GNU ac_path_SED and select it if it is found.
11917 # Check for GNU $ac_path_SED
11918 case `"$ac_path_SED" --version 2>&1` in
11920 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11923 $as_echo_n 0123456789 >"conftest.in"
11926 cat "conftest.in" "conftest.in" >"conftest.tmp"
11927 mv "conftest.tmp" "conftest.in"
11928 cp "conftest.in" "conftest.nl"
11929 $as_echo '' >> "conftest.nl"
11930 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11931 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11932 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11933 if test $ac_count -gt ${ac_path_SED_max-0}; then
11934 # Best one so far, save it but keep looking for a better one
11935 ac_cv_path_SED
="$ac_path_SED"
11936 ac_path_SED_max
=$ac_count
11938 # 10*(2^10) chars as input seems more than enough
11939 test $ac_count -gt 10 && break
11941 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11944 $ac_path_SED_found && break 3
11949 if test -z "$ac_cv_path_SED"; then
11950 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11953 ac_cv_path_SED
=$SED
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11958 $as_echo "$ac_cv_path_SED" >&6; }
11959 SED
="$ac_cv_path_SED"
11962 test -z "$SED" && SED
=sed
11963 Xsed
="$SED -e 1s/^X//"
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11976 $as_echo_n "checking for fgrep... " >&6; }
11977 if test "${ac_cv_path_FGREP+set}" = set; then :
11978 $as_echo_n "(cached) " >&6
11980 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11981 then ac_cv_path_FGREP
="$GREP -F"
11983 if test -z "$FGREP"; then
11984 ac_path_FGREP_found
=false
11985 # Loop through the user's path and test for each of PROGNAME-LIST
11986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11987 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11990 test -z "$as_dir" && as_dir
=.
11991 for ac_prog
in fgrep
; do
11992 for ac_exec_ext
in '' $ac_executable_extensions; do
11993 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11994 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11995 # Check for GNU ac_path_FGREP and select it if it is found.
11996 # Check for GNU $ac_path_FGREP
11997 case `"$ac_path_FGREP" --version 2>&1` in
11999 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12002 $as_echo_n 0123456789 >"conftest.in"
12005 cat "conftest.in" "conftest.in" >"conftest.tmp"
12006 mv "conftest.tmp" "conftest.in"
12007 cp "conftest.in" "conftest.nl"
12008 $as_echo 'FGREP' >> "conftest.nl"
12009 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12010 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12011 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12012 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12013 # Best one so far, save it but keep looking for a better one
12014 ac_cv_path_FGREP
="$ac_path_FGREP"
12015 ac_path_FGREP_max
=$ac_count
12017 # 10*(2^10) chars as input seems more than enough
12018 test $ac_count -gt 10 && break
12020 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12023 $ac_path_FGREP_found && break 3
12028 if test -z "$ac_cv_path_FGREP"; then
12029 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12032 ac_cv_path_FGREP
=$FGREP
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12038 $as_echo "$ac_cv_path_FGREP" >&6; }
12039 FGREP
="$ac_cv_path_FGREP"
12042 test -z "$GREP" && GREP
=grep
12062 # Check whether --with-gnu-ld was given.
12063 if test "${with_gnu_ld+set}" = set; then :
12064 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12070 if test "$GCC" = yes; then
12071 # Check if gcc -print-prog-name=ld gives a path.
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12073 $as_echo_n "checking for ld used by $CC... " >&6; }
12076 # gcc leaves a trailing carriage return which upsets mingw
12077 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12079 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12082 # Accept absolute paths.
12084 re_direlt
='/[^/][^/]*/\.\./'
12085 # Canonicalize the pathname of ld
12086 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12087 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12088 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12090 test -z "$LD" && LD
="$ac_prog"
12093 # If it fails, then pretend we aren't using GCC.
12097 # If it is relative, then search for the first ld in PATH.
12098 with_gnu_ld
=unknown
12101 elif test "$with_gnu_ld" = yes; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12103 $as_echo_n "checking for GNU ld... " >&6; }
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12106 $as_echo_n "checking for non-GNU ld... " >&6; }
12108 if test "${lt_cv_path_LD+set}" = set; then :
12109 $as_echo_n "(cached) " >&6
12111 if test -z "$LD"; then
12112 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12113 for ac_dir
in $PATH; do
12115 test -z "$ac_dir" && ac_dir
=.
12116 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12117 lt_cv_path_LD
="$ac_dir/$ac_prog"
12118 # Check to see if the program is GNU ld. I'd rather use --version,
12119 # but apparently some variants of GNU ld only accept -v.
12120 # Break only if it was the GNU/non-GNU ld that we prefer.
12121 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12122 *GNU
* |
*'with BFD'*)
12123 test "$with_gnu_ld" != no
&& break
12126 test "$with_gnu_ld" != yes && break
12133 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12137 LD
="$lt_cv_path_LD"
12138 if test -n "$LD"; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12140 $as_echo "$LD" >&6; }
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143 $as_echo "no" >&6; }
12145 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12147 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12148 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12149 $as_echo_n "(cached) " >&6
12151 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12152 case `$LD -v 2>&1 </dev/null` in
12153 *GNU
* |
*'with BFD'*)
12154 lt_cv_prog_gnu_ld
=yes
12157 lt_cv_prog_gnu_ld
=no
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12162 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12163 with_gnu_ld
=$lt_cv_prog_gnu_ld
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12174 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12175 if test "${lt_cv_path_NM+set}" = set; then :
12176 $as_echo_n "(cached) " >&6
12178 if test -n "$NM"; then
12179 # Let the user override the test.
12180 lt_cv_path_NM
="$NM"
12182 lt_nm_to_check
="${ac_tool_prefix}nm"
12183 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12184 lt_nm_to_check
="$lt_nm_to_check nm"
12186 for lt_tmp_nm
in $lt_nm_to_check; do
12187 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12188 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12190 test -z "$ac_dir" && ac_dir
=.
12191 tmp_nm
="$ac_dir/$lt_tmp_nm"
12192 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12193 # Check to see if the nm accepts a BSD-compat flag.
12194 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12195 # nm: unknown option "B" ignored
12196 # Tru64's nm complains that /dev/null is an invalid object file
12197 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12198 */dev
/null
* |
*'Invalid file or object type'*)
12199 lt_cv_path_NM
="$tmp_nm -B"
12203 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12205 lt_cv_path_NM
="$tmp_nm -p"
12209 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12210 continue # so that we can try to find one that supports BSD flags
12219 : ${lt_cv_path_NM=no}
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12223 $as_echo "$lt_cv_path_NM" >&6; }
12224 if test "$lt_cv_path_NM" != "no"; then
12225 NM
="$lt_cv_path_NM"
12227 # Didn't find any BSD compatible name lister, look for dumpbin.
12228 if test -n "$DUMPBIN"; then :
12229 # Let the user override the test.
12231 if test -n "$ac_tool_prefix"; then
12232 for ac_prog
in dumpbin
"link -dump"
12234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12235 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12239 $as_echo_n "(cached) " >&6
12241 if test -n "$DUMPBIN"; then
12242 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12245 for as_dir
in $PATH
12248 test -z "$as_dir" && as_dir
=.
12249 for ac_exec_ext
in '' $ac_executable_extensions; do
12250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12251 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12261 DUMPBIN
=$ac_cv_prog_DUMPBIN
12262 if test -n "$DUMPBIN"; then
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12264 $as_echo "$DUMPBIN" >&6; }
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 $as_echo "no" >&6; }
12271 test -n "$DUMPBIN" && break
12274 if test -z "$DUMPBIN"; then
12275 ac_ct_DUMPBIN
=$DUMPBIN
12276 for ac_prog
in dumpbin
"link -dump"
12278 # Extract the first word of "$ac_prog", so it can be a program name with args.
12279 set dummy
$ac_prog; ac_word
=$2
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281 $as_echo_n "checking for $ac_word... " >&6; }
12282 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12283 $as_echo_n "(cached) " >&6
12285 if test -n "$ac_ct_DUMPBIN"; then
12286 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12289 for as_dir
in $PATH
12292 test -z "$as_dir" && as_dir
=.
12293 for ac_exec_ext
in '' $ac_executable_extensions; do
12294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12295 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12305 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12306 if test -n "$ac_ct_DUMPBIN"; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12308 $as_echo "$ac_ct_DUMPBIN" >&6; }
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12315 test -n "$ac_ct_DUMPBIN" && break
12318 if test "x$ac_ct_DUMPBIN" = x
; then
12321 case $cross_compiling:$ac_tool_warned in
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12325 ac_tool_warned
=yes ;;
12327 DUMPBIN
=$ac_ct_DUMPBIN
12331 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12333 DUMPBIN
="$DUMPBIN -symbols"
12341 if test "$DUMPBIN" != ":"; then
12345 test -z "$NM" && NM
=nm
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12353 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12354 if test "${lt_cv_nm_interface+set}" = set; then :
12355 $as_echo_n "(cached) " >&6
12357 lt_cv_nm_interface
="BSD nm"
12358 echo "int some_variable = 0;" > conftest.
$ac_ext
12359 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12360 (eval "$ac_compile" 2>conftest.err
)
12361 cat conftest.err
>&5
12362 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12363 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12364 cat conftest.err
>&5
12365 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12366 cat conftest.out
>&5
12367 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12368 lt_cv_nm_interface
="MS dumpbin"
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12373 $as_echo "$lt_cv_nm_interface" >&6; }
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12376 $as_echo_n "checking whether ln -s works... " >&6; }
12378 if test "$LN_S" = "ln -s"; then
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12380 $as_echo "yes" >&6; }
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12383 $as_echo "no, using $LN_S" >&6; }
12386 # find the maximum length of command line arguments
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12388 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12389 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12390 $as_echo_n "(cached) " >&6
12397 # On DJGPP, this test can blow up pretty badly due to problems in libc
12398 # (any single argument exceeding 2000 bytes causes a buffer overrun
12399 # during glob expansion). Even if it were fixed, the result of this
12400 # check would be larger than it should be.
12401 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12405 # Under GNU Hurd, this test is not required because there is
12406 # no limit to the length of command line arguments.
12407 # Libtool will interpret -1 as no limit whatsoever
12408 lt_cv_sys_max_cmd_len
=-1;
12411 cygwin
* | mingw
* | cegcc
*)
12412 # On Win9x/ME, this test blows up -- it succeeds, but takes
12413 # about 5 minutes as the teststring grows exponentially.
12414 # Worse, since 9x/ME are not pre-emptively multitasking,
12415 # you end up with a "frozen" computer, even though with patience
12416 # the test eventually succeeds (with a max line length of 256k).
12417 # Instead, let's just punt: use the minimum linelength reported by
12418 # all of the supported platforms: 8192 (on NT/2K/XP).
12419 lt_cv_sys_max_cmd_len
=8192;
12423 # On MiNT this can take a long time and run out of memory.
12424 lt_cv_sys_max_cmd_len
=8192;
12428 # On AmigaOS with pdksh, this test takes hours, literally.
12429 # So we just punt and use a minimum line length of 8192.
12430 lt_cv_sys_max_cmd_len
=8192;
12433 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12434 # This has been around since 386BSD, at least. Likely further.
12435 if test -x /sbin
/sysctl
; then
12436 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12437 elif test -x /usr
/sbin
/sysctl
; then
12438 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12440 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12442 # And add a safety zone
12443 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12444 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12448 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12449 lt_cv_sys_max_cmd_len
=196608
12453 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12454 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12455 # nice to cause kernel panics so lets avoid the loop below.
12456 # First set a reasonable default.
12457 lt_cv_sys_max_cmd_len
=16384
12459 if test -x /sbin
/sysconfig
; then
12460 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12461 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12466 lt_cv_sys_max_cmd_len
=102400
12468 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12469 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12470 if test -n "$kargmax"; then
12471 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12473 lt_cv_sys_max_cmd_len
=32768
12477 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12478 if test -n "$lt_cv_sys_max_cmd_len"; then
12479 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12480 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12482 # Make teststring a little bigger before we do anything with it.
12483 # a 1K string should be a reasonable start.
12484 for i
in 1 2 3 4 5 6 7 8 ; do
12485 teststring
=$teststring$teststring
12487 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12488 # If test is not a shell built-in, we'll probably end up computing a
12489 # maximum length that is only half of the actual maximum length, but
12491 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12492 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12493 test $i != 17 # 1/2 MB should be enough
12496 teststring
=$teststring$teststring
12498 # Only check the string length outside the loop.
12499 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12501 # Add a significant safety factor because C++ compilers can tack on
12502 # massive amounts of additional arguments before passing them to the
12503 # linker. It appears as though 1/2 is a usable value.
12504 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12511 if test -n $lt_cv_sys_max_cmd_len ; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12513 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12516 $as_echo "none" >&6; }
12518 max_cmd_len
=$lt_cv_sys_max_cmd_len
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12530 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12531 # Try some XSI features
12533 ( _lt_dummy
="a/b/c"
12534 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12536 && eval 'test $(( 1 + 1 )) -eq 2 \
12537 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12540 $as_echo "$xsi_shell" >&6; }
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12544 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12546 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12548 && lt_shell_append=yes
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12550 $as_echo "$lt_shell_append" >&6; }
12553 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12563 # test EBCDIC or ASCII
12564 case `echo X|tr X '\101'` in
12565 A) # ASCII based system
12566 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12567 lt_SP2NL='tr \040 \012'
12568 lt_NL2SP='tr \015\012 \040\040'
12570 *) # EBCDIC based system
12571 lt_SP2NL='tr \100 \n'
12572 lt_NL2SP='tr \r\n \100\100'
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12585 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12586 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12587 $as_echo_n "(cached
) " >&6
12589 lt_cv_ld_reload_flag='-r'
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12592 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12593 reload_flag=$lt_cv_ld_reload_flag
12594 case $reload_flag in
12596 *) reload_flag=" $reload_flag" ;;
12598 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12601 if test "$GCC" = yes; then
12602 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12604 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12617 if test -n "$ac_tool_prefix"; then
12618 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12619 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12621 $as_echo_n "checking
for $ac_word...
" >&6; }
12622 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12623 $as_echo_n "(cached
) " >&6
12625 if test -n "$OBJDUMP"; then
12626 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629 for as_dir in $PATH
12632 test -z "$as_dir" && as_dir=.
12633 for ac_exec_ext in '' $ac_executable_extensions; do
12634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12635 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12636 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12645 OBJDUMP=$ac_cv_prog_OBJDUMP
12646 if test -n "$OBJDUMP"; then
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12648 $as_echo "$OBJDUMP" >&6; }
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12651 $as_echo "no
" >&6; }
12656 if test -z "$ac_cv_prog_OBJDUMP"; then
12657 ac_ct_OBJDUMP=$OBJDUMP
12658 # Extract the first word of "objdump
", so it can be a program name with args.
12659 set dummy objdump; ac_word=$2
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12661 $as_echo_n "checking
for $ac_word...
" >&6; }
12662 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12663 $as_echo_n "(cached
) " >&6
12665 if test -n "$ac_ct_OBJDUMP"; then
12666 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12669 for as_dir in $PATH
12672 test -z "$as_dir" && as_dir=.
12673 for ac_exec_ext in '' $ac_executable_extensions; do
12674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12675 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12676 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12685 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12686 if test -n "$ac_ct_OBJDUMP"; then
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12688 $as_echo "$ac_ct_OBJDUMP" >&6; }
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12691 $as_echo "no
" >&6; }
12694 if test "x
$ac_ct_OBJDUMP" = x; then
12697 case $cross_compiling:$ac_tool_warned in
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12700 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12701 ac_tool_warned=yes ;;
12703 OBJDUMP=$ac_ct_OBJDUMP
12706 OBJDUMP="$ac_cv_prog_OBJDUMP"
12709 test -z "$OBJDUMP" && OBJDUMP=objdump
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12720 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12721 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12722 $as_echo_n "(cached
) " >&6
12724 lt_cv_file_magic_cmd='$MAGIC_CMD'
12725 lt_cv_file_magic_test_file=
12726 lt_cv_deplibs_check_method='unknown'
12727 # Need to set the preceding variable on all platforms that support
12728 # interlibrary dependencies.
12729 # 'none' -- dependencies not supported.
12730 # `unknown' -- same as none, but documents that we really don't know.
12731 # 'pass_all' -- all dependencies passed with no checks.
12732 # 'test_compile' -- check by making test program.
12733 # 'file_magic [[regex]]' -- check by looking for files in library path
12734 # which responds to the $file_magic_cmd with a given extended regex.
12735 # If you have `file' or equivalent on your system and you're not sure
12736 # whether `pass_all' will *always* work, you probably want this one.
12740 lt_cv_deplibs_check_method=pass_all
12744 lt_cv_deplibs_check_method=pass_all
12748 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12749 lt_cv_file_magic_cmd='/usr/bin/file -L'
12750 lt_cv_file_magic_test_file=/shlib/libc.so
12754 # func_win32_libid is a shell function defined in ltmain.sh
12755 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12756 lt_cv_file_magic_cmd='func_win32_libid'
12760 # Base MSYS/MinGW do not provide the 'file' command needed by
12761 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12762 # unless we find 'file', for example because we are cross-compiling.
12763 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12764 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12765 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12766 lt_cv_file_magic_cmd='func_win32_libid'
12768 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12769 lt_cv_file_magic_cmd='$OBJDUMP -f'
12774 # use the weaker test based on 'objdump'. See mingw*.
12775 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12776 lt_cv_file_magic_cmd='$OBJDUMP -f'
12779 darwin* | rhapsody*)
12780 lt_cv_deplibs_check_method=pass_all
12783 freebsd* | dragonfly*)
12784 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12787 # Not sure whether the presence of OpenBSD here was a mistake.
12788 # Let's accept both of them until this is cleared up.
12789 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12790 lt_cv_file_magic_cmd=/usr/bin/file
12791 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12795 lt_cv_deplibs_check_method=pass_all
12800 lt_cv_deplibs_check_method=pass_all
12804 lt_cv_deplibs_check_method=pass_all
12807 hpux10.20* | hpux11*)
12808 lt_cv_file_magic_cmd=/usr/bin/file
12811 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12812 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12815 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]'
12816 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12819 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12820 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12826 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12830 irix5* | irix6* | nonstopux*)
12832 *-32|*"-32 ") libmagic=32-bit;;
12833 *-n32|*"-n32 ") libmagic=N32;;
12834 *-64|*"-64 ") libmagic=64-bit;;
12835 *) libmagic=never-match;;
12837 lt_cv_deplibs_check_method=pass_all
12840 # This must be Linux ELF.
12841 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12842 lt_cv_deplibs_check_method=pass_all
12846 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12847 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12849 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12855 lt_cv_file_magic_cmd=/usr/bin/file
12856 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12860 lt_cv_deplibs_check_method=pass_all
12864 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12865 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12867 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12871 osf3* | osf4* | osf5*)
12872 lt_cv_deplibs_check_method=pass_all
12876 lt_cv_deplibs_check_method=pass_all
12880 lt_cv_deplibs_check_method=pass_all
12883 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12884 lt_cv_deplibs_check_method=pass_all
12888 case $host_vendor in
12890 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]'
12891 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12894 lt_cv_deplibs_check_method=pass_all
12897 lt_cv_file_magic_cmd='/bin/file'
12898 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12901 lt_cv_file_magic_cmd='/bin/file'
12902 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12903 lt_cv_file_magic_test_file=/lib/libc.so
12906 lt_cv_deplibs_check_method=pass_all
12909 lt_cv_deplibs_check_method=pass_all
12915 lt_cv_deplibs_check_method=pass_all
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12921 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12922 file_magic_cmd=$lt_cv_file_magic_cmd
12923 deplibs_check_method=$lt_cv_deplibs_check_method
12924 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12937 if test -n "$ac_tool_prefix"; then
12938 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12939 set dummy ${ac_tool_prefix}ar; ac_word=$2
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12941 $as_echo_n "checking
for $ac_word...
" >&6; }
12942 if test "${ac_cv_prog_AR+set}" = set; then :
12943 $as_echo_n "(cached
) " >&6
12945 if test -n "$AR"; then
12946 ac_cv_prog_AR="$AR" # Let the user override the test.
12948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12952 test -z "$as_dir" && as_dir=.
12953 for ac_exec_ext in '' $ac_executable_extensions; do
12954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12955 ac_cv_prog_AR="${ac_tool_prefix}ar"
12956 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12966 if test -n "$AR"; then
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12968 $as_echo "$AR" >&6; }
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12971 $as_echo "no
" >&6; }
12976 if test -z "$ac_cv_prog_AR"; then
12978 # Extract the first word of "ar", so it can be a program name with args.
12979 set dummy ar; ac_word=$2
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12981 $as_echo_n "checking
for $ac_word...
" >&6; }
12982 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12983 $as_echo_n "(cached
) " >&6
12985 if test -n "$ac_ct_AR"; then
12986 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12989 for as_dir in $PATH
12992 test -z "$as_dir" && as_dir=.
12993 for ac_exec_ext in '' $ac_executable_extensions; do
12994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12995 ac_cv_prog_ac_ct_AR="ar"
12996 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13005 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13006 if test -n "$ac_ct_AR"; then
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13008 $as_echo "$ac_ct_AR" >&6; }
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13011 $as_echo "no
" >&6; }
13014 if test "x
$ac_ct_AR" = x; then
13017 case $cross_compiling:$ac_tool_warned in
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13020 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13021 ac_tool_warned=yes ;;
13026 AR="$ac_cv_prog_AR"
13029 test -z "$AR" && AR=ar
13030 test -z "$AR_FLAGS" && AR_FLAGS=cru
13042 if test -n "$ac_tool_prefix"; then
13043 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13044 set dummy ${ac_tool_prefix}strip; ac_word=$2
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13046 $as_echo_n "checking
for $ac_word...
" >&6; }
13047 if test "${ac_cv_prog_STRIP+set}" = set; then :
13048 $as_echo_n "(cached
) " >&6
13050 if test -n "$STRIP"; then
13051 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054 for as_dir in $PATH
13057 test -z "$as_dir" && as_dir=.
13058 for ac_exec_ext in '' $ac_executable_extensions; do
13059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13060 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13061 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13070 STRIP=$ac_cv_prog_STRIP
13071 if test -n "$STRIP"; then
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13073 $as_echo "$STRIP" >&6; }
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13076 $as_echo "no
" >&6; }
13081 if test -z "$ac_cv_prog_STRIP"; then
13083 # Extract the first word of "strip
", so it can be a program name with args.
13084 set dummy strip; ac_word=$2
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13086 $as_echo_n "checking
for $ac_word...
" >&6; }
13087 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13088 $as_echo_n "(cached
) " >&6
13090 if test -n "$ac_ct_STRIP"; then
13091 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13094 for as_dir in $PATH
13097 test -z "$as_dir" && as_dir=.
13098 for ac_exec_ext in '' $ac_executable_extensions; do
13099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13100 ac_cv_prog_ac_ct_STRIP="strip
"
13101 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13110 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13111 if test -n "$ac_ct_STRIP"; then
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13113 $as_echo "$ac_ct_STRIP" >&6; }
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13116 $as_echo "no
" >&6; }
13119 if test "x
$ac_ct_STRIP" = x; then
13122 case $cross_compiling:$ac_tool_warned in
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13125 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13126 ac_tool_warned=yes ;;
13131 STRIP="$ac_cv_prog_STRIP"
13134 test -z "$STRIP" && STRIP=:
13141 if test -n "$ac_tool_prefix"; then
13142 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13143 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13145 $as_echo_n "checking
for $ac_word...
" >&6; }
13146 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13147 $as_echo_n "(cached
) " >&6
13149 if test -n "$RANLIB"; then
13150 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153 for as_dir in $PATH
13156 test -z "$as_dir" && as_dir=.
13157 for ac_exec_ext in '' $ac_executable_extensions; do
13158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13159 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13160 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13169 RANLIB=$ac_cv_prog_RANLIB
13170 if test -n "$RANLIB"; then
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13172 $as_echo "$RANLIB" >&6; }
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13175 $as_echo "no
" >&6; }
13180 if test -z "$ac_cv_prog_RANLIB"; then
13181 ac_ct_RANLIB=$RANLIB
13182 # Extract the first word of "ranlib
", so it can be a program name with args.
13183 set dummy ranlib; ac_word=$2
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13185 $as_echo_n "checking
for $ac_word...
" >&6; }
13186 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13187 $as_echo_n "(cached
) " >&6
13189 if test -n "$ac_ct_RANLIB"; then
13190 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193 for as_dir in $PATH
13196 test -z "$as_dir" && as_dir=.
13197 for ac_exec_ext in '' $ac_executable_extensions; do
13198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13199 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13200 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13209 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13210 if test -n "$ac_ct_RANLIB"; then
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13212 $as_echo "$ac_ct_RANLIB" >&6; }
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13215 $as_echo "no
" >&6; }
13218 if test "x
$ac_ct_RANLIB" = x; then
13221 case $cross_compiling:$ac_tool_warned in
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13224 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13225 ac_tool_warned=yes ;;
13227 RANLIB=$ac_ct_RANLIB
13230 RANLIB="$ac_cv_prog_RANLIB"
13233 test -z "$RANLIB" && RANLIB=:
13240 # Determine commands to create old-style static archives.
13241 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13242 old_postinstall_cmds='chmod 644 $oldlib'
13243 old_postuninstall_cmds=
13245 if test -n "$RANLIB"; then
13248 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13251 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13254 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13259 lock_old_archive_extraction=yes ;;
13261 lock_old_archive_extraction=no ;;
13302 # If no C compiler was specified, use CC.
13305 # If no C compiler flags were specified, use CFLAGS.
13306 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13308 # Allow CC to be a program name with arguments.
13312 # Check for command to grab the raw symbol name followed by C symbol from nm.
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13314 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13315 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13316 $as_echo_n "(cached
) " >&6
13319 # These are sane defaults that work on at least a few old systems.
13320 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13322 # Character class describing NM global symbol codes.
13323 symcode='[BCDEGRST]'
13325 # Regexp to match symbols that can be accessed directly from C.
13326 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13328 # Define system-specific variables.
13333 cygwin* | mingw* | pw32* | cegcc*)
13334 symcode='[ABCDGISTW]'
13337 if test "$host_cpu" = ia64; then
13338 symcode='[ABCDEGRST]'
13341 irix* | nonstopux*)
13342 symcode='[BCDEGRST]'
13345 symcode='[BCDEGQRST]'
13356 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13364 # If we're using GNU nm, then use its standard symbol codes.
13365 case `$NM -V 2>&1` in
13366 *GNU* | *'with BFD'*)
13367 symcode='[ABCDGIRSTW]' ;;
13370 # Transform an extracted symbol line into a proper C declaration.
13371 # Some systems (esp. on ia64) link data and code symbols differently,
13372 # so use this general approach.
13373 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13375 # Transform an extracted symbol line into symbol name and symbol address
13376 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13377 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'"
13379 # Handle CRLF in mingw tool chain
13383 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13387 # Try without a prefix underscore, then with it.
13388 for ac_symprfx in "" "_
"; do
13390 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13391 symxfrm="\\1 $ac_symprfx\\2 \\2"
13393 # Write the raw and C identifiers.
13394 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13395 # Fake it for dumpbin and say T for any non-static function
13396 # and D for any global variable.
13397 # Also find C++ and __fastcall symbols from MSVC++,
13398 # which start with @ or ?.
13399 lt_cv_sys_global_symbol_pipe="$AWK '"\
13400 " {last_section=section; section=\$ 3};"\
13401 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13402 " \$ 0!~/External *\|/{next};"\
13403 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13404 " {if(hide[section]) next};"\
13405 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13406 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13407 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13408 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13409 " ' prfx
=^
$ac_symprfx"
13411 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13414 # Check to see that the pipe works correctly.
13418 cat > conftest.$ac_ext <<_LT_EOF
13423 void nm_test_func(void);
13424 void nm_test_func(void){}
13428 int main(){nm_test_var='a';nm_test_func();return(0);}
13431 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13432 (eval $ac_compile) 2>&5
13434 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13435 test $ac_status = 0; }; then
13436 # Now try to grab the symbols.
13438 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13439 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13441 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13442 test $ac_status = 0; } && test -s "$nlist"; then
13443 # Try sorting and uniquifying the output.
13444 if sort "$nlist" | uniq > "$nlist"T; then
13445 mv -f "$nlist"T "$nlist"
13450 # Make sure that we snagged all the symbols we need.
13451 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13452 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13453 cat <<_LT_EOF > conftest.$ac_ext
13459 # Now generate the symbol file.
13460 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13462 cat <<_LT_EOF >> conftest.$ac_ext
13464 /* The mapping between symbol names and symbols. */
13469 lt__PROGRAM__LTX_preloaded_symbols[] =
13471 { "@PROGRAM@
", (void *) 0 },
13473 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13474 cat <<\_LT_EOF >> conftest.$ac_ext
13478 /* This works around a problem in FreeBSD linker */
13479 #ifdef FREEBSD_WORKAROUND
13480 static const void *lt_preloaded_setup() {
13481 return lt__PROGRAM__LTX_preloaded_symbols;
13489 # Now try linking the two files.
13490 mv conftest.$ac_objext conftstm.$ac_objext
13491 lt_save_LIBS="$LIBS"
13492 lt_save_CFLAGS="$CFLAGS"
13493 LIBS="conftstm.
$ac_objext"
13494 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13495 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13496 (eval $ac_link) 2>&5
13498 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13499 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13502 LIBS="$lt_save_LIBS"
13503 CFLAGS="$lt_save_CFLAGS"
13505 echo "cannot
find nm_test_func
in $nlist" >&5
13508 echo "cannot
find nm_test_var
in $nlist" >&5
13511 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13514 echo "$progname: failed program was
:" >&5
13515 cat conftest.$ac_ext >&5
13517 rm -rf conftest* conftst*
13519 # Do not use the global_symbol_pipe unless it works.
13520 if test "$pipe_works" = yes; then
13523 lt_cv_sys_global_symbol_pipe=
13529 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13530 lt_cv_sys_global_symbol_to_cdecl=
13532 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13534 $as_echo "failed
" >&6; }
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13537 $as_echo "ok
" >&6; }
13561 # Check whether --enable-libtool-lock was given.
13562 if test "${enable_libtool_lock+set}" = set; then :
13563 enableval=$enable_libtool_lock;
13566 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13568 # Some flags need to be propagated to the compiler or linker for good
13572 # Find out which ABI we are using.
13573 echo 'int i;' > conftest.$ac_ext
13574 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13575 (eval $ac_compile) 2>&5
13577 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13578 test $ac_status = 0; }; then
13579 case `/usr/bin/file conftest.$ac_objext` in
13581 HPUX_IA64_MODE="32"
13584 HPUX_IA64_MODE="64"
13591 # Find out which ABI we are using.
13592 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13593 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13594 (eval $ac_compile) 2>&5
13596 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13597 test $ac_status = 0; }; then
13598 if test "$lt_cv_prog_gnu_ld" = yes; then
13599 case `/usr/bin/file conftest.$ac_objext` in
13601 LD="${LD-ld} -melf32bsmip"
13604 LD="${LD-ld} -melf32bmipn32"
13607 LD="${LD-ld} -melf64bmip"
13611 case `/usr/bin/file conftest.$ac_objext` in
13627 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13628 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13629 # Find out which ABI we are using.
13630 echo 'int i;' > conftest.$ac_ext
13631 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13632 (eval $ac_compile) 2>&5
13634 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13635 test $ac_status = 0; }; then
13636 case `/usr/bin/file conftest.o` in
13639 x86_64-*kfreebsd*-gnu)
13640 LD="${LD-ld} -m elf_i386_fbsd
"
13643 case `/usr/bin/file conftest.o` in
13645 LD="${LD-ld} -m elf32_x86_64
"
13648 LD="${LD-ld} -m elf_i386
"
13653 LD="${LD-ld} -m elf32lppclinux
"
13656 LD="${LD-ld} -m elf32ppclinux
"
13659 LD="${LD-ld} -m elf_s390
"
13662 LD="${LD-ld} -m elf32_sparc
"
13668 x86_64-*kfreebsd*-gnu)
13669 LD="${LD-ld} -m elf_x86_64_fbsd
"
13672 LD="${LD-ld} -m elf_x86_64
"
13675 LD="${LD-ld} -m elf64lppc
"
13678 LD="${LD-ld} -m elf64ppc
"
13680 s390*-*linux*|s390*-*tpf*)
13681 LD="${LD-ld} -m elf64_s390
"
13684 LD="${LD-ld} -m elf64_sparc
"
13694 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13695 SAVE_CFLAGS="$CFLAGS"
13696 CFLAGS="$CFLAGS -belf"
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13698 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13699 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13700 $as_echo_n "(cached
) " >&6
13703 ac_cpp='$CPP $CPPFLAGS'
13704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709 /* end confdefs.h. */
13719 if ac_fn_c_try_link "$LINENO"; then :
13720 lt_cv_cc_needs_belf=yes
13722 lt_cv_cc_needs_belf=no
13724 rm -f core conftest.err conftest.$ac_objext \
13725 conftest$ac_exeext conftest.$ac_ext
13727 ac_cpp='$CPP $CPPFLAGS'
13728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13734 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13735 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13736 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13737 CFLAGS="$SAVE_CFLAGS"
13741 # Find out which ABI we are using.
13742 echo 'int i;' > conftest.$ac_ext
13743 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13744 (eval $ac_compile) 2>&5
13746 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13747 test $ac_status = 0; }; then
13748 case `/usr/bin/file conftest.o` in
13750 case $lt_cv_prog_gnu_ld in
13751 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13753 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13765 need_locks="$enable_libtool_lock"
13769 rhapsody* | darwin*)
13770 if test -n "$ac_tool_prefix"; then
13771 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13772 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13774 $as_echo_n "checking
for $ac_word...
" >&6; }
13775 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13776 $as_echo_n "(cached
) " >&6
13778 if test -n "$DSYMUTIL"; then
13779 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13782 for as_dir in $PATH
13785 test -z "$as_dir" && as_dir=.
13786 for ac_exec_ext in '' $ac_executable_extensions; do
13787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13788 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13789 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13798 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13799 if test -n "$DSYMUTIL"; then
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13801 $as_echo "$DSYMUTIL" >&6; }
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13804 $as_echo "no
" >&6; }
13809 if test -z "$ac_cv_prog_DSYMUTIL"; then
13810 ac_ct_DSYMUTIL=$DSYMUTIL
13811 # Extract the first word of "dsymutil
", so it can be a program name with args.
13812 set dummy dsymutil; ac_word=$2
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13814 $as_echo_n "checking
for $ac_word...
" >&6; }
13815 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13816 $as_echo_n "(cached
) " >&6
13818 if test -n "$ac_ct_DSYMUTIL"; then
13819 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13822 for as_dir in $PATH
13825 test -z "$as_dir" && as_dir=.
13826 for ac_exec_ext in '' $ac_executable_extensions; do
13827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13828 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13829 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13838 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13839 if test -n "$ac_ct_DSYMUTIL"; then
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13841 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13844 $as_echo "no
" >&6; }
13847 if test "x
$ac_ct_DSYMUTIL" = x; then
13850 case $cross_compiling:$ac_tool_warned in
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13853 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13854 ac_tool_warned=yes ;;
13856 DSYMUTIL=$ac_ct_DSYMUTIL
13859 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13862 if test -n "$ac_tool_prefix"; then
13863 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13864 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13866 $as_echo_n "checking
for $ac_word...
" >&6; }
13867 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13868 $as_echo_n "(cached
) " >&6
13870 if test -n "$NMEDIT"; then
13871 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13874 for as_dir in $PATH
13877 test -z "$as_dir" && as_dir=.
13878 for ac_exec_ext in '' $ac_executable_extensions; do
13879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13880 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13881 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13890 NMEDIT=$ac_cv_prog_NMEDIT
13891 if test -n "$NMEDIT"; then
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13893 $as_echo "$NMEDIT" >&6; }
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13896 $as_echo "no
" >&6; }
13901 if test -z "$ac_cv_prog_NMEDIT"; then
13902 ac_ct_NMEDIT=$NMEDIT
13903 # Extract the first word of "nmedit
", so it can be a program name with args.
13904 set dummy nmedit; ac_word=$2
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13906 $as_echo_n "checking
for $ac_word...
" >&6; }
13907 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13908 $as_echo_n "(cached
) " >&6
13910 if test -n "$ac_ct_NMEDIT"; then
13911 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13914 for as_dir in $PATH
13917 test -z "$as_dir" && as_dir=.
13918 for ac_exec_ext in '' $ac_executable_extensions; do
13919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13920 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13921 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13930 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13931 if test -n "$ac_ct_NMEDIT"; then
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13933 $as_echo "$ac_ct_NMEDIT" >&6; }
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13936 $as_echo "no
" >&6; }
13939 if test "x
$ac_ct_NMEDIT" = x; then
13942 case $cross_compiling:$ac_tool_warned in
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13945 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13946 ac_tool_warned=yes ;;
13948 NMEDIT=$ac_ct_NMEDIT
13951 NMEDIT="$ac_cv_prog_NMEDIT"
13954 if test -n "$ac_tool_prefix"; then
13955 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13956 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13958 $as_echo_n "checking
for $ac_word...
" >&6; }
13959 if test "${ac_cv_prog_LIPO+set}" = set; then :
13960 $as_echo_n "(cached
) " >&6
13962 if test -n "$LIPO"; then
13963 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13966 for as_dir in $PATH
13969 test -z "$as_dir" && as_dir=.
13970 for ac_exec_ext in '' $ac_executable_extensions; do
13971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13972 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13973 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13982 LIPO=$ac_cv_prog_LIPO
13983 if test -n "$LIPO"; then
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13985 $as_echo "$LIPO" >&6; }
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13988 $as_echo "no
" >&6; }
13993 if test -z "$ac_cv_prog_LIPO"; then
13995 # Extract the first word of "lipo
", so it can be a program name with args.
13996 set dummy lipo; ac_word=$2
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13998 $as_echo_n "checking
for $ac_word...
" >&6; }
13999 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14000 $as_echo_n "(cached
) " >&6
14002 if test -n "$ac_ct_LIPO"; then
14003 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14006 for as_dir in $PATH
14009 test -z "$as_dir" && as_dir=.
14010 for ac_exec_ext in '' $ac_executable_extensions; do
14011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14012 ac_cv_prog_ac_ct_LIPO="lipo
"
14013 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14022 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14023 if test -n "$ac_ct_LIPO"; then
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14025 $as_echo "$ac_ct_LIPO" >&6; }
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14028 $as_echo "no
" >&6; }
14031 if test "x
$ac_ct_LIPO" = x; then
14034 case $cross_compiling:$ac_tool_warned in
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14037 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14038 ac_tool_warned=yes ;;
14043 LIPO="$ac_cv_prog_LIPO"
14046 if test -n "$ac_tool_prefix"; then
14047 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14048 set dummy ${ac_tool_prefix}otool; ac_word=$2
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14050 $as_echo_n "checking
for $ac_word...
" >&6; }
14051 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14052 $as_echo_n "(cached
) " >&6
14054 if test -n "$OTOOL"; then
14055 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14058 for as_dir in $PATH
14061 test -z "$as_dir" && as_dir=.
14062 for ac_exec_ext in '' $ac_executable_extensions; do
14063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14064 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14065 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14074 OTOOL=$ac_cv_prog_OTOOL
14075 if test -n "$OTOOL"; then
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14077 $as_echo "$OTOOL" >&6; }
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14080 $as_echo "no
" >&6; }
14085 if test -z "$ac_cv_prog_OTOOL"; then
14087 # Extract the first word of "otool
", so it can be a program name with args.
14088 set dummy otool; ac_word=$2
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14090 $as_echo_n "checking
for $ac_word...
" >&6; }
14091 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14092 $as_echo_n "(cached
) " >&6
14094 if test -n "$ac_ct_OTOOL"; then
14095 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14098 for as_dir in $PATH
14101 test -z "$as_dir" && as_dir=.
14102 for ac_exec_ext in '' $ac_executable_extensions; do
14103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14104 ac_cv_prog_ac_ct_OTOOL="otool
"
14105 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14114 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14115 if test -n "$ac_ct_OTOOL"; then
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14117 $as_echo "$ac_ct_OTOOL" >&6; }
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14120 $as_echo "no
" >&6; }
14123 if test "x
$ac_ct_OTOOL" = x; then
14126 case $cross_compiling:$ac_tool_warned in
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14129 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14130 ac_tool_warned=yes ;;
14135 OTOOL="$ac_cv_prog_OTOOL"
14138 if test -n "$ac_tool_prefix"; then
14139 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14140 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14142 $as_echo_n "checking
for $ac_word...
" >&6; }
14143 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14144 $as_echo_n "(cached
) " >&6
14146 if test -n "$OTOOL64"; then
14147 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14150 for as_dir in $PATH
14153 test -z "$as_dir" && as_dir=.
14154 for ac_exec_ext in '' $ac_executable_extensions; do
14155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14156 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14157 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14166 OTOOL64=$ac_cv_prog_OTOOL64
14167 if test -n "$OTOOL64"; then
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14169 $as_echo "$OTOOL64" >&6; }
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14172 $as_echo "no
" >&6; }
14177 if test -z "$ac_cv_prog_OTOOL64"; then
14178 ac_ct_OTOOL64=$OTOOL64
14179 # Extract the first word of "otool64
", so it can be a program name with args.
14180 set dummy otool64; ac_word=$2
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14182 $as_echo_n "checking
for $ac_word...
" >&6; }
14183 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14184 $as_echo_n "(cached
) " >&6
14186 if test -n "$ac_ct_OTOOL64"; then
14187 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14190 for as_dir in $PATH
14193 test -z "$as_dir" && as_dir=.
14194 for ac_exec_ext in '' $ac_executable_extensions; do
14195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14196 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14197 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14206 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14207 if test -n "$ac_ct_OTOOL64"; then
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14209 $as_echo "$ac_ct_OTOOL64" >&6; }
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14212 $as_echo "no
" >&6; }
14215 if test "x
$ac_ct_OTOOL64" = x; then
14218 case $cross_compiling:$ac_tool_warned in
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14221 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14222 ac_tool_warned=yes ;;
14224 OTOOL64=$ac_ct_OTOOL64
14227 OTOOL64="$ac_cv_prog_OTOOL64"
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14257 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14258 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14259 $as_echo_n "(cached
) " >&6
14261 lt_cv_apple_cc_single_mod=no
14262 if test -z "${LT_MULTI_MODULE}"; then
14263 # By default we will add the -single_module flag. You can override
14264 # by either setting the environment variable LT_MULTI_MODULE
14265 # non-empty at configure time, or by adding -multi_module to the
14267 rm -rf libconftest.dylib*
14268 echo "int foo
(void
){return 1;}" > conftest.c
14269 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14270 -dynamiclib -Wl,-single_module conftest.c
" >&5
14271 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14272 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14274 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14275 lt_cv_apple_cc_single_mod=yes
14277 cat conftest.err >&5
14279 rm -rf libconftest.dylib*
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14284 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14286 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14287 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14288 $as_echo_n "(cached
) " >&6
14290 lt_cv_ld_exported_symbols_list=no
14291 save_LDFLAGS=$LDFLAGS
14292 echo "_main
" > conftest.sym
14293 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h. */
14305 if ac_fn_c_try_link "$LINENO"; then :
14306 lt_cv_ld_exported_symbols_list=yes
14308 lt_cv_ld_exported_symbols_list=no
14310 rm -f core conftest.err conftest.$ac_objext \
14311 conftest$ac_exeext conftest.$ac_ext
14312 LDFLAGS="$save_LDFLAGS"
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14316 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14318 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14319 if test "${lt_cv_ld_force_load+set}" = set; then :
14320 $as_echo_n "(cached
) " >&6
14322 lt_cv_ld_force_load=no
14323 cat > conftest.c << _LT_EOF
14324 int forced_loaded() { return 2;}
14326 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14327 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14328 echo "$AR cru libconftest.a conftest.o
" >&5
14329 $AR cru libconftest.a conftest.o 2>&5
14330 cat > conftest.c << _LT_EOF
14331 int main() { return 0;}
14333 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14334 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14336 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14337 lt_cv_ld_force_load=yes
14339 cat conftest.err >&5
14341 rm -f conftest.err libconftest.a conftest conftest.c
14342 rm -rf conftest.dSYM
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14346 $as_echo "$lt_cv_ld_force_load" >&6; }
14348 rhapsody* | darwin1.[012])
14349 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14351 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14352 darwin*) # darwin 5.x on
14353 # if running on 10.5 or later, the deployment target defaults
14354 # to the OS version, if on x86, and 10.4, the deployment
14355 # target defaults to 10.4. Don't you love it?
14356 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14357 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14358 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14360 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14362 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14366 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14367 _lt_dar_single_mod='$single_module'
14369 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14370 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14372 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14374 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14375 _lt_dsymutil='~$DSYMUTIL $lib || :'
14382 for ac_header in dlfcn.h
14384 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14385 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14386 cat >>confdefs.h <<_ACEOF
14387 #define HAVE_DLFCN_H 1
14404 enable_win32_dll=no
14407 # Check whether --enable-shared was given.
14408 if test "${enable_shared+set}" = set; then :
14409 enableval=$enable_shared; p=${PACKAGE-default}
14411 yes) enable_shared=yes ;;
14412 no) enable_shared=no ;;
14415 # Look at the argument we got. We use all the common list separators.
14416 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14417 for pkg in $enableval; do
14419 if test "X
$pkg" = "X
$p"; then
14438 # Check whether --enable-static was given.
14439 if test "${enable_static+set}" = set; then :
14440 enableval=$enable_static; p=${PACKAGE-default}
14442 yes) enable_static=yes ;;
14443 no) enable_static=no ;;
14446 # Look at the argument we got. We use all the common list separators.
14447 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14448 for pkg in $enableval; do
14450 if test "X
$pkg" = "X
$p"; then
14470 # Check whether --with-pic was given.
14471 if test "${with_pic+set}" = set; then :
14472 withval=$with_pic; p=${PACKAGE-default}
14474 yes|no) pic_mode="$withval" ;;
14477 # Look at the argument we got. We use all the common list separators.
14478 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14479 for pkg in $withval; do
14481 if test "X
$pkg" = "X
$p"; then
14493 test -z "$pic_mode" && pic_mode=default
14501 # Check whether --enable-fast-install was given.
14502 if test "${enable_fast_install+set}" = set; then :
14503 enableval=$enable_fast_install; p=${PACKAGE-default}
14505 yes) enable_fast_install=yes ;;
14506 no) enable_fast_install=no ;;
14508 enable_fast_install=no
14509 # Look at the argument we got. We use all the common list separators.
14510 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14511 for pkg in $enableval; do
14513 if test "X
$pkg" = "X
$p"; then
14514 enable_fast_install=yes
14521 enable_fast_install=yes
14534 # This can be used to rebuild libtool when needed
14535 LIBTOOL_DEPS="$ltmain"
14537 # Always use our own libtool.
14538 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14565 test -z "$LN_S" && LN_S="ln -s"
14580 if test -n "${ZSH_VERSION+set}" ; then
14581 setopt NO_GLOB_SUBST
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14585 $as_echo_n "checking
for objdir...
" >&6; }
14586 if test "${lt_cv_objdir+set}" = set; then :
14587 $as_echo_n "(cached
) " >&6
14589 rm -f .libs 2>/dev/null
14590 mkdir .libs 2>/dev/null
14591 if test -d .libs; then
14594 # MS-DOS does not allow filenames that begin with a dot.
14597 rmdir .libs 2>/dev/null
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14600 $as_echo "$lt_cv_objdir" >&6; }
14601 objdir=$lt_cv_objdir
14607 cat >>confdefs.h <<_ACEOF
14608 #define LT_OBJDIR "$lt_cv_objdir/"
14616 # AIX sometimes has problems with the GCC collect2 program. For some
14617 # reason, if we set the COLLECT_NAMES environment variable, the problems
14618 # vanish in a puff of smoke.
14619 if test "X
${COLLECT_NAMES+set}" != Xset; then
14621 export COLLECT_NAMES
14626 # Global variables:
14628 can_build_shared=yes
14630 # All known linkers require a `.a' archive for static linking (except MSVC,
14631 # which needs '.lib').
14634 with_gnu_ld="$lt_cv_prog_gnu_ld"
14637 old_CFLAGS="$CFLAGS"
14639 # Set sane defaults for various variables
14640 test -z "$CC" && CC=cc
14641 test -z "$LTCC" && LTCC=$CC
14642 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14643 test -z "$LD" && LD=ld
14644 test -z "$ac_objext" && ac_objext=o
14646 for cc_temp in $compiler""; do
14648 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14649 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14654 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14657 # Only perform the check for file, if the check method requires it
14658 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14659 case $deplibs_check_method in
14661 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14663 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14664 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14665 $as_echo_n "(cached
) " >&6
14669 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14672 lt_save_MAGIC_CMD="$MAGIC_CMD"
14673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14674 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14675 for ac_dir in $ac_dummy; do
14677 test -z "$ac_dir" && ac_dir=.
14678 if test -f $ac_dir/${ac_tool_prefix}file; then
14679 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14680 if test -n "$file_magic_test_file"; then
14681 case $deplibs_check_method in
14683 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14684 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14685 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14686 $EGREP "$file_magic_regex" > /dev/null; then
14691 *** Warning: the command libtool uses to detect shared libraries,
14692 *** $file_magic_cmd, produces output that libtool cannot recognize.
14693 *** The result is that libtool may fail to recognize shared libraries
14694 *** as such. This will affect the creation of libtool libraries that
14695 *** depend on shared libraries, but programs linked with such libtool
14696 *** libraries will work regardless of this problem. Nevertheless, you
14697 *** may want to report the problem to your system manager and/or to
14698 *** bug-libtool@gnu.org
14708 MAGIC_CMD="$lt_save_MAGIC_CMD"
14713 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14714 if test -n "$MAGIC_CMD"; then
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14716 $as_echo "$MAGIC_CMD" >&6; }
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14719 $as_echo "no
" >&6; }
14726 if test -z "$lt_cv_path_MAGIC_CMD"; then
14727 if test -n "$ac_tool_prefix"; then
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14729 $as_echo_n "checking
for file...
" >&6; }
14730 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14731 $as_echo_n "(cached
) " >&6
14735 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14738 lt_save_MAGIC_CMD="$MAGIC_CMD"
14739 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14740 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14741 for ac_dir in $ac_dummy; do
14743 test -z "$ac_dir" && ac_dir=.
14744 if test -f $ac_dir/file; then
14745 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14746 if test -n "$file_magic_test_file"; then
14747 case $deplibs_check_method in
14749 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14750 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14751 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14752 $EGREP "$file_magic_regex" > /dev/null; then
14757 *** Warning: the command libtool uses to detect shared libraries,
14758 *** $file_magic_cmd, produces output that libtool cannot recognize.
14759 *** The result is that libtool may fail to recognize shared libraries
14760 *** as such. This will affect the creation of libtool libraries that
14761 *** depend on shared libraries, but programs linked with such libtool
14762 *** libraries will work regardless of this problem. Nevertheless, you
14763 *** may want to report the problem to your system manager and/or to
14764 *** bug-libtool@gnu.org
14774 MAGIC_CMD="$lt_save_MAGIC_CMD"
14779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14780 if test -n "$MAGIC_CMD"; then
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14782 $as_echo "$MAGIC_CMD" >&6; }
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14785 $as_echo "no
" >&6; }
14798 # Use C for the default configuration in the libtool script
14802 ac_cpp='$CPP $CPPFLAGS'
14803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14808 # Source file extension for C test sources.
14811 # Object file extension for compiled C test sources.
14815 # Code to be used in simple compile tests
14816 lt_simple_compile_test_code="int some_variable
= 0;"
14818 # Code to be used in simple link tests
14819 lt_simple_link_test_code='int main(){return(0);}'
14827 # If no C compiler was specified, use CC.
14830 # If no C compiler flags were specified, use CFLAGS.
14831 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14833 # Allow CC to be a program name with arguments.
14836 # Save the default compiler, since it gets overwritten when the other
14837 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14838 compiler_DEFAULT=$CC
14840 # save warnings/boilerplate of simple test code
14841 ac_outfile=conftest.$ac_objext
14842 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14843 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14844 _lt_compiler_boilerplate=`cat conftest.err`
14847 ac_outfile=conftest.$ac_objext
14848 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14849 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14850 _lt_linker_boilerplate=`cat conftest.err`
14855 ## There is no encapsulation within the following macros, do not change
14856 ## the running order or otherwise move them around unless you know exactly
14857 ## what you are doing...
14858 if test -n "$compiler"; then
14860 lt_prog_compiler_no_builtin_flag=
14862 if test "$GCC" = yes; then
14863 case $cc_basename in
14865 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14867 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14871 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14872 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14873 $as_echo_n "(cached
) " >&6
14875 lt_cv_prog_compiler_rtti_exceptions=no
14876 ac_outfile=conftest.$ac_objext
14877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14878 lt_compiler_flag="-fno-rtti -fno-exceptions"
14879 # Insert the option either (1) after the last *FLAGS variable, or
14880 # (2) before a word containing "conftest.
", or (3) at the end.
14881 # Note that $ac_compile itself does not contain backslashes and begins
14882 # with a dollar sign (not a hyphen), so the echo should work correctly.
14883 # The option is referenced via a variable to avoid confusing sed.
14884 lt_compile=`echo "$ac_compile" | $SED \
14885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14887 -e 's:$: $lt_compiler_flag:'`
14888 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14889 (eval "$lt_compile" 2>conftest.err)
14891 cat conftest.err >&5
14892 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14893 if (exit $ac_status) && test -s "$ac_outfile"; then
14894 # The compiler can only warn and ignore the option if not recognized
14895 # So say no if there are warnings other than the usual output.
14896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14898 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14899 lt_cv_prog_compiler_rtti_exceptions=yes
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14906 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14908 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14909 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14921 lt_prog_compiler_wl=
14922 lt_prog_compiler_pic=
14923 lt_prog_compiler_static=
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14926 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14928 if test "$GCC" = yes; then
14929 lt_prog_compiler_wl='-Wl,'
14930 lt_prog_compiler_static='-static'
14934 # All AIX code is PIC.
14935 if test "$host_cpu" = ia64; then
14936 # AIX 5 now supports IA64 processor
14937 lt_prog_compiler_static='-Bstatic'
14939 lt_prog_compiler_pic='-fPIC'
14945 # see comment about AmigaOS4 .so support
14946 lt_prog_compiler_pic='-fPIC'
14949 # FIXME: we need at least 68020 code to build shared libraries, but
14950 # adding the `-m68020' flag to GCC prevents building anything better,
14952 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14957 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14958 # PIC is the default for these OSes.
14961 mingw* | cygwin* | pw32* | os2* | cegcc*)
14962 # This hack is so that the source file can tell whether it is being
14963 # built for inclusion in a dll (and should export symbols for example).
14964 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14965 # (--disable-auto-import) libraries
14966 lt_prog_compiler_pic='-DDLL_EXPORT'
14969 darwin* | rhapsody*)
14970 # PIC is the default on this platform
14971 # Common symbols not allowed in MH_DYLIB files
14972 lt_prog_compiler_pic='-fno-common'
14976 # PIC is the default for Haiku.
14977 # The "-static" flag exists, but is broken.
14978 lt_prog_compiler_static=
14982 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14983 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14984 # sets the default TLS model and affects inlining.
14990 lt_prog_compiler_pic='-fPIC'
14996 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14997 # Instead, we relocate shared libraries at runtime.
15001 # Just because we use GCC doesn't mean we suddenly get shared libraries
15002 # on systems that don't support them.
15003 lt_prog_compiler_can_build_shared=no
15008 # QNX uses GNU C++, but need to define -shared option too, otherwise
15009 # it will coredump.
15010 lt_prog_compiler_pic='-fPIC -shared'
15014 if test -d /usr/nec; then
15015 lt_prog_compiler_pic=-Kconform_pic
15020 lt_prog_compiler_pic='-fPIC'
15024 case $cc_basename in
15025 nvcc*) # Cuda Compiler Driver 2.2
15026 lt_prog_compiler_wl='-Xlinker '
15027 lt_prog_compiler_pic='-Xcompiler -fPIC'
15031 # PORTME Check for flag to pass linker flags through the system compiler.
15034 lt_prog_compiler_wl='-Wl,'
15035 if test "$host_cpu" = ia64; then
15036 # AIX 5 now supports IA64 processor
15037 lt_prog_compiler_static='-Bstatic'
15039 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15043 mingw* | cygwin* | pw32* | os2* | cegcc*)
15044 # This hack is so that the source file can tell whether it is being
15045 # built for inclusion in a dll (and should export symbols for example).
15046 lt_prog_compiler_pic='-DDLL_EXPORT'
15049 hpux9* | hpux10* | hpux11*)
15050 lt_prog_compiler_wl='-Wl,'
15051 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15052 # not for PA HP-UX.
15058 lt_prog_compiler_pic='+Z'
15061 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15062 lt_prog_compiler_static='${wl}-a ${wl}archive'
15065 irix5* | irix6* | nonstopux*)
15066 lt_prog_compiler_wl='-Wl,'
15067 # PIC (with -KPIC) is the default.
15068 lt_prog_compiler_static='-non_shared'
15071 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15072 case $cc_basename in
15073 # old Intel for x86_64 which still supported -KPIC.
15075 lt_prog_compiler_wl='-Wl,'
15076 lt_prog_compiler_pic='-KPIC'
15077 lt_prog_compiler_static='-static'
15079 # icc used to be incompatible with GCC.
15080 # ICC 10 doesn't accept -KPIC any more.
15082 lt_prog_compiler_wl='-Wl,'
15083 lt_prog_compiler_pic='-fPIC'
15084 lt_prog_compiler_static='-static'
15086 # Lahey Fortran 8.1.
15088 lt_prog_compiler_wl='-Wl,'
15089 lt_prog_compiler_pic='--shared'
15090 lt_prog_compiler_static='--static'
15092 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15093 # Portland Group compilers (*not* the Pentium gcc compiler,
15094 # which looks to be a dead project)
15095 lt_prog_compiler_wl='-Wl,'
15096 lt_prog_compiler_pic='-fpic'
15097 lt_prog_compiler_static='-Bstatic'
15100 lt_prog_compiler_wl='-Wl,'
15101 # All Alpha code is PIC.
15102 lt_prog_compiler_static='-non_shared'
15104 xl* | bgxl* | bgf* | mpixl*)
15105 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15106 lt_prog_compiler_wl='-Wl,'
15107 lt_prog_compiler_pic='-qpic'
15108 lt_prog_compiler_static='-qstaticlink'
15111 case `$CC -V 2>&1 | sed 5q` in
15112 *Sun\ F* | *Sun*Fortran*)
15113 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15114 lt_prog_compiler_pic='-KPIC'
15115 lt_prog_compiler_static='-Bstatic'
15116 lt_prog_compiler_wl=''
15120 lt_prog_compiler_pic='-KPIC'
15121 lt_prog_compiler_static='-Bstatic'
15122 lt_prog_compiler_wl='-Wl,'
15130 lt_prog_compiler_pic='-KPIC'
15131 lt_prog_compiler_static='-Bstatic'
15135 # QNX uses GNU C++, but need to define -shared option too, otherwise
15136 # it will coredump.
15137 lt_prog_compiler_pic='-fPIC -shared'
15140 osf3* | osf4* | osf5*)
15141 lt_prog_compiler_wl='-Wl,'
15142 # All OSF/1 code is PIC.
15143 lt_prog_compiler_static='-non_shared'
15147 lt_prog_compiler_static='-non_shared'
15151 lt_prog_compiler_pic='-KPIC'
15152 lt_prog_compiler_static='-Bstatic'
15153 case $cc_basename in
15154 f77* | f90* | f95*)
15155 lt_prog_compiler_wl='-Qoption ld ';;
15157 lt_prog_compiler_wl='-Wl,';;
15162 lt_prog_compiler_wl='-Qoption ld '
15163 lt_prog_compiler_pic='-PIC'
15164 lt_prog_compiler_static='-Bstatic'
15167 sysv4 | sysv4.2uw2* | sysv4.3*)
15168 lt_prog_compiler_wl='-Wl,'
15169 lt_prog_compiler_pic='-KPIC'
15170 lt_prog_compiler_static='-Bstatic'
15174 if test -d /usr/nec ;then
15175 lt_prog_compiler_pic='-Kconform_pic'
15176 lt_prog_compiler_static='-Bstatic'
15180 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15181 lt_prog_compiler_wl='-Wl,'
15182 lt_prog_compiler_pic='-KPIC'
15183 lt_prog_compiler_static='-Bstatic'
15187 lt_prog_compiler_wl='-Wl,'
15188 lt_prog_compiler_can_build_shared=no
15192 lt_prog_compiler_pic='-pic'
15193 lt_prog_compiler_static='-Bstatic'
15197 lt_prog_compiler_can_build_shared=no
15203 # For platforms which do not support PIC, -DPIC is meaningless:
15205 lt_prog_compiler_pic=
15208 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15212 $as_echo "$lt_prog_compiler_pic" >&6; }
15220 # Check to make sure the PIC flag actually works.
15222 if test -n "$lt_prog_compiler_pic"; then
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15224 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15225 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15226 $as_echo_n "(cached
) " >&6
15228 lt_cv_prog_compiler_pic_works=no
15229 ac_outfile=conftest.$ac_objext
15230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15231 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15232 # Insert the option either (1) after the last *FLAGS variable, or
15233 # (2) before a word containing "conftest.
", or (3) at the end.
15234 # Note that $ac_compile itself does not contain backslashes and begins
15235 # with a dollar sign (not a hyphen), so the echo should work correctly.
15236 # The option is referenced via a variable to avoid confusing sed.
15237 lt_compile=`echo "$ac_compile" | $SED \
15238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15240 -e 's:$: $lt_compiler_flag:'`
15241 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15242 (eval "$lt_compile" 2>conftest.err)
15244 cat conftest.err >&5
15245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15246 if (exit $ac_status) && test -s "$ac_outfile"; then
15247 # The compiler can only warn and ignore the option if not recognized
15248 # So say no if there are warnings other than the usual output.
15249 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15251 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15252 lt_cv_prog_compiler_pic_works=yes
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15259 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15261 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15262 case $lt_prog_compiler_pic in
15264 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15267 lt_prog_compiler_pic=
15268 lt_prog_compiler_can_build_shared=no
15279 # Check to make sure the static flag actually works.
15281 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15283 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15284 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15285 $as_echo_n "(cached
) " >&6
15287 lt_cv_prog_compiler_static_works=no
15288 save_LDFLAGS="$LDFLAGS"
15289 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15290 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15291 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15292 # The linker can only warn and ignore the option if not recognized
15293 # So say no if there are warnings
15294 if test -s conftest.err; then
15295 # Append any errors to the config.log.
15296 cat conftest.err 1>&5
15297 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15299 if diff conftest.exp conftest.er2 >/dev/null; then
15300 lt_cv_prog_compiler_static_works=yes
15303 lt_cv_prog_compiler_static_works=yes
15307 LDFLAGS="$save_LDFLAGS"
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15311 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15313 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15316 lt_prog_compiler_static=
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15326 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15327 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15328 $as_echo_n "(cached
) " >&6
15330 lt_cv_prog_compiler_c_o=no
15331 $RM -r conftest 2>/dev/null
15335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15337 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15338 # Insert the option either (1) after the last *FLAGS variable, or
15339 # (2) before a word containing "conftest.
", or (3) at the end.
15340 # Note that $ac_compile itself does not contain backslashes and begins
15341 # with a dollar sign (not a hyphen), so the echo should work correctly.
15342 lt_compile=`echo "$ac_compile" | $SED \
15343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15345 -e 's:$: $lt_compiler_flag:'`
15346 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15347 (eval "$lt_compile" 2>out/conftest.err)
15349 cat out/conftest.err >&5
15350 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15351 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15353 # The compiler can only warn and ignore the option if not recognized
15354 # So say no if there are warnings
15355 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15356 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15357 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15358 lt_cv_prog_compiler_c_o=yes
15363 # SGI C++ compiler will create directory out/ii_files/ for
15364 # template instantiation
15365 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15366 $RM out/* && rmdir out
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15373 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15381 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15382 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15383 $as_echo_n "(cached
) " >&6
15385 lt_cv_prog_compiler_c_o=no
15386 $RM -r conftest 2>/dev/null
15390 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15392 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15393 # Insert the option either (1) after the last *FLAGS variable, or
15394 # (2) before a word containing "conftest.
", or (3) at the end.
15395 # Note that $ac_compile itself does not contain backslashes and begins
15396 # with a dollar sign (not a hyphen), so the echo should work correctly.
15397 lt_compile=`echo "$ac_compile" | $SED \
15398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15400 -e 's:$: $lt_compiler_flag:'`
15401 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15402 (eval "$lt_compile" 2>out/conftest.err)
15404 cat out/conftest.err >&5
15405 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15406 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15408 # The compiler can only warn and ignore the option if not recognized
15409 # So say no if there are warnings
15410 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15411 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15412 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15413 lt_cv_prog_compiler_c_o=yes
15418 # SGI C++ compiler will create directory out/ii_files/ for
15419 # template instantiation
15420 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15421 $RM out/* && rmdir out
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15428 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15433 hard_links="nottested
"
15434 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15435 # do not overwrite the value of need_locks provided by the user
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15437 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15440 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15442 ln conftest.a conftest.b 2>&5 || hard_links=no
15443 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15445 $as_echo "$hard_links" >&6; }
15446 if test "$hard_links" = no; then
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15448 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15461 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15464 allow_undefined_flag=
15465 always_export_symbols=no
15467 archive_expsym_cmds=
15468 compiler_needs_object=no
15469 enable_shared_with_static_runtimes=no
15470 export_dynamic_flag_spec=
15471 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15472 hardcode_automatic=no
15474 hardcode_direct_absolute=no
15475 hardcode_libdir_flag_spec=
15476 hardcode_libdir_flag_spec_ld=
15477 hardcode_libdir_separator=
15478 hardcode_minus_L=no
15479 hardcode_shlibpath_var=unsupported
15481 link_all_deplibs=unknown
15483 module_expsym_cmds=
15484 old_archive_from_new_cmds=
15485 old_archive_from_expsyms_cmds=
15486 thread_safe_flag_spec=
15487 whole_archive_flag_spec=
15488 # include_expsyms should be a list of space-separated symbols to be *always*
15489 # included in the symbol list
15491 # exclude_expsyms can be an extended regexp of symbols to exclude
15492 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15493 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15494 # as well as any symbol that contains `d'.
15495 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15496 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15497 # platforms (ab)use it in PIC code, but their linkers get confused if
15498 # the symbol is explicitly referenced. Since portable code cannot
15499 # rely on this symbol name, it's probably fine to never include it in
15500 # preloaded symbol tables.
15501 # Exclude shared library initialization/finalization symbols.
15502 extract_expsyms_cmds=
15505 cygwin* | mingw* | pw32* | cegcc*)
15506 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15507 # When not using gcc, we currently assume that we are using
15508 # Microsoft Visual C++.
15509 if test "$GCC" != yes; then
15514 # we just hope/assume this is gcc and not c89 (= MSVC++)
15524 # On some targets, GNU ld is compatible enough with the native linker
15525 # that we're better off using the native interface for both.
15526 lt_use_gnu_ld_interface=no
15527 if test "$with_gnu_ld" = yes; then
15530 # The AIX port of GNU ld has always aspired to compatibility
15531 # with the native linker. However, as the warning in the GNU ld
15532 # block says, versions before 2.19.5* couldn't really create working
15533 # shared libraries, regardless of the interface used.
15534 case `$LD -v 2>&1` in
15535 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15536 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15537 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15539 lt_use_gnu_ld_interface=yes
15544 lt_use_gnu_ld_interface=yes
15549 if test "$lt_use_gnu_ld_interface" = yes; then
15550 # If archive_cmds runs LD, not CC, wlarc should be empty
15553 # Set some defaults for GNU ld with shared library support. These
15554 # are reset later if shared libraries are not supported. Putting them
15555 # here allows them to be overridden if necessary.
15556 runpath_var=LD_RUN_PATH
15557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15558 export_dynamic_flag_spec='${wl}--export-dynamic'
15559 # ancient GNU ld didn't support --whole-archive et. al.
15560 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15561 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15563 whole_archive_flag_spec=
15565 supports_anon_versioning=no
15566 case `$LD -v 2>&1` in
15567 *GNU\ gold*) supports_anon_versioning=yes ;;
15568 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15569 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15570 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15571 *\ 2.11.*) ;; # other 2.11 versions
15572 *) supports_anon_versioning=yes ;;
15575 # See if GNU ld supports shared libraries.
15578 # On AIX/PPC, the GNU linker is very broken
15579 if test "$host_cpu" != ia64; then
15583 *** Warning: the GNU linker, at least up to release 2.19, is reported
15584 *** to be unable to reliably create shared libraries on AIX.
15585 *** Therefore, libtool is disabling shared libraries support. If you
15586 *** really care for shared libraries, you may want to install binutils
15587 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15588 *** You will then need to restart the configuration process.
15597 # see comment about AmigaOS4 .so support
15598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15599 archive_expsym_cmds=''
15602 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)'
15603 hardcode_libdir_flag_spec
='-L$libdir'
15604 hardcode_minus_L
=yes
15610 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15611 allow_undefined_flag
=unsupported
15612 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15613 # support --undefined. This deserves some investigation. FIXME
15614 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15620 cygwin
* | mingw
* | pw32
* | cegcc
*)
15621 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15622 # as there is no search path for DLLs.
15623 hardcode_libdir_flag_spec
='-L$libdir'
15624 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15625 allow_undefined_flag
=unsupported
15626 always_export_symbols
=no
15627 enable_shared_with_static_runtimes
=yes
15628 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15630 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15631 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15632 # If the export-symbols file already is a .def file (1st line
15633 # is EXPORTS), use it as is; otherwise, prepend...
15634 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15635 cp $export_symbols $output_objdir/$soname.def;
15637 echo EXPORTS > $output_objdir/$soname.def;
15638 cat $export_symbols >> $output_objdir/$soname.def;
15640 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15647 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15648 link_all_deplibs
=yes
15653 hardcode_shlibpath_var
=no
15654 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15655 export_dynamic_flag_spec
='${wl}-E'
15656 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15657 # Instead, shared libraries are loaded at an image base (0x10000000 by
15658 # default) and relocated if they conflict, which is a slow very memory
15659 # consuming and fragmenting process. To avoid this, we pick a random,
15660 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15661 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15662 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15663 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'
15666 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15668 if test "$host_os" = linux-dietlibc
; then
15669 case $cc_basename in
15670 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15673 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15674 && test "$tmp_diet" = no
15677 tmp_sharedflag
='-shared'
15678 case $cc_basename,$host_cpu in
15679 pgcc
*) # Portland Group C compiler
15680 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'
15681 tmp_addflag
=' $pic_flag'
15683 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15684 # Portland Group f77 and f90 compilers
15685 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'
15686 tmp_addflag
=' $pic_flag -Mnomain' ;;
15687 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15688 tmp_addflag
=' -i_dynamic' ;;
15689 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15690 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15691 ifc
* | ifort
*) # Intel Fortran compiler
15692 tmp_addflag
=' -nofor_main' ;;
15693 lf95
*) # Lahey Fortran 8.1
15694 whole_archive_flag_spec
=
15695 tmp_sharedflag
='--shared' ;;
15696 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15697 tmp_sharedflag
='-qmkshrobj'
15699 nvcc
*) # Cuda Compiler Driver 2.2
15700 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'
15701 compiler_needs_object
=yes
15704 case `$CC -V 2>&1 | sed 5q` in
15705 *Sun\ C
*) # Sun C 5.9
15706 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'
15707 compiler_needs_object
=yes
15708 tmp_sharedflag
='-G' ;;
15709 *Sun\ F
*) # Sun Fortran 8.3
15710 tmp_sharedflag
='-G' ;;
15712 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15714 if test "x$supports_anon_versioning" = xyes
; then
15715 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15716 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15717 echo "local: *; };" >> $output_objdir/$libname.ver~
15718 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15721 case $cc_basename in
15722 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15723 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15724 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15725 hardcode_libdir_flag_spec
=
15726 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15727 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15728 if test "x$supports_anon_versioning" = xyes
; then
15729 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15730 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15731 echo "local: *; };" >> $output_objdir/$libname.ver~
15732 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15742 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15743 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15746 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15747 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15752 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15756 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15757 *** create shared libraries on Solaris systems. Therefore, libtool
15758 *** is disabling shared libraries support. We urge you to upgrade GNU
15759 *** binutils to release 2.9.1 or newer. Another option is to modify
15760 *** your PATH or compiler configuration so that the native linker is
15761 *** used, and then restart.
15764 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15765 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15766 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15772 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15773 case `$LD -v 2>&1` in
15774 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15778 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15779 *** reliably create shared libraries on SCO systems. Therefore, libtool
15780 *** is disabling shared libraries support. We urge you to upgrade GNU
15781 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15782 *** your PATH or compiler configuration so that the native linker is
15783 *** used, and then restart.
15788 # For security reasons, it is highly recommended that you always
15789 # use absolute paths for naming shared libraries, and exclude the
15790 # DT_RUNPATH tag from executables and libraries. But doing so
15791 # requires that you compile everything twice, which is a pain.
15792 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15793 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15794 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15795 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15804 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15806 hardcode_direct
=yes
15807 hardcode_shlibpath_var
=no
15811 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15812 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15813 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15820 if test "$ld_shlibs" = no
; then
15822 hardcode_libdir_flag_spec
=
15823 export_dynamic_flag_spec
=
15824 whole_archive_flag_spec
=
15827 # PORTME fill in a description of your system's linker (not GNU ld)
15830 allow_undefined_flag
=unsupported
15831 always_export_symbols
=yes
15832 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'
15833 # Note: this linker hardcodes the directories in LIBPATH if there
15834 # are no directories specified by -L.
15835 hardcode_minus_L
=yes
15836 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15837 # Neither direct hardcoding nor static linking is supported with a
15839 hardcode_direct
=unsupported
15844 if test "$host_cpu" = ia64
; then
15845 # On IA64, the linker does run time linking by default, so we don't
15846 # have to do anything special.
15847 aix_use_runtimelinking
=no
15848 exp_sym_flag
='-Bexport'
15851 # If we're using GNU nm, then we don't want the "-C" option.
15852 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15853 # Also, AIX nm treats weak defined symbols like other global
15854 # defined symbols, whereas GNU nm marks them as "W".
15855 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15856 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'
15858 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'
15860 aix_use_runtimelinking
=no
15862 # Test if we are trying to use run time linking or normal
15863 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15864 # need to do runtime linking.
15865 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15866 for ld_flag
in $LDFLAGS; do
15867 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15868 aix_use_runtimelinking
=yes
15875 exp_sym_flag
='-bexport'
15876 no_entry_flag
='-bnoentry'
15879 # When large executables or shared objects are built, AIX ld can
15880 # have problems creating the table of contents. If linking a library
15881 # or program results in "error TOC overflow" add -mminimal-toc to
15882 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15883 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15886 hardcode_direct
=yes
15887 hardcode_direct_absolute
=yes
15888 hardcode_libdir_separator
=':'
15889 link_all_deplibs
=yes
15890 file_list_spec
='${wl}-f,'
15892 if test "$GCC" = yes; then
15893 case $host_os in aix4.
[012]|aix4.
[012].
*)
15894 # We only want to do this on AIX 4.2 and lower, the check
15895 # below for broken collect2 doesn't work under 4.3+
15896 collect2name
=`${CC} -print-prog-name=collect2`
15897 if test -f "$collect2name" &&
15898 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15900 # We have reworked collect2
15903 # We have old collect2
15904 hardcode_direct
=unsupported
15905 # It fails to find uninstalled libraries when the uninstalled
15906 # path is not listed in the libpath. Setting hardcode_minus_L
15907 # to unsupported forces relinking
15908 hardcode_minus_L
=yes
15909 hardcode_libdir_flag_spec
='-L$libdir'
15910 hardcode_libdir_separator
=
15914 shared_flag
='-shared'
15915 if test "$aix_use_runtimelinking" = yes; then
15916 shared_flag
="$shared_flag "'${wl}-G'
15920 if test "$host_cpu" = ia64
; then
15921 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15922 # chokes on -Wl,-G. The following line is correct:
15925 if test "$aix_use_runtimelinking" = yes; then
15926 shared_flag
='${wl}-G'
15928 shared_flag
='${wl}-bM:SRE'
15933 export_dynamic_flag_spec
='${wl}-bexpall'
15934 # It seems that -bexpall does not export symbols beginning with
15935 # underscore (_), so it is better to generate a list of symbols to export.
15936 always_export_symbols
=yes
15937 if test "$aix_use_runtimelinking" = yes; then
15938 # Warning - without using the other runtime loading flags (-brtl),
15939 # -berok will link without error, but may produce a broken library.
15940 allow_undefined_flag
='-berok'
15941 # Determine the default libpath from the value encoded in an
15942 # empty executable.
15943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15944 /* end confdefs.h. */
15954 if ac_fn_c_try_link
"$LINENO"; then :
15956 lt_aix_libpath_sed
='
15957 /Import File Strings/,/^$/ {
15963 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15964 # Check for a 64-bit object if we didn't find anything.
15965 if test -z "$aix_libpath"; then
15966 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15969 rm -f core conftest.err conftest.
$ac_objext \
15970 conftest
$ac_exeext conftest.
$ac_ext
15971 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15973 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15974 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"
15976 if test "$host_cpu" = ia64
; then
15977 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15978 allow_undefined_flag
="-z nodefs"
15979 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"
15981 # Determine the default libpath from the value encoded in an
15982 # empty executable.
15983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15984 /* end confdefs.h. */
15994 if ac_fn_c_try_link
"$LINENO"; then :
15996 lt_aix_libpath_sed
='
15997 /Import File Strings/,/^$/ {
16003 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16004 # Check for a 64-bit object if we didn't find anything.
16005 if test -z "$aix_libpath"; then
16006 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16009 rm -f core conftest.err conftest.
$ac_objext \
16010 conftest
$ac_exeext conftest.
$ac_ext
16011 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16013 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16014 # Warning - without using the other run time loading flags,
16015 # -berok will link without error, but may produce a broken library.
16016 no_undefined_flag
=' ${wl}-bernotok'
16017 allow_undefined_flag
=' ${wl}-berok'
16018 if test "$with_gnu_ld" = yes; then
16019 # We only use this code for GNU lds that support --whole-archive.
16020 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16022 # Exported symbols can be pulled into shared objects from archives
16023 whole_archive_flag_spec
='$convenience'
16025 archive_cmds_need_lc
=yes
16026 # This is similar to how AIX traditionally builds its shared libraries.
16027 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'
16035 # see comment about AmigaOS4 .so support
16036 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16037 archive_expsym_cmds
=''
16040 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)'
16041 hardcode_libdir_flag_spec
='-L$libdir'
16042 hardcode_minus_L
=yes
16048 export_dynamic_flag_spec
=-rdynamic
16051 cygwin
* | mingw
* | pw32
* | cegcc
*)
16052 # When not using gcc, we currently assume that we are using
16053 # Microsoft Visual C++.
16054 # hardcode_libdir_flag_spec is actually meaningless, as there is
16055 # no search path for DLLs.
16056 hardcode_libdir_flag_spec
=' '
16057 allow_undefined_flag
=unsupported
16058 # Tell ltmain to make .lib files, not .a files.
16060 # Tell ltmain to make .dll files, not .so files.
16062 # FIXME: Setting linknames here is a bad hack.
16063 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16064 # The linker will automatically build a .lib file if we build a DLL.
16065 old_archive_from_new_cmds
='true'
16066 # FIXME: Should let the user specify the lib program.
16067 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16068 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16069 enable_shared_with_static_runtimes
=yes
16072 darwin
* | rhapsody
*)
16075 archive_cmds_need_lc
=no
16077 hardcode_automatic
=yes
16078 hardcode_shlibpath_var
=unsupported
16079 if test "$lt_cv_ld_force_load" = "yes"; then
16080 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\"`'
16082 whole_archive_flag_spec
=''
16084 link_all_deplibs
=yes
16085 allow_undefined_flag
="$_lt_dar_allow_undefined"
16086 case $cc_basename in
16087 ifort
*) _lt_dar_can_shared
=yes ;;
16088 *) _lt_dar_can_shared
=$GCC ;;
16090 if test "$_lt_dar_can_shared" = "yes"; then
16091 output_verbose_link_cmd
=func_echo_all
16092 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16093 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16094 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}"
16095 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}"
16104 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16105 hardcode_libdir_flag_spec
='-L$libdir'
16106 hardcode_shlibpath_var
=no
16109 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16110 # support. Future versions do this automatically, but an explicit c++rt0.o
16111 # does not break anything, and helps significantly (at the cost of a little
16114 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16115 hardcode_libdir_flag_spec
='-R$libdir'
16116 hardcode_direct
=yes
16117 hardcode_shlibpath_var
=no
16120 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16122 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16123 hardcode_direct
=yes
16124 hardcode_minus_L
=yes
16125 hardcode_shlibpath_var
=no
16128 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16129 freebsd
* | dragonfly
*)
16130 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16131 hardcode_libdir_flag_spec
='-R$libdir'
16132 hardcode_direct
=yes
16133 hardcode_shlibpath_var
=no
16137 if test "$GCC" = yes; then
16138 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'
16140 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'
16142 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16143 hardcode_libdir_separator
=:
16144 hardcode_direct
=yes
16146 # hardcode_minus_L: Not really in the search PATH,
16147 # but as the default location of the library.
16148 hardcode_minus_L
=yes
16149 export_dynamic_flag_spec
='${wl}-E'
16153 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16154 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16156 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16158 if test "$with_gnu_ld" = no
; then
16159 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16160 hardcode_libdir_flag_spec_ld
='+b $libdir'
16161 hardcode_libdir_separator
=:
16162 hardcode_direct
=yes
16163 hardcode_direct_absolute
=yes
16164 export_dynamic_flag_spec
='${wl}-E'
16165 # hardcode_minus_L: Not really in the search PATH,
16166 # but as the default location of the library.
16167 hardcode_minus_L
=yes
16172 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16175 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16178 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16181 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16187 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16190 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16194 # Older versions of the 11.00 compiler do not understand -b yet
16195 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16197 $as_echo_n "checking if $CC understands -b... " >&6; }
16198 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16199 $as_echo_n "(cached) " >&6
16201 lt_cv_prog_compiler__b
=no
16202 save_LDFLAGS
="$LDFLAGS"
16203 LDFLAGS
="$LDFLAGS -b"
16204 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16205 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16206 # The linker can only warn and ignore the option if not recognized
16207 # So say no if there are warnings
16208 if test -s conftest.err
; then
16209 # Append any errors to the config.log.
16210 cat conftest.err
1>&5
16211 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16212 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16213 if diff conftest.exp conftest.er2
>/dev
/null
; then
16214 lt_cv_prog_compiler__b
=yes
16217 lt_cv_prog_compiler__b
=yes
16221 LDFLAGS
="$save_LDFLAGS"
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16225 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16227 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16228 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16230 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16236 if test "$with_gnu_ld" = no
; then
16237 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16238 hardcode_libdir_separator
=:
16243 hardcode_shlibpath_var
=no
16246 hardcode_direct
=yes
16247 hardcode_direct_absolute
=yes
16248 export_dynamic_flag_spec
='${wl}-E'
16250 # hardcode_minus_L: Not really in the search PATH,
16251 # but as the default location of the library.
16252 hardcode_minus_L
=yes
16258 irix5
* | irix6
* | nonstopux
*)
16259 if test "$GCC" = yes; then
16260 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'
16261 # Try to use the -exported_symbol ld option, if it does not
16262 # work, assume that -exports_file does not work either and
16263 # implicitly export all symbols.
16264 save_LDFLAGS
="$LDFLAGS"
16265 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h. */
16270 if ac_fn_c_try_link
"$LINENO"; then :
16271 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'
16274 rm -f core conftest.err conftest.
$ac_objext \
16275 conftest
$ac_exeext conftest.
$ac_ext
16276 LDFLAGS
="$save_LDFLAGS"
16278 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'
16279 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'
16281 archive_cmds_need_lc
='no'
16282 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16283 hardcode_libdir_separator
=:
16285 link_all_deplibs
=yes
16289 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16290 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16292 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16294 hardcode_libdir_flag_spec
='-R$libdir'
16295 hardcode_direct
=yes
16296 hardcode_shlibpath_var
=no
16300 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16301 hardcode_direct
=yes
16302 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16303 hardcode_libdir_separator
=:
16304 hardcode_shlibpath_var
=no
16311 if test -f /usr
/libexec
/ld.so
; then
16312 hardcode_direct
=yes
16313 hardcode_shlibpath_var
=no
16314 hardcode_direct_absolute
=yes
16315 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16316 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16317 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16318 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16319 export_dynamic_flag_spec
='${wl}-E'
16322 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16323 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16324 hardcode_libdir_flag_spec
='-R$libdir'
16327 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16328 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16338 hardcode_libdir_flag_spec
='-L$libdir'
16339 hardcode_minus_L
=yes
16340 allow_undefined_flag
=unsupported
16341 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'
16342 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16346 if test "$GCC" = yes; then
16347 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16348 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'
16350 allow_undefined_flag
=' -expect_unresolved \*'
16351 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'
16353 archive_cmds_need_lc
='no'
16354 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16355 hardcode_libdir_separator
=:
16358 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16359 if test "$GCC" = yes; then
16360 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16361 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'
16362 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16364 allow_undefined_flag
=' -expect_unresolved \*'
16365 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'
16366 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~
16367 $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'
16369 # Both c and cxx compiler support -rpath directly
16370 hardcode_libdir_flag_spec
='-rpath $libdir'
16372 archive_cmds_need_lc
='no'
16373 hardcode_libdir_separator
=:
16377 no_undefined_flag
=' -z defs'
16378 if test "$GCC" = yes; then
16380 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16381 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16382 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16384 case `$CC -V 2>&1` in
16387 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16388 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16389 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16393 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16394 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16395 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16399 hardcode_libdir_flag_spec
='-R$libdir'
16400 hardcode_shlibpath_var
=no
16402 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16404 # The compiler driver will combine and reorder linker options,
16405 # but understands `-z linker_flag'. GCC discards it without `$wl',
16406 # but is careful enough not to reorder.
16407 # Supported since Solaris 2.6 (maybe 2.5.1?)
16408 if test "$GCC" = yes; then
16409 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16411 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16415 link_all_deplibs
=yes
16419 if test "x$host_vendor" = xsequent
; then
16420 # Use $CC to link under sequent, because it throws in some extra .o
16421 # files that make .init and .fini sections work.
16422 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16424 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16426 hardcode_libdir_flag_spec
='-L$libdir'
16427 hardcode_direct
=yes
16428 hardcode_minus_L
=yes
16429 hardcode_shlibpath_var
=no
16433 case $host_vendor in
16435 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16436 hardcode_direct
=yes # is this really true???
16439 ## LD is ld it makes a PLAMLIB
16440 ## CC just makes a GrossModule.
16441 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16442 reload_cmds
='$CC -r -o $output$reload_objs'
16446 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16447 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16450 runpath_var
='LD_RUN_PATH'
16451 hardcode_shlibpath_var
=no
16455 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16456 hardcode_shlibpath_var
=no
16457 export_dynamic_flag_spec
='-Bexport'
16461 if test -d /usr
/nec
; then
16462 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16463 hardcode_shlibpath_var
=no
16464 runpath_var
=LD_RUN_PATH
16465 hardcode_runpath_var
=yes
16470 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16471 no_undefined_flag
='${wl}-z,text'
16472 archive_cmds_need_lc
=no
16473 hardcode_shlibpath_var
=no
16474 runpath_var
='LD_RUN_PATH'
16476 if test "$GCC" = yes; then
16477 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16478 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16480 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16481 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16485 sysv5
* | sco3.2v5
* | sco5v6
*)
16486 # Note: We can NOT use -z defs as we might desire, because we do not
16487 # link with -lc, and that would cause any symbols used from libc to
16488 # always be unresolved, which means just about no library would
16489 # ever link correctly. If we're not using GNU ld we use -z text
16490 # though, which does catch some bad symbols but isn't as heavy-handed
16492 no_undefined_flag
='${wl}-z,text'
16493 allow_undefined_flag
='${wl}-z,nodefs'
16494 archive_cmds_need_lc
=no
16495 hardcode_shlibpath_var
=no
16496 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16497 hardcode_libdir_separator
=':'
16498 link_all_deplibs
=yes
16499 export_dynamic_flag_spec
='${wl}-Bexport'
16500 runpath_var
='LD_RUN_PATH'
16502 if test "$GCC" = yes; then
16503 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16504 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16506 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16507 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16512 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16513 hardcode_libdir_flag_spec
='-L$libdir'
16514 hardcode_shlibpath_var
=no
16522 if test x
$host_vendor = xsni
; then
16524 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16525 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16532 $as_echo "$ld_shlibs" >&6; }
16533 test "$ld_shlibs" = no
&& can_build_shared
=no
16535 with_gnu_ld
=$with_gnu_ld
16552 # Do we need to explicitly link libc?
16554 case "x$archive_cmds_need_lc" in
16556 # Assume -lc should be added
16557 archive_cmds_need_lc
=yes
16559 if test "$enable_shared" = yes && test "$GCC" = yes; then
16560 case $archive_cmds in
16562 # FIXME: we may have to deal with multi-command sequences.
16565 # Test whether the compiler implicitly links with -lc since on some
16566 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16567 # to ld, don't add -lc before -lgcc.
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16569 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16570 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16571 $as_echo_n "(cached) " >&6
16574 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16577 (eval $ac_compile) 2>&5
16579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16580 test $ac_status = 0; } 2>conftest.err
; then
16583 libobjs
=conftest.
$ac_objext
16585 wl
=$lt_prog_compiler_wl
16586 pic_flag
=$lt_prog_compiler_pic
16592 lt_save_allow_undefined_flag
=$allow_undefined_flag
16593 allow_undefined_flag
=
16594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16595 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16598 test $ac_status = 0; }
16600 lt_cv_archive_cmds_need_lc
=no
16602 lt_cv_archive_cmds_need_lc
=yes
16604 allow_undefined_flag
=$lt_save_allow_undefined_flag
16606 cat conftest.err
1>&5
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16612 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16613 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16777 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16779 if test "$GCC" = yes; then
16781 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16782 *) lt_awk_arg
="/^libraries:/" ;;
16785 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16786 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16788 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16789 case $lt_search_path_spec in
16791 # if the path contains ";" then we assume it to be the separator
16792 # otherwise default to the standard path separator (i.e. ":") - it is
16793 # assumed that no part of a normal pathname contains ";" but that should
16794 # okay in the real world where ";" in dirpaths is itself problematic.
16795 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16798 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16801 # Ok, now we have the path, separated by spaces, we can step through it
16802 # and add multilib dir if necessary.
16803 lt_tmp_lt_search_path_spec
=
16804 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16805 for lt_sys_path
in $lt_search_path_spec; do
16806 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16807 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16809 test -d "$lt_sys_path" && \
16810 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16813 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16814 BEGIN {RS=" "; FS="/|\n";} {
16817 for (lt_i = NF; lt_i > 0; lt_i--) {
16818 if ($lt_i != "" && $lt_i != ".") {
16819 if ($lt_i == "..") {
16822 if (lt_count == 0) {
16823 lt_foo="/" $lt_i lt_foo;
16830 if (lt_foo != "") { lt_freq[lt_foo]++; }
16831 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16833 # AWK program above erroneously prepends '/' to C:/dos/paths
16836 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16837 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16839 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16841 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16843 library_names_spec
=
16844 libname_spec
='lib$name'
16848 postuninstall_cmds
=
16852 shlibpath_overrides_runpath
=unknown
16854 dynamic_linker
="$host_os ld.so"
16855 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16856 need_lib_prefix
=unknown
16857 hardcode_into_libs
=no
16859 # when you set need_version to no, make sure it does not cause -set_version
16860 # flags to be left without arguments
16861 need_version
=unknown
16866 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16867 shlibpath_var
=LIBPATH
16869 # AIX 3 has no versioning support, so we append a major version to the name.
16870 soname_spec
='${libname}${release}${shared_ext}$major'
16877 hardcode_into_libs
=yes
16878 if test "$host_cpu" = ia64
; then
16879 # AIX 5 supports IA64
16880 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16881 shlibpath_var
=LD_LIBRARY_PATH
16883 # With GCC up to 2.95.x, collect2 would create an import file
16884 # for dependence libraries. The import file would start with
16885 # the line `#! .'. This would cause the generated library to
16886 # depend on `.', always an invalid library. This was fixed in
16887 # development snapshots of GCC prior to 3.0.
16889 aix4 | aix4.
[01] | aix4.
[01].
*)
16890 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16892 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16895 can_build_shared
=no
16899 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16900 # soname into executable. Probably we can add versioning support to
16901 # collect2, so additional links can be useful in future.
16902 if test "$aix_use_runtimelinking" = yes; then
16903 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16904 # instead of lib<name>.a to let people know that these are not
16905 # typical AIX shared libraries.
16906 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908 # We preserve .a as extension for shared libraries through AIX4.2
16909 # and later when we are not doing run time linking.
16910 library_names_spec
='${libname}${release}.a $libname.a'
16911 soname_spec
='${libname}${release}${shared_ext}$major'
16913 shlibpath_var
=LIBPATH
16920 # Since July 2007 AmigaOS4 officially supports .so libraries.
16921 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16922 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16925 library_names_spec
='$libname.ixlibrary $libname.a'
16926 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16927 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'
16933 library_names_spec
='${libname}${shared_ext}'
16934 dynamic_linker
="$host_os ld.so"
16935 shlibpath_var
=LIBRARY_PATH
16941 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16942 soname_spec
='${libname}${release}${shared_ext}$major'
16943 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16944 shlibpath_var
=LD_LIBRARY_PATH
16945 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16946 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16947 # the default ld.so.conf also contains /usr/contrib/lib and
16948 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16949 # libtool to hard-code these into programs
16952 cygwin
* | mingw
* | pw32
* | cegcc
*)
16953 version_type
=windows
16958 case $GCC,$host_os in
16959 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16960 library_names_spec
='$libname.dll.a'
16961 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16962 postinstall_cmds
='base_file=`basename \${file}`~
16963 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16964 dldir=$destdir/`dirname \$dlpath`~
16965 test -d \$dldir || mkdir -p \$dldir~
16966 $install_prog $dir/$dlname \$dldir/$dlname~
16967 chmod a+x \$dldir/$dlname~
16968 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16969 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16971 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16972 dlpath=$dir/\$dldll~
16974 shlibpath_overrides_runpath
=yes
16978 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16979 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16981 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16984 # MinGW DLLs use traditional 'lib' prefix
16985 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16988 # pw32 DLLs use 'pw' prefix rather than 'lib'
16989 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16995 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16998 dynamic_linker
='Win32 ld.exe'
16999 # FIXME: first we should search . and the directory the executable is in
17003 darwin
* | rhapsody
*)
17004 dynamic_linker
="$host_os dyld"
17005 version_type
=darwin
17008 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17009 soname_spec
='${libname}${release}${major}$shared_ext'
17010 shlibpath_overrides_runpath
=yes
17011 shlibpath_var
=DYLD_LIBRARY_PATH
17012 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17014 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17015 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17022 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17023 soname_spec
='${libname}${release}${shared_ext}$major'
17024 shlibpath_var
=LD_LIBRARY_PATH
17027 freebsd
* | dragonfly
*)
17028 # DragonFly does not have aout. When/if they implement a new
17029 # versioning mechanism, adjust this.
17030 if test -x /usr
/bin
/objformat
; then
17031 objformat
=`/usr/bin/objformat`
17034 freebsd
[23].
*) objformat
=aout
;;
17035 *) objformat
=elf
;;
17038 version_type
=freebsd-
$objformat
17039 case $version_type in
17041 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17046 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17050 shlibpath_var
=LD_LIBRARY_PATH
17053 shlibpath_overrides_runpath
=yes
17055 freebsd3.
[01]* | freebsdelf3.
[01]*)
17056 shlibpath_overrides_runpath
=yes
17057 hardcode_into_libs
=yes
17059 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17060 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17061 shlibpath_overrides_runpath
=no
17062 hardcode_into_libs
=yes
17064 *) # from 4.6 on, and DragonFly
17065 shlibpath_overrides_runpath
=yes
17066 hardcode_into_libs
=yes
17075 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17076 soname_spec
='${libname}${release}${shared_ext}$major'
17077 shlibpath_var
=LD_LIBRARY_PATH
17078 hardcode_into_libs
=yes
17085 dynamic_linker
="$host_os runtime_loader"
17086 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17087 soname_spec
='${libname}${release}${shared_ext}$major'
17088 shlibpath_var
=LIBRARY_PATH
17089 shlibpath_overrides_runpath
=yes
17090 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17091 hardcode_into_libs
=yes
17094 hpux9
* | hpux10
* | hpux11
*)
17095 # Give a soname corresponding to the major version so that dld.sl refuses to
17096 # link against other versions.
17103 hardcode_into_libs
=yes
17104 dynamic_linker
="$host_os dld.so"
17105 shlibpath_var
=LD_LIBRARY_PATH
17106 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17107 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17108 soname_spec
='${libname}${release}${shared_ext}$major'
17109 if test "X$HPUX_IA64_MODE" = X32
; then
17110 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17112 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17114 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17118 hardcode_into_libs
=yes
17119 dynamic_linker
="$host_os dld.sl"
17120 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17121 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17122 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17123 soname_spec
='${libname}${release}${shared_ext}$major'
17124 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17125 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17129 dynamic_linker
="$host_os dld.sl"
17130 shlibpath_var
=SHLIB_PATH
17131 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17132 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17133 soname_spec
='${libname}${release}${shared_ext}$major'
17136 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17137 postinstall_cmds
='chmod 555 $lib'
17138 # or fails outright, so override atomically:
17139 install_override_mode
=555
17146 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17147 soname_spec
='${libname}${release}${shared_ext}$major'
17148 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17149 shlibpath_var
=LD_LIBRARY_PATH
17150 shlibpath_overrides_runpath
=no
17151 hardcode_into_libs
=yes
17154 irix5
* | irix6
* | nonstopux
*)
17156 nonstopux
*) version_type
=nonstopux
;;
17158 if test "$lt_cv_prog_gnu_ld" = yes; then
17166 soname_spec
='${libname}${release}${shared_ext}$major'
17167 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17169 irix5
* | nonstopux
*)
17170 libsuff
= shlibsuff
=
17173 case $LD in # libtool.m4 will add one of these switches to LD
17174 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17175 libsuff
= shlibsuff
= libmagic
=32-bit;;
17176 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17177 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17178 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17179 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17180 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17184 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17185 shlibpath_overrides_runpath
=no
17186 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17187 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17188 hardcode_into_libs
=yes
17191 # No shared lib support for Linux oldld, aout, or coff.
17192 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17196 # This must be Linux ELF.
17197 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17201 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17202 soname_spec
='${libname}${release}${shared_ext}$major'
17203 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17204 shlibpath_var
=LD_LIBRARY_PATH
17205 shlibpath_overrides_runpath
=no
17207 # Some binutils ld are patched to set DT_RUNPATH
17208 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17209 $as_echo_n "(cached) " >&6
17211 lt_cv_shlibpath_overrides_runpath
=no
17212 save_LDFLAGS
=$LDFLAGS
17213 save_libdir
=$libdir
17214 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17215 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17217 /* end confdefs.h. */
17227 if ac_fn_c_try_link
"$LINENO"; then :
17228 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17229 lt_cv_shlibpath_overrides_runpath
=yes
17232 rm -f core conftest.err conftest.
$ac_objext \
17233 conftest
$ac_exeext conftest.
$ac_ext
17234 LDFLAGS
=$save_LDFLAGS
17235 libdir
=$save_libdir
17239 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17241 # This implies no fast_install, which is unacceptable.
17242 # Some rework will be needed to allow for fast_install
17243 # before this can be enabled.
17244 hardcode_into_libs
=yes
17246 # Append ld.so.conf contents to the search path
17247 if test -f /etc
/ld.so.conf
; then
17248 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' ' '`
17249 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17252 # We used to test for /lib/ld.so.1 and disable shared libraries on
17253 # powerpc, because MkLinux only supported shared libraries with the
17254 # GNU dynamic linker. Since this was broken with cross compilers,
17255 # most powerpc-linux boxes support dynamic linking these days and
17256 # people can always --disable-shared, the test was removed, and we
17257 # assume the GNU/Linux dynamic linker is in use.
17258 dynamic_linker
='GNU/Linux ld.so'
17265 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17266 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17267 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17268 dynamic_linker
='NetBSD (a.out) ld.so'
17270 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17271 soname_spec
='${libname}${release}${shared_ext}$major'
17272 dynamic_linker
='NetBSD ld.elf_so'
17274 shlibpath_var
=LD_LIBRARY_PATH
17275 shlibpath_overrides_runpath
=yes
17276 hardcode_into_libs
=yes
17281 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17282 shlibpath_var
=LD_LIBRARY_PATH
17283 shlibpath_overrides_runpath
=yes
17290 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17291 soname_spec
='${libname}${release}${shared_ext}$major'
17292 shlibpath_var
=LD_LIBRARY_PATH
17293 shlibpath_overrides_runpath
=no
17294 hardcode_into_libs
=yes
17295 dynamic_linker
='ldqnx.so'
17300 sys_lib_dlsearch_path_spec
="/usr/lib"
17302 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17304 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17305 *) need_version
=no
;;
17307 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17308 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17309 shlibpath_var
=LD_LIBRARY_PATH
17310 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17312 openbsd2.
[89] | openbsd2.
[89].
*)
17313 shlibpath_overrides_runpath
=no
17316 shlibpath_overrides_runpath
=yes
17320 shlibpath_overrides_runpath
=yes
17325 libname_spec
='$name'
17328 library_names_spec
='$libname${shared_ext} $libname.a'
17329 dynamic_linker
='OS/2 ld.exe'
17330 shlibpath_var
=LIBPATH
17333 osf3
* | osf4
* | osf5
*)
17337 soname_spec
='${libname}${release}${shared_ext}$major'
17338 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17339 shlibpath_var
=LD_LIBRARY_PATH
17340 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17341 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17352 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17353 soname_spec
='${libname}${release}${shared_ext}$major'
17354 shlibpath_var
=LD_LIBRARY_PATH
17355 shlibpath_overrides_runpath
=yes
17356 hardcode_into_libs
=yes
17357 # ldd complains unless libraries are executable
17358 postinstall_cmds
='chmod +x $lib'
17363 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17364 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17365 shlibpath_var
=LD_LIBRARY_PATH
17366 shlibpath_overrides_runpath
=yes
17367 if test "$with_gnu_ld" = yes; then
17375 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17376 soname_spec
='${libname}${release}${shared_ext}$major'
17377 shlibpath_var
=LD_LIBRARY_PATH
17378 case $host_vendor in
17380 shlibpath_overrides_runpath
=no
17382 runpath_var
=LD_RUN_PATH
17390 shlibpath_overrides_runpath
=no
17391 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17397 if test -d /usr
/nec
;then
17399 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17400 soname_spec
='$libname${shared_ext}.$major'
17401 shlibpath_var
=LD_LIBRARY_PATH
17405 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17406 version_type
=freebsd-elf
17409 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17410 soname_spec
='${libname}${release}${shared_ext}$major'
17411 shlibpath_var
=LD_LIBRARY_PATH
17412 shlibpath_overrides_runpath
=yes
17413 hardcode_into_libs
=yes
17414 if test "$with_gnu_ld" = yes; then
17415 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17417 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17420 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17424 sys_lib_dlsearch_path_spec
='/usr/lib'
17428 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17432 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17433 shlibpath_var
=LD_LIBRARY_PATH
17434 shlibpath_overrides_runpath
=no
17435 hardcode_into_libs
=yes
17440 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441 soname_spec
='${libname}${release}${shared_ext}$major'
17442 shlibpath_var
=LD_LIBRARY_PATH
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17450 $as_echo "$dynamic_linker" >&6; }
17451 test "$dynamic_linker" = no
&& can_build_shared
=no
17453 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17454 if test "$GCC" = yes; then
17455 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17458 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17459 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17461 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17462 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17557 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17559 if test -n "$hardcode_libdir_flag_spec" ||
17560 test -n "$runpath_var" ||
17561 test "X$hardcode_automatic" = "Xyes" ; then
17563 # We can hardcode non-existent directories.
17564 if test "$hardcode_direct" != no
&&
17565 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17566 # have to relink, otherwise we might link with an installed library
17567 # when we should be linking with a yet-to-be-installed one
17568 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17569 test "$hardcode_minus_L" != no
; then
17570 # Linking always hardcodes the temporary library directory.
17571 hardcode_action
=relink
17573 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17574 hardcode_action
=immediate
17577 # We cannot hardcode anything, or else we can only hardcode existing
17579 hardcode_action
=unsupported
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17582 $as_echo "$hardcode_action" >&6; }
17584 if test "$hardcode_action" = relink ||
17585 test "$inherit_rpath" = yes; then
17586 # Fast installation is not supported
17587 enable_fast_install
=no
17588 elif test "$shlibpath_overrides_runpath" = yes ||
17589 test "$enable_shared" = no
; then
17590 # Fast installation is not necessary
17591 enable_fast_install
=needless
17599 if test "x$enable_dlopen" != xyes
; then
17600 enable_dlopen
=unknown
17601 enable_dlopen_self
=unknown
17602 enable_dlopen_self_static
=unknown
17609 lt_cv_dlopen
="load_add_on"
17611 lt_cv_dlopen_self
=yes
17614 mingw
* | pw32
* | cegcc
*)
17615 lt_cv_dlopen
="LoadLibrary"
17620 lt_cv_dlopen
="dlopen"
17625 # if libdl is installed we need to link against it
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17627 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17629 $as_echo_n "(cached) " >&6
17631 ac_check_lib_save_LIBS
=$LIBS
17633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17634 /* end confdefs.h. */
17636 /* Override any GCC internal prototype to avoid an error.
17637 Use char because int might match the return type of a GCC
17638 builtin and then its argument prototype would still apply. */
17651 if ac_fn_c_try_link
"$LINENO"; then :
17652 ac_cv_lib_dl_dlopen
=yes
17654 ac_cv_lib_dl_dlopen
=no
17656 rm -f core conftest.err conftest.
$ac_objext \
17657 conftest
$ac_exeext conftest.
$ac_ext
17658 LIBS
=$ac_check_lib_save_LIBS
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17661 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17662 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17663 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17666 lt_cv_dlopen
="dyld"
17668 lt_cv_dlopen_self
=yes
17675 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17676 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17677 lt_cv_dlopen
="shl_load"
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17680 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17681 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17682 $as_echo_n "(cached) " >&6
17684 ac_check_lib_save_LIBS
=$LIBS
17686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17687 /* end confdefs.h. */
17689 /* Override any GCC internal prototype to avoid an error.
17690 Use char because int might match the return type of a GCC
17691 builtin and then its argument prototype would still apply. */
17699 return shl_load ();
17704 if ac_fn_c_try_link
"$LINENO"; then :
17705 ac_cv_lib_dld_shl_load
=yes
17707 ac_cv_lib_dld_shl_load
=no
17709 rm -f core conftest.err conftest.
$ac_objext \
17710 conftest
$ac_exeext conftest.
$ac_ext
17711 LIBS
=$ac_check_lib_save_LIBS
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17714 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17715 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17716 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17718 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17719 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17720 lt_cv_dlopen
="dlopen"
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17723 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17724 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17725 $as_echo_n "(cached) " >&6
17727 ac_check_lib_save_LIBS
=$LIBS
17729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17730 /* end confdefs.h. */
17732 /* Override any GCC internal prototype to avoid an error.
17733 Use char because int might match the return type of a GCC
17734 builtin and then its argument prototype would still apply. */
17747 if ac_fn_c_try_link
"$LINENO"; then :
17748 ac_cv_lib_dl_dlopen
=yes
17750 ac_cv_lib_dl_dlopen
=no
17752 rm -f core conftest.err conftest.
$ac_objext \
17753 conftest
$ac_exeext conftest.
$ac_ext
17754 LIBS
=$ac_check_lib_save_LIBS
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17757 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17758 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17759 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17762 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17763 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17764 $as_echo_n "(cached) " >&6
17766 ac_check_lib_save_LIBS
=$LIBS
17767 LIBS
="-lsvld $LIBS"
17768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17769 /* end confdefs.h. */
17771 /* Override any GCC internal prototype to avoid an error.
17772 Use char because int might match the return type of a GCC
17773 builtin and then its argument prototype would still apply. */
17786 if ac_fn_c_try_link
"$LINENO"; then :
17787 ac_cv_lib_svld_dlopen
=yes
17789 ac_cv_lib_svld_dlopen
=no
17791 rm -f core conftest.err conftest.
$ac_objext \
17792 conftest
$ac_exeext conftest.
$ac_ext
17793 LIBS
=$ac_check_lib_save_LIBS
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17796 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17797 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17798 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17801 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17802 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17803 $as_echo_n "(cached) " >&6
17805 ac_check_lib_save_LIBS
=$LIBS
17807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17808 /* end confdefs.h. */
17810 /* Override any GCC internal prototype to avoid an error.
17811 Use char because int might match the return type of a GCC
17812 builtin and then its argument prototype would still apply. */
17820 return dld_link ();
17825 if ac_fn_c_try_link
"$LINENO"; then :
17826 ac_cv_lib_dld_dld_link
=yes
17828 ac_cv_lib_dld_dld_link
=no
17830 rm -f core conftest.err conftest.
$ac_objext \
17831 conftest
$ac_exeext conftest.
$ac_ext
17832 LIBS
=$ac_check_lib_save_LIBS
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17835 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17836 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17837 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17858 if test "x$lt_cv_dlopen" != xno
; then
17864 case $lt_cv_dlopen in
17866 save_CPPFLAGS
="$CPPFLAGS"
17867 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17869 save_LDFLAGS
="$LDFLAGS"
17870 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17873 LIBS
="$lt_cv_dlopen_libs $LIBS"
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17876 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17877 if test "${lt_cv_dlopen_self+set}" = set; then :
17878 $as_echo_n "(cached) " >&6
17880 if test "$cross_compiling" = yes; then :
17881 lt_cv_dlopen_self
=cross
17883 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17884 lt_status
=$lt_dlunknown
17885 cat > conftest.
$ac_ext <<_LT_EOF
17886 #line 17881 "configure"
17887 #include "confdefs.h"
17896 # define LT_DLGLOBAL RTLD_GLOBAL
17899 # define LT_DLGLOBAL DL_GLOBAL
17901 # define LT_DLGLOBAL 0
17905 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17906 find out it does not work in some platform. */
17907 #ifndef LT_DLLAZY_OR_NOW
17909 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17912 # define LT_DLLAZY_OR_NOW DL_LAZY
17915 # define LT_DLLAZY_OR_NOW RTLD_NOW
17918 # define LT_DLLAZY_OR_NOW DL_NOW
17920 # define LT_DLLAZY_OR_NOW 0
17927 /* When -fvisbility=hidden is used, assume the code has been annotated
17928 correspondingly for the symbols needed. */
17929 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17930 void fnord () __attribute__((visibility("default")));
17933 void fnord () { int i=42; }
17936 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17937 int status = $lt_dlunknown;
17941 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17944 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17945 else puts (dlerror ());
17947 /* dlclose (self); */
17955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17956 (eval $ac_link) 2>&5
17958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17959 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17960 (.
/conftest
; exit; ) >&5 2>/dev
/null
17962 case x
$lt_status in
17963 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17964 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17965 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17968 # compilation failed
17969 lt_cv_dlopen_self
=no
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17977 $as_echo "$lt_cv_dlopen_self" >&6; }
17979 if test "x$lt_cv_dlopen_self" = xyes
; then
17980 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17982 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17983 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17984 $as_echo_n "(cached) " >&6
17986 if test "$cross_compiling" = yes; then :
17987 lt_cv_dlopen_self_static
=cross
17989 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17990 lt_status
=$lt_dlunknown
17991 cat > conftest.
$ac_ext <<_LT_EOF
17992 #line 17987 "configure"
17993 #include "confdefs.h"
18002 # define LT_DLGLOBAL RTLD_GLOBAL
18005 # define LT_DLGLOBAL DL_GLOBAL
18007 # define LT_DLGLOBAL 0
18011 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18012 find out it does not work in some platform. */
18013 #ifndef LT_DLLAZY_OR_NOW
18015 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18018 # define LT_DLLAZY_OR_NOW DL_LAZY
18021 # define LT_DLLAZY_OR_NOW RTLD_NOW
18024 # define LT_DLLAZY_OR_NOW DL_NOW
18026 # define LT_DLLAZY_OR_NOW 0
18033 /* When -fvisbility=hidden is used, assume the code has been annotated
18034 correspondingly for the symbols needed. */
18035 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18036 void fnord () __attribute__((visibility("default")));
18039 void fnord () { int i=42; }
18042 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18043 int status = $lt_dlunknown;
18047 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18050 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18051 else puts (dlerror ());
18053 /* dlclose (self); */
18061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18062 (eval $ac_link) 2>&5
18064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18065 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18066 (.
/conftest
; exit; ) >&5 2>/dev
/null
18068 case x
$lt_status in
18069 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18070 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18071 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18074 # compilation failed
18075 lt_cv_dlopen_self_static
=no
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18083 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18086 CPPFLAGS
="$save_CPPFLAGS"
18087 LDFLAGS
="$save_LDFLAGS"
18092 case $lt_cv_dlopen_self in
18093 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18094 *) enable_dlopen_self
=unknown
;;
18097 case $lt_cv_dlopen_self_static in
18098 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18099 *) enable_dlopen_self_static
=unknown
;;
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18122 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18123 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18124 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18125 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18127 $as_echo "yes" >&6; }
18129 # FIXME - insert some real tests, host_os isn't really good enough
18132 if test -n "$STRIP" ; then
18133 striplib
="$STRIP -x"
18134 old_striplib
="$STRIP -S"
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18136 $as_echo "yes" >&6; }
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18139 $as_echo "no" >&6; }
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18144 $as_echo "no" >&6; }
18160 # Report which library types will actually be built
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18162 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18164 $as_echo "$can_build_shared" >&6; }
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18167 $as_echo_n "checking whether to build shared libraries... " >&6; }
18168 test "$can_build_shared" = "no" && enable_shared
=no
18170 # On AIX, shared libraries and static libraries use the same namespace, and
18171 # are all built from PIC.
18174 test "$enable_shared" = yes && enable_static
=no
18175 if test -n "$RANLIB"; then
18176 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18177 postinstall_cmds
='$RANLIB $lib'
18182 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18183 test "$enable_shared" = yes && enable_static
=no
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18188 $as_echo "$enable_shared" >&6; }
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18191 $as_echo_n "checking whether to build static libraries... " >&6; }
18192 # Make sure either enable_shared or enable_static is yes.
18193 test "$enable_shared" = yes || enable_static
=yes
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18195 $as_echo "$enable_static" >&6; }
18202 ac_cpp
='$CPP $CPPFLAGS'
18203 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18204 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18205 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18209 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18210 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18211 (test "X$CXX" != "Xg++"))) ; then
18213 ac_cpp
='$CXXCPP $CPPFLAGS'
18214 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18215 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18216 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18218 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18219 if test -z "$CXXCPP"; then
18220 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18221 $as_echo_n "(cached) " >&6
18223 # Double quotes because CXXCPP needs to be expanded
18224 for CXXCPP
in "$CXX -E" "/lib/cpp"
18226 ac_preproc_ok
=false
18227 for ac_cxx_preproc_warn_flag
in '' yes
18229 # Use a header file that comes with gcc, so configuring glibc
18230 # with a fresh cross-compiler works.
18231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18232 # <limits.h> exists even on freestanding compilers.
18233 # On the NeXT, cc -E runs the code through the compiler's parser,
18234 # not just through cpp. "Syntax error" is here to catch this case.
18235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18236 /* end confdefs.h. */
18238 # include <limits.h>
18240 # include <assert.h>
18244 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18247 # Broken: fails on valid input.
18250 rm -f conftest.err conftest.
$ac_ext
18252 # OK, works on sane cases. Now check whether nonexistent headers
18253 # can be detected and how.
18254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18255 /* end confdefs.h. */
18256 #include <ac_nonexistent.h>
18258 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18259 # Broken: success on invalid input.
18262 # Passes both tests.
18266 rm -f conftest.err conftest.
$ac_ext
18269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18270 rm -f conftest.err conftest.
$ac_ext
18271 if $ac_preproc_ok; then :
18276 ac_cv_prog_CXXCPP
=$CXXCPP
18279 CXXCPP
=$ac_cv_prog_CXXCPP
18281 ac_cv_prog_CXXCPP
=$CXXCPP
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18284 $as_echo "$CXXCPP" >&6; }
18285 ac_preproc_ok
=false
18286 for ac_cxx_preproc_warn_flag
in '' yes
18288 # Use a header file that comes with gcc, so configuring glibc
18289 # with a fresh cross-compiler works.
18290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18291 # <limits.h> exists even on freestanding compilers.
18292 # On the NeXT, cc -E runs the code through the compiler's parser,
18293 # not just through cpp. "Syntax error" is here to catch this case.
18294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h. */
18297 # include <limits.h>
18299 # include <assert.h>
18303 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18306 # Broken: fails on valid input.
18309 rm -f conftest.err conftest.
$ac_ext
18311 # OK, works on sane cases. Now check whether nonexistent headers
18312 # can be detected and how.
18313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18314 /* end confdefs.h. */
18315 #include <ac_nonexistent.h>
18317 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18318 # Broken: success on invalid input.
18321 # Passes both tests.
18325 rm -f conftest.err conftest.
$ac_ext
18328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18329 rm -f conftest.err conftest.
$ac_ext
18330 if $ac_preproc_ok; then :
18333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18335 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18336 See \`config.log' for more details." "$LINENO" 5; }
18340 ac_cpp
='$CPP $CPPFLAGS'
18341 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18342 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18343 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18346 _lt_caught_CXX_error
=yes
18350 ac_cpp
='$CXXCPP $CPPFLAGS'
18351 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18352 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18353 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18355 archive_cmds_need_lc_CXX
=no
18356 allow_undefined_flag_CXX
=
18357 always_export_symbols_CXX
=no
18358 archive_expsym_cmds_CXX
=
18359 compiler_needs_object_CXX
=no
18360 export_dynamic_flag_spec_CXX
=
18361 hardcode_direct_CXX
=no
18362 hardcode_direct_absolute_CXX
=no
18363 hardcode_libdir_flag_spec_CXX
=
18364 hardcode_libdir_flag_spec_ld_CXX
=
18365 hardcode_libdir_separator_CXX
=
18366 hardcode_minus_L_CXX
=no
18367 hardcode_shlibpath_var_CXX
=unsupported
18368 hardcode_automatic_CXX
=no
18369 inherit_rpath_CXX
=no
18371 module_expsym_cmds_CXX
=
18372 link_all_deplibs_CXX
=unknown
18373 old_archive_cmds_CXX
=$old_archive_cmds
18374 reload_flag_CXX
=$reload_flag
18375 reload_cmds_CXX
=$reload_cmds
18376 no_undefined_flag_CXX
=
18377 whole_archive_flag_spec_CXX
=
18378 enable_shared_with_static_runtimes_CXX
=no
18380 # Source file extension for C++ test sources.
18383 # Object file extension for compiled C++ test sources.
18387 # No sense in running all these tests if we already determined that
18388 # the CXX compiler isn't working. Some variables (like enable_shared)
18389 # are currently assumed to apply to all compilers on this platform,
18390 # and will be corrupted by setting them based on a non-working compiler.
18391 if test "$_lt_caught_CXX_error" != yes; then
18392 # Code to be used in simple compile tests
18393 lt_simple_compile_test_code
="int some_variable = 0;"
18395 # Code to be used in simple link tests
18396 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18398 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18405 # If no C compiler was specified, use CC.
18408 # If no C compiler flags were specified, use CFLAGS.
18409 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18411 # Allow CC to be a program name with arguments.
18415 # save warnings/boilerplate of simple test code
18416 ac_outfile
=conftest.
$ac_objext
18417 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18418 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18419 _lt_compiler_boilerplate
=`cat conftest.err`
18422 ac_outfile
=conftest.
$ac_objext
18423 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18424 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18425 _lt_linker_boilerplate
=`cat conftest.err`
18429 # Allow CC to be a program name with arguments.
18434 lt_save_with_gnu_ld
=$with_gnu_ld
18435 lt_save_path_LD
=$lt_cv_path_LD
18436 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18437 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18439 $as_unset lt_cv_prog_gnu_ld
18441 if test -n "${lt_cv_path_LDCXX+set}"; then
18442 lt_cv_path_LD
=$lt_cv_path_LDCXX
18444 $as_unset lt_cv_path_LD
18446 test -z "${LDCXX+set}" || LD
=$LDCXX
18450 for cc_temp
in $compiler""; do
18452 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18453 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18458 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18461 if test -n "$compiler"; then
18462 # We don't want -fno-exception when compiling C++ code, so set the
18463 # no_builtin_flag separately
18464 if test "$GXX" = yes; then
18465 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18467 lt_prog_compiler_no_builtin_flag_CXX
=
18470 if test "$GXX" = yes; then
18471 # Set up default GNU C++ configuration
18475 # Check whether --with-gnu-ld was given.
18476 if test "${with_gnu_ld+set}" = set; then :
18477 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18483 if test "$GCC" = yes; then
18484 # Check if gcc -print-prog-name=ld gives a path.
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18486 $as_echo_n "checking for ld used by $CC... " >&6; }
18489 # gcc leaves a trailing carriage return which upsets mingw
18490 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18492 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18495 # Accept absolute paths.
18497 re_direlt
='/[^/][^/]*/\.\./'
18498 # Canonicalize the pathname of ld
18499 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18500 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18501 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18503 test -z "$LD" && LD
="$ac_prog"
18506 # If it fails, then pretend we aren't using GCC.
18510 # If it is relative, then search for the first ld in PATH.
18511 with_gnu_ld
=unknown
18514 elif test "$with_gnu_ld" = yes; then
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18516 $as_echo_n "checking for GNU ld... " >&6; }
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18519 $as_echo_n "checking for non-GNU ld... " >&6; }
18521 if test "${lt_cv_path_LD+set}" = set; then :
18522 $as_echo_n "(cached) " >&6
18524 if test -z "$LD"; then
18525 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18526 for ac_dir
in $PATH; do
18528 test -z "$ac_dir" && ac_dir
=.
18529 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18530 lt_cv_path_LD
="$ac_dir/$ac_prog"
18531 # Check to see if the program is GNU ld. I'd rather use --version,
18532 # but apparently some variants of GNU ld only accept -v.
18533 # Break only if it was the GNU/non-GNU ld that we prefer.
18534 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18535 *GNU
* |
*'with BFD'*)
18536 test "$with_gnu_ld" != no
&& break
18539 test "$with_gnu_ld" != yes && break
18546 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18550 LD
="$lt_cv_path_LD"
18551 if test -n "$LD"; then
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18553 $as_echo "$LD" >&6; }
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18556 $as_echo "no" >&6; }
18558 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18560 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18561 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18562 $as_echo_n "(cached) " >&6
18564 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18565 case `$LD -v 2>&1 </dev/null` in
18566 *GNU
* |
*'with BFD'*)
18567 lt_cv_prog_gnu_ld
=yes
18570 lt_cv_prog_gnu_ld
=no
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18575 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18576 with_gnu_ld
=$lt_cv_prog_gnu_ld
18584 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18585 # archiving commands below assume that GNU ld is being used.
18586 if test "$with_gnu_ld" = yes; then
18587 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18588 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'
18590 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18591 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18593 # If archive_cmds runs LD, not CC, wlarc should be empty
18594 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18595 # investigate it a little bit more. (MM)
18598 # ancient GNU ld didn't support --whole-archive et. al.
18599 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18600 $GREP 'no-whole-archive' > /dev
/null
; then
18601 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18603 whole_archive_flag_spec_CXX
=
18609 # A generic and very simple default shared library creation
18610 # command for GNU C++ for the case where it uses the native
18611 # linker, instead of GNU ld. If possible, this setting should
18612 # overridden to take advantage of the native linker features on
18613 # the platform it is being used on.
18614 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18617 # Commands to make compiler produce verbose output that lists
18618 # what "hidden" libraries, object files and flags are used when
18619 # linking a shared library.
18620 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18628 # PORTME: fill in a description of your system's C++ link characteristics
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18630 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18634 # FIXME: insert proper C++ library support
18638 if test "$host_cpu" = ia64
; then
18639 # On IA64, the linker does run time linking by default, so we don't
18640 # have to do anything special.
18641 aix_use_runtimelinking
=no
18642 exp_sym_flag
='-Bexport'
18645 aix_use_runtimelinking
=no
18647 # Test if we are trying to use run time linking or normal
18648 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18649 # need to do runtime linking.
18650 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18651 for ld_flag
in $LDFLAGS; do
18654 aix_use_runtimelinking
=yes
18662 exp_sym_flag
='-bexport'
18663 no_entry_flag
='-bnoentry'
18666 # When large executables or shared objects are built, AIX ld can
18667 # have problems creating the table of contents. If linking a library
18668 # or program results in "error TOC overflow" add -mminimal-toc to
18669 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18670 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18672 archive_cmds_CXX
=''
18673 hardcode_direct_CXX
=yes
18674 hardcode_direct_absolute_CXX
=yes
18675 hardcode_libdir_separator_CXX
=':'
18676 link_all_deplibs_CXX
=yes
18677 file_list_spec_CXX
='${wl}-f,'
18679 if test "$GXX" = yes; then
18680 case $host_os in aix4.
[012]|aix4.
[012].
*)
18681 # We only want to do this on AIX 4.2 and lower, the check
18682 # below for broken collect2 doesn't work under 4.3+
18683 collect2name
=`${CC} -print-prog-name=collect2`
18684 if test -f "$collect2name" &&
18685 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18687 # We have reworked collect2
18690 # We have old collect2
18691 hardcode_direct_CXX
=unsupported
18692 # It fails to find uninstalled libraries when the uninstalled
18693 # path is not listed in the libpath. Setting hardcode_minus_L
18694 # to unsupported forces relinking
18695 hardcode_minus_L_CXX
=yes
18696 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18697 hardcode_libdir_separator_CXX
=
18700 shared_flag
='-shared'
18701 if test "$aix_use_runtimelinking" = yes; then
18702 shared_flag
="$shared_flag "'${wl}-G'
18706 if test "$host_cpu" = ia64
; then
18707 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18708 # chokes on -Wl,-G. The following line is correct:
18711 if test "$aix_use_runtimelinking" = yes; then
18712 shared_flag
='${wl}-G'
18714 shared_flag
='${wl}-bM:SRE'
18719 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18720 # It seems that -bexpall does not export symbols beginning with
18721 # underscore (_), so it is better to generate a list of symbols to
18723 always_export_symbols_CXX
=yes
18724 if test "$aix_use_runtimelinking" = yes; then
18725 # Warning - without using the other runtime loading flags (-brtl),
18726 # -berok will link without error, but may produce a broken library.
18727 allow_undefined_flag_CXX
='-berok'
18728 # Determine the default libpath from the value encoded in an empty
18730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18731 /* end confdefs.h. */
18741 if ac_fn_cxx_try_link
"$LINENO"; then :
18743 lt_aix_libpath_sed
='
18744 /Import File Strings/,/^$/ {
18750 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18751 # Check for a 64-bit object if we didn't find anything.
18752 if test -z "$aix_libpath"; then
18753 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18756 rm -f core conftest.err conftest.
$ac_objext \
18757 conftest
$ac_exeext conftest.
$ac_ext
18758 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18760 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18762 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"
18764 if test "$host_cpu" = ia64
; then
18765 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18766 allow_undefined_flag_CXX
="-z nodefs"
18767 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"
18769 # Determine the default libpath from the value encoded in an
18770 # empty executable.
18771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18772 /* end confdefs.h. */
18782 if ac_fn_cxx_try_link
"$LINENO"; then :
18784 lt_aix_libpath_sed
='
18785 /Import File Strings/,/^$/ {
18791 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18792 # Check for a 64-bit object if we didn't find anything.
18793 if test -z "$aix_libpath"; then
18794 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18797 rm -f core conftest.err conftest.
$ac_objext \
18798 conftest
$ac_exeext conftest.
$ac_ext
18799 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18801 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18802 # Warning - without using the other run time loading flags,
18803 # -berok will link without error, but may produce a broken library.
18804 no_undefined_flag_CXX
=' ${wl}-bernotok'
18805 allow_undefined_flag_CXX
=' ${wl}-berok'
18806 if test "$with_gnu_ld" = yes; then
18807 # We only use this code for GNU lds that support --whole-archive.
18808 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18810 # Exported symbols can be pulled into shared objects from archives
18811 whole_archive_flag_spec_CXX
='$convenience'
18813 archive_cmds_need_lc_CXX
=yes
18814 # This is similar to how AIX traditionally builds its shared
18816 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'
18822 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18823 allow_undefined_flag_CXX
=unsupported
18824 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18825 # support --undefined. This deserves some investigation. FIXME
18826 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18833 case $cc_basename in
18835 # FIXME: insert proper C++ library support
18841 cygwin
* | mingw
* | pw32
* | cegcc
*)
18842 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18843 # as there is no search path for DLLs.
18844 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18845 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18846 allow_undefined_flag_CXX
=unsupported
18847 always_export_symbols_CXX
=no
18848 enable_shared_with_static_runtimes_CXX
=yes
18850 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18851 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'
18852 # If the export-symbols file already is a .def file (1st line
18853 # is EXPORTS), use it as is; otherwise, prepend...
18854 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18855 cp $export_symbols $output_objdir/$soname.def;
18857 echo EXPORTS > $output_objdir/$soname.def;
18858 cat $export_symbols >> $output_objdir/$soname.def;
18860 $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'
18865 darwin
* | rhapsody
*)
18868 archive_cmds_need_lc_CXX
=no
18869 hardcode_direct_CXX
=no
18870 hardcode_automatic_CXX
=yes
18871 hardcode_shlibpath_var_CXX
=unsupported
18872 if test "$lt_cv_ld_force_load" = "yes"; then
18873 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\"`'
18875 whole_archive_flag_spec_CXX
=''
18877 link_all_deplibs_CXX
=yes
18878 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18879 case $cc_basename in
18880 ifort
*) _lt_dar_can_shared
=yes ;;
18881 *) _lt_dar_can_shared
=$GCC ;;
18883 if test "$_lt_dar_can_shared" = "yes"; then
18884 output_verbose_link_cmd
=func_echo_all
18885 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}"
18886 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18887 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}"
18888 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}"
18889 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18890 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}"
18891 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}"
18901 case $cc_basename in
18903 # FIXME: insert proper C++ library support
18907 # Green Hills C++ Compiler
18908 # FIXME: insert proper C++ library support
18912 # FIXME: insert proper C++ library support
18919 # C++ shared libraries reported to be fairly broken before
18925 archive_cmds_need_lc_CXX
=no
18928 freebsd
* | dragonfly
*)
18929 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18938 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18939 link_all_deplibs_CXX
=yes
18943 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18944 hardcode_libdir_separator_CXX
=:
18945 export_dynamic_flag_spec_CXX
='${wl}-E'
18946 hardcode_direct_CXX
=yes
18947 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18948 # but as the default
18949 # location of the library.
18951 case $cc_basename in
18953 # FIXME: insert proper C++ library support
18957 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'
18958 # Commands to make compiler produce verbose output that lists
18959 # what "hidden" libraries, object files and flags are used when
18960 # linking a shared library.
18962 # There doesn't appear to be a way to prevent this compiler from
18963 # explicitly linking system object files so we need to strip them
18964 # from the output so that they don't get included in the library
18966 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"'
18969 if test "$GXX" = yes; then
18970 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'
18972 # FIXME: insert proper C++ library support
18980 if test $with_gnu_ld = no
; then
18981 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18982 hardcode_libdir_separator_CXX
=:
18988 export_dynamic_flag_spec_CXX
='${wl}-E'
18994 hardcode_direct_CXX
=no
18995 hardcode_shlibpath_var_CXX
=no
18998 hardcode_direct_CXX
=yes
18999 hardcode_direct_absolute_CXX
=yes
19000 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19001 # but as the default
19002 # location of the library.
19006 case $cc_basename in
19008 # FIXME: insert proper C++ library support
19014 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19017 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19020 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19023 # Commands to make compiler produce verbose output that lists
19024 # what "hidden" libraries, object files and flags are used when
19025 # linking a shared library.
19027 # There doesn't appear to be a way to prevent this compiler from
19028 # explicitly linking system object files so we need to strip them
19029 # from the output so that they don't get included in the library
19031 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"'
19034 if test "$GXX" = yes; then
19035 if test $with_gnu_ld = no
; then
19038 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19041 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19044 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'
19049 # FIXME: insert proper C++ library support
19057 hardcode_direct_CXX
=no
19058 hardcode_shlibpath_var_CXX
=no
19059 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19060 export_dynamic_flag_spec_CXX
='${wl}-E'
19061 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19062 # Instead, shared libraries are loaded at an image base (0x10000000 by
19063 # default) and relocated if they conflict, which is a slow very memory
19064 # consuming and fragmenting process. To avoid this, we pick a random,
19065 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19066 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19067 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'
19068 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'
19071 case $cc_basename in
19074 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'
19076 # Archives containing C++ object files must be created using
19077 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19078 # necessary to make sure instantiated templates are included
19080 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19083 if test "$GXX" = yes; then
19084 if test "$with_gnu_ld" = no
; then
19085 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'
19087 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'
19090 link_all_deplibs_CXX
=yes
19093 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19094 hardcode_libdir_separator_CXX
=:
19095 inherit_rpath_CXX
=yes
19098 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19099 case $cc_basename in
19101 # Kuck and Associates, Inc. (KAI) C++ Compiler
19103 # KCC will only create a shared library if the output file
19104 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19105 # to its proper name (with version) after linking.
19106 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'
19107 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'
19108 # Commands to make compiler produce verbose output that lists
19109 # what "hidden" libraries, object files and flags are used when
19110 # linking a shared library.
19112 # There doesn't appear to be a way to prevent this compiler from
19113 # explicitly linking system object files so we need to strip them
19114 # from the output so that they don't get included in the library
19116 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"'
19118 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19119 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19121 # Archives containing C++ object files must be created using
19122 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19123 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19128 # version 8.0 and above of icpc choke on multiply defined symbols
19129 # if we add $predep_objects and $postdep_objects, however 7.1 and
19130 # earlier do not add the objects themselves.
19131 case `$CC -V 2>&1` in
19133 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19134 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'
19136 *) # Version 8.0 or newer
19139 ia64
*) tmp_idyn
=' -i_dynamic';;
19141 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19142 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'
19145 archive_cmds_need_lc_CXX
=no
19146 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19147 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19148 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19151 # Portland Group C++ compiler
19153 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19154 prelink_cmds_CXX
='tpldir=Template.dir~
19156 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19157 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19158 old_archive_cmds_CXX
='tpldir=Template.dir~
19160 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19161 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19163 archive_cmds_CXX
='tpldir=Template.dir~
19165 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19166 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19167 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19169 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19170 $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'
19172 *) # Version 6 and above use weak symbols
19173 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19174 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'
19178 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19179 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19180 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'
19184 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19185 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'
19187 runpath_var
=LD_RUN_PATH
19188 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19189 hardcode_libdir_separator_CXX
=:
19191 # Commands to make compiler produce verbose output that lists
19192 # what "hidden" libraries, object files and flags are used when
19193 # linking a shared library.
19195 # There doesn't appear to be a way to prevent this compiler from
19196 # explicitly linking system object files so we need to strip them
19197 # from the output so that they don't get included in the library
19199 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'
19201 xl
* | mpixl
* | bgxl
*)
19202 # IBM XL 8.0 on PPC, with GNU ld
19203 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19204 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19205 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19206 if test "x$supports_anon_versioning" = xyes
; then
19207 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19208 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19209 echo "local: *; };" >> $output_objdir/$libname.ver~
19210 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19214 case `$CC -V 2>&1 | sed 5q` in
19217 no_undefined_flag_CXX
=' -zdefs'
19218 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19219 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'
19220 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19221 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'
19222 compiler_needs_object_CXX
=yes
19224 # Not sure whether something based on
19225 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19227 output_verbose_link_cmd
='func_echo_all'
19229 # Archives containing C++ object files must be created using
19230 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19231 # necessary to make sure instantiated templates are included
19233 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19241 # FIXME: insert proper C++ library support
19246 # FIXME: insert proper C++ library support
19251 case $cc_basename in
19253 # FIXME: insert proper C++ library support
19257 # FIXME: insert proper C++ library support
19264 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19265 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19267 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19268 hardcode_direct_CXX
=yes
19269 hardcode_shlibpath_var_CXX
=no
19271 # Workaround some broken pre-1.5 toolchains
19272 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19280 # C++ shared libraries are fairly broken
19285 if test -f /usr
/libexec
/ld.so
; then
19286 hardcode_direct_CXX
=yes
19287 hardcode_shlibpath_var_CXX
=no
19288 hardcode_direct_absolute_CXX
=yes
19289 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19290 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19291 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19292 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19293 export_dynamic_flag_spec_CXX
='${wl}-E'
19294 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19296 output_verbose_link_cmd
=func_echo_all
19302 osf3
* | osf4
* | osf5
*)
19303 case $cc_basename in
19305 # Kuck and Associates, Inc. (KAI) C++ Compiler
19307 # KCC will only create a shared library if the output file
19308 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19309 # to its proper name (with version) after linking.
19310 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'
19312 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19313 hardcode_libdir_separator_CXX
=:
19315 # Archives containing C++ object files must be created using
19316 # the KAI C++ compiler.
19318 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19319 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19323 # Rational C++ 2.4.1
19324 # FIXME: insert proper C++ library support
19330 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19331 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'
19332 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19335 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19336 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'
19337 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19338 echo "-hidden">> $lib.exp~
19339 $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~
19341 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19345 hardcode_libdir_separator_CXX
=:
19347 # Commands to make compiler produce verbose output that lists
19348 # what "hidden" libraries, object files and flags are used when
19349 # linking a shared library.
19351 # There doesn't appear to be a way to prevent this compiler from
19352 # explicitly linking system object files so we need to strip them
19353 # from the output so that they don't get included in the library
19355 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"'
19358 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19359 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19362 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'
19365 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'
19369 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19370 hardcode_libdir_separator_CXX
=:
19372 # Commands to make compiler produce verbose output that lists
19373 # what "hidden" libraries, object files and flags are used when
19374 # linking a shared library.
19375 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19378 # FIXME: insert proper C++ library support
19386 # FIXME: insert proper C++ library support
19391 case $cc_basename in
19394 # FIXME: insert proper C++ library support
19399 # FIXME: insert proper C++ library support
19403 # FIXME: insert proper C++ library support
19410 case $cc_basename in
19412 # Sun C++ 4.2, 5.x and Centerline C++
19413 archive_cmds_need_lc_CXX
=yes
19414 no_undefined_flag_CXX
=' -zdefs'
19415 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19416 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19417 $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'
19419 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19420 hardcode_shlibpath_var_CXX
=no
19422 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19424 # The compiler driver will combine and reorder linker options,
19425 # but understands `-z linker_flag'.
19426 # Supported since Solaris 2.6 (maybe 2.5.1?)
19427 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19430 link_all_deplibs_CXX
=yes
19432 output_verbose_link_cmd
='func_echo_all'
19434 # Archives containing C++ object files must be created using
19435 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19436 # necessary to make sure instantiated templates are included
19438 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19441 # Green Hills C++ Compiler
19442 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19444 # The C++ compiler must be used to create the archive.
19445 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19448 # GNU C++ compiler with Solaris linker
19449 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19450 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19451 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19452 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19453 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19454 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19456 # Commands to make compiler produce verbose output that lists
19457 # what "hidden" libraries, object files and flags are used when
19458 # linking a shared library.
19459 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19461 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19463 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19464 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19465 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19467 # Commands to make compiler produce verbose output that lists
19468 # what "hidden" libraries, object files and flags are used when
19469 # linking a shared library.
19470 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19473 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19475 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19477 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19485 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19486 no_undefined_flag_CXX
='${wl}-z,text'
19487 archive_cmds_need_lc_CXX
=no
19488 hardcode_shlibpath_var_CXX
=no
19489 runpath_var
='LD_RUN_PATH'
19491 case $cc_basename in
19493 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19494 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19497 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19498 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19503 sysv5
* | sco3.2v5
* | sco5v6
*)
19504 # Note: We can NOT use -z defs as we might desire, because we do not
19505 # link with -lc, and that would cause any symbols used from libc to
19506 # always be unresolved, which means just about no library would
19507 # ever link correctly. If we're not using GNU ld we use -z text
19508 # though, which does catch some bad symbols but isn't as heavy-handed
19510 no_undefined_flag_CXX
='${wl}-z,text'
19511 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19512 archive_cmds_need_lc_CXX
=no
19513 hardcode_shlibpath_var_CXX
=no
19514 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19515 hardcode_libdir_separator_CXX
=':'
19516 link_all_deplibs_CXX
=yes
19517 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19518 runpath_var
='LD_RUN_PATH'
19520 case $cc_basename in
19522 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19523 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19524 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19525 '"$old_archive_cmds_CXX"
19526 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19527 '"$reload_cmds_CXX"
19530 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19531 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19537 case $cc_basename in
19539 # NonStop-UX NCC 3.20
19540 # FIXME: insert proper C++ library support
19544 # FIXME: insert proper C++ library support
19551 # FIXME: insert proper C++ library support
19556 # FIXME: insert proper C++ library support
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19562 $as_echo "$ld_shlibs_CXX" >&6; }
19563 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19569 ## There is no encapsulation within the following macros, do not change
19570 ## the running order or otherwise move them around unless you know exactly
19571 ## what you are doing...
19572 # Dependencies to place before and after the object being linked:
19573 predep_objects_CXX
=
19574 postdep_objects_CXX
=
19577 compiler_lib_search_path_CXX
=
19579 cat > conftest.
$ac_ext <<_LT_EOF
19583 Foo (void) { a = 0; }
19589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19590 (eval $ac_compile) 2>&5
19592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19593 test $ac_status = 0; }; then
19594 # Parse the compiler output and extract the necessary
19595 # objects, libraries and library flags.
19597 # Sentinel used to keep track of whether or not we are before
19598 # the conftest object file.
19599 pre_test_object_deps_done
=no
19601 for p
in `eval "$output_verbose_link_cmd"`; do
19605 # Some compilers place space between "-{L,R}" and the path.
19606 # Remove the space.
19607 if test $p = "-L" ||
19608 test $p = "-R"; then
19615 if test "$pre_test_object_deps_done" = no
; then
19618 # Internal compiler library paths should come after those
19619 # provided the user. The postdeps already come after the
19620 # user supplied libs so there is no need to process them.
19621 if test -z "$compiler_lib_search_path_CXX"; then
19622 compiler_lib_search_path_CXX
="${prev}${p}"
19624 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19627 # The "-l" case would never come before the object being
19628 # linked, so don't bother handling this case.
19631 if test -z "$postdeps_CXX"; then
19632 postdeps_CXX
="${prev}${p}"
19634 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19640 # This assumes that the test object file only shows up
19641 # once in the compiler output.
19642 if test "$p" = "conftest.$objext"; then
19643 pre_test_object_deps_done
=yes
19647 if test "$pre_test_object_deps_done" = no
; then
19648 if test -z "$predep_objects_CXX"; then
19649 predep_objects_CXX
="$p"
19651 predep_objects_CXX
="$predep_objects_CXX $p"
19654 if test -z "$postdep_objects_CXX"; then
19655 postdep_objects_CXX
="$p"
19657 postdep_objects_CXX
="$postdep_objects_CXX $p"
19662 *) ;; # Ignore the rest.
19670 echo "libtool.m4: error: problem compiling CXX test program"
19673 $RM -f confest.
$objext
19675 # PORTME: override above test on systems where it is broken
19678 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19679 # hack all around it, let's just trust "g++" to DTRT.
19680 predep_objects_CXX
=
19681 postdep_objects_CXX
=
19686 case `$CC -V 2>&1 | sed 5q` in
19690 # The more standards-conforming stlport4 library is
19691 # incompatible with the Cstd library. Avoid specifying
19692 # it if it's in CXXFLAGS. Ignore libCrun as
19693 # -library=stlport4 depends on it.
19694 case " $CXX $CXXFLAGS " in
19695 *" -library=stlport4 "*)
19696 solaris_use_stlport4
=yes
19700 if test "$solaris_use_stlport4" != yes; then
19701 postdeps_CXX
='-library=Cstd -library=Crun'
19708 case $cc_basename in
19710 # The more standards-conforming stlport4 library is
19711 # incompatible with the Cstd library. Avoid specifying
19712 # it if it's in CXXFLAGS. Ignore libCrun as
19713 # -library=stlport4 depends on it.
19714 case " $CXX $CXXFLAGS " in
19715 *" -library=stlport4 "*)
19716 solaris_use_stlport4
=yes
19720 # Adding this requires a known-good setup of shared libraries for
19721 # Sun compiler versions before 5.6, else PIC objects from an old
19722 # archive will be linked into the output, leading to subtle bugs.
19723 if test "$solaris_use_stlport4" != yes; then
19724 postdeps_CXX
='-library=Cstd -library=Crun'
19732 case " $postdeps_CXX " in
19733 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19735 compiler_lib_search_dirs_CXX
=
19736 if test -n "${compiler_lib_search_path_CXX}"; then
19737 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19770 lt_prog_compiler_wl_CXX
=
19771 lt_prog_compiler_pic_CXX
=
19772 lt_prog_compiler_static_CXX
=
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19775 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19777 # C++ specific cases for pic, static, wl, etc.
19778 if test "$GXX" = yes; then
19779 lt_prog_compiler_wl_CXX
='-Wl,'
19780 lt_prog_compiler_static_CXX
='-static'
19784 # All AIX code is PIC.
19785 if test "$host_cpu" = ia64
; then
19786 # AIX 5 now supports IA64 processor
19787 lt_prog_compiler_static_CXX
='-Bstatic'
19789 lt_prog_compiler_pic_CXX
='-fPIC'
19795 # see comment about AmigaOS4 .so support
19796 lt_prog_compiler_pic_CXX
='-fPIC'
19799 # FIXME: we need at least 68020 code to build shared libraries, but
19800 # adding the `-m68020' flag to GCC prevents building anything better,
19802 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19807 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19808 # PIC is the default for these OSes.
19810 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19811 # This hack is so that the source file can tell whether it is being
19812 # built for inclusion in a dll (and should export symbols for example).
19813 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19814 # (--disable-auto-import) libraries
19815 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19817 darwin
* | rhapsody
*)
19818 # PIC is the default on this platform
19819 # Common symbols not allowed in MH_DYLIB files
19820 lt_prog_compiler_pic_CXX
='-fno-common'
19823 # DJGPP does not support shared libraries at all
19824 lt_prog_compiler_pic_CXX
=
19827 # PIC is the default for Haiku.
19828 # The "-static" flag exists, but is broken.
19829 lt_prog_compiler_static_CXX
=
19832 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19833 # Instead, we relocate shared libraries at runtime.
19836 if test -d /usr
/nec
; then
19837 lt_prog_compiler_pic_CXX
=-Kconform_pic
19841 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19842 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19843 # sets the default TLS model and affects inlining.
19848 lt_prog_compiler_pic_CXX
='-fPIC'
19853 # QNX uses GNU C++, but need to define -shared option too, otherwise
19854 # it will coredump.
19855 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19858 lt_prog_compiler_pic_CXX
='-fPIC'
19864 # All AIX code is PIC.
19865 if test "$host_cpu" = ia64
; then
19866 # AIX 5 now supports IA64 processor
19867 lt_prog_compiler_static_CXX
='-Bstatic'
19869 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19873 case $cc_basename in
19875 # Green Hills C++ Compiler
19876 # _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"
19881 case $cc_basename in
19883 lt_prog_compiler_pic_CXX
='-KPIC'
19886 # Green Hills C++ Compiler
19887 lt_prog_compiler_pic_CXX
='-pic'
19893 freebsd
* | dragonfly
*)
19894 # FreeBSD uses GNU C++
19896 hpux9
* | hpux10
* | hpux11
*)
19897 case $cc_basename in
19899 lt_prog_compiler_wl_CXX
='-Wl,'
19900 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19901 if test "$host_cpu" != ia64
; then
19902 lt_prog_compiler_pic_CXX
='+Z'
19906 lt_prog_compiler_wl_CXX
='-Wl,'
19907 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19913 lt_prog_compiler_pic_CXX
='+Z'
19922 # This is c89, which is MS Visual C++ (no shared libs)
19923 # Anyone wants to do a port?
19925 irix5
* | irix6
* | nonstopux
*)
19926 case $cc_basename in
19928 lt_prog_compiler_wl_CXX
='-Wl,'
19929 lt_prog_compiler_static_CXX
='-non_shared'
19930 # CC pic flag -KPIC is the default.
19936 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19937 case $cc_basename in
19940 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19941 lt_prog_compiler_pic_CXX
='-fPIC'
19944 # old Intel C++ for x86_64 which still supported -KPIC.
19945 lt_prog_compiler_wl_CXX
='-Wl,'
19946 lt_prog_compiler_pic_CXX
='-KPIC'
19947 lt_prog_compiler_static_CXX
='-static'
19950 # Intel C++, used to be incompatible with GCC.
19951 # ICC 10 doesn't accept -KPIC any more.
19952 lt_prog_compiler_wl_CXX
='-Wl,'
19953 lt_prog_compiler_pic_CXX
='-fPIC'
19954 lt_prog_compiler_static_CXX
='-static'
19957 # Portland Group C++ compiler
19958 lt_prog_compiler_wl_CXX
='-Wl,'
19959 lt_prog_compiler_pic_CXX
='-fpic'
19960 lt_prog_compiler_static_CXX
='-Bstatic'
19964 # Make sure the PIC flag is empty. It appears that all Alpha
19965 # Linux and Compaq Tru64 Unix objects are PIC.
19966 lt_prog_compiler_pic_CXX
=
19967 lt_prog_compiler_static_CXX
='-non_shared'
19969 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19970 # IBM XL 8.0, 9.0 on PPC and BlueGene
19971 lt_prog_compiler_wl_CXX
='-Wl,'
19972 lt_prog_compiler_pic_CXX
='-qpic'
19973 lt_prog_compiler_static_CXX
='-qstaticlink'
19976 case `$CC -V 2>&1 | sed 5q` in
19979 lt_prog_compiler_pic_CXX
='-KPIC'
19980 lt_prog_compiler_static_CXX
='-Bstatic'
19981 lt_prog_compiler_wl_CXX
='-Qoption ld '
19992 case $cc_basename in
19994 lt_prog_compiler_pic_CXX
='-W c,exportall'
20003 # QNX uses GNU C++, but need to define -shared option too, otherwise
20004 # it will coredump.
20005 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20007 osf3
* | osf4
* | osf5
*)
20008 case $cc_basename in
20010 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20013 # Rational C++ 2.4.1
20014 lt_prog_compiler_pic_CXX
='-pic'
20017 # Digital/Compaq C++
20018 lt_prog_compiler_wl_CXX
='-Wl,'
20019 # Make sure the PIC flag is empty. It appears that all Alpha
20020 # Linux and Compaq Tru64 Unix objects are PIC.
20021 lt_prog_compiler_pic_CXX
=
20022 lt_prog_compiler_static_CXX
='-non_shared'
20031 case $cc_basename in
20033 # Sun C++ 4.2, 5.x and Centerline C++
20034 lt_prog_compiler_pic_CXX
='-KPIC'
20035 lt_prog_compiler_static_CXX
='-Bstatic'
20036 lt_prog_compiler_wl_CXX
='-Qoption ld '
20039 # Green Hills C++ Compiler
20040 lt_prog_compiler_pic_CXX
='-PIC'
20047 case $cc_basename in
20050 lt_prog_compiler_pic_CXX
='-pic'
20051 lt_prog_compiler_static_CXX
='-Bstatic'
20055 lt_prog_compiler_pic_CXX
='-pic'
20061 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20062 case $cc_basename in
20064 lt_prog_compiler_wl_CXX
='-Wl,'
20065 lt_prog_compiler_pic_CXX
='-KPIC'
20066 lt_prog_compiler_static_CXX
='-Bstatic'
20071 case $cc_basename in
20073 # NonStop-UX NCC 3.20
20074 lt_prog_compiler_pic_CXX
='-KPIC'
20083 lt_prog_compiler_can_build_shared_CXX
=no
20089 # For platforms which do not support PIC, -DPIC is meaningless:
20091 lt_prog_compiler_pic_CXX
=
20094 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20098 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20103 # Check to make sure the PIC flag actually works.
20105 if test -n "$lt_prog_compiler_pic_CXX"; then
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20107 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20108 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20109 $as_echo_n "(cached) " >&6
20111 lt_cv_prog_compiler_pic_works_CXX
=no
20112 ac_outfile
=conftest.
$ac_objext
20113 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20114 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20115 # Insert the option either (1) after the last *FLAGS variable, or
20116 # (2) before a word containing "conftest.", or (3) at the end.
20117 # Note that $ac_compile itself does not contain backslashes and begins
20118 # with a dollar sign (not a hyphen), so the echo should work correctly.
20119 # The option is referenced via a variable to avoid confusing sed.
20120 lt_compile
=`echo "$ac_compile" | $SED \
20121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20123 -e 's:$: $lt_compiler_flag:'`
20124 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20125 (eval "$lt_compile" 2>conftest.err
)
20127 cat conftest.err
>&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 if (exit $ac_status) && test -s "$ac_outfile"; then
20130 # The compiler can only warn and ignore the option if not recognized
20131 # So say no if there are warnings other than the usual output.
20132 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20133 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20134 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20135 lt_cv_prog_compiler_pic_works_CXX
=yes
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20142 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20144 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20145 case $lt_prog_compiler_pic_CXX in
20147 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20150 lt_prog_compiler_pic_CXX
=
20151 lt_prog_compiler_can_build_shared_CXX
=no
20159 # Check to make sure the static flag actually works.
20161 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20163 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20164 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20165 $as_echo_n "(cached) " >&6
20167 lt_cv_prog_compiler_static_works_CXX
=no
20168 save_LDFLAGS
="$LDFLAGS"
20169 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20170 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20171 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20172 # The linker can only warn and ignore the option if not recognized
20173 # So say no if there are warnings
20174 if test -s conftest.err
; then
20175 # Append any errors to the config.log.
20176 cat conftest.err
1>&5
20177 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20178 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20179 if diff conftest.exp conftest.er2
>/dev
/null
; then
20180 lt_cv_prog_compiler_static_works_CXX
=yes
20183 lt_cv_prog_compiler_static_works_CXX
=yes
20187 LDFLAGS
="$save_LDFLAGS"
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20191 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20193 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20196 lt_prog_compiler_static_CXX
=
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20203 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20204 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20205 $as_echo_n "(cached) " >&6
20207 lt_cv_prog_compiler_c_o_CXX
=no
20208 $RM -r conftest
2>/dev
/null
20212 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20214 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20215 # Insert the option either (1) after the last *FLAGS variable, or
20216 # (2) before a word containing "conftest.", or (3) at the end.
20217 # Note that $ac_compile itself does not contain backslashes and begins
20218 # with a dollar sign (not a hyphen), so the echo should work correctly.
20219 lt_compile
=`echo "$ac_compile" | $SED \
20220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20222 -e 's:$: $lt_compiler_flag:'`
20223 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20224 (eval "$lt_compile" 2>out
/conftest.err
)
20226 cat out
/conftest.err
>&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20230 # The compiler can only warn and ignore the option if not recognized
20231 # So say no if there are warnings
20232 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20233 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20234 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20235 lt_cv_prog_compiler_c_o_CXX
=yes
20240 # SGI C++ compiler will create directory out/ii_files/ for
20241 # template instantiation
20242 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20243 $RM out
/* && rmdir out
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20250 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20255 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20256 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20257 $as_echo_n "(cached) " >&6
20259 lt_cv_prog_compiler_c_o_CXX
=no
20260 $RM -r conftest
2>/dev
/null
20264 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20266 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20267 # Insert the option either (1) after the last *FLAGS variable, or
20268 # (2) before a word containing "conftest.", or (3) at the end.
20269 # Note that $ac_compile itself does not contain backslashes and begins
20270 # with a dollar sign (not a hyphen), so the echo should work correctly.
20271 lt_compile
=`echo "$ac_compile" | $SED \
20272 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20274 -e 's:$: $lt_compiler_flag:'`
20275 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20276 (eval "$lt_compile" 2>out
/conftest.err
)
20278 cat out
/conftest.err
>&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20282 # The compiler can only warn and ignore the option if not recognized
20283 # So say no if there are warnings
20284 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20285 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20286 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20287 lt_cv_prog_compiler_c_o_CXX
=yes
20292 # SGI C++ compiler will create directory out/ii_files/ for
20293 # template instantiation
20294 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20295 $RM out
/* && rmdir out
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20302 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20307 hard_links
="nottested"
20308 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20309 # do not overwrite the value of need_locks provided by the user
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20311 $as_echo_n "checking if we can lock with hard links... " >&6; }
20314 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20316 ln conftest.a conftest.b
2>&5 || hard_links
=no
20317 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20319 $as_echo "$hard_links" >&6; }
20320 if test "$hard_links" = no
; then
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20322 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20332 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20334 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20337 # If we're using GNU nm, then we don't want the "-C" option.
20338 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20339 # Also, AIX nm treats weak defined symbols like other global defined
20340 # symbols, whereas GNU nm marks them as "W".
20341 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20342 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'
20344 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'
20348 export_symbols_cmds_CXX
="$ltdll_cmds"
20350 cygwin
* | mingw
* | cegcc
*)
20351 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'
20354 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20357 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20360 $as_echo "$ld_shlibs_CXX" >&6; }
20361 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20363 with_gnu_ld_CXX
=$with_gnu_ld
20371 # Do we need to explicitly link libc?
20373 case "x$archive_cmds_need_lc_CXX" in
20375 # Assume -lc should be added
20376 archive_cmds_need_lc_CXX
=yes
20378 if test "$enable_shared" = yes && test "$GCC" = yes; then
20379 case $archive_cmds_CXX in
20381 # FIXME: we may have to deal with multi-command sequences.
20384 # Test whether the compiler implicitly links with -lc since on some
20385 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20386 # to ld, don't add -lc before -lgcc.
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20388 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20389 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20390 $as_echo_n "(cached) " >&6
20393 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20396 (eval $ac_compile) 2>&5
20398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20399 test $ac_status = 0; } 2>conftest.err
; then
20402 libobjs
=conftest.
$ac_objext
20404 wl
=$lt_prog_compiler_wl_CXX
20405 pic_flag
=$lt_prog_compiler_pic_CXX
20411 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20412 allow_undefined_flag_CXX
=
20413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20414 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20417 test $ac_status = 0; }
20419 lt_cv_archive_cmds_need_lc_CXX
=no
20421 lt_cv_archive_cmds_need_lc_CXX
=yes
20423 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20425 cat conftest.err
1>&5
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20431 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20432 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20503 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20505 library_names_spec
=
20506 libname_spec
='lib$name'
20510 postuninstall_cmds
=
20514 shlibpath_overrides_runpath
=unknown
20516 dynamic_linker
="$host_os ld.so"
20517 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20518 need_lib_prefix
=unknown
20519 hardcode_into_libs
=no
20521 # when you set need_version to no, make sure it does not cause -set_version
20522 # flags to be left without arguments
20523 need_version
=unknown
20528 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20529 shlibpath_var
=LIBPATH
20531 # AIX 3 has no versioning support, so we append a major version to the name.
20532 soname_spec
='${libname}${release}${shared_ext}$major'
20539 hardcode_into_libs
=yes
20540 if test "$host_cpu" = ia64
; then
20541 # AIX 5 supports IA64
20542 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20543 shlibpath_var
=LD_LIBRARY_PATH
20545 # With GCC up to 2.95.x, collect2 would create an import file
20546 # for dependence libraries. The import file would start with
20547 # the line `#! .'. This would cause the generated library to
20548 # depend on `.', always an invalid library. This was fixed in
20549 # development snapshots of GCC prior to 3.0.
20551 aix4 | aix4.
[01] | aix4.
[01].
*)
20552 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20554 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20557 can_build_shared
=no
20561 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20562 # soname into executable. Probably we can add versioning support to
20563 # collect2, so additional links can be useful in future.
20564 if test "$aix_use_runtimelinking" = yes; then
20565 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20566 # instead of lib<name>.a to let people know that these are not
20567 # typical AIX shared libraries.
20568 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20570 # We preserve .a as extension for shared libraries through AIX4.2
20571 # and later when we are not doing run time linking.
20572 library_names_spec
='${libname}${release}.a $libname.a'
20573 soname_spec
='${libname}${release}${shared_ext}$major'
20575 shlibpath_var
=LIBPATH
20582 # Since July 2007 AmigaOS4 officially supports .so libraries.
20583 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20584 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20587 library_names_spec
='$libname.ixlibrary $libname.a'
20588 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20589 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'
20595 library_names_spec
='${libname}${shared_ext}'
20596 dynamic_linker
="$host_os ld.so"
20597 shlibpath_var
=LIBRARY_PATH
20603 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20604 soname_spec
='${libname}${release}${shared_ext}$major'
20605 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20606 shlibpath_var
=LD_LIBRARY_PATH
20607 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20608 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20609 # the default ld.so.conf also contains /usr/contrib/lib and
20610 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20611 # libtool to hard-code these into programs
20614 cygwin
* | mingw
* | pw32
* | cegcc
*)
20615 version_type
=windows
20620 case $GCC,$host_os in
20621 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20622 library_names_spec
='$libname.dll.a'
20623 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20624 postinstall_cmds
='base_file=`basename \${file}`~
20625 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20626 dldir=$destdir/`dirname \$dlpath`~
20627 test -d \$dldir || mkdir -p \$dldir~
20628 $install_prog $dir/$dlname \$dldir/$dlname~
20629 chmod a+x \$dldir/$dlname~
20630 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20631 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20633 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20634 dlpath=$dir/\$dldll~
20636 shlibpath_overrides_runpath
=yes
20640 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20641 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20645 # MinGW DLLs use traditional 'lib' prefix
20646 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20649 # pw32 DLLs use 'pw' prefix rather than 'lib'
20650 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20656 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20659 dynamic_linker
='Win32 ld.exe'
20660 # FIXME: first we should search . and the directory the executable is in
20664 darwin
* | rhapsody
*)
20665 dynamic_linker
="$host_os dyld"
20666 version_type
=darwin
20669 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20670 soname_spec
='${libname}${release}${major}$shared_ext'
20671 shlibpath_overrides_runpath
=yes
20672 shlibpath_var
=DYLD_LIBRARY_PATH
20673 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20675 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20682 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20683 soname_spec
='${libname}${release}${shared_ext}$major'
20684 shlibpath_var
=LD_LIBRARY_PATH
20687 freebsd
* | dragonfly
*)
20688 # DragonFly does not have aout. When/if they implement a new
20689 # versioning mechanism, adjust this.
20690 if test -x /usr
/bin
/objformat
; then
20691 objformat
=`/usr/bin/objformat`
20694 freebsd
[23].
*) objformat
=aout
;;
20695 *) objformat
=elf
;;
20698 version_type
=freebsd-
$objformat
20699 case $version_type in
20701 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20706 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20710 shlibpath_var
=LD_LIBRARY_PATH
20713 shlibpath_overrides_runpath
=yes
20715 freebsd3.
[01]* | freebsdelf3.
[01]*)
20716 shlibpath_overrides_runpath
=yes
20717 hardcode_into_libs
=yes
20719 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20720 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20721 shlibpath_overrides_runpath
=no
20722 hardcode_into_libs
=yes
20724 *) # from 4.6 on, and DragonFly
20725 shlibpath_overrides_runpath
=yes
20726 hardcode_into_libs
=yes
20735 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20736 soname_spec
='${libname}${release}${shared_ext}$major'
20737 shlibpath_var
=LD_LIBRARY_PATH
20738 hardcode_into_libs
=yes
20745 dynamic_linker
="$host_os runtime_loader"
20746 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20747 soname_spec
='${libname}${release}${shared_ext}$major'
20748 shlibpath_var
=LIBRARY_PATH
20749 shlibpath_overrides_runpath
=yes
20750 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20751 hardcode_into_libs
=yes
20754 hpux9
* | hpux10
* | hpux11
*)
20755 # Give a soname corresponding to the major version so that dld.sl refuses to
20756 # link against other versions.
20763 hardcode_into_libs
=yes
20764 dynamic_linker
="$host_os dld.so"
20765 shlibpath_var
=LD_LIBRARY_PATH
20766 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20767 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20768 soname_spec
='${libname}${release}${shared_ext}$major'
20769 if test "X$HPUX_IA64_MODE" = X32
; then
20770 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20772 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20774 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20778 hardcode_into_libs
=yes
20779 dynamic_linker
="$host_os dld.sl"
20780 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20781 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20782 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20783 soname_spec
='${libname}${release}${shared_ext}$major'
20784 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20785 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20789 dynamic_linker
="$host_os dld.sl"
20790 shlibpath_var
=SHLIB_PATH
20791 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20792 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20793 soname_spec
='${libname}${release}${shared_ext}$major'
20796 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20797 postinstall_cmds
='chmod 555 $lib'
20798 # or fails outright, so override atomically:
20799 install_override_mode
=555
20806 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20807 soname_spec
='${libname}${release}${shared_ext}$major'
20808 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20809 shlibpath_var
=LD_LIBRARY_PATH
20810 shlibpath_overrides_runpath
=no
20811 hardcode_into_libs
=yes
20814 irix5
* | irix6
* | nonstopux
*)
20816 nonstopux
*) version_type
=nonstopux
;;
20818 if test "$lt_cv_prog_gnu_ld" = yes; then
20826 soname_spec
='${libname}${release}${shared_ext}$major'
20827 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20829 irix5
* | nonstopux
*)
20830 libsuff
= shlibsuff
=
20833 case $LD in # libtool.m4 will add one of these switches to LD
20834 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20835 libsuff
= shlibsuff
= libmagic
=32-bit;;
20836 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20837 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20838 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20839 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20840 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20844 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20845 shlibpath_overrides_runpath
=no
20846 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20847 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20848 hardcode_into_libs
=yes
20851 # No shared lib support for Linux oldld, aout, or coff.
20852 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20856 # This must be Linux ELF.
20857 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20861 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20862 soname_spec
='${libname}${release}${shared_ext}$major'
20863 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20864 shlibpath_var
=LD_LIBRARY_PATH
20865 shlibpath_overrides_runpath
=no
20867 # Some binutils ld are patched to set DT_RUNPATH
20868 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20869 $as_echo_n "(cached) " >&6
20871 lt_cv_shlibpath_overrides_runpath
=no
20872 save_LDFLAGS
=$LDFLAGS
20873 save_libdir
=$libdir
20874 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20875 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20877 /* end confdefs.h. */
20887 if ac_fn_cxx_try_link
"$LINENO"; then :
20888 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20889 lt_cv_shlibpath_overrides_runpath
=yes
20892 rm -f core conftest.err conftest.
$ac_objext \
20893 conftest
$ac_exeext conftest.
$ac_ext
20894 LDFLAGS
=$save_LDFLAGS
20895 libdir
=$save_libdir
20899 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20901 # This implies no fast_install, which is unacceptable.
20902 # Some rework will be needed to allow for fast_install
20903 # before this can be enabled.
20904 hardcode_into_libs
=yes
20906 # Append ld.so.conf contents to the search path
20907 if test -f /etc
/ld.so.conf
; then
20908 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' ' '`
20909 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20912 # We used to test for /lib/ld.so.1 and disable shared libraries on
20913 # powerpc, because MkLinux only supported shared libraries with the
20914 # GNU dynamic linker. Since this was broken with cross compilers,
20915 # most powerpc-linux boxes support dynamic linking these days and
20916 # people can always --disable-shared, the test was removed, and we
20917 # assume the GNU/Linux dynamic linker is in use.
20918 dynamic_linker
='GNU/Linux ld.so'
20925 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20926 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20927 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20928 dynamic_linker
='NetBSD (a.out) ld.so'
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 dynamic_linker
='NetBSD ld.elf_so'
20934 shlibpath_var
=LD_LIBRARY_PATH
20935 shlibpath_overrides_runpath
=yes
20936 hardcode_into_libs
=yes
20941 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20942 shlibpath_var
=LD_LIBRARY_PATH
20943 shlibpath_overrides_runpath
=yes
20950 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20951 soname_spec
='${libname}${release}${shared_ext}$major'
20952 shlibpath_var
=LD_LIBRARY_PATH
20953 shlibpath_overrides_runpath
=no
20954 hardcode_into_libs
=yes
20955 dynamic_linker
='ldqnx.so'
20960 sys_lib_dlsearch_path_spec
="/usr/lib"
20962 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20964 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20965 *) need_version
=no
;;
20967 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20968 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20969 shlibpath_var
=LD_LIBRARY_PATH
20970 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20972 openbsd2.
[89] | openbsd2.
[89].
*)
20973 shlibpath_overrides_runpath
=no
20976 shlibpath_overrides_runpath
=yes
20980 shlibpath_overrides_runpath
=yes
20985 libname_spec
='$name'
20988 library_names_spec
='$libname${shared_ext} $libname.a'
20989 dynamic_linker
='OS/2 ld.exe'
20990 shlibpath_var
=LIBPATH
20993 osf3
* | osf4
* | osf5
*)
20997 soname_spec
='${libname}${release}${shared_ext}$major'
20998 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20999 shlibpath_var
=LD_LIBRARY_PATH
21000 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21001 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21012 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21013 soname_spec
='${libname}${release}${shared_ext}$major'
21014 shlibpath_var
=LD_LIBRARY_PATH
21015 shlibpath_overrides_runpath
=yes
21016 hardcode_into_libs
=yes
21017 # ldd complains unless libraries are executable
21018 postinstall_cmds
='chmod +x $lib'
21023 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21024 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21025 shlibpath_var
=LD_LIBRARY_PATH
21026 shlibpath_overrides_runpath
=yes
21027 if test "$with_gnu_ld" = yes; then
21035 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21036 soname_spec
='${libname}${release}${shared_ext}$major'
21037 shlibpath_var
=LD_LIBRARY_PATH
21038 case $host_vendor in
21040 shlibpath_overrides_runpath
=no
21042 runpath_var
=LD_RUN_PATH
21050 shlibpath_overrides_runpath
=no
21051 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21057 if test -d /usr
/nec
;then
21059 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21060 soname_spec
='$libname${shared_ext}.$major'
21061 shlibpath_var
=LD_LIBRARY_PATH
21065 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21066 version_type
=freebsd-elf
21069 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21070 soname_spec
='${libname}${release}${shared_ext}$major'
21071 shlibpath_var
=LD_LIBRARY_PATH
21072 shlibpath_overrides_runpath
=yes
21073 hardcode_into_libs
=yes
21074 if test "$with_gnu_ld" = yes; then
21075 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21077 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21080 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21084 sys_lib_dlsearch_path_spec
='/usr/lib'
21088 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21092 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21093 shlibpath_var
=LD_LIBRARY_PATH
21094 shlibpath_overrides_runpath
=no
21095 hardcode_into_libs
=yes
21100 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21101 soname_spec
='${libname}${release}${shared_ext}$major'
21102 shlibpath_var
=LD_LIBRARY_PATH
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21110 $as_echo "$dynamic_linker" >&6; }
21111 test "$dynamic_linker" = no
&& can_build_shared
=no
21113 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21114 if test "$GCC" = yes; then
21115 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21118 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21119 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21121 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21122 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21163 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21164 hardcode_action_CXX
=
21165 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21166 test -n "$runpath_var_CXX" ||
21167 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21169 # We can hardcode non-existent directories.
21170 if test "$hardcode_direct_CXX" != no
&&
21171 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21172 # have to relink, otherwise we might link with an installed library
21173 # when we should be linking with a yet-to-be-installed one
21174 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21175 test "$hardcode_minus_L_CXX" != no
; then
21176 # Linking always hardcodes the temporary library directory.
21177 hardcode_action_CXX
=relink
21179 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21180 hardcode_action_CXX
=immediate
21183 # We cannot hardcode anything, or else we can only hardcode existing
21185 hardcode_action_CXX
=unsupported
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21188 $as_echo "$hardcode_action_CXX" >&6; }
21190 if test "$hardcode_action_CXX" = relink ||
21191 test "$inherit_rpath_CXX" = yes; then
21192 # Fast installation is not supported
21193 enable_fast_install
=no
21194 elif test "$shlibpath_overrides_runpath" = yes ||
21195 test "$enable_shared" = no
; then
21196 # Fast installation is not necessary
21197 enable_fast_install
=needless
21206 fi # test -n "$compiler"
21212 with_gnu_ld
=$lt_save_with_gnu_ld
21213 lt_cv_path_LDCXX
=$lt_cv_path_LD
21214 lt_cv_path_LD
=$lt_save_path_LD
21215 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21216 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21217 fi # test "$_lt_caught_CXX_error" != yes
21220 ac_cpp
='$CPP $CPPFLAGS'
21221 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21222 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21223 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21240 # Only expand once:
21246 # Identify the assembler which will work hand-in-glove with the newly
21247 # built GCC, so that we can examine its features. This is the assembler
21248 # which will be driven by the driver program.
21250 # If build != host, and we aren't building gas in-tree, we identify a
21251 # build->target assembler and hope that it will have the same features
21252 # as the host->target assembler we'll be using.
21253 gcc_cv_gas_major_version
=
21254 gcc_cv_gas_minor_version
=
21255 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21257 if test "${gcc_cv_as+set}" = set; then :
21261 if test -x "$DEFAULT_ASSEMBLER"; then
21262 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21263 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21264 && test -f ..
/gas
/Makefile \
21265 && test x
$build = x
$host; then
21266 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21267 elif test -x as
$build_exeext; then
21268 # Build using assembler in the current directory.
21269 gcc_cv_as
=.
/as
$build_exeext
21270 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21271 gcc_cv_as
="$AS_FOR_TARGET"
21273 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21274 set dummy
$AS_FOR_TARGET; ac_word
=$2
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21276 $as_echo_n "checking for $ac_word... " >&6; }
21277 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21278 $as_echo_n "(cached) " >&6
21282 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21286 for as_dir
in $PATH
21289 test -z "$as_dir" && as_dir
=.
21290 for ac_exec_ext
in '' $ac_executable_extensions; do
21291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21292 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21303 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21304 if test -n "$gcc_cv_as"; then
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21306 $as_echo "$gcc_cv_as" >&6; }
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21309 $as_echo "no" >&6; }
21316 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21318 case "$ORIGINAL_AS_FOR_TARGET" in
21319 .
/as | .
/as
$build_exeext) ;;
21320 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21325 $as_echo_n "checking what assembler to use... " >&6; }
21326 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21327 # Single tree build which includes gas. We want to prefer it
21328 # over whatever linker top-level may have detected, since
21329 # we'll use what we're building after installation anyway.
21330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21331 $as_echo "newly built gas" >&6; }
21333 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21334 for f
in $gcc_cv_as_bfd_srcdir/configure \
21335 $gcc_cv_as_gas_srcdir/configure \
21336 $gcc_cv_as_gas_srcdir/configure.
in \
21337 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21338 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21339 if test x
$gcc_cv_gas_version != x
; then
21343 case $gcc_cv_gas_version in
21345 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21347 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21348 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21349 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21350 case $gcc_cv_gas_patch_version in
21351 "") gcc_cv_gas_patch_version
="0" ;;
21353 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21354 + $gcc_cv_gas_minor_version \) \* 1000 \
21355 + $gcc_cv_gas_patch_version`
21357 in_tree_gas_is_elf
=no
21358 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21359 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21360 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21362 in_tree_gas_is_elf
=yes
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21366 $as_echo "$gcc_cv_as" >&6; }
21370 # Identify the linker which will work hand-in-glove with the newly
21371 # built GCC, so that we can examine its features. This is the linker
21372 # which will be driven by the driver program.
21374 # If build != host, and we aren't building gas in-tree, we identify a
21375 # build->target linker and hope that it will have the same features
21376 # as the host->target linker we'll be using.
21377 gcc_cv_gld_major_version
=
21378 gcc_cv_gld_minor_version
=
21379 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21380 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21382 if test "${gcc_cv_ld+set}" = set; then :
21386 if test -x "$DEFAULT_LINKER"; then
21387 gcc_cv_ld
="$DEFAULT_LINKER"
21388 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21389 && test -f ..
/ld
/Makefile \
21390 && test x
$build = x
$host; then
21391 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21392 elif test -x collect-ld
$build_exeext; then
21393 # Build using linker in the current directory.
21394 gcc_cv_ld
=.
/collect-ld
$build_exeext
21395 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21396 gcc_cv_ld
="$LD_FOR_TARGET"
21398 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21399 set dummy
$LD_FOR_TARGET; ac_word
=$2
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21401 $as_echo_n "checking for $ac_word... " >&6; }
21402 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21403 $as_echo_n "(cached) " >&6
21407 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21411 for as_dir
in $PATH
21414 test -z "$as_dir" && as_dir
=.
21415 for ac_exec_ext
in '' $ac_executable_extensions; do
21416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21417 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21428 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21429 if test -n "$gcc_cv_ld"; then
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21431 $as_echo "$gcc_cv_ld" >&6; }
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21434 $as_echo "no" >&6; }
21441 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21442 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21443 # if the PLUGIN_LD is set ld-new, just have it as ld
21444 # as that is the installed named.
21445 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21446 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21447 PLUGIN_LD_SUFFIX
=ld
21450 # Check whether --with-plugin-ld was given.
21451 if test "${with_plugin_ld+set}" = set; then :
21452 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21453 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21454 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21460 cat >>confdefs.h
<<_ACEOF
21461 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21465 # Check to see if we are using gold instead of ld
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21467 $as_echo_n "checking whether we are using gold... " >&6; }
21469 if test x
$gcc_cv_ld != x
; then
21470 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21471 |
grep "GNU gold" > /dev
/null
; then
21475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21476 $as_echo "$ld_is_gold" >&6; }
21478 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21480 case "$ORIGINAL_LD_FOR_TARGET" in
21481 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21482 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21487 $as_echo_n "checking what linker to use... " >&6; }
21488 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21489 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21490 # Single tree build which includes ld. We want to prefer it
21491 # over whatever linker top-level may have detected, since
21492 # we'll use what we're building after installation anyway.
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21494 $as_echo "newly built ld" >&6; }
21496 in_tree_ld_is_elf
=no
21497 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21498 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21499 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21500 in_tree_ld_is_elf
=yes
21501 elif test "$ld_is_gold" = yes; then
21502 in_tree_ld_is_elf
=yes
21504 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
21506 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21507 if test x
$gcc_cv_gld_version != x
; then
21511 case $gcc_cv_gld_version in
21513 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21515 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21516 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21519 $as_echo "$gcc_cv_ld" >&6; }
21523 # Figure out what nm we will be using.
21524 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21525 if test "${gcc_cv_nm+set}" = set; then :
21529 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21530 && test -f ..
/binutils
/Makefile \
21531 && test x
$build = x
$host; then
21532 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21533 elif test -x nm
$build_exeext; then
21534 gcc_cv_nm
=.
/nm
$build_exeext
21535 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21536 gcc_cv_nm
="$NM_FOR_TARGET"
21538 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21539 set dummy
$NM_FOR_TARGET; ac_word
=$2
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21541 $as_echo_n "checking for $ac_word... " >&6; }
21542 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21543 $as_echo_n "(cached) " >&6
21547 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21551 for as_dir
in $PATH
21554 test -z "$as_dir" && as_dir
=.
21555 for ac_exec_ext
in '' $ac_executable_extensions; do
21556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21557 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21568 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21569 if test -n "$gcc_cv_nm"; then
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21571 $as_echo "$gcc_cv_nm" >&6; }
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21574 $as_echo "no" >&6; }
21581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21582 $as_echo_n "checking what nm to use... " >&6; }
21583 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21584 # Single tree build which includes binutils.
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21586 $as_echo "newly built nm" >&6; }
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21590 $as_echo "$gcc_cv_nm" >&6; }
21594 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21596 case "$ORIGINAL_NM_FOR_TARGET" in
21597 .
/nm | .
/nm
$build_exeext) ;;
21598 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21603 # Figure out what objdump we will be using.
21604 if test "${gcc_cv_objdump+set}" = set; then :
21608 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21609 && test -f ..
/binutils
/Makefile \
21610 && test x
$build = x
$host; then
21611 # Single tree build which includes binutils.
21612 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21613 elif test -x objdump
$build_exeext; then
21614 gcc_cv_objdump
=.
/objdump
$build_exeext
21615 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21616 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21618 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21619 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21621 $as_echo_n "checking for $ac_word... " >&6; }
21622 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21623 $as_echo_n "(cached) " >&6
21625 case $gcc_cv_objdump in
21627 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21631 for as_dir
in $PATH
21634 test -z "$as_dir" && as_dir
=.
21635 for ac_exec_ext
in '' $ac_executable_extensions; do
21636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21637 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21648 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21649 if test -n "$gcc_cv_objdump"; then
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21651 $as_echo "$gcc_cv_objdump" >&6; }
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21654 $as_echo "no" >&6; }
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21662 $as_echo_n "checking what objdump to use... " >&6; }
21663 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21664 # Single tree build which includes binutils.
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21666 $as_echo "newly built objdump" >&6; }
21667 elif test x
$gcc_cv_objdump = x
; then
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21669 $as_echo "not found" >&6; }
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21672 $as_echo "$gcc_cv_objdump" >&6; }
21675 # Figure out what readelf we will be using.
21676 if test "${gcc_cv_readelf+set}" = set; then :
21680 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21681 && test -f ..
/binutils
/Makefile \
21682 && test x
$build = x
$host; then
21683 # Single tree build which includes binutils.
21684 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21685 elif test -x readelf
$build_exeext; then
21686 gcc_cv_readelf
=.
/readelf
$build_exeext
21688 # Extract the first word of "readelf", so it can be a program name with args.
21689 set dummy readelf
; ac_word
=$2
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21691 $as_echo_n "checking for $ac_word... " >&6; }
21692 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21693 $as_echo_n "(cached) " >&6
21695 case $gcc_cv_readelf in
21697 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21701 for as_dir
in $PATH
21704 test -z "$as_dir" && as_dir
=.
21705 for ac_exec_ext
in '' $ac_executable_extensions; do
21706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21707 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21718 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21719 if test -n "$gcc_cv_readelf"; then
21720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21721 $as_echo "$gcc_cv_readelf" >&6; }
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21724 $as_echo "no" >&6; }
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21732 $as_echo_n "checking what readelf to use... " >&6; }
21733 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21734 # Single tree build which includes binutils.
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21736 $as_echo "newly built readelf" >&6; }
21737 elif test x
$gcc_cv_readelf = x
; then
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21739 $as_echo "not found" >&6; }
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21742 $as_echo "$gcc_cv_readelf" >&6; }
21745 # Figure out what assembler alignment features are present.
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21747 $as_echo_n "checking assembler flags... " >&6; }
21748 if test "${gcc_cv_as_flags+set}" = set; then :
21749 $as_echo_n "(cached) " >&6
21752 i
[34567]86-*-linux*)
21753 gcc_cv_as_flags
="--32"
21755 powerpc
*-*-darwin*)
21756 gcc_cv_as_flags
="-arch ppc"
21759 gcc_cv_as_flags
=" "
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21764 $as_echo "$gcc_cv_as_flags" >&6; }
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21767 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21768 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21769 $as_echo_n "(cached) " >&6
21771 gcc_cv_as_balign_and_p2align
=no
21772 if test $in_tree_gas = yes; then
21773 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21774 then gcc_cv_as_balign_and_p2align
=yes
21776 elif test x
$gcc_cv_as != x
; then
21777 $as_echo '.balign 4
21778 .p2align 2' > conftest.s
21779 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21781 (eval $ac_try) 2>&5
21783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21784 test $ac_status = 0; }; }
21786 gcc_cv_as_balign_and_p2align
=yes
21788 echo "configure: failed program was" >&5
21791 rm -f conftest.o conftest.s
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21795 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21796 if test $gcc_cv_as_balign_and_p2align = yes; then
21798 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21803 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21804 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21805 $as_echo_n "(cached) " >&6
21807 gcc_cv_as_max_skip_p2align
=no
21808 if test $in_tree_gas = yes; then
21809 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21810 then gcc_cv_as_max_skip_p2align
=yes
21812 elif test x
$gcc_cv_as != x
; then
21813 $as_echo '.p2align 4,,7' > conftest.s
21814 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21816 (eval $ac_try) 2>&5
21818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21819 test $ac_status = 0; }; }
21821 gcc_cv_as_max_skip_p2align
=yes
21823 echo "configure: failed program was" >&5
21826 rm -f conftest.o conftest.s
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21830 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21831 if test $gcc_cv_as_max_skip_p2align = yes; then
21833 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21838 $as_echo_n "checking assembler for .literal16... " >&6; }
21839 if test "${gcc_cv_as_literal16+set}" = set; then :
21840 $as_echo_n "(cached) " >&6
21842 gcc_cv_as_literal16
=no
21843 if test $in_tree_gas = yes; then
21844 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21845 then gcc_cv_as_literal16
=yes
21847 elif test x
$gcc_cv_as != x
; then
21848 $as_echo '.literal16' > conftest.s
21849 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21851 (eval $ac_try) 2>&5
21853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21854 test $ac_status = 0; }; }
21856 gcc_cv_as_literal16
=yes
21858 echo "configure: failed program was" >&5
21861 rm -f conftest.o conftest.s
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21865 $as_echo "$gcc_cv_as_literal16" >&6; }
21866 if test $gcc_cv_as_literal16 = yes; then
21868 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21873 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21874 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21875 $as_echo_n "(cached) " >&6
21877 gcc_cv_as_subsection_m1
=no
21878 if test $in_tree_gas = yes; then
21879 if test $in_tree_gas_is_elf = yes \
21880 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21881 then gcc_cv_as_subsection_m1
=yes
21883 elif test x
$gcc_cv_as != x
; then
21884 $as_echo 'conftest_label1: .word 0
21886 conftest_label2: .word 0
21887 .previous' > conftest.s
21888 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21890 (eval $ac_try) 2>&5
21892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21893 test $ac_status = 0; }; }
21895 if test x
$gcc_cv_nm != x
; then
21896 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21897 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21898 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21900 else gcc_cv_as_subsection_m1
=yes
21902 rm -f conftest.nm1 conftest.nm2
21905 echo "configure: failed program was" >&5
21908 rm -f conftest.o conftest.s
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21912 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21913 if test $gcc_cv_as_subsection_m1 = yes; then
21915 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21920 $as_echo_n "checking assembler for .weak... " >&6; }
21921 if test "${gcc_cv_as_weak+set}" = set; then :
21922 $as_echo_n "(cached) " >&6
21925 if test $in_tree_gas = yes; then
21926 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21927 then gcc_cv_as_weak
=yes
21929 elif test x
$gcc_cv_as != x
; then
21930 $as_echo ' .weak foobar' > conftest.s
21931 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21933 (eval $ac_try) 2>&5
21935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21936 test $ac_status = 0; }; }
21940 echo "configure: failed program was" >&5
21943 rm -f conftest.o conftest.s
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21947 $as_echo "$gcc_cv_as_weak" >&6; }
21948 if test $gcc_cv_as_weak = yes; then
21950 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21955 $as_echo_n "checking assembler for .weakref... " >&6; }
21956 if test "${gcc_cv_as_weakref+set}" = set; then :
21957 $as_echo_n "(cached) " >&6
21959 gcc_cv_as_weakref
=no
21960 if test $in_tree_gas = yes; then
21961 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21962 then gcc_cv_as_weakref
=yes
21964 elif test x
$gcc_cv_as != x
; then
21965 $as_echo ' .weakref foobar, barfnot' > conftest.s
21966 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21968 (eval $ac_try) 2>&5
21970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21971 test $ac_status = 0; }; }
21973 gcc_cv_as_weakref
=yes
21975 echo "configure: failed program was" >&5
21978 rm -f conftest.o conftest.s
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21982 $as_echo "$gcc_cv_as_weakref" >&6; }
21983 if test $gcc_cv_as_weakref = yes; then
21985 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21990 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21991 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21992 $as_echo_n "(cached) " >&6
21994 gcc_cv_as_nsubspa_comdat
=no
21995 if test $in_tree_gas = yes; then
21996 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21997 then gcc_cv_as_nsubspa_comdat
=yes
21999 elif test x
$gcc_cv_as != x
; then
22000 $as_echo ' .SPACE $TEXT$
22001 .NSUBSPA $CODE$,COMDAT' > conftest.s
22002 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22004 (eval $ac_try) 2>&5
22006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22007 test $ac_status = 0; }; }
22009 gcc_cv_as_nsubspa_comdat
=yes
22011 echo "configure: failed program was" >&5
22014 rm -f conftest.o conftest.s
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22018 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22019 if test $gcc_cv_as_nsubspa_comdat = yes; then
22021 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22025 # .hidden needs to be supported in both the assembler and the linker,
22026 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22027 # This is irritatingly difficult to feature test for; we have to check the
22028 # date string after the version number. If we've got an in-tree
22029 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22031 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22033 $as_echo_n "checking assembler for .hidden... " >&6; }
22034 if test "${gcc_cv_as_hidden+set}" = set; then :
22035 $as_echo_n "(cached) " >&6
22037 gcc_cv_as_hidden
=no
22038 if test $in_tree_gas = yes; then
22039 if test $in_tree_gas_is_elf = yes \
22040 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22041 then gcc_cv_as_hidden
=yes
22043 elif test x
$gcc_cv_as != x
; then
22044 $as_echo ' .hidden foobar
22045 foobar:' > conftest.s
22046 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22048 (eval $ac_try) 2>&5
22050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22051 test $ac_status = 0; }; }
22054 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22055 # STV_HIDDEN, so disable .hidden support if so.
22056 case "${target}" in
22057 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22058 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22059 cat > conftest.s
<<EOF
22064 .set default,hidden
22066 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22067 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22068 grep '\.hidden default' > /dev
/null
; then
22069 gcc_cv_as_hidden
=no
22071 gcc_cv_as_hidden
=yes
22074 # Assume bug is present if objdump is missing.
22075 gcc_cv_as_hidden
=no
22079 gcc_cv_as_hidden
=yes
22083 echo "configure: failed program was" >&5
22086 rm -f conftest.o conftest.s
22089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22090 $as_echo "$gcc_cv_as_hidden" >&6; }
22092 case "${target}" in
22094 # Darwin as has some visibility support, though with a different syntax.
22095 gcc_cv_as_hidden
=yes
22099 # gnu_indirect_function type is an extension proposed at
22100 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22101 # selection of function implementation
22102 # Check whether --enable-gnu-indirect-function was given.
22103 if test "${enable_gnu_indirect_function+set}" = set; then :
22104 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22106 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22107 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22110 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22113 if test x
$enable_gnu_indirect_function = xyes
; then
22115 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22119 if test $in_tree_ld != yes ; then
22120 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22121 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22122 if test x
"$ld_is_gold" = xyes
; then
22123 # GNU gold --version looks like this:
22125 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22127 # We extract the binutils version which is more familiar and specific
22128 # than the gold version.
22129 ld_vers
=`echo $ld_ver | sed -n \
22130 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22132 # GNU ld --version looks like this:
22134 # GNU ld (GNU Binutils) 2.21.51.20110225
22135 ld_vers
=`echo $ld_ver | sed -n \
22136 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22138 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'`
22139 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22140 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22141 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22143 case "${target}" in
22145 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22148 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22149 # /usr/ccs/bin/ld has been configured.
22150 ld_ver
=`$gcc_cv_ld -V 2>&1`
22151 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22152 ld_vers
=`echo $ld_ver | sed -n \
22153 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22154 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22155 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22163 $as_echo_n "checking linker for .hidden support... " >&6; }
22164 if test "${gcc_cv_ld_hidden+set}" = set; then :
22165 $as_echo_n "(cached) " >&6
22167 if test $in_tree_ld = yes ; then
22168 gcc_cv_ld_hidden
=no
22169 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 \
22170 && test $in_tree_ld_is_elf = yes; then
22171 gcc_cv_ld_hidden
=yes
22174 gcc_cv_ld_hidden
=yes
22175 if test x
"$ld_is_gold" = xyes
; then
22177 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22178 case "${target}" in
22179 mmix-knuth-mmixware
)
22180 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22181 gcc_cv_ld_hidden
=no
22184 if test 0"$ld_date" -lt 20020404; then
22185 if test -n "$ld_date"; then
22186 # If there was date string, but was earlier than 2002-04-04, fail
22187 gcc_cv_ld_hidden
=no
22188 elif test -z "$ld_vers"; then
22189 # If there was no date string nor ld version number, something is wrong
22190 gcc_cv_ld_hidden
=no
22192 test -z "$ld_vers_patch" && ld_vers_patch
=0
22193 if test "$ld_vers_major" -lt 2; then
22194 gcc_cv_ld_hidden
=no
22195 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22196 gcc_cv_ld_hidden
="no"
22197 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22198 gcc_cv_ld_hidden
=no
22203 case "${target}" in
22205 # Darwin ld has some visibility support.
22206 gcc_cv_ld_hidden
=yes
22208 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22209 gcc_cv_ld_hidden
=yes
22211 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22212 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22213 # .symbolic was only added in Solaris 9 12/02.
22214 gcc_cv_ld_hidden
=yes
22217 gcc_cv_ld_hidden
=no
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22224 $as_echo "$gcc_cv_ld_hidden" >&6; }
22225 libgcc_visibility
=no
22228 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22229 libgcc_visibility
=yes
22231 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22236 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22237 gcc_cv_ld_ro_rw_mix
=unknown
22238 if test $in_tree_ld = yes ; then
22239 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 \
22240 && test $in_tree_ld_is_elf = yes; then
22241 gcc_cv_ld_ro_rw_mix
=read-write
22243 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22244 echo '.section myfoosect, "a"' > conftest1.s
22245 echo '.section myfoosect, "aw"' > conftest2.s
22246 echo '.byte 1' >> conftest2.s
22247 echo '.section myfoosect, "a"' > conftest3.s
22248 echo '.byte 0' >> conftest3.s
22249 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22250 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22251 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22252 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22253 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22254 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22255 | sed -e '/myfoosect/!d' -e N`
22256 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22257 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22258 gcc_cv_ld_ro_rw_mix
=read-only
22260 gcc_cv_ld_ro_rw_mix
=read-write
22264 rm -f conftest.
* conftest
[123].
*
22266 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22268 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22272 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22274 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22275 case "${target}" in
22278 # Solaris 2 ld -V output looks like this for a regular version:
22280 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22282 # but test versions add stuff at the end:
22284 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22286 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22287 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22288 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22289 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22290 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22291 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22297 # Check whether --enable-initfini-array was given.
22298 if test "${enable_initfini_array+set}" = set; then :
22299 enableval
=$enable_initfini_array;
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22303 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22304 if test "${gcc_cv_initfini_array+set}" = set; then :
22305 $as_echo_n "(cached) " >&6
22307 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22308 case "${target}" in
22310 if test "$cross_compiling" = yes; then :
22311 gcc_cv_initfini_array
=no
22313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22314 /* end confdefs.h. */
22317 #error Not an ELF OS
22319 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22320 if it can be used. */
22322 int main (void) { return x; }
22323 int foo (void) { x = 0; }
22324 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22327 if ac_fn_c_try_run
"$LINENO"; then :
22328 gcc_cv_initfini_array
=yes
22330 gcc_cv_initfini_array
=no
22332 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22333 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22337 gcc_cv_initfini_array
=no
22338 if test $in_tree_ld = yes ; then
22339 if test "$gcc_cv_gld_major_version" -eq 2 \
22340 -a "$gcc_cv_gld_minor_version" -ge 22 \
22341 -o "$gcc_cv_gld_major_version" -gt 2 \
22342 && test $in_tree_ld_is_elf = yes; then
22343 gcc_cv_initfini_array
=yes
22345 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22346 cat > conftest.s
<<\EOF
22347 .section .dtors
,"a",%progbits
22349 .byte
'A', 'A', 'A', 'A'
22350 .section .ctors
,"a",%progbits
22352 .byte
'B', 'B', 'B', 'B'
22353 .section .fini_array
.65530,"a",%progbits
22355 .byte
'C', 'C', 'C', 'C'
22356 .section .init_array
.65530,"a",%progbits
22358 .byte
'D', 'D', 'D', 'D'
22359 .section .dtors
.64528,"a",%progbits
22361 .byte
'E', 'E', 'E', 'E'
22362 .section .ctors
.64528,"a",%progbits
22364 .byte
'F', 'F', 'F', 'F'
22365 .section .fini_array
.01005,"a",%progbits
22367 .byte
'G', 'G', 'G', 'G'
22368 .section .init_array
.01005,"a",%progbits
22370 .byte
'H', 'H', 'H', 'H'
22375 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22376 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22377 && $gcc_cv_objdump -s -j .init_array conftest \
22378 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22379 && $gcc_cv_objdump -s -j .fini_array conftest \
22380 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22381 gcc_cv_initfini_array
=yes
22383 rm -f conftest conftest.
*
22385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22386 /* end confdefs.h. */
22389 # error Not an ELF OS
22391 #include <stdlib.h>
22392 #if defined __GLIBC_PREREQ
22393 # if __GLIBC_PREREQ (2, 4)
22395 # error GLIBC 2.4 required
22398 # if defined __sun__ && defined __svr4__
22399 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22401 # error The C library not known to support .init_array/.fini_array
22406 if ac_fn_c_try_cpp
"$LINENO"; then :
22409 gcc_cv_initfini_array
=no
22411 rm -f conftest.err conftest.
$ac_ext;;
22414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22415 $as_echo_n "checking cross compile... guessing... " >&6; }
22416 gcc_cv_initfini_array
=no
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22420 $as_echo "$gcc_cv_initfini_array" >&6; }
22421 enable_initfini_array
=$gcc_cv_initfini_array
22425 if test $enable_initfini_array = yes; then
22427 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22431 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22433 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22434 if test "${gcc_cv_as_leb128+set}" = set; then :
22435 $as_echo_n "(cached) " >&6
22437 gcc_cv_as_leb128
=no
22438 if test $in_tree_gas = yes; then
22439 if test $in_tree_gas_is_elf = yes \
22440 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22441 then gcc_cv_as_leb128
=yes
22443 elif test x
$gcc_cv_as != x
; then
22450 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22452 (eval $ac_try) 2>&5
22454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22455 test $ac_status = 0; }; }
22457 # GAS versions before 2.11 do not support uleb128,
22458 # despite appearing to.
22459 # ??? There exists an elf-specific test that will crash
22460 # the assembler. Perhaps it's better to figure out whether
22461 # arbitrary sections are supported and try the test.
22462 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22463 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22464 as_vers
=`echo $as_ver | sed -n \
22465 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22466 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22467 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22468 if test $as_major -eq 2 && test $as_minor -lt 11
22470 else gcc_cv_as_leb128
=yes
22474 echo "configure: failed program was" >&5
22477 rm -f conftest.o conftest.s
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22481 $as_echo "$gcc_cv_as_leb128" >&6; }
22482 if test $gcc_cv_as_leb128 = yes; then
22484 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22488 # Check if we have assembler support for unwind directives.
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22490 $as_echo_n "checking assembler for cfi directives... " >&6; }
22491 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22492 $as_echo_n "(cached) " >&6
22494 gcc_cv_as_cfi_directive
=no
22495 if test x
$gcc_cv_as != x
; then
22501 .cfi_escape 1, 2, 3, 4, 5
22502 .cfi_endproc' > conftest.s
22503 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22505 (eval $ac_try) 2>&5
22507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22508 test $ac_status = 0; }; }
22512 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22513 # read-only and read-write sections, we need to make sure that the
22514 # assembler used emits read-write .eh_frame sections.
22515 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22516 if test "x$gcc_cv_objdump" != x
; then
22517 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22518 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22519 gcc_cv_as_cfi_directive
=no
22522 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22523 # On Solaris/x86, make sure that GCC and gas agree on using
22524 # read-only .eh_frame sections for 64-bit.
22525 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22526 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22527 sed -e /.eh_frame
/!d
-e N | \
22528 grep READONLY
> /dev
/null
; then
22529 gcc_cv_as_cfi_directive
=yes
22531 gcc_cv_as_cfi_directive
=no
22535 gcc_cv_as_cfi_directive
=yes
22540 # no objdump, err on the side of caution
22541 gcc_cv_as_cfi_directive
=no
22544 gcc_cv_as_cfi_directive
=yes
22548 gcc_cv_as_cfi_directive
=yes
22552 echo "configure: failed program was" >&5
22555 rm -f conftest.o conftest.s
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22559 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22561 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22563 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22564 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22565 $as_echo_n "(cached) " >&6
22567 gcc_cv_as_cfi_advance_working
=no
22568 if test x
$gcc_cv_as != x
; then
22571 .cfi_adjust_cfa_offset 64
22573 .cfi_adjust_cfa_offset 128
22574 .cfi_endproc' > conftest.s
22575 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22577 (eval $ac_try) 2>&5
22579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22580 test $ac_status = 0; }; }
22583 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22584 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22585 gcc_cv_as_cfi_advance_working
=yes
22589 echo "configure: failed program was" >&5
22592 rm -f conftest.o conftest.s
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22596 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22599 # no objdump, err on the side of caution
22600 gcc_cv_as_cfi_advance_working
=no
22604 cat >>confdefs.h
<<_ACEOF
22605 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22606 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22612 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22613 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22614 $as_echo_n "(cached) " >&6
22616 gcc_cv_as_cfi_personality_directive
=no
22617 if test x
$gcc_cv_as != x
; then
22620 .cfi_personality 0, symbol
22621 .cfi_endproc' > conftest.s
22622 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22624 (eval $ac_try) 2>&5
22626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22627 test $ac_status = 0; }; }
22629 gcc_cv_as_cfi_personality_directive
=yes
22631 echo "configure: failed program was" >&5
22634 rm -f conftest.o conftest.s
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22638 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22641 cat >>confdefs.h
<<_ACEOF
22642 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22643 then echo 1; else echo 0; fi`
22647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22648 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22649 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22650 $as_echo_n "(cached) " >&6
22652 gcc_cv_as_cfi_sections_directive
=no
22653 if test x
$gcc_cv_as != x
; then
22655 .cfi_sections .debug_frame, .eh_frame
22657 .cfi_endproc' > conftest.s
22658 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22660 (eval $ac_try) 2>&5
22662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22663 test $ac_status = 0; }; }
22666 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22667 # Need to check that we generated the correct relocation for the
22668 # .debug_frame section. This was fixed for binutils 2.21.
22669 gcc_cv_as_cfi_sections_directive
=no
22670 if test "x$gcc_cv_objdump" != x
; then
22671 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22672 grep secrel
> /dev
/null
; then
22673 gcc_cv_as_cfi_sections_directive
=yes
22678 gcc_cv_as_cfi_sections_directive
=yes
22682 echo "configure: failed program was" >&5
22685 rm -f conftest.o conftest.s
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22689 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22693 cat >>confdefs.h
<<_ACEOF
22694 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22695 then echo 1; else echo 0; fi`
22699 # GAS versions up to and including 2.11.0 may mis-optimize
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22702 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22703 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22704 $as_echo_n "(cached) " >&6
22706 gcc_cv_as_eh_frame
=no
22707 if test $in_tree_gas = yes; then
22708 if test $in_tree_gas_is_elf = yes \
22709 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22710 then gcc_cv_as_eh_frame
=yes
22712 elif test x
$gcc_cv_as != x
; then
22719 .section .eh_frame,"aw",@progbits
22721 .4byte .LECIE1-.LSCIE1
22735 .4byte .LEFDE1-.LASFDE1
22737 .4byte .LASFDE1-__FRAME_BEGIN__
22744 .LEFDE1:' > conftest.s
22745 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22747 (eval $ac_try) 2>&5
22749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22750 test $ac_status = 0; }; }
22752 cat > conftest.lit
<<EOF
22753 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22754 0010 01000000 12000000 18000000 00000000 ................
22755 0020 08000000 04080000 0044 .........D
22757 cat > conftest.big
<<EOF
22758 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22759 0010 00000001 00000012 00000018 00000000 ................
22760 0020 00000008 04000000 0844 .........D
22762 # If the assembler didn't choke, and we can objdump,
22763 # and we got the correct data, then succeed.
22764 # The text in the here-document typically retains its unix-style line
22765 # endings, while the output of objdump will use host line endings.
22766 # Therefore, use diff -b for the comparisons.
22767 if test x
$gcc_cv_objdump != x \
22768 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22769 |
tail -3 > conftest.got \
22770 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22771 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22773 gcc_cv_as_eh_frame
=yes
22774 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22776 (eval $ac_try) 2>&5
22778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22779 test $ac_status = 0; }; }; then
22780 gcc_cv_as_eh_frame
=buggy
22782 # Uh oh, what do we do now?
22783 gcc_cv_as_eh_frame
=no
22786 echo "configure: failed program was" >&5
22789 rm -f conftest.o conftest.s
22792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22793 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22796 if test $gcc_cv_as_eh_frame = buggy
; then
22798 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22803 $as_echo_n "checking assembler for section merging support... " >&6; }
22804 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22805 $as_echo_n "(cached) " >&6
22807 gcc_cv_as_shf_merge
=no
22808 if test $in_tree_gas = yes; then
22809 if test $in_tree_gas_is_elf = yes \
22810 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22811 then gcc_cv_as_shf_merge
=yes
22813 elif test x
$gcc_cv_as != x
; then
22814 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22815 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22817 (eval $ac_try) 2>&5
22819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22820 test $ac_status = 0; }; }
22822 gcc_cv_as_shf_merge
=yes
22824 echo "configure: failed program was" >&5
22827 rm -f conftest.o conftest.s
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22831 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22833 if test $gcc_cv_as_shf_merge = no
; then
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22835 $as_echo_n "checking assembler for section merging support... " >&6; }
22836 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22837 $as_echo_n "(cached) " >&6
22839 gcc_cv_as_shf_merge
=no
22840 if test $in_tree_gas = yes; then
22841 if test $in_tree_gas_is_elf = yes \
22842 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22843 then gcc_cv_as_shf_merge
=yes
22845 elif test x
$gcc_cv_as != x
; then
22846 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22847 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22849 (eval $ac_try) 2>&5
22851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22852 test $ac_status = 0; }; }
22854 gcc_cv_as_shf_merge
=yes
22856 echo "configure: failed program was" >&5
22859 rm -f conftest.o conftest.s
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22863 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22867 cat >>confdefs.h
<<_ACEOF
22868 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22873 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22874 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22875 $as_echo_n "(cached) " >&6
22877 gcc_cv_as_comdat_group
=no
22878 if test $in_tree_gas = yes; then
22879 if test $in_tree_gas_is_elf = yes \
22880 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22881 then gcc_cv_as_comdat_group
=yes
22883 elif test x
$gcc_cv_as != x
; then
22884 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22885 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22887 (eval $ac_try) 2>&5
22889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22890 test $ac_status = 0; }; }
22892 gcc_cv_as_comdat_group
=yes
22894 echo "configure: failed program was" >&5
22897 rm -f conftest.o conftest.s
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22901 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22903 if test $gcc_cv_as_comdat_group = yes; then
22904 gcc_cv_as_comdat_group_percent
=no
22905 gcc_cv_as_comdat_group_group
=no
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22908 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22909 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22910 $as_echo_n "(cached) " >&6
22912 gcc_cv_as_comdat_group_percent
=no
22913 if test $in_tree_gas = yes; then
22914 if test $in_tree_gas_is_elf = yes \
22915 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22916 then gcc_cv_as_comdat_group_percent
=yes
22918 elif test x
$gcc_cv_as != x
; then
22919 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22920 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22922 (eval $ac_try) 2>&5
22924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22925 test $ac_status = 0; }; }
22927 gcc_cv_as_comdat_group_percent
=yes
22929 echo "configure: failed program was" >&5
22932 rm -f conftest.o conftest.s
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22936 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22938 if test $gcc_cv_as_comdat_group_percent = yes; then
22939 gcc_cv_as_comdat_group_group
=no
22941 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22942 gcc_cv_as_comdat_group_group
=no
22944 case "${target}" in
22945 # Sun as uses a completely different syntax.
22947 case "${target}" in
22948 sparc
*-*-solaris2*)
22950 .group foo,".text%foo",#comdat
22951 .section ".text%foo", #alloc,#execinstr,#progbits
22956 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22958 .group foo,.text%foo,#comdat
22959 .section .text%foo, "ax", @progbits
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22966 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22967 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22968 $as_echo_n "(cached) " >&6
22970 gcc_cv_as_comdat_group_group
=no
22971 if test x
$gcc_cv_as != x
; then
22972 $as_echo "$conftest_s" > conftest.s
22973 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22975 (eval $ac_try) 2>&5
22977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22978 test $ac_status = 0; }; }
22980 gcc_cv_as_comdat_group_group
=yes
22982 echo "configure: failed program was" >&5
22985 rm -f conftest.o conftest.s
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22989 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22995 if test x
"$ld_is_gold" = xyes
; then
22997 elif test $in_tree_ld = yes ; then
22999 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 \
23000 && test $in_tree_ld_is_elf = yes; then
23003 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23005 if test 0"$ld_date" -lt 20050308; then
23006 if test -n "$ld_date"; then
23007 # If there was date string, but was earlier than 2005-03-08, fail
23009 elif test "$ld_vers_major" -lt 2; then
23011 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23016 case "${target}" in
23017 *-*-solaris2.1
[1-9]*)
23019 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23020 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23023 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23024 # least ld version 1.2267.
23025 if test "$ld_vers_major" -gt 1; then
23027 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23029 elif test "$ld_vers_minor" -ge 2267; then
23034 # Assume linkers other than GNU ld don't support COMDAT group.
23039 # Allow overriding the automatic COMDAT group tests above.
23040 # Check whether --enable-comdat was given.
23041 if test "${enable_comdat+set}" = set; then :
23042 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23045 if test $comdat_group = no
; then
23046 gcc_cv_as_comdat_group
=no
23047 gcc_cv_as_comdat_group_percent
=no
23048 gcc_cv_as_comdat_group_group
=no
23051 cat >>confdefs.h
<<_ACEOF
23052 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23053 || test $gcc_cv_as_comdat_group_percent = yes \
23054 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23059 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23060 if test "${gcc_cv_as_discriminator+set}" = set; then :
23061 $as_echo_n "(cached) " >&6
23063 gcc_cv_as_discriminator
=no
23064 if test $in_tree_gas = yes; then
23065 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23066 then gcc_cv_as_discriminator
=yes
23068 elif test x
$gcc_cv_as != x
; then
23071 .loc 1 1 0 discriminator 1' > conftest.s
23072 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23074 (eval $ac_try) 2>&5
23076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23077 test $ac_status = 0; }; }
23079 gcc_cv_as_discriminator
=yes
23081 echo "configure: failed program was" >&5
23084 rm -f conftest.o conftest.s
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23088 $as_echo "$gcc_cv_as_discriminator" >&6; }
23089 if test $gcc_cv_as_discriminator = yes; then
23091 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23095 # Thread-local storage - the check is heavily parameterized.
23103 .section ".tdata","awT",@progbits
23106 ldq $27,__tls_get_addr($29) !literal!1
23107 lda $16,foo($29) !tlsgd!1
23108 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23109 ldq $27,__tls_get_addr($29) !literal!2
23110 lda $16,foo($29) !tlsldm!2
23111 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23112 ldq $1,foo($29) !gotdtprel
23113 ldah $2,foo($29) !dtprelhi
23114 lda $3,foo($2) !dtprello
23115 lda $4,foo($29) !dtprel
23116 ldq $1,foo($29) !gottprel
23117 ldah $2,foo($29) !tprelhi
23118 lda $3,foo($2) !tprello
23119 lda $4,foo($29) !tprel'
23122 tls_as_opt
=--fatal-warnings
23124 cris-
*-*|crisv32-
*-*)
23126 .section ".tdata","awT",@progbits
23133 tls_as_opt
=--fatal-warnings
23137 .section ".tdata","awT",@progbits
23140 call #gettlsoff(x)'
23149 .section ".tdata","awT",@progbits
23153 addil LT%foo-$tls_gdidx$,gp
23154 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23157 addil LT%foo-$tls_ldidx$,gp
23159 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23160 addil LR%foo-$tls_dtpoff$,%ret0
23161 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23163 addil LT%foo-$tls_ieoff$,gp
23164 ldw RT%foo-$tls_ieoff$(%r1),%t2
23167 addil LR%foo-$tls_leoff$,%t1
23168 ldo RR%foo-$tls_leoff$(%r1),%t2'
23171 tls_as_opt
=--fatal-warnings
23175 .section ".tdata","awT",%progbits
23178 .word foo(gottpoff)
23186 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23188 i
[34567]86-*-solaris2.
*)
23190 tga_func
=___tls_get_addr
23192 x86_64-
*-solaris2.1
[0-9]*)
23194 tga_func
=__tls_get_addr
23200 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23202 .section .tdata,"awt",@progbits'
23206 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23210 .section ".tdata","awT",@progbits'
23213 tls_as_opt
="--fatal-warnings"
23215 conftest_s
="$conftest_s
23219 leal foo@tlsgd(,%ebx,1), %eax
23220 leal foo@tlsldm(%ebx), %eax
23221 leal foo@dtpoff(%eax), %edx
23222 movl foo@gottpoff(%ebx), %eax
23223 subl foo@gottpoff(%ebx), %eax
23224 addl foo@gotntpoff(%ebx), %eax
23225 movl foo@indntpoff, %eax
23226 movl \$foo@tpoff, %eax
23227 subl \$foo@tpoff, %eax
23228 leal foo@ntpoff(%ecx), %eax"
23232 .section ".tdata","awT",@progbits
23236 leaq foo@TLSGD(%rip), %rdi
23237 leaq foo@TLSLD(%rip), %rdi
23238 leaq foo@DTPOFF(%rax), %rdx
23239 movq foo@GOTTPOFF(%rip), %rax
23240 movq $foo@TPOFF, %rax'
23243 tls_as_opt
=--fatal-warnings
23247 .section ".tdata","awT",@progbits
23250 addl r16 = @ltoff(@dtpmod(foo#)), gp
23251 addl r17 = @ltoff(@dtprel(foo#)), gp
23252 addl r18 = @ltoff(@tprel(foo#)), gp
23253 addl r19 = @dtprel(foo#), gp
23254 adds r21 = @dtprel(foo#), r13
23255 movl r23 = @dtprel(foo#)
23256 addl r20 = @tprel(foo#), gp
23257 adds r22 = @tprel(foo#), r13
23258 movl r24 = @tprel(foo#)'
23261 tls_as_opt
=--fatal-warnings
23265 .section .tdata,"awT",@progbits
23269 addik r5,r20,x@TLSGD
23270 addik r5,r20,x@TLSLDM'
23273 tls_as_opt
='--fatal-warnings'
23277 .section .tdata,"awT",@progbits
23281 addiu $4, $28, %tlsgd(x)
23282 addiu $4, $28, %tlsldm(x)
23283 lui $4, %dtprel_hi(x)
23284 addiu $4, $4, %dtprel_lo(x)
23285 lw $4, %gottprel(x)($28)
23286 lui $4, %tprel_hi(x)
23287 addiu $4, $4, %tprel_lo(x)'
23290 tls_as_opt
='-32 --fatal-warnings'
23294 .section .tdata,"awT",@progbits
23299 move.l x@TLSGD(%a5),%a0
23300 move.l x@TLSLDM(%a5),%a0
23301 move.l x@TLSLDO(%a5),%a0
23302 move.l x@TLSIE(%a5),%a0
23303 move.l x@TLSLE(%a5),%a0'
23306 tls_as_opt
='--fatal-warnings'
23310 .section ".tdata","awT",%progbits
23314 add x0, x0, #:tlsgd_lo12:x
23319 tls_as_opt
='--fatal-warnings'
23323 .extern __get_tpointer
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
23383 addi 3,31,ld0@got@tlsgd
23385 addi 3,31,x1@got@tlsld
23388 addis 9,3,x2@dtprel@ha
23389 addi 9,9,x2@dtprel@l
23390 lwz 9,x3@got@tprel(31)
23393 addis 9,2,x2@tprel@ha
23394 addi 9,9,x2@tprel@l'
23397 tls_as_opt
="-a32 --fatal-warnings"
23401 .section ".tdata","awT",@progbits
23408 .long foo@GOTNTPOFF
23409 .long foo@INDNTPOFF
23410 l %r1,foo@GOTNTPOFF(%r12)
23411 l %r1,0(%r1):tls_load:foo
23412 bas %r14,0(%r1,%r13):tls_gdcall:foo
23413 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23416 tls_as_opt
="-m31 --fatal-warnings"
23420 .section ".tdata","awT",@progbits
23427 .quad foo@GOTNTPOFF
23428 lg %r1,foo@GOTNTPOFF(%r12)
23429 larl %r1,foo@INDNTPOFF
23430 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23431 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23434 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23436 sh-
*-* | sh
[34]-*-*)
23438 .section ".tdata","awT",@progbits
23448 tls_as_opt
=--fatal-warnings
23452 sparc
*-sun-solaris2.
*)
23454 tga_func
=__tls_get_addr
23460 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23462 .section ".tdata",#alloc,#write,#tls'
23467 .section ".tdata","awT",@progbits'
23470 tls_as_opt
="-32 --fatal-warnings"
23472 conftest_s
="$conftest_s
23475 sethi %tgd_hi22(foo), %o0
23476 add %o0, %tgd_lo10(foo), %o1
23477 add %l7, %o1, %o0, %tgd_add(foo)
23478 call __tls_get_addr, %tgd_call(foo)
23479 sethi %tldm_hi22(foo), %l1
23480 add %l1, %tldm_lo10(foo), %l2
23481 add %l7, %l2, %o0, %tldm_add(foo)
23482 call __tls_get_addr, %tldm_call(foo)
23483 sethi %tldo_hix22(foo), %l3
23484 xor %l3, %tldo_lox10(foo), %l4
23485 add %o0, %l4, %l5, %tldo_add(foo)
23486 sethi %tie_hi22(foo), %o3
23487 add %o3, %tie_lo10(foo), %o3
23488 ld [%l7 + %o3], %o2, %tie_ld(foo)
23489 add %g7, %o2, %o4, %tie_add(foo)
23490 sethi %tle_hix22(foo), %l1
23491 xor %l1, %tle_lox10(foo), %o5
23492 ld [%g7 + %o5], %o1"
23496 .section ".tdata","awT",@progbits
23499 addli r0, zero, tls_gd(foo)
23500 auli r0, zero, tls_gd_ha16(foo)
23501 addli r0, r0, tls_gd_lo16(foo)
23503 addli r0, zero, tls_ie(foo)
23504 auli r0, r0, tls_ie_ha16(foo)
23505 addli r0, r0, tls_ie_lo16(foo)'
23508 tls_as_opt
="--fatal-warnings"
23512 .section ".tdata","awT",@progbits
23515 shl16insli r0, zero, hw0_last_tls_gd(foo)
23516 shl16insli r0, zero, hw1_last_tls_gd(foo)
23517 shl16insli r0, r0, hw0_tls_gd(foo)
23519 shl16insli r0, zero, hw1_last_tls_ie(foo)
23520 shl16insli r0, r0, hw0_tls_ie(foo)'
23523 tls_as_opt
="--fatal-warnings"
23527 .section ".tdata","awT",@progbits
23530 movi a8, foo@TLSFUNC
23531 movi a10, foo@TLSARG
23532 callx8.tls a8, foo@TLSCALL'
23538 if test "x$enable_tls" = xno
; then
23539 : # TLS explicitly disabled.
23540 elif test "x$enable_tls" = xyes
; then
23541 set_have_as_tls
=yes # TLS explicitly enabled.
23542 elif test -z "$tls_first_major"; then
23543 : # If we don't have a check, assume no support.
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23546 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23547 if test "${gcc_cv_as_tls+set}" = set; then :
23548 $as_echo_n "(cached) " >&6
23551 if test $in_tree_gas = yes; then
23552 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23553 then gcc_cv_as_tls
=yes
23555 elif test x
$gcc_cv_as != x
; then
23556 $as_echo "$conftest_s" > conftest.s
23557 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23559 (eval $ac_try) 2>&5
23561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23562 test $ac_status = 0; }; }
23566 echo "configure: failed program was" >&5
23569 rm -f conftest.o conftest.s
23572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23573 $as_echo "$gcc_cv_as_tls" >&6; }
23574 if test $gcc_cv_as_tls = yes; then
23575 set_have_as_tls
=yes
23579 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23580 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23581 # Sun style that Sun ld and GCC don't support any longer.
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23584 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23586 # Check ld and ld.so.1 TLS support.
23587 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23588 # Assume all interesting versions of GNU ld have TLS support.
23589 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23593 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23595 min_tls_ld_vers_minor
=374
23597 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23598 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23599 min_tls_ld_vers_minor
=343
23602 if test "$ld_vers_major" -gt 1 || \
23603 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23610 $as_echo "$ld_tls_support" >&6; }
23613 save_LDFLAGS
="$LDFLAGS"
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23618 $as_echo_n "checking library containing $tga_func... " >&6; }
23619 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23620 # (32-bit x86) only lived in libthread, so check for that. Keep
23621 # set_have_as_tls if found, disable if not.
23622 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23624 $as_echo_n "checking for library containing $tga_func... " >&6; }
23625 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23626 $as_echo_n "(cached) " >&6
23628 ac_func_search_save_LIBS
=$LIBS
23629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23630 /* end confdefs.h. */
23632 /* Override any GCC internal prototype to avoid an error.
23633 Use char because int might match the return type of a GCC
23634 builtin and then its argument prototype would still apply. */
23642 return $tga_func ();
23647 for ac_lib
in '' thread
; do
23648 if test -z "$ac_lib"; then
23649 ac_res
="none required"
23652 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23654 if ac_fn_c_try_link
"$LINENO"; then :
23655 eval "$as_ac_Search=\$ac_res"
23657 rm -f core conftest.err conftest.
$ac_objext \
23659 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23663 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23666 eval "$as_ac_Search=no"
23668 rm conftest.
$ac_ext
23669 LIBS
=$ac_func_search_save_LIBS
23671 eval ac_res
=\$
$as_ac_Search
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23673 $as_echo "$ac_res" >&6; }
23674 eval ac_res
=\$
$as_ac_Search
23675 if test "$ac_res" != no
; then :
23676 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23682 # Clear LIBS if we cannot support TLS.
23683 if test $set_have_as_tls = no
; then
23686 # Always define LIB_TLS_SPEC, even without TLS support.
23688 cat >>confdefs.h
<<_ACEOF
23689 #define LIB_TLS_SPEC "$LIBS"
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23693 $as_echo "$LIBS" >&6; }
23696 LDFLAGS
="$save_LDFLAGS"
23699 if test $set_have_as_tls = yes ; then
23701 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23705 # Target-specific assembler checks.
23707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23708 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23709 gcc_cv_ld_static_dynamic
=no
23710 gcc_cv_ld_static_option
='-Bstatic'
23711 gcc_cv_ld_dynamic_option
='-Bdynamic'
23712 if test $in_tree_ld = yes ; then
23713 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
23714 gcc_cv_ld_static_dynamic
=yes
23716 elif test x
$gcc_cv_ld != x
; then
23717 # Check if linker supports -Bstatic/-Bdynamic option
23718 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23719 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23720 gcc_cv_ld_static_dynamic
=yes
23723 # AIX ld uses -b flags
23724 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
23725 gcc_cv_ld_static_dynamic
=yes
23726 gcc_cv_ld_static_option
="-bstatic"
23727 gcc_cv_ld_dynamic_option
="-bdynamic"
23729 # HP-UX ld uses -a flags to select between shared and archive.
23731 if test x
"$gnu_ld" = xno
; then
23732 gcc_cv_ld_static_dynamic
=yes
23733 gcc_cv_ld_static_option
="-aarchive_shared"
23734 gcc_cv_ld_dynamic_option
="-adefault"
23737 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23739 gcc_cv_ld_static_dynamic
=yes
23744 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23746 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23749 cat >>confdefs.h
<<_ACEOF
23750 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23754 cat >>confdefs.h
<<_ACEOF
23755 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23760 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23762 if test x
"$demangler_in_ld" = xyes
; then
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23764 $as_echo_n "checking linker --demangle support... " >&6; }
23765 gcc_cv_ld_demangle
=no
23766 if test $in_tree_ld = yes; then
23767 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 \
23768 gcc_cv_ld_demangle
=yes
23770 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23771 # Check if the GNU linker supports --demangle option
23772 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23773 gcc_cv_ld_demangle
=yes
23776 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23778 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23782 $as_echo "$gcc_cv_ld_demangle" >&6; }
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23786 $as_echo_n "checking linker plugin support... " >&6; }
23787 gcc_cv_lto_plugin
=0
23788 if test -f liblto_plugin.la
; then
23789 save_ld_ver
="$ld_ver"
23790 save_ld_vers_major
="$ld_vers_major"
23791 save_ld_vers_minor
="$ld_vers_minor"
23792 save_ld_is_gold
="$ld_is_gold"
23796 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23798 # FIXME: ld_is_gold?
23799 ld_vers_major
="$gcc_cv_gld_major_version"
23800 ld_vers_minor
="$gcc_cv_gld_minor_version"
23802 # Determine plugin linker version.
23803 # FIXME: Partial duplicate from above, generalize.
23804 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23805 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23806 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23808 ld_vers
=`echo $ld_ver | sed -n \
23809 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23811 ld_vers
=`echo $ld_ver | sed -n \
23812 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23814 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23815 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23819 # Determine plugin support.
23820 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23821 # Require GNU ld or gold 2.21+ for plugin support by default.
23822 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23823 gcc_cv_lto_plugin
=2
23824 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23825 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23826 gcc_cv_lto_plugin
=1
23830 ld_ver
="$save_ld_ver"
23831 ld_vers_major
="$save_ld_vers_major"
23832 ld_vers_minor
="$save_ld_vers_minor"
23833 ld_is_gold
="$save_ld_is_gold"
23836 cat >>confdefs.h
<<_ACEOF
23837 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23841 $as_echo "$gcc_cv_lto_plugin" >&6; }
23844 # All TARGET_ABI_OSF targets.
23845 alpha
*-*-linux* | alpha
*-*-*bsd
*)
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23847 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23848 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23849 $as_echo_n "(cached) " >&6
23851 gcc_cv_as_alpha_explicit_relocs
=no
23852 if test $in_tree_gas = yes; then
23853 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23854 then gcc_cv_as_alpha_explicit_relocs
=yes
23856 elif test x
$gcc_cv_as != x
; then
23857 $as_echo ' .set nomacro
23859 extbl $3, $2, $3 !lituse_bytoff!1
23860 ldq $2, a($29) !literal!1
23861 ldq $4, b($29) !literal!2
23862 ldq_u $3, 0($2) !lituse_base!1
23863 ldq $27, f($29) !literal!5
23864 jsr $26, ($27), f !lituse_jsr!5
23865 ldah $29, 0($26) !gpdisp!3
23866 lda $0, c($29) !gprel
23867 ldah $1, d($29) !gprelhigh
23868 lda $1, d($1) !gprellow
23869 lda $29, 0($29) !gpdisp!3' > conftest.s
23870 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23872 (eval $ac_try) 2>&5
23874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23875 test $ac_status = 0; }; }
23877 gcc_cv_as_alpha_explicit_relocs
=yes
23879 echo "configure: failed program was" >&5
23882 rm -f conftest.o conftest.s
23885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23886 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23887 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23889 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23893 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23894 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23895 $as_echo_n "(cached) " >&6
23897 gcc_cv_as_alpha_jsrdirect_relocs
=no
23898 if test $in_tree_gas = yes; then
23899 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23900 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23902 elif test x
$gcc_cv_as != x
; then
23903 $as_echo ' .set nomacro
23905 ldq $27, a($29) !literal!1
23906 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23907 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23909 (eval $ac_try) 2>&5
23911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23912 test $ac_status = 0; }; }
23914 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23916 echo "configure: failed program was" >&5
23919 rm -f conftest.o conftest.s
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23923 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23924 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23926 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23933 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23934 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23935 $as_echo_n "(cached) " >&6
23937 gcc_cv_as_cris_no_mul_bug
=no
23938 if test $in_tree_gas = yes; then
23939 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23940 then gcc_cv_as_cris_no_mul_bug
=yes
23942 elif test x
$gcc_cv_as != x
; then
23943 $as_echo '.text' > conftest.s
23944 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23946 (eval $ac_try) 2>&5
23948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23949 test $ac_status = 0; }; }
23951 gcc_cv_as_cris_no_mul_bug
=yes
23953 echo "configure: failed program was" >&5
23956 rm -f conftest.o conftest.s
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23960 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23961 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23963 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23970 $as_echo_n "checking assembler for .register... " >&6; }
23971 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23972 $as_echo_n "(cached) " >&6
23974 gcc_cv_as_sparc_register_op
=no
23975 if test x
$gcc_cv_as != x
; then
23976 $as_echo '.register %g2, #scratch' > conftest.s
23977 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23979 (eval $ac_try) 2>&5
23981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23982 test $ac_status = 0; }; }
23984 gcc_cv_as_sparc_register_op
=yes
23986 echo "configure: failed program was" >&5
23989 rm -f conftest.o conftest.s
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23993 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23994 if test $gcc_cv_as_sparc_register_op = yes; then
23996 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24001 $as_echo_n "checking assembler for #nobits... " >&6; }
24002 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24003 $as_echo_n "(cached) " >&6
24005 gcc_cv_as_sparc_nobits
=no
24006 if test x
$gcc_cv_as != x
; then
24007 $as_echo '.section "nobits",#alloc,#write,#nobits
24008 .section "progbits",#alloc,#write,#progbits' > conftest.s
24009 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24011 (eval $ac_try) 2>&5
24013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24014 test $ac_status = 0; }; }
24016 gcc_cv_as_sparc_nobits
=yes
24018 echo "configure: failed program was" >&5
24021 rm -f conftest.o conftest.s
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24025 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24028 cat >>confdefs.h
<<_ACEOF
24029 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24034 $as_echo_n "checking assembler for -relax option... " >&6; }
24035 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24036 $as_echo_n "(cached) " >&6
24038 gcc_cv_as_sparc_relax
=no
24039 if test x
$gcc_cv_as != x
; then
24040 $as_echo '.text' > conftest.s
24041 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24043 (eval $ac_try) 2>&5
24045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24046 test $ac_status = 0; }; }
24048 gcc_cv_as_sparc_relax
=yes
24050 echo "configure: failed program was" >&5
24053 rm -f conftest.o conftest.s
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24057 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24058 if test $gcc_cv_as_sparc_relax = yes; then
24060 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24065 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24066 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24067 $as_echo_n "(cached) " >&6
24069 gcc_cv_as_sparc_gotdata_op
=no
24070 if test x
$gcc_cv_as != x
; then
24076 sethi %gdop_hix22(foo), %g1
24077 xor %g1, %gdop_lox10(foo), %g1
24078 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24079 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24081 (eval $ac_try) 2>&5
24083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24084 test $ac_status = 0; }; }
24086 if test x
$gcc_cv_ld != x \
24087 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24088 if test x
$gcc_cv_objdump != x
; then
24089 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24090 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24091 gcc_cv_as_sparc_gotdata_op
=no
24093 gcc_cv_as_sparc_gotdata_op
=yes
24099 echo "configure: failed program was" >&5
24102 rm -f conftest.o conftest.s
24105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24106 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24107 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24109 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24114 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24115 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24116 $as_echo_n "(cached) " >&6
24118 gcc_cv_as_sparc_ua_pcrel
=no
24119 if test x
$gcc_cv_as != x
; then
24126 .uaword %r_disp32(foo)' > conftest.s
24127 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24129 (eval $ac_try) 2>&5
24131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24132 test $ac_status = 0; }; }
24134 if test x
$gcc_cv_ld != x \
24135 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24136 gcc_cv_as_sparc_ua_pcrel
=yes
24140 echo "configure: failed program was" >&5
24143 rm -f conftest.o conftest.s
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24147 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24148 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24150 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24154 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24155 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24156 $as_echo_n "(cached) " >&6
24158 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24159 if test x
$gcc_cv_as != x
; then
24163 .uaword %r_disp32(foo)
24164 .byte 0x32, 0x33, 0x34
24168 .skip 4' > conftest.s
24169 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24171 (eval $ac_try) 2>&5
24173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24174 test $ac_status = 0; }; }
24176 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24177 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24178 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24179 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24180 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24181 |
grep 'DISP32' > /dev
/null
2>&1; then
24184 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24189 echo "configure: failed program was" >&5
24192 rm -f conftest.o conftest.s
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24196 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24197 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24199 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24203 fi # unaligned pcrel relocs
24205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24206 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24207 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24208 $as_echo_n "(cached) " >&6
24210 gcc_cv_as_sparc_offsetable_lo10
=no
24211 if test x
$gcc_cv_as != x
; then
24213 or %g1, %lo(ab) + 12, %g1
24214 or %g1, %lo(ab + 12), %g1' > conftest.s
24215 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24217 (eval $ac_try) 2>&5
24219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24220 test $ac_status = 0; }; }
24222 if test x
$gcc_cv_objdump != x \
24223 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24224 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24225 gcc_cv_as_sparc_offsetable_lo10
=yes
24228 echo "configure: failed program was" >&5
24231 rm -f conftest.o conftest.s
24234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24235 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24236 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24238 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24243 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24244 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24245 $as_echo_n "(cached) " >&6
24247 gcc_cv_as_sparc_fmaf
=no
24248 if test x
$gcc_cv_as != x
; then
24250 .register %g2, #scratch
24251 .register %g3, #scratch
24253 fmaddd %f0, %f2, %f4, %f6
24254 addxccc %g1, %g2, %g3
24255 fsrl32 %f2, %f4, %f8
24256 fnaddd %f10, %f12, %f14' > conftest.s
24257 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24259 (eval $ac_try) 2>&5
24261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24262 test $ac_status = 0; }; }
24264 gcc_cv_as_sparc_fmaf
=yes
24266 echo "configure: failed program was" >&5
24269 rm -f conftest.o conftest.s
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24273 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24274 if test $gcc_cv_as_sparc_fmaf = yes; then
24276 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24281 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24282 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24283 $as_echo_n "(cached) " >&6
24285 gcc_cv_as_sparc_sparc4
=no
24286 if test x
$gcc_cv_as != x
; then
24288 .register %g2, #scratch
24289 .register %g3, #scratch
24292 1: cwbneg %g2, %g3, 1f
24295 aes_kexpand0 %f4, %f6, %f8
24296 des_round %f38, %f40, %f42, %f44
24297 camellia_f %f54, %f56, %f58, %f60
24298 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24299 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24301 (eval $ac_try) 2>&5
24303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24304 test $ac_status = 0; }; }
24306 gcc_cv_as_sparc_sparc4
=yes
24308 echo "configure: failed program was" >&5
24311 rm -f conftest.o conftest.s
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24315 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24316 if test $gcc_cv_as_sparc_sparc4 = yes; then
24318 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24323 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24324 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24325 $as_echo_n "(cached) " >&6
24327 gcc_cv_as_sparc_leon
=no
24328 if test x
$gcc_cv_as != x
; then
24330 .register %g2, #scratch
24331 .register %g3, #scratch
24335 cas [%g2], %g3, %g1' > conftest.s
24336 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24338 (eval $ac_try) 2>&5
24340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24341 test $ac_status = 0; }; }
24343 gcc_cv_as_sparc_leon
=yes
24345 echo "configure: failed program was" >&5
24348 rm -f conftest.o conftest.s
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24352 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24353 if test $gcc_cv_as_sparc_leon = yes; then
24355 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24360 i
[34567]86-*-* | x86_64-
*-*)
24363 # Full C++ conformance when using a shared libstdc++-v3 requires some
24364 # support from the Cygwin DLL, which in more recent versions exports
24365 # wrappers to aid in interposing and redirecting operators new, delete,
24366 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24367 # are configuring for a version of Cygwin that exports the wrappers.
24368 if test x
$host = x
$target; then
24369 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24370 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24371 gcc_ac_cygwin_dll_wrappers
=yes
24373 gcc_ac_cygwin_dll_wrappers
=no
24377 # Can't check presence of libc functions during cross-compile, so
24378 # we just have to assume we're building for an up-to-date target.
24379 gcc_ac_cygwin_dll_wrappers
=yes
24382 cat >>confdefs.h
<<_ACEOF
24383 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24388 cygwin
* | pe | mingw32
* | interix
*)
24389 # Recent binutils allows the three-operand form of ".comm" on PE. This
24390 # definition is used unconditionally to initialise the default state of
24391 # the target option variable that governs usage of the feature.
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24393 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24394 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24395 $as_echo_n "(cached) " >&6
24397 gcc_cv_as_comm_has_align
=no
24398 if test $in_tree_gas = yes; then
24399 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24400 then gcc_cv_as_comm_has_align
=yes
24402 elif test x
$gcc_cv_as != x
; then
24403 $as_echo '.comm foo,1,32' > conftest.s
24404 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24406 (eval $ac_try) 2>&5
24408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24409 test $ac_status = 0; }; }
24411 gcc_cv_as_comm_has_align
=yes
24413 echo "configure: failed program was" >&5
24416 rm -f conftest.o conftest.s
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24420 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24423 cat >>confdefs.h
<<_ACEOF
24424 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24427 # Used for DWARF 2 in PE
24428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24429 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24430 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24431 $as_echo_n "(cached) " >&6
24433 gcc_cv_as_ix86_pe_secrel32
=no
24434 if test $in_tree_gas = yes; then
24435 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24436 then gcc_cv_as_ix86_pe_secrel32
=yes
24438 elif test x
$gcc_cv_as != x
; then
24442 .secrel32 foo' > conftest.s
24443 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24445 (eval $ac_try) 2>&5
24447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24448 test $ac_status = 0; }; }
24450 if test x
$gcc_cv_ld != x \
24451 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24452 gcc_cv_as_ix86_pe_secrel32
=yes
24456 echo "configure: failed program was" >&5
24459 rm -f conftest.o conftest.s
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24463 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24464 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24466 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24469 # Test if the assembler supports the extended form of the .section
24470 # directive that specifies section alignment. LTO support uses this,
24471 # but normally only after installation, so we warn but don't fail the
24472 # configure if LTO is enabled but the assembler does not support it.
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24474 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24475 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24476 $as_echo_n "(cached) " >&6
24478 gcc_cv_as_section_has_align
=no
24479 if test $in_tree_gas = yes; then
24480 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24481 then gcc_cv_as_section_has_align
=yes
24483 elif test x
$gcc_cv_as != x
; then
24484 $as_echo '.section lto_test,"dr0"' > conftest.s
24485 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24487 (eval $ac_try) 2>&5
24489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24490 test $ac_status = 0; }; }
24492 gcc_cv_as_section_has_align
=yes
24494 echo "configure: failed program was" >&5
24497 rm -f conftest.o conftest.s
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24501 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24503 if test x
$gcc_cv_as_section_has_align != xyes
; then
24504 case ",$enable_languages," in
24506 { $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
24507 $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;}
24511 # Test if the assembler supports the section flag 'e' for specifying
24512 # an excluded section.
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24514 $as_echo_n "checking assembler for .section with e... " >&6; }
24515 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24516 $as_echo_n "(cached) " >&6
24518 gcc_cv_as_section_has_e
=no
24519 if test $in_tree_gas = yes; then
24520 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24521 then gcc_cv_as_section_has_e
=yes
24523 elif test x
$gcc_cv_as != x
; then
24524 $as_echo '.section foo1,"e"
24525 .byte 0,0,0,0' > conftest.s
24526 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24528 (eval $ac_try) 2>&5
24530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24531 test $ac_status = 0; }; }
24533 gcc_cv_as_section_has_e
=yes
24535 echo "configure: failed program was" >&5
24538 rm -f conftest.o conftest.s
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24542 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24545 cat >>confdefs.h
<<_ACEOF
24546 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24553 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24554 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24555 $as_echo_n "(cached) " >&6
24557 gcc_cv_as_ix86_filds
=no
24558 if test x
$gcc_cv_as != x
; then
24559 $as_echo 'filds mem; fists mem' > conftest.s
24560 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24562 (eval $ac_try) 2>&5
24564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24565 test $ac_status = 0; }; }
24567 gcc_cv_as_ix86_filds
=yes
24569 echo "configure: failed program was" >&5
24572 rm -f conftest.o conftest.s
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24576 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24577 if test $gcc_cv_as_ix86_filds = yes; then
24579 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24584 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24585 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24586 $as_echo_n "(cached) " >&6
24588 gcc_cv_as_ix86_fildq
=no
24589 if test x
$gcc_cv_as != x
; then
24590 $as_echo 'fildq mem; fistpq mem' > conftest.s
24591 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24593 (eval $ac_try) 2>&5
24595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24596 test $ac_status = 0; }; }
24598 gcc_cv_as_ix86_fildq
=yes
24600 echo "configure: failed program was" >&5
24603 rm -f conftest.o conftest.s
24606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24607 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24608 if test $gcc_cv_as_ix86_fildq = yes; then
24610 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24615 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24616 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24617 $as_echo_n "(cached) " >&6
24619 gcc_cv_as_ix86_cmov_sun_syntax
=no
24620 if test x
$gcc_cv_as != x
; then
24621 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24622 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24624 (eval $ac_try) 2>&5
24626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24627 test $ac_status = 0; }; }
24629 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24631 echo "configure: failed program was" >&5
24634 rm -f conftest.o conftest.s
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24638 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24639 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24641 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24646 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24647 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24648 $as_echo_n "(cached) " >&6
24650 gcc_cv_as_ix86_ffreep
=no
24651 if test x
$gcc_cv_as != x
; then
24652 $as_echo 'ffreep %st(1)' > conftest.s
24653 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24655 (eval $ac_try) 2>&5
24657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24658 test $ac_status = 0; }; }
24660 gcc_cv_as_ix86_ffreep
=yes
24662 echo "configure: failed program was" >&5
24665 rm -f conftest.o conftest.s
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24669 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24670 if test $gcc_cv_as_ix86_ffreep = yes; then
24672 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24677 $as_echo_n "checking assembler for .quad directive... " >&6; }
24678 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24679 $as_echo_n "(cached) " >&6
24681 gcc_cv_as_ix86_quad
=no
24682 if test x
$gcc_cv_as != x
; then
24683 $as_echo '.quad 0' > conftest.s
24684 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24686 (eval $ac_try) 2>&5
24688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24689 test $ac_status = 0; }; }
24691 gcc_cv_as_ix86_quad
=yes
24693 echo "configure: failed program was" >&5
24696 rm -f conftest.o conftest.s
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24700 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24701 if test $gcc_cv_as_ix86_quad = yes; then
24703 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24708 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24709 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24710 $as_echo_n "(cached) " >&6
24712 gcc_cv_as_ix86_sahf
=no
24713 if test x
$gcc_cv_as != x
; then
24716 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24718 (eval $ac_try) 2>&5
24720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24721 test $ac_status = 0; }; }
24723 gcc_cv_as_ix86_sahf
=yes
24725 echo "configure: failed program was" >&5
24728 rm -f conftest.o conftest.s
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24732 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24733 if test $gcc_cv_as_ix86_sahf = yes; then
24735 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24740 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24741 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24742 $as_echo_n "(cached) " >&6
24744 gcc_cv_as_ix86_hle
=no
24745 if test x
$gcc_cv_as != x
; then
24746 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24747 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24749 (eval $ac_try) 2>&5
24751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24752 test $ac_status = 0; }; }
24754 gcc_cv_as_ix86_hle
=yes
24756 echo "configure: failed program was" >&5
24759 rm -f conftest.o conftest.s
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24763 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24764 if test $gcc_cv_as_ix86_hle = yes; then
24766 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24771 $as_echo_n "checking assembler for swap suffix... " >&6; }
24772 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24773 $as_echo_n "(cached) " >&6
24775 gcc_cv_as_ix86_swap
=no
24776 if test x
$gcc_cv_as != x
; then
24777 $as_echo 'movl.s %esp, %ebp' > conftest.s
24778 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24780 (eval $ac_try) 2>&5
24782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24783 test $ac_status = 0; }; }
24785 gcc_cv_as_ix86_swap
=yes
24787 echo "configure: failed program was" >&5
24790 rm -f conftest.o conftest.s
24793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24794 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24795 if test $gcc_cv_as_ix86_swap = yes; then
24797 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24802 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24803 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24804 $as_echo_n "(cached) " >&6
24806 gcc_cv_as_ix86_diff_sect_delta
=no
24807 if test x
$gcc_cv_as != x
; then
24808 $as_echo '.section .rodata
24814 .L2: nop' > conftest.s
24815 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24817 (eval $ac_try) 2>&5
24819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24820 test $ac_status = 0; }; }
24822 gcc_cv_as_ix86_diff_sect_delta
=yes
24824 echo "configure: failed program was" >&5
24827 rm -f conftest.o conftest.s
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24831 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24832 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24834 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24838 # These two are used unconditionally by i386.[ch]; it is to be defined
24839 # to 1 if the feature is present, 0 otherwise.
24840 as_ix86_gotoff_in_data_opt
=
24841 if test x
$gas = xyes
; then
24842 as_ix86_gotoff_in_data_opt
="--32"
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24845 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24846 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24847 $as_echo_n "(cached) " >&6
24849 gcc_cv_as_ix86_gotoff_in_data
=no
24850 if test $in_tree_gas = yes; then
24851 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24852 then gcc_cv_as_ix86_gotoff_in_data
=yes
24854 elif test x
$gcc_cv_as != x
; then
24859 .long .L0@GOTOFF' > conftest.s
24860 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
24861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24862 (eval $ac_try) 2>&5
24864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24865 test $ac_status = 0; }; }
24867 gcc_cv_as_ix86_gotoff_in_data
=yes
24869 echo "configure: failed program was" >&5
24872 rm -f conftest.o conftest.s
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24876 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24879 cat >>confdefs.h
<<_ACEOF
24880 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24885 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24886 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24887 $as_echo_n "(cached) " >&6
24889 gcc_cv_as_ix86_rep_lock_prefix
=no
24890 if test x
$gcc_cv_as != x
; then
24891 $as_echo 'rep movsl
24896 lock addl %edi, (%eax,%esi)
24897 lock orl $0, (%esp)' > conftest.s
24898 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24900 (eval $ac_try) 2>&5
24902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24903 test $ac_status = 0; }; }
24905 gcc_cv_as_ix86_rep_lock_prefix
=yes
24907 echo "configure: failed program was" >&5
24910 rm -f conftest.o conftest.s
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24914 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24915 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24917 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
24922 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
24923 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
24924 $as_echo_n "(cached) " >&6
24926 gcc_cv_as_ix86_ud2
=no
24927 if test x
$gcc_cv_as != x
; then
24928 $as_echo 'ud2' > conftest.s
24929 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24931 (eval $ac_try) 2>&5
24933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24934 test $ac_status = 0; }; }
24936 gcc_cv_as_ix86_ud2
=yes
24938 echo "configure: failed program was" >&5
24941 rm -f conftest.o conftest.s
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
24945 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
24946 if test $gcc_cv_as_ix86_ud2 = yes; then
24948 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
24952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24953 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24954 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24955 $as_echo_n "(cached) " >&6
24957 gcc_cv_as_ix86_tlsgdplt
=no
24958 if test x
$gcc_cv_as != x
; then
24959 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24960 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24962 (eval $ac_try) 2>&5
24964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24965 test $ac_status = 0; }; }
24967 if test x
$gcc_cv_ld != x \
24968 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24969 gcc_cv_as_ix86_tlsgdplt
=yes
24973 echo "configure: failed program was" >&5
24976 rm -f conftest.o conftest.s
24979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24980 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24981 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24983 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24988 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24989 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24990 $as_echo_n "(cached) " >&6
24992 gcc_cv_as_ix86_tlsldmplt
=no
24993 if test x
$gcc_cv_as != x
; then
24995 call tls_ld@tlsldmplt' > conftest.s
24996 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24998 (eval $ac_try) 2>&5
25000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25001 test $ac_status = 0; }; }
25003 if test x
$gcc_cv_ld != x \
25004 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25005 gcc_cv_as_ix86_tlsldmplt
=yes
25009 echo "configure: failed program was" >&5
25012 rm -f conftest.o conftest.s
25015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25016 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25017 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25019 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25027 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25028 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25029 $as_echo_n "(cached) " >&6
25031 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25032 if test $in_tree_gas = yes; then
25033 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25034 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25036 elif test x
$gcc_cv_as != x
; then
25038 addl r15 = @ltoffx(x#), gp
25040 ld8.mov r16 = [r15], x#' > conftest.s
25041 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25043 (eval $ac_try) 2>&5
25045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25046 test $ac_status = 0; }; }
25048 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25050 echo "configure: failed program was" >&5
25053 rm -f conftest.o conftest.s
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25057 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25058 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25060 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25068 *-*-aix*) conftest_s
=' .machine "pwr5"
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25073 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25074 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25075 $as_echo_n "(cached) " >&6
25077 gcc_cv_as_machine_directive
=no
25078 if test x
$gcc_cv_as != x
; then
25079 $as_echo ' .machine ppc7400' > conftest.s
25080 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25082 (eval $ac_try) 2>&5
25084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25085 test $ac_status = 0; }; }
25087 gcc_cv_as_machine_directive
=yes
25089 echo "configure: failed program was" >&5
25092 rm -f conftest.o conftest.s
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25096 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25098 if test x
$gcc_cv_as_machine_directive != xyes
; then
25099 echo "*** This target requires an assembler supporting \".machine\"" >&2
25100 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25101 test x
$build = x
$target && exit 1
25105 *) conftest_s
=' .machine power4
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25111 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25112 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25113 $as_echo_n "(cached) " >&6
25115 gcc_cv_as_powerpc_mfcrf
=no
25116 if test $in_tree_gas = yes; then
25117 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25118 then gcc_cv_as_powerpc_mfcrf
=yes
25120 elif test x
$gcc_cv_as != x
; then
25121 $as_echo "$conftest_s" > conftest.s
25122 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25124 (eval $ac_try) 2>&5
25126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25127 test $ac_status = 0; }; }
25129 gcc_cv_as_powerpc_mfcrf
=yes
25131 echo "configure: failed program was" >&5
25134 rm -f conftest.o conftest.s
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25138 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25139 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25141 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25146 *-*-aix*) conftest_s
=' .machine "pwr5"
25149 *) conftest_s
=' .machine power5
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25155 $as_echo_n "checking assembler for popcntb support... " >&6; }
25156 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25157 $as_echo_n "(cached) " >&6
25159 gcc_cv_as_powerpc_popcntb
=no
25160 if test $in_tree_gas = yes; then
25161 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25162 then gcc_cv_as_powerpc_popcntb
=yes
25164 elif test x
$gcc_cv_as != x
; then
25165 $as_echo "$conftest_s" > conftest.s
25166 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25168 (eval $ac_try) 2>&5
25170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25171 test $ac_status = 0; }; }
25173 gcc_cv_as_powerpc_popcntb
=yes
25175 echo "configure: failed program was" >&5
25178 rm -f conftest.o conftest.s
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25182 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25183 if test $gcc_cv_as_powerpc_popcntb = yes; then
25185 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25190 *-*-aix*) conftest_s
=' .machine "pwr5x"
25193 *) conftest_s
=' .machine power5
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25199 $as_echo_n "checking assembler for fp round support... " >&6; }
25200 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25201 $as_echo_n "(cached) " >&6
25203 gcc_cv_as_powerpc_fprnd
=no
25204 if test $in_tree_gas = yes; then
25205 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25206 then gcc_cv_as_powerpc_fprnd
=yes
25208 elif test x
$gcc_cv_as != x
; then
25209 $as_echo "$conftest_s" > conftest.s
25210 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25212 (eval $ac_try) 2>&5
25214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25215 test $ac_status = 0; }; }
25217 gcc_cv_as_powerpc_fprnd
=yes
25219 echo "configure: failed program was" >&5
25222 rm -f conftest.o conftest.s
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25226 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25227 if test $gcc_cv_as_powerpc_fprnd = yes; then
25229 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25234 *-*-aix*) conftest_s
=' .machine "pwr6"
25237 *) conftest_s
=' .machine power6
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25243 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25244 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25245 $as_echo_n "(cached) " >&6
25247 gcc_cv_as_powerpc_mfpgpr
=no
25248 if test $in_tree_gas = yes; then
25249 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25250 then gcc_cv_as_powerpc_mfpgpr
=yes
25252 elif test x
$gcc_cv_as != x
; then
25253 $as_echo "$conftest_s" > conftest.s
25254 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25256 (eval $ac_try) 2>&5
25258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25259 test $ac_status = 0; }; }
25261 gcc_cv_as_powerpc_mfpgpr
=yes
25263 echo "configure: failed program was" >&5
25266 rm -f conftest.o conftest.s
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25270 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25271 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25273 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25278 *-*-aix*) conftest_s
=' .csect .text[PR]
25280 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25284 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25285 *) conftest_s
=' .text
25287 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25291 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25292 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25293 $as_echo_n "(cached) " >&6
25295 gcc_cv_as_powerpc_rel16
=no
25296 if test $in_tree_gas = yes; then
25297 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25298 then gcc_cv_as_powerpc_rel16
=yes
25300 elif test x
$gcc_cv_as != x
; then
25301 $as_echo "$conftest_s" > conftest.s
25302 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25304 (eval $ac_try) 2>&5
25306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25307 test $ac_status = 0; }; }
25309 gcc_cv_as_powerpc_rel16
=yes
25311 echo "configure: failed program was" >&5
25314 rm -f conftest.o conftest.s
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25318 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25319 if test $gcc_cv_as_powerpc_rel16 = yes; then
25321 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25326 *-*-aix*) conftest_s
=' .machine "pwr6"
25329 *) conftest_s
=' .machine power6
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25335 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25336 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25337 $as_echo_n "(cached) " >&6
25339 gcc_cv_as_powerpc_cmpb
=no
25340 if test $in_tree_gas = yes; then
25341 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25342 then gcc_cv_as_powerpc_cmpb
=yes
25344 elif test x
$gcc_cv_as != x
; then
25345 $as_echo "$conftest_s" > conftest.s
25346 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25348 (eval $ac_try) 2>&5
25350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25351 test $ac_status = 0; }; }
25353 gcc_cv_as_powerpc_cmpb
=yes
25355 echo "configure: failed program was" >&5
25358 rm -f conftest.o conftest.s
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25362 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25363 if test $gcc_cv_as_powerpc_cmpb = yes; then
25365 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25370 *-*-aix*) conftest_s
=' .machine "pwr6"
25373 *) conftest_s
=' .machine power6
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25379 $as_echo_n "checking assembler for decimal float support... " >&6; }
25380 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25381 $as_echo_n "(cached) " >&6
25383 gcc_cv_as_powerpc_dfp
=no
25384 if test $in_tree_gas = yes; then
25385 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25386 then gcc_cv_as_powerpc_dfp
=yes
25388 elif test x
$gcc_cv_as != x
; then
25389 $as_echo "$conftest_s" > conftest.s
25390 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25392 (eval $ac_try) 2>&5
25394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25395 test $ac_status = 0; }; }
25397 gcc_cv_as_powerpc_dfp
=yes
25399 echo "configure: failed program was" >&5
25402 rm -f conftest.o conftest.s
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25406 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25407 if test $gcc_cv_as_powerpc_dfp = yes; then
25409 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25414 *-*-aix*) conftest_s
=' .machine "pwr7"
25417 *) conftest_s
=' .machine power7
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25423 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25424 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25425 $as_echo_n "(cached) " >&6
25427 gcc_cv_as_powerpc_vsx
=no
25428 if test $in_tree_gas = yes; then
25429 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25430 then gcc_cv_as_powerpc_vsx
=yes
25432 elif test x
$gcc_cv_as != x
; then
25433 $as_echo "$conftest_s" > conftest.s
25434 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25436 (eval $ac_try) 2>&5
25438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25439 test $ac_status = 0; }; }
25441 gcc_cv_as_powerpc_vsx
=yes
25443 echo "configure: failed program was" >&5
25446 rm -f conftest.o conftest.s
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25450 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25451 if test $gcc_cv_as_powerpc_vsx = yes; then
25453 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25458 *-*-aix*) conftest_s
=' .machine "pwr7"
25461 *) conftest_s
=' .machine power7
25466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25467 $as_echo_n "checking assembler for popcntd support... " >&6; }
25468 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25469 $as_echo_n "(cached) " >&6
25471 gcc_cv_as_powerpc_popcntd
=no
25472 if test $in_tree_gas = yes; then
25473 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25474 then gcc_cv_as_powerpc_popcntd
=yes
25476 elif test x
$gcc_cv_as != x
; then
25477 $as_echo "$conftest_s" > conftest.s
25478 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -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_powerpc_popcntd
=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_powerpc_popcntd" >&5
25494 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25495 if test $gcc_cv_as_powerpc_popcntd = yes; then
25497 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25502 *-*-aix*) conftest_s
=' .machine "pwr8"
25503 .csect .text[PR]';;
25504 *) conftest_s
=' .machine power8
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25509 $as_echo_n "checking assembler for power8 support... " >&6; }
25510 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25511 $as_echo_n "(cached) " >&6
25513 gcc_cv_as_powerpc_power8
=no
25514 if test $in_tree_gas = yes; then
25515 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25516 then gcc_cv_as_powerpc_power8
=yes
25518 elif test x
$gcc_cv_as != x
; then
25519 $as_echo "$conftest_s" > conftest.s
25520 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25522 (eval $ac_try) 2>&5
25524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25525 test $ac_status = 0; }; }
25527 gcc_cv_as_powerpc_power8
=yes
25529 echo "configure: failed program was" >&5
25532 rm -f conftest.o conftest.s
25535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25536 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25537 if test $gcc_cv_as_powerpc_power8 = yes; then
25539 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25544 *-*-aix*) conftest_s
=' .csect .text[PR]
25546 *) conftest_s
=' .text
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25551 $as_echo_n "checking assembler for lwsync support... " >&6; }
25552 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25553 $as_echo_n "(cached) " >&6
25555 gcc_cv_as_powerpc_lwsync
=no
25556 if test $in_tree_gas = yes; then
25557 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25558 then gcc_cv_as_powerpc_lwsync
=yes
25560 elif test x
$gcc_cv_as != x
; then
25561 $as_echo "$conftest_s" > conftest.s
25562 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25564 (eval $ac_try) 2>&5
25566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25567 test $ac_status = 0; }; }
25569 gcc_cv_as_powerpc_lwsync
=yes
25571 echo "configure: failed program was" >&5
25574 rm -f conftest.o conftest.s
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25578 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25579 if test $gcc_cv_as_powerpc_lwsync = yes; then
25581 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25586 *-*-aix*) conftest_s
=' .machine "476"
25589 *) conftest_s
=' .machine "476"
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25595 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25596 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25597 $as_echo_n "(cached) " >&6
25599 gcc_cv_as_powerpc_dci
=no
25600 if test $in_tree_gas = yes; then
25601 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25602 then gcc_cv_as_powerpc_dci
=yes
25604 elif test x
$gcc_cv_as != x
; then
25605 $as_echo "$conftest_s" > conftest.s
25606 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25608 (eval $ac_try) 2>&5
25610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25611 test $ac_status = 0; }; }
25613 gcc_cv_as_powerpc_dci
=yes
25615 echo "configure: failed program was" >&5
25618 rm -f conftest.o conftest.s
25621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25622 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25623 if test $gcc_cv_as_powerpc_dci = yes; then
25625 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25630 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25631 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25632 $as_echo_n "(cached) " >&6
25634 gcc_cv_as_powerpc_gnu_attribute
=no
25635 if test $in_tree_gas = yes; then
25636 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25637 then gcc_cv_as_powerpc_gnu_attribute
=yes
25639 elif test x
$gcc_cv_as != x
; then
25640 $as_echo '.gnu_attribute 4,1' > conftest.s
25641 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25643 (eval $ac_try) 2>&5
25645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25646 test $ac_status = 0; }; }
25648 gcc_cv_as_powerpc_gnu_attribute
=yes
25650 echo "configure: failed program was" >&5
25653 rm -f conftest.o conftest.s
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25657 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25658 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25660 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25665 $as_echo_n "checking assembler for tls marker support... " >&6; }
25666 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25667 $as_echo_n "(cached) " >&6
25669 gcc_cv_as_powerpc_tls_markers
=no
25670 if test $in_tree_gas = yes; then
25671 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25672 then gcc_cv_as_powerpc_tls_markers
=yes
25674 elif test x
$gcc_cv_as != x
; then
25675 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25676 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25678 (eval $ac_try) 2>&5
25680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25681 test $ac_status = 0; }; }
25683 gcc_cv_as_powerpc_tls_markers
=yes
25685 echo "configure: failed program was" >&5
25688 rm -f conftest.o conftest.s
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25692 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25693 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25695 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25702 $as_echo_n "checking assembler for .ref support... " >&6; }
25703 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25704 $as_echo_n "(cached) " >&6
25706 gcc_cv_as_aix_ref
=no
25707 if test $in_tree_gas = yes; then
25708 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25709 then gcc_cv_as_aix_ref
=yes
25711 elif test x
$gcc_cv_as != x
; then
25712 $as_echo ' .csect stuff[rw]
25718 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25720 (eval $ac_try) 2>&5
25722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25723 test $ac_status = 0; }; }
25725 gcc_cv_as_aix_ref
=yes
25727 echo "configure: failed program was" >&5
25730 rm -f conftest.o conftest.s
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25734 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25735 if test $gcc_cv_as_aix_ref = yes; then
25737 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25746 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25747 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25748 $as_echo_n "(cached) " >&6
25750 gcc_cv_as_mips_explicit_relocs
=no
25751 if test $in_tree_gas = yes; then
25752 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25753 then gcc_cv_as_mips_explicit_relocs
=yes
25755 elif test x
$gcc_cv_as != x
; then
25756 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25757 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25759 (eval $ac_try) 2>&5
25761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25762 test $ac_status = 0; }; }
25764 gcc_cv_as_mips_explicit_relocs
=yes
25766 echo "configure: failed program was" >&5
25769 rm -f conftest.o conftest.s
25772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25773 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25774 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25775 if test x
$target_cpu_default = x
25776 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25777 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25781 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25782 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25783 $as_echo_n "(cached) " >&6
25785 gcc_cv_as_mips_no_shared
=no
25786 if test $in_tree_gas = yes; then
25787 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25788 then gcc_cv_as_mips_no_shared
=yes
25790 elif test x
$gcc_cv_as != x
; then
25791 $as_echo 'nop' > conftest.s
25792 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25794 (eval $ac_try) 2>&5
25796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25797 test $ac_status = 0; }; }
25799 gcc_cv_as_mips_no_shared
=yes
25801 echo "configure: failed program was" >&5
25804 rm -f conftest.o conftest.s
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25808 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25809 if test $gcc_cv_as_mips_no_shared = yes; then
25811 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25816 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25817 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25818 $as_echo_n "(cached) " >&6
25820 gcc_cv_as_mips_gnu_attribute
=no
25821 if test $in_tree_gas = yes; then
25822 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25823 then gcc_cv_as_mips_gnu_attribute
=yes
25825 elif test x
$gcc_cv_as != x
; then
25826 $as_echo '.gnu_attribute 4,1' > conftest.s
25827 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25829 (eval $ac_try) 2>&5
25831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25832 test $ac_status = 0; }; }
25834 gcc_cv_as_mips_gnu_attribute
=yes
25836 echo "configure: failed program was" >&5
25839 rm -f conftest.o conftest.s
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25843 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25844 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25846 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25851 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25852 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25853 $as_echo_n "(cached) " >&6
25855 gcc_cv_as_mips_dtprelword
=no
25856 if test $in_tree_gas = yes; then
25857 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25858 then gcc_cv_as_mips_dtprelword
=yes
25860 elif test x
$gcc_cv_as != x
; then
25861 $as_echo '.section .tdata,"awT",@progbits
25865 .dtprelword x+0x8000' > conftest.s
25866 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25868 (eval $ac_try) 2>&5
25870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25871 test $ac_status = 0; }; }
25873 gcc_cv_as_mips_dtprelword
=yes
25875 echo "configure: failed program was" >&5
25878 rm -f conftest.o conftest.s
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25882 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25883 if test $gcc_cv_as_mips_dtprelword = yes; then
25885 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25890 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25891 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25892 $as_echo_n "(cached) " >&6
25894 gcc_cv_as_mips_dspr1_mult
=no
25895 if test x
$gcc_cv_as != x
; then
25896 $as_echo ' .set mips32r2
25904 multu $ac3,$4,$5' > conftest.s
25905 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25907 (eval $ac_try) 2>&5
25909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25910 test $ac_status = 0; }; }
25912 gcc_cv_as_mips_dspr1_mult
=yes
25914 echo "configure: failed program was" >&5
25917 rm -f conftest.o conftest.s
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25921 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25922 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25924 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25929 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25930 gcc_cv_as_ld_jalr_reloc
=no
25931 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25932 if test $in_tree_ld = yes ; then
25933 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 \
25934 && test $in_tree_ld_is_elf = yes; then
25935 gcc_cv_as_ld_jalr_reloc
=yes
25937 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25938 echo ' .ent x' > conftest.s
25939 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25940 echo ' ld $25,%call16(y)($28)' >> conftest.s
25941 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25942 echo '1: jalr $25' >> conftest.s
25943 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25944 echo '1: jalr $25' >> conftest.s
25945 echo ' .end x' >> conftest.s
25946 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25947 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25948 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25949 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25950 gcc_cv_as_ld_jalr_reloc
=yes
25956 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25957 if test x
$target_cpu_default = x
; then
25958 target_cpu_default
=MASK_RELAX_PIC_CALLS
25960 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25964 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25967 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25968 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25969 $as_echo_n "(cached) " >&6
25971 gcc_cv_ld_mips_personality_relaxation
=no
25972 if test $in_tree_ld = yes ; then
25973 if test "$gcc_cv_gld_major_version" -eq 2 \
25974 -a "$gcc_cv_gld_minor_version" -ge 21 \
25975 -o "$gcc_cv_gld_major_version" -gt 2; then
25976 gcc_cv_ld_mips_personality_relaxation
=yes
25978 elif test x
$gcc_cv_as != x \
25979 -a x
$gcc_cv_ld != x \
25980 -a x
$gcc_cv_readelf != x
; then
25981 cat > conftest.s
<<EOF
25983 .cfi_personality 0x80,indirect_ptr
25990 .section .data,"aw",@progbits
25994 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25995 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25996 if $gcc_cv_readelf -d conftest
2>&1 \
25997 |
grep TEXTREL
> /dev
/null
2>&1; then
25999 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26000 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26003 gcc_cv_ld_mips_personality_relaxation
=yes
26007 rm -f conftest.s conftest.o conftest
26009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26010 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26011 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26013 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26019 # Mips and HP-UX need the GNU assembler.
26020 # Linux on IA64 might be able to use the Intel assembler.
26023 mips
*-*-* |
*-*-hpux* )
26024 if test x
$gas_flag = xyes \
26025 ||
test x
"$host" != x
"$build" \
26026 ||
test ! -x "$gcc_cv_as" \
26027 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26030 echo "*** This configuration requires the GNU assembler" >&2
26036 # ??? Not all targets support dwarf2 debug_line, even within a version
26037 # of gas. Moreover, we need to emit a valid instruction to trigger any
26038 # info to the output file. So, as supported targets are added to gas 2.11,
26039 # add some instruction here to (also) show we expect this might work.
26040 # ??? Once 2.11 is released, probably need to add first known working
26041 # version to the per-target configury.
26042 case "$cpu_type" in
26043 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
26044 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa
)
26054 if test x
"$insn" != x
; then
26056 .file 1 \"conftest.s\"
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26060 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26061 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26062 $as_echo_n "(cached) " >&6
26064 gcc_cv_as_dwarf2_debug_line
=no
26065 if test $in_tree_gas = yes; then
26066 if test $in_tree_gas_is_elf = yes \
26067 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26068 then gcc_cv_as_dwarf2_debug_line
=yes
26070 elif test x
$gcc_cv_as != x
; then
26071 $as_echo "$conftest_s" > conftest.s
26072 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26074 (eval $ac_try) 2>&5
26076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26077 test $ac_status = 0; }; }
26079 if test x
$gcc_cv_objdump != x \
26080 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26081 |
grep debug_line
> /dev
/null
2>&1; then
26082 gcc_cv_as_dwarf2_debug_line
=yes
26085 echo "configure: failed program was" >&5
26088 rm -f conftest.o conftest.s
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26092 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26095 # The .debug_line file table must be in the exact order that
26096 # we specified the files, since these indices are also used
26097 # by DW_AT_decl_file. Approximate this test by testing if
26098 # the assembler bitches if the same index is assigned twice.
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26100 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26101 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26102 $as_echo_n "(cached) " >&6
26104 gcc_cv_as_dwarf2_file_buggy
=no
26105 if test x
$gcc_cv_as != x
; then
26106 $as_echo ' .file 1 "foo.s"
26107 .file 1 "bar.s"' > conftest.s
26108 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26110 (eval $ac_try) 2>&5
26112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26113 test $ac_status = 0; }; }
26115 gcc_cv_as_dwarf2_file_buggy
=yes
26117 echo "configure: failed program was" >&5
26120 rm -f conftest.o conftest.s
26123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26124 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26127 if test $gcc_cv_as_dwarf2_debug_line = yes \
26128 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26130 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26135 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26136 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26137 $as_echo_n "(cached) " >&6
26139 gcc_cv_as_gdwarf2_flag
=no
26140 if test $in_tree_gas = yes; then
26141 if test $in_tree_gas_is_elf = yes \
26142 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26143 then gcc_cv_as_gdwarf2_flag
=yes
26145 elif test x
$gcc_cv_as != x
; then
26146 $as_echo "$insn" > conftest.s
26147 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26149 (eval $ac_try) 2>&5
26151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26152 test $ac_status = 0; }; }
26154 gcc_cv_as_gdwarf2_flag
=yes
26156 echo "configure: failed program was" >&5
26159 rm -f conftest.o conftest.s
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26163 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26164 if test $gcc_cv_as_gdwarf2_flag = yes; then
26166 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26171 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26172 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26173 $as_echo_n "(cached) " >&6
26175 gcc_cv_as_gstabs_flag
=no
26176 if test $in_tree_gas = yes; then
26177 if test $in_tree_gas_is_elf = yes \
26178 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26179 then gcc_cv_as_gstabs_flag
=yes
26181 elif test x
$gcc_cv_as != x
; then
26182 $as_echo "$insn" > conftest.s
26183 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26185 (eval $ac_try) 2>&5
26187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26188 test $ac_status = 0; }; }
26190 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26191 # and warns about it, but still exits successfully. So check for
26193 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26195 (eval $ac_try) 2>&5
26197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26198 test $ac_status = 0; }; }
26200 else gcc_cv_as_gstabs_flag
=yes
26203 echo "configure: failed program was" >&5
26206 rm -f conftest.o conftest.s
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26210 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26211 if test $gcc_cv_as_gstabs_flag = yes; then
26213 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26218 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26219 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26220 $as_echo_n "(cached) " >&6
26222 gcc_cv_as_debug_prefix_map_flag
=no
26223 if test $in_tree_gas = yes; then
26224 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26225 then gcc_cv_as_debug_prefix_map_flag
=yes
26227 elif test x
$gcc_cv_as != x
; then
26228 $as_echo "$insn" > conftest.s
26229 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26231 (eval $ac_try) 2>&5
26233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26234 test $ac_status = 0; }; }
26236 gcc_cv_as_debug_prefix_map_flag
=yes
26238 echo "configure: failed program was" >&5
26241 rm -f conftest.o conftest.s
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26245 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26246 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26248 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26254 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26255 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26256 $as_echo_n "(cached) " >&6
26258 gcc_cv_as_lcomm_with_alignment
=no
26259 if test x
$gcc_cv_as != x
; then
26260 $as_echo '.lcomm bar,4,16' > conftest.s
26261 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26263 (eval $ac_try) 2>&5
26265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26266 test $ac_status = 0; }; }
26268 gcc_cv_as_lcomm_with_alignment
=yes
26270 echo "configure: failed program was" >&5
26273 rm -f conftest.o conftest.s
26276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26277 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26278 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26280 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26284 # Check whether --enable-gnu-unique-object was given.
26285 if test "${enable_gnu_unique_object+set}" = set; then :
26286 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26288 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26289 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26293 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26294 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26295 $as_echo_n "(cached) " >&6
26297 gcc_cv_as_gnu_unique_object
=no
26298 if test $in_tree_gas = yes; then
26299 if test $in_tree_gas_is_elf = yes \
26300 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26301 then gcc_cv_as_gnu_unique_object
=yes
26303 elif test x
$gcc_cv_as != x
; then
26304 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26305 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26307 (eval $ac_try) 2>&5
26309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26310 test $ac_status = 0; }; }
26312 gcc_cv_as_gnu_unique_object
=yes
26314 echo "configure: failed program was" >&5
26317 rm -f conftest.o conftest.s
26320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26321 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26322 if test $gcc_cv_as_gnu_unique_object = yes; then
26323 # We need to unquote above to to use the definition from config.gcc.
26324 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26325 if test x
$host = x
$build -a x
$host = x
$target &&
26326 ldd
--version 2>/dev
/null
&&
26327 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26328 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26329 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26330 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26331 if test "$glibcnum" -ge 2011 ; then
26332 enable_gnu_unique_object
=yes
26338 if test x
$enable_gnu_unique_object = xyes
; then
26340 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26345 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26346 if test "${gcc_cv_as_line_zero+set}" = set; then :
26347 $as_echo_n "(cached) " >&6
26349 gcc_cv_as_line_zero
=no
26350 if test $in_tree_gas = yes; then
26351 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26352 then gcc_cv_as_line_zero
=yes
26354 elif test "x$gcc_cv_as" != x
; then
26355 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26356 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26358 (eval $ac_try) 2>&5
26360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26361 test $ac_status = 0; }; } &&
26362 test "x`cat conftest.out`" = x
26364 gcc_cv_as_line_zero
=yes
26366 echo "configure: failed program was" >&5
26368 echo "configure: error output was" >&5
26369 cat conftest.out
>&5
26371 rm -f conftest.o conftest.s conftest.out
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26375 $as_echo "$gcc_cv_as_line_zero" >&6; }
26376 if test "x$gcc_cv_as_line_zero" = xyes
; then
26378 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26383 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26384 gcc_cv_ld_eh_frame_hdr
=no
26385 if test $in_tree_ld = yes ; then
26386 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 \
26387 && test $in_tree_ld_is_elf = yes; then
26388 gcc_cv_ld_eh_frame_hdr
=yes
26390 elif test x
$gcc_cv_ld != x
; then
26391 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26392 # Check if linker supports --eh-frame-hdr option
26393 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26394 gcc_cv_ld_eh_frame_hdr
=yes
26399 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26400 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26401 gcc_cv_ld_eh_frame_hdr
=yes
26408 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26410 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26414 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26417 $as_echo_n "checking linker position independent executable support... " >&6; }
26419 if test $in_tree_ld = yes ; then
26420 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 \
26421 && test $in_tree_ld_is_elf = yes; then
26424 elif test x
$gcc_cv_ld != x
; then
26425 # Check if linker supports -pie option
26426 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26430 if test x
"$gcc_cv_ld_pie" = xyes
; then
26432 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26436 $as_echo "$gcc_cv_ld_pie" >&6; }
26438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26439 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26440 gcc_cv_ld_eh_gc_sections
=no
26441 if test $in_tree_ld = yes ; then
26442 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 \
26443 && test $in_tree_ld_is_elf = yes; then
26444 gcc_cv_ld_eh_gc_sections
=yes
26446 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26447 cat > conftest.s
<<EOF
26450 .type _start, @function
26453 .size _start, .-_start
26454 .section .text.foo,"ax",@progbits
26455 .type foo, @function
26459 .section .gcc_except_table.foo,"a",@progbits
26462 .section .eh_frame,"a",@progbits
26465 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26466 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26467 |
grep "gc-sections option ignored" > /dev
/null
; then
26468 gcc_cv_ld_eh_gc_sections
=no
26469 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26470 |
grep gcc_except_table
> /dev
/null
; then
26471 gcc_cv_ld_eh_gc_sections
=yes
26472 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26473 if test x
$gcc_cv_as_comdat_group != xyes
; then
26474 gcc_cv_ld_eh_gc_sections
=no
26475 cat > conftest.s
<<EOF
26478 .type _start, @function
26481 .size _start, .-_start
26482 .section .gnu.linkonce.t.foo,"ax",@progbits
26483 .type foo, @function
26487 .section .gcc_except_table.foo,"a",@progbits
26490 .section .eh_frame,"a",@progbits
26493 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26494 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26495 |
grep "gc-sections option ignored" > /dev
/null
; then
26496 gcc_cv_ld_eh_gc_sections
=no
26497 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26498 |
grep gcc_except_table
> /dev
/null
; then
26499 gcc_cv_ld_eh_gc_sections
=yes
26505 rm -f conftest.s conftest.o conftest
26509 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26510 gcc_cv_ld_eh_gc_sections
=no
26513 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26515 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26519 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26522 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26523 gcc_cv_ld_eh_gc_sections_bug
=no
26524 if test $in_tree_ld = yes ; then
26525 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
26526 && test $in_tree_ld_is_elf = yes; then
26527 gcc_cv_ld_eh_gc_sections_bug
=yes
26529 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
26530 gcc_cv_ld_eh_gc_sections_bug
=yes
26531 cat > conftest.s
<<EOF
26534 .type _start, @function
26537 .size _start, .-_start
26538 .section .text.startup.foo,"ax",@progbits
26539 .type foo, @function
26543 .section .gcc_except_table.foo,"a",@progbits
26546 .section .eh_frame,"a",@progbits
26549 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26550 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26551 |
grep "gc-sections option ignored" > /dev
/null
; then
26553 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26554 |
grep gcc_except_table
> /dev
/null
; then
26555 gcc_cv_ld_eh_gc_sections_bug
=no
26558 rm -f conftest.s conftest.o conftest
26560 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26562 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26566 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26573 $as_echo_n "checking linker --as-needed support... " >&6; }
26574 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26575 $as_echo_n "(cached) " >&6
26577 gcc_cv_ld_as_needed
=no
26578 if test $in_tree_ld = yes ; then
26579 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 \
26580 && test $in_tree_ld_is_elf = yes; then
26581 gcc_cv_ld_as_needed
=yes
26583 elif test x
$gcc_cv_ld != x
; then
26584 # Check if linker supports --as-needed and --no-as-needed options
26585 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26586 gcc_cv_ld_as_needed
=yes
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26592 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26593 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26595 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26599 case "$target:$tm_file" in
26600 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26603 emul_name
="-melf64lppc"
26606 emul_name
="-melf64ppc"
26609 emul_name
="-melf64ppc_fbsd"
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26613 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26614 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26615 $as_echo_n "(cached) " >&6
26617 gcc_cv_ld_no_dot_syms
=no
26618 if test x
"$ld_is_gold" = xyes
; then
26619 gcc_cv_ld_no_dot_syms
=yes
26620 elif test $in_tree_ld = yes ; then
26621 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
26622 gcc_cv_ld_no_dot_syms
=yes
26624 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26625 cat > conftest1.s
<<EOF
26629 cat > conftest2.s
<<EOF
26630 .section ".opd","aw"
26633 .type foo,@function
26635 .quad .LEfoo,.TOC.@tocbase,0
26641 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26642 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26643 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26644 gcc_cv_ld_no_dot_syms
=yes
26646 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26651 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26652 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26654 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26659 $as_echo_n "checking linker large toc support... " >&6; }
26660 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26661 $as_echo_n "(cached) " >&6
26663 gcc_cv_ld_large_toc
=no
26664 if test x
"$ld_is_gold" = xyes
; then
26665 gcc_cv_ld_large_toc
=yes
26666 elif test $in_tree_ld = yes ; then
26667 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
26668 gcc_cv_ld_large_toc
=yes
26670 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26671 cat > conftest.s
<<EOF
26672 .section ".tbss","awT",@nobits
26678 addis 9,13,ie0@got@tprel@ha
26679 ld 9,ie0@got@tprel@l(9)
26681 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26682 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26683 gcc_cv_ld_large_toc
=yes
26685 rm -f conftest conftest.o conftest.s
26689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26690 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26691 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26693 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26702 $as_echo_n "checking linker large toc support... " >&6; }
26703 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26704 $as_echo_n "(cached) " >&6
26706 gcc_cv_ld_large_toc
=no
26707 if test x
$gcc_cv_as != x
; then
26708 cat > conftest.s
<<EOF
26718 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
26719 gcc_cv_ld_large_toc
=yes
26721 rm -f conftest conftest.o conftest.s
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26726 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26727 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26729 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26736 $as_echo_n "checking linker --build-id support... " >&6; }
26737 if test "${gcc_cv_ld_buildid+set}" = set; then :
26738 $as_echo_n "(cached) " >&6
26740 gcc_cv_ld_buildid
=no
26741 if test $in_tree_ld = yes ; then
26742 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26743 "$gcc_cv_gld_minor_version" -ge 18 -o \
26744 "$gcc_cv_gld_major_version" -gt 2 \
26745 && test $in_tree_ld_is_elf = yes; then
26746 gcc_cv_ld_buildid
=yes
26748 elif test x
$gcc_cv_ld != x
; then
26749 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26750 gcc_cv_ld_buildid
=yes
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26755 $as_echo "$gcc_cv_ld_buildid" >&6; }
26756 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26758 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26762 # Check whether --enable-linker-build-id was given.
26763 if test "${enable_linker_build_id+set}" = set; then :
26764 enableval
=$enable_linker_build_id;
26766 enable_linker_build_id
=no
26770 if test x
"$enable_linker_build_id" = xyes
; then
26771 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26773 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26777 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26781 # In binutils 2.21, GNU ld gained support for new emulations fully
26782 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26784 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26785 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26786 $as_echo_n "(cached) " >&6
26788 gcc_cv_ld_sol2_emulation
=no
26789 if test $in_tree_ld = yes ; then
26790 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26791 "$gcc_cv_gld_minor_version" -ge 21 -o \
26792 "$gcc_cv_gld_major_version" -gt 2 \
26793 && test $in_tree_ld_is_elf = yes; then
26794 gcc_cv_ld_sol2_emulation
=yes
26796 elif test x
$gcc_cv_ld != x
; then
26797 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26798 grep _sol2
> /dev
/null
; then
26799 gcc_cv_ld_sol2_emulation
=yes
26803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26804 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26805 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26807 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26812 $as_echo_n "checking linker --sysroot support... " >&6; }
26813 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26814 $as_echo_n "(cached) " >&6
26816 gcc_cv_ld_sysroot
=no
26817 if test $in_tree_ld = yes ; then
26818 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
26819 gcc_cv_ld_sysroot
=yes
26821 elif test x
$gcc_cv_ld != x
; then
26822 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26823 gcc_cv_ld_sysroot
=yes
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26828 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26829 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26831 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26835 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26836 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26837 && test "$prefix" != "NONE"; then
26839 cat >>confdefs.h
<<_ACEOF
26840 #define PREFIX_INCLUDE_DIR "$prefix/include"
26845 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26846 if test "x$with_headers" != x
; then
26847 target_header_dir
=$with_headers
26848 elif test "x$with_sysroot" = x
; then
26849 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
26850 elif test "x$with_build_sysroot" != "x"; then
26851 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26852 elif test "x$with_sysroot" = xyes
; then
26853 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26855 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26858 target_header_dir
=${native_system_header_dir}
26861 # Test for stack protector support in target C library.
26862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26863 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26864 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26865 $as_echo_n "(cached) " >&6
26867 gcc_cv_libc_provides_ssp
=no
26869 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26870 # glibc 2.4 and later provides __stack_chk_fail and
26871 # either __stack_chk_guard, or TLS access to stack guard canary.
26872 if test -f $target_header_dir/features.h \
26873 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26874 $target_header_dir/features.h
> /dev
/null
; then
26875 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26876 $target_header_dir/features.h
> /dev
/null
; then
26877 gcc_cv_libc_provides_ssp
=yes
26878 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26879 $target_header_dir/features.h
> /dev
/null \
26880 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26881 $target_header_dir/features.h
> /dev
/null
; then
26882 gcc_cv_libc_provides_ssp
=yes
26883 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26884 $target_header_dir/features.h
> /dev
/null
&& \
26885 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26886 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26887 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26888 gcc_cv_libc_provides_ssp
=yes
26890 # all versions of Bionic support stack protector
26891 elif test -f $target_header_dir/sys
/cdefs.h \
26892 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26893 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
26894 gcc_cv_libc_provides_ssp
=yes
26898 # Avoid complicated tests (see
26899 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26900 # simply assert that glibc does provide this, which is true for all
26901 # realistically usable GNU/Hurd configurations.
26902 gcc_cv_libc_provides_ssp
=yes;;
26903 *-*-darwin* |
*-*-freebsd*)
26904 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26905 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26906 gcc_cv_libc_provides_ssp
=yes
26908 echo "no __stack_chk_fail on this target"
26912 *) gcc_cv_libc_provides_ssp
=no
;;
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26916 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26918 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26920 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26924 # Test for <sys/sdt.h> on the target.
26926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26927 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26929 if test -f $target_header_dir/sys
/sdt.h
; then
26932 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26936 $as_echo "$have_sys_sdt_h" >&6; }
26938 # Check if TFmode long double should be used by default or not.
26939 # Some glibc targets used DFmode long double, but with glibc 2.4
26940 # and later they can use TFmode.
26942 powerpc
*-*-linux* | \
26943 sparc
*-*-linux* | \
26947 # Check whether --with-long-double-128 was given.
26948 if test "${with_long_double_128+set}" = set; then :
26949 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26951 gcc_cv_target_ldbl128
=no
26952 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26953 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26954 && gcc_cv_target_ldbl128
=yes
26960 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26962 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26967 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26968 gcc_cv_target_dl_iterate_phdr
=unknown
26970 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26971 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26972 # libdl there, both complicating its use and breaking compatibility
26973 # between Solaris 10 updates.
26974 *-*-solaris2.1
[1-9]*)
26975 # <link.h> needs both a dl_iterate_phdr declaration and support for
26976 # compilation with largefile support.
26977 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26978 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26979 gcc_cv_target_dl_iterate_phdr
=yes
26981 gcc_cv_target_dl_iterate_phdr
=no
26986 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26988 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26992 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26994 # We no longer support different GC mechanisms. Emit an error if
26995 # the user configures with --with-gc.
26997 # Check whether --with-gc was given.
26998 if test "${with_gc+set}" = set; then :
26999 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27003 # Libraries to use on the host. This will normally be set by the top
27004 # level Makefile. Here we simply capture the value for our Makefile.
27005 if test -z "${HOST_LIBS+set}"; then
27010 # Use the system's zlib library.
27012 zlibinc
="-I\$(srcdir)/../zlib"
27014 # Check whether --with-system-zlib was given.
27015 if test "${with_system_zlib+set}" = set; then :
27016 withval
=$with_system_zlib; zlibdir
=
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27026 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27027 # Check whether --enable-maintainer-mode was given.
27028 if test "${enable_maintainer_mode+set}" = set; then :
27029 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27036 $as_echo "$maintainer_mode" >&6; }
27038 if test "$maintainer_mode" = "yes"; then
27048 # Make empty files to contain the specs and options for each language.
27049 # Then add #include lines to for a compiler that has specs and/or options.
27055 # These (without "all_") are set in each config-lang.in.
27056 # `language' must be a single word so is spelled singularly.
27059 all_outputs
='Makefile'
27060 # List of language makefile fragments.
27061 all_lang_makefrags
=
27062 # Additional files for gengtype
27063 all_gtfiles
="$target_gtfiles"
27065 # These are the languages that are set in --enable-languages,
27066 # and are available in the GCC tree.
27067 all_selected_languages
=
27069 # Add the language fragments.
27070 # Languages are added via two mechanisms. Some information must be
27071 # recorded in makefile variables, these are defined in config-lang.in.
27072 # We accumulate them and plug them into the main Makefile.
27073 # The other mechanism is a set of hooks for each of the main targets
27074 # like `clean', `install', etc.
27076 language_hooks
="Make-hooks"
27078 for lang
in ${srcdir}/*/config-lang.
in
27080 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27082 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27083 if test "x$lang_alias" = x
27085 echo "$lang doesn't set \$language." 1>&2
27088 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27089 subdirs
="$subdirs $subdir"
27091 # $gcc_subdir is where the gcc integration files are to be found
27092 # for a language, both for internal compiler purposes (compiler
27093 # sources implementing front-end to GCC tree converters), and for
27094 # build infrastructure purposes (Make-lang.in, etc.)
27096 # This will be <subdir> (relative to $srcdir) if a line like
27097 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27098 # is found in <langdir>/config-lang.in, and will remain <langdir>
27101 # Except for the language alias (fetched above), the regular
27102 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27103 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27104 # only this and the language alias.
27106 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27107 if [ "$gcc_subdir" = "" ]; then
27108 gcc_subdir
="$subdir"
27111 case ",$enable_languages," in
27113 all_selected_languages
="$all_selected_languages $lang_alias"
27114 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27115 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27126 .
${srcdir}/$gcc_subdir/config-lang.
in
27127 if test "x$language" = x
27129 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27134 case ",$enable_languages," in
27135 *,$lang_alias,*) ;;
27137 for i
in $subdir_requires; do
27138 test -f "${srcdir}/$i/config-lang.in" && continue
27146 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27147 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27148 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27149 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27151 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27152 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27154 all_languages
="$all_languages $language"
27155 all_compilers
="$all_compilers $compilers"
27156 all_outputs
="$all_outputs $outputs"
27157 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27158 case ",$enable_languages," in
27161 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27171 for language
in $all_selected_languages
27173 check_languages
="$check_languages check-$language"
27176 # We link each language in with a set of hooks, reached indirectly via
27177 # lang.${target}. Only do so for selected languages.
27181 target_list
="all.cross start.encap rest.encap tags \
27182 install-common install-man install-info install-pdf install-html dvi \
27183 pdf html uninstall info man srcextra srcman srcinfo \
27184 mostlyclean clean distclean maintainer-clean install-plugin"
27186 for t
in $target_list
27189 for lang
in $all_selected_languages
27193 echo "lang.$t: $x" >> Make-hooks
27197 # Option include files
27200 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27201 option_includes
="option-includes.mk"
27210 echo "dir ." > .gdbinit
27211 echo "dir ${srcdir}" >> .gdbinit
27212 if test x
$gdb_needs_out_file_path = xyes
27214 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27216 if test "x$subdirs" != x
; then
27219 echo "dir ${srcdir}/$s" >> .gdbinit
27222 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27224 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27228 # Find a directory in which to install a shared libgcc.
27230 # Check whether --enable-version-specific-runtime-libs was given.
27231 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27232 enableval
=$enable_version_specific_runtime_libs;
27236 # Set default prefix canonicalization.
27238 # Check whether --enable-canonical-prefixes was given.
27239 if test "${enable_canonical_prefixes+set}" = set; then :
27240 enableval
=$enable_canonical_prefixes;
27242 enable_canonical_prefixes
=yes
27245 if test x
"$enable_canonical_prefixes" = xyes
; then
27247 $as_echo "#define ENABLE_CANONICAL_PREFIXES 1" >>confdefs.h
27251 # Substitute configuration variables
27315 if test x
${build} = x
${host} ; then
27316 if test x
${host} = x
${target} ; then
27317 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27319 echo "Links are now set up to build a cross-compiler" 1>&2
27320 echo " from ${host} to ${target}." 1>&2
27323 if test x
${host} = x
${target} ; then
27324 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27325 echo " for ${target}." 1>&2
27327 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27328 echo " from ${host} to ${target}." 1>&2
27340 if test "x${CLOOGLIBS}" != "x" ; then
27342 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27346 # Check for plugin support
27347 # Check whether --enable-plugin was given.
27348 if test "${enable_plugin+set}" = set; then :
27349 enableval
=$enable_plugin; enable_plugin
=$enableval
27351 enable_plugin
=yes; default_plugin
=yes
27359 if test x
$build = x
$host; then
27360 export_sym_check
="nm${exeext} -g"
27361 elif test x
$host = x
$target; then
27362 export_sym_check
="$gcc_cv_nm -g"
27368 if test x
$build = x
$host; then
27369 export_sym_check
="objdump${exeext} -T"
27370 elif test x
$host = x
$target; then
27371 export_sym_check
="$gcc_cv_objdump -T"
27378 if test x
"$enable_plugin" = x
"yes"; then
27380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27381 $as_echo_n "checking for exported symbols... " >&6; }
27382 if test "x$export_sym_check" != x
; then
27383 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27384 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
27385 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
27386 : # No need to use a flag
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27388 $as_echo "yes" >&6; }
27390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27391 $as_echo "yes" >&6; }
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27393 $as_echo_n "checking for -rdynamic... " >&6; }
27394 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
27395 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
27396 plugin_rdynamic
=yes
27397 pluginlibs
="-rdynamic"
27402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27403 $as_echo "$plugin_rdynamic" >&6; }
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27407 $as_echo "unable to check" >&6; }
27412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27413 $as_echo_n "checking for library containing dlopen... " >&6; }
27414 if test "${ac_cv_search_dlopen+set}" = set; then :
27415 $as_echo_n "(cached) " >&6
27417 ac_func_search_save_LIBS
=$LIBS
27418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27419 /* end confdefs.h. */
27421 /* Override any GCC internal prototype to avoid an error.
27422 Use char because int might match the return type of a GCC
27423 builtin and then its argument prototype would still apply. */
27436 for ac_lib
in '' dl
; do
27437 if test -z "$ac_lib"; then
27438 ac_res
="none required"
27441 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27443 if ac_fn_c_try_link
"$LINENO"; then :
27444 ac_cv_search_dlopen
=$ac_res
27446 rm -f core conftest.err conftest.
$ac_objext \
27448 if test "${ac_cv_search_dlopen+set}" = set; then :
27452 if test "${ac_cv_search_dlopen+set}" = set; then :
27455 ac_cv_search_dlopen
=no
27457 rm conftest.
$ac_ext
27458 LIBS
=$ac_func_search_save_LIBS
27460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27461 $as_echo "$ac_cv_search_dlopen" >&6; }
27462 ac_res
=$ac_cv_search_dlopen
27463 if test "$ac_res" != no
; then :
27464 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27468 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27469 pluginlibs
="$pluginlibs -ldl"
27473 # Check that we can build shared objects with -fPIC -shared
27474 saved_LDFLAGS
="$LDFLAGS"
27475 saved_CFLAGS
="$CFLAGS"
27478 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27479 CFLAGS
="$CFLAGS -fPIC"
27480 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27483 CFLAGS
="$CFLAGS -fPIC"
27484 LDFLAGS
="$LDFLAGS -fPIC -shared"
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27488 $as_echo_n "checking for -fPIC -shared... " >&6; }
27489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27490 /* end confdefs.h. */
27500 if ac_fn_c_try_link
"$LINENO"; then :
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27502 $as_echo "yes" >&6; }; have_pic_shared
=yes
27504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27505 $as_echo "no" >&6; }; have_pic_shared
=no
27507 rm -f core conftest.err conftest.
$ac_objext \
27508 conftest
$ac_exeext conftest.
$ac_ext
27509 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27513 LDFLAGS
="$saved_LDFLAGS"
27514 CFLAGS
="$saved_CFLAGS"
27516 # If plugin support had been requested but not available, fail.
27517 if test x
"$enable_plugin" = x
"no" ; then
27518 if test x
"$default_plugin" != x
"yes"; then
27520 Building GCC with plugin support requires a host that supports
27521 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27528 if test x
"$enable_plugin" = x
"yes"; then
27530 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27535 # Check whether --enable-libquadmath-support was given.
27536 if test "${enable_libquadmath_support+set}" = set; then :
27537 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27539 ENABLE_LIBQUADMATH_SUPPORT
=yes
27542 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27544 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27549 warn_frame_larger_than_extra_text
=
27551 # Check whether --with-warn-frame-larger-than-extra-text was given.
27552 if test "${with_warn_frame_larger_than_extra_text+set}" = set; then :
27553 withval
=$with_warn_frame_larger_than_extra_text; case "${withval}" in
27554 yes) as_fn_error
"bad value ${withval} given for frame size warning text" "$LINENO" 5 ;;
27556 *) warn_frame_larger_than_extra_text
="$withval" ;;
27561 cat >>confdefs.h
<<_ACEOF
27562 #define WARN_FRAME_LARGER_THAN_EXTRA_TEXT "$warn_frame_larger_than_extra_text"
27567 # Specify what hash style to use by default.
27569 # Check whether --with-linker-hash-style was given.
27570 if test "${with_linker_hash_style+set}" = set; then :
27571 withval
=$with_linker_hash_style; case x
"$withval" in
27573 LINKER_HASH_STYLE
=sysv
27576 LINKER_HASH_STYLE
=gnu
27579 LINKER_HASH_STYLE
=both
27582 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27586 LINKER_HASH_STYLE
=''
27589 if test x
"${LINKER_HASH_STYLE}" != x
; then
27591 cat >>confdefs.h
<<_ACEOF
27592 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27597 # Configure the subdirectories
27598 # AC_CONFIG_SUBDIRS($subdirs)
27600 # Create the Makefile
27601 # and configure language subdirectories
27602 ac_config_files
="$ac_config_files $all_outputs"
27605 ac_config_commands
="$ac_config_commands default"
27607 cat >confcache
<<\_ACEOF
27608 # This file is a shell script that caches the results of configure
27609 # tests run on this system so they can be shared between configure
27610 # scripts and configure runs, see configure's option --config-cache.
27611 # It is not useful on other systems. If it contains results you don't
27612 # want to keep, you may remove or edit it.
27614 # config.status only pays attention to the cache file if you give it
27615 # the --recheck option to rerun configure.
27617 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27618 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27619 # following values.
27623 # The following way of writing the cache mishandles newlines in values,
27624 # but we know of no workaround that is simple, portable, and efficient.
27625 # So, we kill variables containing newlines.
27626 # Ultrix sh set writes to stderr and can't be redirected directly,
27627 # and sets the high bit in the cache file unless we assign to the vars.
27629 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27630 eval ac_val
=\$
$ac_var
27634 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27635 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27638 _ | IFS | as_nl
) ;; #(
27639 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27640 *) { eval $ac_var=; unset $ac_var;} ;;
27646 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27647 *${as_nl}ac_space
=\
*)
27648 # `set' does not quote correctly, so add quotes: double-quote
27649 # substitution turns \\\\ into \\, and sed turns \\ into \.
27652 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27655 # `set' quotes correctly as required by POSIX, so do not add quotes.
27656 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27665 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27667 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27669 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27670 if test -w "$cache_file"; then
27671 test "x$cache_file" != "x/dev/null" &&
27672 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27673 $as_echo "$as_me: updating cache $cache_file" >&6;}
27674 cat confcache
>$cache_file
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27677 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27682 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27683 # Let make expand exec_prefix.
27684 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27686 DEFS
=-DHAVE_CONFIG_H
27690 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27691 # 1. Remove the extension, and $U if already installed.
27692 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27693 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27694 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27695 # will be set to the directory where LIBOBJS objects are built.
27696 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27697 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27699 LIBOBJS
=$ac_libobjs
27701 LTLIBOBJS
=$ac_ltlibobjs
27706 : ${CONFIG_STATUS=./config.status}
27708 ac_clean_files_save
=$ac_clean_files
27709 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27710 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27711 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27713 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27715 # Generated by $as_me.
27716 # Run this file to recreate the current configuration.
27717 # Compiler output produced by configure, useful for debugging
27718 # configure, is in config.log if it exists.
27721 ac_cs_recheck=false
27724 SHELL=\${CONFIG_SHELL-$SHELL}
27727 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27728 ## -------------------- ##
27729 ## M4sh Initialization. ##
27730 ## -------------------- ##
27732 # Be more Bourne compatible
27733 DUALCASE
=1; export DUALCASE
# for MKS sh
27734 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27737 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27738 # is contrary to our usage. Disable this feature.
27739 alias -g '${1+"$@"}'='"$@"'
27740 setopt NO_GLOB_SUBST
27742 case `(set -o) 2>/dev/null` in #(
27754 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27755 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27756 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27757 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27758 # Prefer a ksh shell builtin over an external printf program on Solaris,
27759 # but without wasting forks for bash or zsh.
27760 if test -z "$BASH_VERSION$ZSH_VERSION" \
27761 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27762 as_echo='print
-r --'
27763 as_echo_n='print
-rn --'
27764 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27765 as_echo='printf %s
\n'
27766 as_echo_n='printf %s
'
27768 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27769 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27770 as_echo_n='/usr
/ucb
/echo -n'
27772 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27773 as_echo_n_body='eval
27777 expr "X$arg" : "X\\(.*\\)$as_nl";
27778 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27780 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27782 export as_echo_n_body
27783 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27785 export as_echo_body
27786 as_echo='sh
-c $as_echo_body as_echo
'
27789 # The user is always right.
27790 if test "${PATH_SEPARATOR+set}" != set; then
27792 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27793 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27800 # We need space, tab and new line, in precisely that order. Quoting is
27801 # there to prevent editors from complaining about space-tab.
27802 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27803 # splitting by setting IFS to empty value.)
27806 # Find who we are. Look in the path if we contain no directory separator.
27808 *[\\/]* ) as_myself=$0 ;;
27809 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27810 for as_dir in $PATH
27813 test -z "$as_dir" && as_dir=.
27814 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27820 # We did not find ourselves, most probably we were run as `sh COMMAND'
27821 # in which case we are not to be found in the path.
27822 if test "x$as_myself" = x
; then
27825 if test ! -f "$as_myself"; then
27826 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27830 # Unset variables that we do not need and which cause bugs (e.g. in
27831 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27832 # suppresses any "Segmentation fault" message there. '((' could
27833 # trigger a bug in pdksh 5.2.14.
27834 for as_var
in BASH_ENV ENV MAIL MAILPATH
27835 do eval test x\
${$as_var+set} = xset \
27836 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27849 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27852 # as_fn_error ERROR [LINENO LOG_FD]
27853 # ---------------------------------
27854 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27855 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27856 # script with status $?, using 1 if that was 0.
27859 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27861 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27862 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27864 $as_echo "$as_me: error: $1" >&2
27865 as_fn_exit
$as_status
27869 # as_fn_set_status STATUS
27870 # -----------------------
27871 # Set $? to STATUS, without forking.
27872 as_fn_set_status
()
27875 } # as_fn_set_status
27877 # as_fn_exit STATUS
27878 # -----------------
27879 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27883 as_fn_set_status
$1
27889 # Portably unset VAR.
27892 { eval $1=; unset $1;}
27894 as_unset
=as_fn_unset
27895 # as_fn_append VAR VALUE
27896 # ----------------------
27897 # Append the text in VALUE to the end of the definition contained in VAR. Take
27898 # advantage of any shell optimizations that allow amortized linear growth over
27899 # repeated appends, instead of the typical quadratic growth present in naive
27901 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27902 eval 'as_fn_append ()
27913 # as_fn_arith ARG...
27914 # ------------------
27915 # Perform arithmetic evaluation on the ARGs, and store the result in the
27916 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27917 # must be portable across $(()) and expr.
27918 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27919 eval 'as_fn_arith ()
27926 as_val
=`expr "$@" || test $? -eq 1`
27931 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27932 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27938 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27939 as_basename
=basename
27944 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27950 as_me
=`$as_basename -- "$0" ||
27951 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27952 X"$0" : 'X\(//\)$' \| \
27953 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27955 sed '/^.*\/\([^/][^/]*\)\/*$/{
27969 # Avoid depending upon Character Ranges.
27970 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27971 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27972 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27973 as_cr_digits
='0123456789'
27974 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27976 ECHO_C
= ECHO_N
= ECHO_T
=
27977 case `echo -n x` in #(((((
27979 case `echo 'xy\c'` in
27980 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27982 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27989 rm -f conf$$ conf$$.exe conf$$.
file
27990 if test -d conf$$.dir
; then
27991 rm -f conf$$.dir
/conf$$.
file
27994 mkdir conf$$.dir
2>/dev
/null
27996 if (echo >conf$$.
file) 2>/dev
/null
; then
27997 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27999 # ... but there are two gotchas:
28000 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28001 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28002 # In both cases, we have to default to `cp -p'.
28003 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28005 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28013 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28014 rmdir conf$$.dir
2>/dev
/null
28019 # Create "$as_dir" as a directory, including parents if necessary.
28024 -*) as_dir
=.
/$as_dir;;
28026 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28030 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28031 *) as_qdir
=$as_dir;;
28033 as_dirs
="'$as_qdir' $as_dirs"
28034 as_dir
=`$as_dirname -- "$as_dir" ||
28035 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28036 X"$as_dir" : 'X\(//\)[^/]' \| \
28037 X"$as_dir" : 'X\(//\)$' \| \
28038 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28039 $as_echo X"$as_dir" |
28040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28044 /^X\(\/\/\)[^/].*/{
28057 test -d "$as_dir" && break
28059 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28060 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28064 if mkdir
-p .
2>/dev
/null
; then
28065 as_mkdir_p
='mkdir -p "$as_dir"'
28067 test -d .
/-p && rmdir .
/-p
28071 if test -x / >/dev
/null
2>&1; then
28072 as_test_x
='test -x'
28074 if ls -dL / >/dev
/null
2>&1; then
28081 if test -d "$1"; then
28087 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28088 ???[sx]*):;;*)false;;esac;fi
28092 as_executable_p
=$as_test_x
28094 # Sed expression to map a string onto a valid CPP name.
28095 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28097 # Sed expression to map a string onto a valid variable name.
28098 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28102 ## ----------------------------------- ##
28103 ## Main body of $CONFIG_STATUS script. ##
28104 ## ----------------------------------- ##
28106 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28109 # Save the log message, to keep $0 and so on meaningful, and to
28110 # report actual input values of CONFIG_FILES etc. instead of their
28111 # values after options handling.
28113 This file was extended by $as_me, which was
28114 generated by GNU Autoconf 2.64. Invocation command line was
28116 CONFIG_FILES = $CONFIG_FILES
28117 CONFIG_HEADERS = $CONFIG_HEADERS
28118 CONFIG_LINKS = $CONFIG_LINKS
28119 CONFIG_COMMANDS = $CONFIG_COMMANDS
28122 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28127 case $ac_config_files in *"
28128 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28131 case $ac_config_headers in *"
28132 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28137 # Files that config.status was made for.
28138 config_files="$ac_config_files"
28139 config_headers="$ac_config_headers"
28140 config_commands="$ac_config_commands"
28144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28146 \`$as_me' instantiates files and other configuration actions
28147 from templates according to the current configuration. Unless the files
28148 and actions are specified as TAGs, all are instantiated by default.
28150 Usage: $0 [OPTION]... [TAG]...
28152 -h, --help print this help, then exit
28153 -V, --version print version number and configuration settings, then exit
28154 -q, --quiet, --silent
28155 do not print progress messages
28156 -d, --debug don't remove temporary files
28157 --recheck update $as_me by reconfiguring in the same conditions
28158 --file=FILE[:TEMPLATE]
28159 instantiate the configuration file FILE
28160 --header=FILE[:TEMPLATE]
28161 instantiate the configuration header FILE
28163 Configuration files:
28166 Configuration headers:
28169 Configuration commands:
28172 Report bugs to the package provider."
28175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28178 configured by $0, generated by GNU Autoconf 2.64,
28179 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28181 Copyright (C) 2009 Free Software Foundation, Inc.
28182 This config.status script is free software; the Free Software Foundation
28183 gives unlimited permission to copy, distribute and modify it."
28188 test -n "\$AWK" || AWK=awk
28191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28192 # The default lists apply if the user does not specify any file.
28198 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28199 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28210 # Handling of the options.
28211 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28213 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28214 $as_echo "$ac_cs_version"; exit ;;
28215 --debug |
--debu |
--deb |
--de |
--d |
-d )
28217 --file |
--fil |
--fi |
--f )
28220 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28222 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28223 ac_need_defaults
=false
;;
28224 --header |
--heade |
--head |
--hea )
28227 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28229 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28230 ac_need_defaults
=false
;;
28232 # Conflict between --help and --header
28233 as_fn_error
"ambiguous option: \`$1'
28234 Try \`$0 --help' for more information.";;
28235 --help |
--hel |
-h )
28236 $as_echo "$ac_cs_usage"; exit ;;
28237 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28238 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28241 # This is an error.
28242 -*) as_fn_error
"unrecognized option: \`$1'
28243 Try \`$0 --help' for more information." ;;
28245 *) as_fn_append ac_config_targets
" $1"
28246 ac_need_defaults
=false
;;
28252 ac_configure_extra_args
=
28254 if $ac_cs_silent; then
28256 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28261 if \$ac_cs_recheck; then
28262 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28264 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28265 CONFIG_SHELL='$SHELL'
28266 export CONFIG_SHELL
28271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28275 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28276 ## Running $as_me. ##
28282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28292 # Handling of arguments.
28293 for ac_config_target
in $ac_config_targets
28295 case $ac_config_target in
28296 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28297 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28298 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28299 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28300 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28301 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28303 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28308 # If the user did not use the arguments to specify the items to instantiate,
28309 # then the envvar interface is used. Set only those that are not.
28310 # We use the long form for the default assignment because of an extremely
28311 # bizarre bug on SunOS 4.1.3.
28312 if $ac_need_defaults; then
28313 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28314 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28315 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28318 # Have a temporary directory for convenience. Make it in the build tree
28319 # simply because there is no reason against having it here, and in addition,
28320 # creating and moving files from /tmp can sometimes cause problems.
28321 # Hook for its removal unless debugging.
28322 # Note that there is a small window in which the directory will not be cleaned:
28323 # after its creation but before its name has been assigned to `$tmp'.
28327 trap 'exit_status=$?
28328 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28330 trap 'as_fn_exit 1' 1 2 13 15
28332 # Create a (secure) tmp directory for tmp files.
28335 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28336 test -n "$tmp" && test -d "$tmp"
28339 tmp
=.
/conf$$
-$RANDOM
28340 (umask 077 && mkdir
"$tmp")
28341 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28343 # Set up the scripts for CONFIG_FILES section.
28344 # No need to generate them if there are no CONFIG_FILES.
28345 # This happens for instance with `./config.status config.h'.
28346 if test -n "$CONFIG_FILES"; then
28348 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28349 ac_cs_awk_getline
=:
28350 ac_cs_awk_pipe_init
=
28351 ac_cs_awk_read_file
='
28352 while ((getline aline < (F[key])) > 0)
28355 ac_cs_awk_pipe_fini
=
28357 ac_cs_awk_getline
=false
28358 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28359 ac_cs_awk_read_file
='
28361 print "cat " F[key] " &&"
28362 '$ac_cs_awk_pipe_init
28363 # The final `:' finishes the AND list.
28364 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28366 ac_cr
=`echo X | tr X '\015'`
28367 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28368 # But we know of no other shell where ac_cr would be empty at this
28369 # point, so we can use a bashism as a fallback.
28370 if test "x$ac_cr" = x
; then
28371 eval ac_cr
=\$
\'\\r
\'
28373 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28374 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28377 ac_cs_awk_cr
=$ac_cr
28380 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28383 # Create commands to substitute file output variables.
28385 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28386 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28387 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28390 } >conf$
$files.sh
&&
28391 . .
/conf$
$files.sh ||
28392 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28393 rm -f conf$
$files.sh
28396 echo "cat >conf$$subs.awk <<_ACEOF" &&
28397 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28399 } >conf$$subs.sh ||
28400 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28401 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28403 for ac_last_try in false false false false false :; do
28404 . ./conf$$subs.sh ||
28405 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28407 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28408 if test $ac_delim_n = $ac_delim_num; then
28410 elif $ac_last_try; then
28411 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28413 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28416 rm -f conf$$subs.sh
28418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28419 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28423 s/^/S["/; s
/!.
*/"]=/
28433 s/\(.\{148\}\).*/\1/
28435 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28440 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28447 s/\(.\{148\}\).*/\1/
28449 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28453 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28458 ' <conf$$subs.awk | sed '
28463 ' >>$CONFIG_STATUS || ac_write_fail=1
28464 rm -f conf$$subs.awk
28465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28467 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28468 for (key in S) S_is_set[key] = 1
28470 \$ac_cs_awk_pipe_init
28474 nfields = split(line, field, "@
")
28476 len = length(field[1])
28477 for (i = 2; i < nfields; i++) {
28479 keylen = length(key)
28480 if (S_is_set[key]) {
28482 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28483 len += length(value) + length(field[++i])
28488 if (nfields == 3 && !substed) {
28490 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28491 \$ac_cs_awk_read_file
28497 \$ac_cs_awk_pipe_fini
28500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28501 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28502 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28505 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28506 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28509 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28510 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28511 # trailing colons and then remove the whole line if VPATH becomes empty
28512 # (actually we leave an empty line to preserve line numbers).
28513 if test "x
$srcdir" = x.; then
28514 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28515 s/:*\$(srcdir):*/:/
28516 s/:*\${srcdir}:*/:/
28518 s/^\([^=]*=[ ]*\):*/\1/
28524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28525 fi # test -n "$CONFIG_FILES"
28527 # Set up the scripts for CONFIG_HEADERS section.
28528 # No need to generate them if there are no CONFIG_HEADERS.
28529 # This happens for instance with `./config.status Makefile'.
28530 if test -n "$CONFIG_HEADERS"; then
28531 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28535 # Transform confdefs.h into an awk script `defines.awk', embedded as
28536 # here-document in config.status, that substitutes the proper values into
28537 # config.h.in to produce config.h.
28539 # Create a delimiter string that does not exist in confdefs.h, to ease
28540 # handling of long lines.
28542 for ac_last_try in false false :; do
28543 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28544 if test -z "$ac_t"; then
28546 elif $ac_last_try; then
28547 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28549 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28553 # For the awk script, D is an array of macro values keyed by name,
28554 # likewise P contains macro parameters if any. Preserve backslash
28555 # newline sequences.
28557 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28559 s/.\{148\}/&'"$ac_delim"'/g
28562 s/^[ ]*#[ ]*define[ ][ ]*/ /
28569 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28571 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28575 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28576 D["\
1"]=" \
3\\\\\\n
"\\/p
28578 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28583 s/.\{148\}/&'"$ac_delim"'/g
28588 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28591 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28593 ' <confdefs.h | sed '
28594 s/'"$ac_delim"'/"\\\
28595 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28598 for (key in D) D_is_set[key] = 1
28601 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28603 split(line, arg, " ")
28604 if (arg[1] == "#") {
28608 defundef
= substr
(arg
[1], 2)
28611 split(mac1
, mac2
, "(") #)
28613 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28614 if (D_is_set
[macro
]) {
28615 # Preserve the white space surrounding the "#".
28616 print prefix
"define", macro P
[macro
] D
[macro
]
28619 # Replace #undef with comments. This is necessary, for example,
28620 # in the case of _POSIX_SOURCE, which is predefined and required
28621 # on some systems where configure will not decide to define it.
28622 if (defundef
== "undef") {
28623 print
"/*", prefix defundef
, macro
, "*/"
28631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28632 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28633 fi # test -n "$CONFIG_HEADERS"
28636 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28641 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28643 case $ac_mode$ac_tag in
28645 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28646 :[FH
]-) ac_tag
=-:-;;
28647 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28664 -) ac_f
="$tmp/stdin";;
28665 *) # Look for the file first in the build tree, then in the source tree
28666 # (if the path is not absolute). The absolute path cannot be DOS-style,
28667 # because $ac_f cannot contain `:'.
28671 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28673 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28675 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28676 as_fn_append ac_file_inputs
" '$ac_f'"
28679 # Let's still pretend it is `configure' which instantiates (i.e., don't
28680 # use $as_me), people would be surprised to read:
28681 # /* config.h. Generated by config.status. */
28682 configure_input
='Generated from '`
28683 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28685 if test x
"$ac_file" != x-
; then
28686 configure_input
="$ac_file. $configure_input"
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28688 $as_echo "$as_me: creating $ac_file" >&6;}
28690 # Neutralize special characters interpreted by sed in replacement strings.
28691 case $configure_input in #(
28692 *\
&* |
*\|
* |
*\\* )
28693 ac_sed_conf_input
=`$as_echo "$configure_input" |
28694 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28695 *) ac_sed_conf_input
=$configure_input;;
28699 *:-:* |
*:-) cat >"$tmp/stdin" \
28700 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28705 ac_dir
=`$as_dirname -- "$ac_file" ||
28706 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28707 X"$ac_file" : 'X\(//\)[^/]' \| \
28708 X"$ac_file" : 'X\(//\)$' \| \
28709 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28710 $as_echo X"$ac_file" |
28711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28715 /^X\(\/\/\)[^/].*/{
28728 as_dir
="$ac_dir"; as_fn_mkdir_p
28732 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28734 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28735 # A ".." for each directory in $ac_dir_suffix.
28736 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28737 case $ac_top_builddir_sub in
28738 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28739 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28742 ac_abs_top_builddir
=$ac_pwd
28743 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28744 # for backward compatibility:
28745 ac_top_builddir
=$ac_top_build_prefix
28748 .
) # We are building in place.
28750 ac_top_srcdir
=$ac_top_builddir_sub
28751 ac_abs_top_srcdir
=$ac_pwd ;;
28752 [\\/]* | ?
:[\\/]* ) # Absolute name.
28753 ac_srcdir
=$srcdir$ac_dir_suffix;
28754 ac_top_srcdir
=$srcdir
28755 ac_abs_top_srcdir
=$srcdir ;;
28756 *) # Relative name.
28757 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28758 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28759 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28761 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28773 # If the template does not know about datarootdir, expand it.
28774 # FIXME: This hack should be removed a few years after 2.60.
28775 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28786 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28787 *datarootdir
*) ac_datarootdir_seen
=yes;;
28788 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28790 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28793 ac_datarootdir_hack='
28794 s&@datadir@&$datadir&g
28795 s&@docdir@&$docdir&g
28796 s&@infodir@&$infodir&g
28797 s&@localedir@&$localedir&g
28798 s&@mandir@&$mandir&g
28799 s&\\\${datarootdir}&$datarootdir&g' ;;
28803 # Neutralize VPATH when `$srcdir' = `.'.
28804 # Shell code in configure.ac might set extrasub.
28805 # FIXME: do we really want to maintain this feature?
28806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28807 ac_sed_extra="$ac_vpsub
28810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28812 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28813 s|@configure_input@|
$ac_sed_conf_input|
;t t
28814 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28815 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28816 s
&@srcdir@
&$ac_srcdir&;t t
28817 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28818 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28819 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28820 s
&@builddir@
&$ac_builddir&;t t
28821 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28822 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28823 $ac_datarootdir_hack
28825 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28826 if $ac_cs_awk_getline; then
28827 $AWK -f "$tmp/subs.
awk"
28829 $AWK -f "$tmp/subs.
awk" | $SHELL
28831 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28833 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28834 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28835 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28837 which seems to be undefined. Please make sure it is defined." >&5
28838 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28839 which seems to be undefined. Please make sure it is defined." >&2;}
28843 -) cat "$tmp/out" && rm -f "$tmp/out";;
28844 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28846 || as_fn_error "could not create $ac_file" "$LINENO" 5
28852 if test x"$ac_file" != x-; then
28854 $as_echo "/* $configure_input */" \
28855 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28856 } >"$tmp/config.h" \
28857 || as_fn_error "could not create $ac_file" "$LINENO" 5
28858 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28859 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28860 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28863 mv "$tmp/config.h" "$ac_file" \
28864 || as_fn_error "could not create $ac_file" "$LINENO" 5
28867 $as_echo "/* $configure_input */" \
28868 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28869 || as_fn_error "could not create -" "$LINENO" 5
28873 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28874 $as_echo "$as_me: executing $ac_file commands" >&6;}
28879 case $ac_file$ac_mode in
28880 "as":F) chmod +x as ;;
28881 "collect-ld":F) chmod +x collect-ld ;;
28882 "nm":F) chmod +x nm ;;
28884 case ${CONFIG_HEADERS} in
28885 *auto-host.h:config.in*)
28888 # Make sure all the subdirs exist.
28889 for d in $subdirs doc build common c-family
28891 test -d $d || mkdir $d
28901 ac_clean_files=$ac_clean_files_save
28903 test $ac_write_fail = 0 ||
28904 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28907 # configure is writing to config.log, and then calls config.status.
28908 # config.status does its own redirection, appending to config.log.
28909 # Unfortunately, on DOS this fails, as config.log is still kept open
28910 # by configure, so config.status won't be able to
write to it
; its
28911 # output is simply discarded. So we exec the FD to /dev/null,
28912 # effectively closing config.log, so it can be properly (re)opened and
28913 # appended to by config.status. When coming back to configure, we
28914 # need to make the FD available again.
28915 if test "$no_create" != yes; then
28917 ac_config_status_args
=
28918 test "$silent" = yes &&
28919 ac_config_status_args
="$ac_config_status_args --quiet"
28921 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28923 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28924 # would make configure fail if this is the last instruction.
28925 $ac_cs_success || as_fn_exit $?
28927 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28929 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}