2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
626 common_out_object_file
642 gcc_gxx_include_dir_add_sysroot
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
652 TM_MULTILIB_EXCEPTIONS_CONFIG
661 build_xm_include_list
663 build_install_headers_dir
665 all_selected_languages
683 ORIGINAL_NM_FOR_TARGET
685 ORIGINAL_LD_GOLD_FOR_TARGET
686 ORIGINAL_LD_BFD_FOR_TARGET
687 ORIGINAL_LD_FOR_TARGET
688 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 ORIGINAL_AS_FOR_TARGET
732 NATIVE_SYSTEM_HEADER_DIR
768 CROSS_SYSTEM_HEADER_DIR
769 TARGET_SYSTEM_ROOT_DEFINE
771 SYSROOT_CFLAGS_FOR_TARGET
781 valgrind_path_defines
854 program_transform_name
865 ac_subst_files
='option_includes
868 enable_option_checking
873 enable_generated_files_in_srcdir
880 enable_build_format_warnings
884 enable_gather_detailed_mem_stats
885 enable_valgrind_annotations
897 with_native_system_header_dir
907 enable_sjlj_exceptions
909 enable_leading_mingw64_underscores
912 enable_win32_registry
920 enable_gnu_indirect_function
921 enable_initfini_array
924 enable_gnu_unique_object
925 enable_linker_build_id
929 enable_maintainer_mode
931 enable_version_specific_runtime_libs
934 enable_libquadmath_support
935 with_linker_hash_style
937 ac_precious_vars
='build_alias
958 # Initialize some variables set by options.
960 ac_init_version
=false
961 ac_unrecognized_opts
=
963 # The variables have the same names as the options, with
964 # dashes changed to underlines.
972 program_transform_name
=s
,x
,x
,
980 # Installation directory options.
981 # These are left unexpanded so users can "make install exec_prefix=/foo"
982 # and all the variables that are supposed to be based on exec_prefix
983 # by default will actually change.
984 # Use braces instead of parens because sh, perl, etc. also accept them.
985 # (The list follows the same order as the GNU Coding Standards.)
986 bindir
='${exec_prefix}/bin'
987 sbindir
='${exec_prefix}/sbin'
988 libexecdir
='${exec_prefix}/libexec'
989 datarootdir
='${prefix}/share'
990 datadir
='${datarootdir}'
991 sysconfdir
='${prefix}/etc'
992 sharedstatedir
='${prefix}/com'
993 localstatedir
='${prefix}/var'
994 includedir
='${prefix}/include'
995 oldincludedir
='/usr/include'
996 docdir
='${datarootdir}/doc/${PACKAGE}'
997 infodir
='${datarootdir}/info'
1002 libdir
='${exec_prefix}/lib'
1003 localedir
='${datarootdir}/locale'
1004 mandir
='${datarootdir}/man'
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
1012 eval $ac_prev=\
$ac_option
1018 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 # Accept the important Cygnus configure options, so we can diagnose typos.
1024 case $ac_dashdash$ac_option in
1028 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1030 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1031 bindir
=$ac_optarg ;;
1033 -build |
--build |
--buil |
--bui |
--bu)
1034 ac_prev
=build_alias
;;
1035 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1036 build_alias
=$ac_optarg ;;
1038 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1039 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1040 ac_prev
=cache_file
;;
1041 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1042 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1043 cache_file
=$ac_optarg ;;
1045 --config-cache |
-C)
1046 cache_file
=config.cache
;;
1048 -datadir |
--datadir |
--datadi |
--datad)
1050 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1051 datadir
=$ac_optarg ;;
1053 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1054 |
--dataroo |
--dataro |
--datar)
1055 ac_prev
=datarootdir
;;
1056 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1057 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1058 datarootdir
=$ac_optarg ;;
1060 -disable-* |
--disable-*)
1061 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1064 as_fn_error
"invalid feature name: $ac_useropt"
1065 ac_useropt_orig
=$ac_useropt
1066 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1069 "enable_
$ac_useropt"
1071 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1072 ac_unrecognized_sep
=', ';;
1074 eval enable_
$ac_useropt=no
;;
1076 -docdir |
--docdir |
--docdi |
--doc |
--do)
1078 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1079 docdir
=$ac_optarg ;;
1081 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1083 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1084 dvidir
=$ac_optarg ;;
1086 -enable-* |
--enable-*)
1087 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1090 as_fn_error
"invalid feature name: $ac_useropt"
1091 ac_useropt_orig
=$ac_useropt
1092 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1095 "enable_
$ac_useropt"
1097 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1098 ac_unrecognized_sep
=', ';;
1100 eval enable_
$ac_useropt=\
$ac_optarg ;;
1102 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1103 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1104 |
--exec |
--exe |
--ex)
1105 ac_prev
=exec_prefix
;;
1106 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1107 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1108 |
--exec=* |
--exe=* |
--ex=*)
1109 exec_prefix
=$ac_optarg ;;
1111 -gas |
--gas |
--ga |
--g)
1112 # Obsolete; use --with-gas.
1115 -help |
--help |
--hel |
--he |
-h)
1116 ac_init_help
=long
;;
1117 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1118 ac_init_help
=recursive
;;
1119 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1120 ac_init_help
=short
;;
1122 -host |
--host |
--hos |
--ho)
1123 ac_prev
=host_alias
;;
1124 -host=* |
--host=* |
--hos=* |
--ho=*)
1125 host_alias
=$ac_optarg ;;
1127 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1129 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1131 htmldir
=$ac_optarg ;;
1133 -includedir |
--includedir |
--includedi |
--included |
--include \
1134 |
--includ |
--inclu |
--incl |
--inc)
1135 ac_prev
=includedir
;;
1136 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1137 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1138 includedir
=$ac_optarg ;;
1140 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1142 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1143 infodir
=$ac_optarg ;;
1145 -libdir |
--libdir |
--libdi |
--libd)
1147 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1148 libdir
=$ac_optarg ;;
1150 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1151 |
--libexe |
--libex |
--libe)
1152 ac_prev
=libexecdir
;;
1153 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1154 |
--libexe=* |
--libex=* |
--libe=*)
1155 libexecdir
=$ac_optarg ;;
1157 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1158 ac_prev
=localedir
;;
1159 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1160 localedir
=$ac_optarg ;;
1162 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1163 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1164 ac_prev
=localstatedir
;;
1165 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1166 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1167 localstatedir
=$ac_optarg ;;
1169 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1171 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1172 mandir
=$ac_optarg ;;
1174 -nfp |
--nfp |
--nf)
1175 # Obsolete; use --without-fp.
1178 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1179 |
--no-cr |
--no-c |
-n)
1182 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1183 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1186 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1187 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1188 |
--oldin |
--oldi |
--old |
--ol |
--o)
1189 ac_prev
=oldincludedir
;;
1190 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1191 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1192 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1193 oldincludedir
=$ac_optarg ;;
1195 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1197 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1198 prefix
=$ac_optarg ;;
1200 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1201 |
--program-pre |
--program-pr |
--program-p)
1202 ac_prev
=program_prefix
;;
1203 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1204 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1205 program_prefix
=$ac_optarg ;;
1207 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1208 |
--program-suf |
--program-su |
--program-s)
1209 ac_prev
=program_suffix
;;
1210 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1211 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1212 program_suffix
=$ac_optarg ;;
1214 -program-transform-name |
--program-transform-name \
1215 |
--program-transform-nam |
--program-transform-na \
1216 |
--program-transform-n |
--program-transform- \
1217 |
--program-transform |
--program-transfor \
1218 |
--program-transfo |
--program-transf \
1219 |
--program-trans |
--program-tran \
1220 |
--progr-tra |
--program-tr |
--program-t)
1221 ac_prev
=program_transform_name
;;
1222 -program-transform-name=* |
--program-transform-name=* \
1223 |
--program-transform-nam=* |
--program-transform-na=* \
1224 |
--program-transform-n=* |
--program-transform-=* \
1225 |
--program-transform=* |
--program-transfor=* \
1226 |
--program-transfo=* |
--program-transf=* \
1227 |
--program-trans=* |
--program-tran=* \
1228 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1229 program_transform_name
=$ac_optarg ;;
1231 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1233 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1234 pdfdir
=$ac_optarg ;;
1236 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1238 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1241 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1242 |
-silent |
--silent |
--silen |
--sile |
--sil)
1245 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1247 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1249 sbindir
=$ac_optarg ;;
1251 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1252 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1253 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1255 ac_prev
=sharedstatedir
;;
1256 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1257 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1258 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1260 sharedstatedir
=$ac_optarg ;;
1262 -site |
--site |
--sit)
1264 -site=* |
--site=* |
--sit=*)
1267 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1269 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1270 srcdir
=$ac_optarg ;;
1272 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1273 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1274 ac_prev
=sysconfdir
;;
1275 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1276 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1277 sysconfdir
=$ac_optarg ;;
1279 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1280 ac_prev
=target_alias
;;
1281 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1282 target_alias
=$ac_optarg ;;
1284 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1287 -version |
--version |
--versio |
--versi |
--vers |
-V)
1288 ac_init_version
=: ;;
1291 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1294 as_fn_error
"invalid package name: $ac_useropt"
1295 ac_useropt_orig
=$ac_useropt
1296 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1301 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1302 ac_unrecognized_sep
=', ';;
1304 eval with_
$ac_useropt=\
$ac_optarg ;;
1306 -without-* |
--without-*)
1307 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1310 as_fn_error
"invalid package name: $ac_useropt"
1311 ac_useropt_orig
=$ac_useropt
1312 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1317 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1318 ac_unrecognized_sep
=', ';;
1320 eval with_
$ac_useropt=no
;;
1323 # Obsolete; use --with-x.
1326 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1327 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1328 ac_prev
=x_includes
;;
1329 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1330 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1331 x_includes
=$ac_optarg ;;
1333 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1334 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1335 ac_prev
=x_libraries
;;
1336 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1337 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1338 x_libraries
=$ac_optarg ;;
1340 -*) as_fn_error
"unrecognized option: \`$ac_option'
1341 Try \`$0 --help' for more information."
1345 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1346 # Reject names that are not valid shell variable names.
1347 case $ac_envvar in #(
1348 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1349 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1351 eval $ac_envvar=\
$ac_optarg
1352 export $ac_envvar ;;
1355 # FIXME: should be removed in autoconf 3.0.
1356 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1357 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1358 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1359 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1365 if test -n "$ac_prev"; then
1366 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1367 as_fn_error
"missing argument to $ac_option"
1370 if test -n "$ac_unrecognized_opts"; then
1371 case $enable_option_checking in
1373 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1374 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1378 # Check all directory arguments for consistency.
1379 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1380 datadir sysconfdir sharedstatedir localstatedir includedir \
1381 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1382 libdir localedir mandir
1384 eval ac_val
=\$
$ac_var
1385 # Remove trailing slashes.
1388 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1389 eval $ac_var=\
$ac_val;;
1391 # Be sure to have absolute directory names.
1393 [\\/$
]* | ?
:[\\/]* ) continue;;
1394 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1396 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1399 # There might be people who depend on the old broken behavior: `$host'
1400 # used to hold the argument of --host etc.
1401 # FIXME: To remove some day.
1404 target
=$target_alias
1406 # FIXME: To remove some day.
1407 if test "x$host_alias" != x
; then
1408 if test "x$build_alias" = x
; then
1409 cross_compiling
=maybe
1410 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1411 If a cross compiler is detected then cross compile mode will be used." >&2
1412 elif test "x$build_alias" != "x$host_alias"; then
1418 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1420 test "$silent" = yes && exec 6>/dev
/null
1423 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1424 ac_ls_di
=`ls -di .` &&
1425 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1426 as_fn_error
"working directory cannot be determined"
1427 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1428 as_fn_error
"pwd does not report name of working directory"
1431 # Find the source files, if location was not specified.
1432 if test -z "$srcdir"; then
1433 ac_srcdir_defaulted
=yes
1434 # Try the directory containing this script, then the parent directory.
1435 ac_confdir
=`$as_dirname -- "$as_myself" ||
1436 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1437 X"$as_myself" : 'X\(//\)[^/]' \| \
1438 X"$as_myself" : 'X\(//\)$' \| \
1439 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1440 $as_echo X"$as_myself" |
1441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1463 ac_srcdir_defaulted
=no
1465 if test ! -r "$srcdir/$ac_unique_file"; then
1466 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1467 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1469 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1471 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1473 # When building in place, set srcdir=.
1474 if test "$ac_abs_confdir" = "$ac_pwd"; then
1477 # Remove unnecessary trailing slashes from srcdir.
1478 # Double slashes in file names in object file debugging info
1479 # mess up M-x gdb in Emacs.
1481 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1483 for ac_var
in $ac_precious_vars; do
1484 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1485 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1486 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1487 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1491 # Report the --help message.
1493 if test "$ac_init_help" = "long"; then
1494 # Omit some internal or obsolete options to make the list less imposing.
1495 # This message is too long to be a string in the A/UX 3.1 sh.
1497 \`configure' configures this package to adapt to many kinds of systems.
1499 Usage: $0 [OPTION]... [VAR=VALUE]...
1501 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1502 VAR=VALUE. See below for descriptions of some of the useful variables.
1504 Defaults for the options are specified in brackets.
1507 -h, --help display this help and exit
1508 --help=short display options specific to this package
1509 --help=recursive display the short help of all the included packages
1510 -V, --version display version information and exit
1511 -q, --quiet, --silent do not print \`checking...' messages
1512 --cache-file=FILE cache test results in FILE [disabled]
1513 -C, --config-cache alias for \`--cache-file=config.cache'
1514 -n, --no-create do not create output files
1515 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1517 Installation directories:
1518 --prefix=PREFIX install architecture-independent files in PREFIX
1519 [$ac_default_prefix]
1520 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1523 By default, \`make install' will install all the files in
1524 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1525 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1526 for instance \`--prefix=\$HOME'.
1528 For better control, use the options below.
1530 Fine tuning of the installation directories:
1531 --bindir=DIR user executables [EPREFIX/bin]
1532 --sbindir=DIR system admin executables [EPREFIX/sbin]
1533 --libexecdir=DIR program executables [EPREFIX/libexec]
1534 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1535 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1536 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1537 --libdir=DIR object code libraries [EPREFIX/lib]
1538 --includedir=DIR C header files [PREFIX/include]
1539 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1540 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1541 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1542 --infodir=DIR info documentation [DATAROOTDIR/info]
1543 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1544 --mandir=DIR man documentation [DATAROOTDIR/man]
1545 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1546 --htmldir=DIR html documentation [DOCDIR]
1547 --dvidir=DIR dvi documentation [DOCDIR]
1548 --pdfdir=DIR pdf documentation [DOCDIR]
1549 --psdir=DIR ps documentation [DOCDIR]
1555 --program-prefix=PREFIX prepend PREFIX to installed program names
1556 --program-suffix=SUFFIX append SUFFIX to installed program names
1557 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1560 --build=BUILD configure
for building on BUILD
[guessed
]
1561 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1562 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1566 if test -n "$ac_init_help"; then
1571 --disable-option-checking ignore unrecognized
--enable/--with options
1572 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1573 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1574 --enable-generated-files-in-srcdir
1575 put copies of generated files
in source dir intended
1576 for creating
source tarballs
for users without
1577 texinfo bison or flex
1578 --disable-largefile omit support
for large files
1579 --disable-build-format-warnings
1580 don
't use -Wformat while building GCC
1581 --enable-werror-always enable -Werror despite compiler version
1582 --enable-checking[=LIST]
1583 enable expensive run-time checks. With LIST, enable
1584 only specific categories of checks. Categories are:
1585 yes,no,all,none,release. Flags are:
1586 assert,df,fold,gc,gcac,gimple,misc,
1587 rtlflag,rtl,runtime,tree,valgrind,types
1588 --enable-coverage[=LEVEL]
1589 enable compiler's code coverage collection. Use to
1590 measure compiler performance and
locate unused parts
1591 of the compiler. With LEVEL
, specify optimization.
1592 Values are opt
, noopt
, default is noopt
1593 --enable-gather-detailed-mem-stats
1594 enable detailed memory allocation stats gathering
1595 --enable-valgrind-annotations
1596 enable valgrind runtime interaction
1597 --enable-multilib enable library support
for multiple ABIs
1598 --enable-multiarch enable support
for multiarch paths
1599 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1600 --enable-decimal-float={no
,yes,bid
,dpd
}
1601 enable decimal float extension to C. Selecting
'bid'
1602 or
'dpd' choses
which decimal floating point format
1604 --enable-fixed-point enable fixed-point arithmetic extension to C
1605 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1607 --enable-tls enable or disable generation of tls code overriding
1608 the assembler check
for tls support
1609 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1610 GNU Objective-C runtime
1611 --disable-shared don't provide a shared libgcc
1612 --enable-languages=LIST specify
which front-ends to build
1613 --disable-rpath do not hardcode runtime library paths
1614 --enable-sjlj-exceptions
1615 arrange to use setjmp
/longjmp exception handling
1616 --enable-secureplt enable -msecure-plt by default
for PowerPC
1617 --enable-leading-mingw64-underscores
1618 enable leading underscores on
64 bit mingw targets
1619 --enable-cld enable -mcld by default
for 32bit x86
1620 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1622 --disable-win32-registry
1623 disable lookup of installation paths
in the Registry
1625 --enable-win32-registry enable registry lookup
(default
)
1626 --enable-win32-registry=KEY
1627 use KEY instead of GCC version as the last portion
1629 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1630 --enable-static[=PKGS
] build static libraries
[default
=yes]
1631 --enable-fast-install[=PKGS
]
1632 optimize
for fast installation
[default
=yes]
1633 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1634 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1635 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1636 --enable-gnu-indirect-function
1637 enable the use of the @gnu_indirect_function to
1639 --enable-initfini-array use .init_array
/.fini_array sections
1640 --enable-comdat enable COMDAT group support
1641 --enable-gnu-unique-object
1642 enable the use of the @gnu_unique_object ELF
1643 extension on glibc systems
1644 --enable-linker-build-id
1645 compiler will always pass
--build-id to linker
1646 --enable-maintainer-mode
1647 enable make rules and dependencies not useful
(and
1648 sometimes confusing
) to the casual installer
1649 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1650 thrashing on the build machine
1651 --enable-version-specific-runtime-libs
1652 specify that runtime libraries should be installed
1653 in a compiler-specific directory
1654 --enable-plugin enable plugin support
1655 --enable-host-shared build
host code as shared libraries
1656 --disable-libquadmath-support
1657 disable libquadmath support
for Fortran
1660 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1661 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1662 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1663 --with-local-prefix=DIR specifies directory to put
local include
1664 --with-gxx-include-dir=DIR
1665 specifies directory to put g
++ header files
1666 --with-cpp-install-dir=DIR
1667 install the user visible C preprocessor
in DIR
1668 (relative to PREFIX
) as well as PREFIX
/bin
1669 --with-gnu-ld arrange to work with GNU ld
1670 --with-ld arrange to use the specified ld
(full pathname
)
1671 --with-demangler-in-ld try to use demangler
in GNU ld
1672 --with-gnu-as arrange to work with GNU as
1673 --with-as arrange to use the specified as
(full pathname
)
1674 --with-stabs arrange to use stabs instead of
host debug format
1675 --with-dwarf2 force the default debug format to be DWARF
2
1676 --with-native-system-header-dir=dir
1677 use dir as the directory to
look for standard
1678 system header files
in. Defaults to
/usr
/include.
1679 --with-build-sysroot=sysroot
1680 use sysroot as the system root during the build
1681 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1682 --with-specs=SPECS add SPECS to driver command-line processing
1683 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1684 --with-bugurl=URL Direct users to URL to report a bug
1685 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1686 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1687 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1688 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1689 --with-pic try to use only PIC/non-PIC objects [default=use
1691 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1692 --with-plugin-ld=[ARG] specify the plugin linker
1693 --with-glibc-version=M.N
1694 assume GCC used with glibc version M.N or later
1695 --with-long-double-128 use 128-bit long double by default
1696 --with-gc={page,zone} this option is not supported anymore. It used to
1697 choose the garbage collection mechanism to use with
1699 --with-system-zlib use installed libz
1700 --with-linker-hash-style={sysv,gnu,both}
1701 specify the linker hash style
1703 Some influential environment variables:
1704 CC C compiler command
1705 CFLAGS C compiler flags
1706 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1707 nonstandard directory <lib dir>
1708 LIBS libraries to pass to the linker, e.g. -l<library>
1709 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1710 you have headers in a nonstandard directory <include dir>
1711 CXX C++ compiler command
1712 CXXFLAGS C++ compiler flags
1714 CXXCPP C++ preprocessor
1715 GMPLIBS How to link GMP
1716 GMPINC How to find GMP include files
1717 ISLLIBS How to link ISL
1718 ISLINC How to find ISL include files
1719 CLOOGLIBS How to link CLOOG
1720 CLOOGINC How to find CLOOG include files
1722 Use these variables to override the choices made by `configure' or to
help
1723 it to
find libraries and programs with nonstandard names
/locations.
1725 Report bugs to the package provider.
1730 if test "$ac_init_help" = "recursive"; then
1731 # If there are subdirs, report their specific --help.
1732 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1733 test -d "$ac_dir" ||
1734 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1739 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1741 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1742 # A ".." for each directory in $ac_dir_suffix.
1743 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1744 case $ac_top_builddir_sub in
1745 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1746 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1749 ac_abs_top_builddir
=$ac_pwd
1750 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1751 # for backward compatibility:
1752 ac_top_builddir
=$ac_top_build_prefix
1755 .
) # We are building in place.
1757 ac_top_srcdir
=$ac_top_builddir_sub
1758 ac_abs_top_srcdir
=$ac_pwd ;;
1759 [\\/]* | ?
:[\\/]* ) # Absolute name.
1760 ac_srcdir
=$srcdir$ac_dir_suffix;
1761 ac_top_srcdir
=$srcdir
1762 ac_abs_top_srcdir
=$srcdir ;;
1764 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1765 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1766 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1768 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1770 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1771 # Check for guested configure.
1772 if test -f "$ac_srcdir/configure.gnu"; then
1774 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1775 elif test -f "$ac_srcdir/configure"; then
1777 $SHELL "$ac_srcdir/configure" --help=recursive
1779 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1781 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1785 test -n "$ac_init_help" && exit $ac_status
1786 if $ac_init_version; then
1789 generated by GNU Autoconf
2.64
1791 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1792 This configure
script is free software
; the Free Software Foundation
1793 gives unlimited permission to copy
, distribute and modify it.
1798 ## ------------------------ ##
1799 ## Autoconf initialization. ##
1800 ## ------------------------ ##
1802 # ac_fn_c_try_compile LINENO
1803 # --------------------------
1804 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_c_try_compile
()
1807 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1808 rm -f conftest.
$ac_objext
1809 if { { ac_try
="$ac_compile"
1811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_compile") 2>conftest.err
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest.$ac_objext; then :
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838 } # ac_fn_c_try_compile
1840 # ac_fn_cxx_try_compile LINENO
1841 # ----------------------------
1842 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_cxx_try_compile ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext
1847 if { { ac_try="$ac_compile"
1849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1850 *) ac_try_echo
=$ac_try;;
1852 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_compile") 2>conftest.err
1856 if test -s conftest.err
; then
1857 grep -v '^ *+' conftest.err
>conftest.er1
1858 cat conftest.er1
>&5
1859 mv -f conftest.er1 conftest.err
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_cxx_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest.
$ac_objext; then :
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.
$ac_ext >&5
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1876 } # ac_fn_cxx_try_compile
1878 # ac_fn_c_try_cpp LINENO
1879 # ----------------------
1880 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1883 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1884 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } >/dev/null && {
1900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1901 test ! -s conftest.err
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1916 # -------------------------------------------------------
1917 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1918 # the include files in INCLUDES and setting the cache variable VAR
1920 ac_fn_c_check_header_mongrel ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1933 # Is the header compilable?
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1935 $as_echo_n "checking $2 usability... " >&6; }
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942 ac_header_compiler=yes
1944 ac_header_compiler=no
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1948 $as_echo "$ac_header_compiler" >&6; }
1950 # Is the header present?
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1952 $as_echo_n "checking $2 presence... " >&6; }
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1957 if ac_fn_c_try_cpp "$LINENO"; then :
1958 ac_header_preproc=yes
1960 ac_header_preproc=no
1962 rm -f conftest.err conftest.$ac_ext
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1964 $as_echo "$ac_header_preproc" >&6; }
1966 # So? What about this header?
1967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1970 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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}: WARNING: $2: present but cannot be compiled" >&5
1976 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1978 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1980 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1982 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1984 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1990 $as_echo_n "(cached) " >&6
1992 eval "$3=\$ac_header_compiler"
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2000 } # ac_fn_c_check_header_mongrel
2002 # ac_fn_c_try_run LINENO
2003 # ----------------------
2004 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2005 # that executables *can* be run.
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 if { { ac_try="$ac_link"
2011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2012 *) ac_try_echo
=$ac_try;;
2014 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015 $as_echo "$ac_try_echo"; } >&5
2016 (eval "$ac_link") 2>&5
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2020 { { case "(($ac_try" in
2021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_try") 2>&5
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; }; }; then :
2032 $as_echo "$as_me: program exited with status $ac_status" >&5
2033 $as_echo "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.$ac_ext >&5
2036 ac_retval=$ac_status
2038 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2039 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2044 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2045 # -------------------------------------------------------
2046 # Tests whether HEADER exists and can be compiled using the include files in
2047 # INCLUDES, setting the cache variable VAR accordingly.
2048 ac_fn_c_check_header_compile ()
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052 $as_echo_n "checking for $2... " >&6; }
2053 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2054 $as_echo_n "(cached) " >&6
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2061 if ac_fn_c_try_compile "$LINENO"; then :
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070 $as_echo "$ac_res" >&6; }
2071 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073 } # ac_fn_c_check_header_compile
2075 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2076 # --------------------------------------------
2077 # Tries to find the compile-time value of EXPR in a program that includes
2078 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2080 ac_fn_c_compute_int ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 if test "$cross_compiling" = yes; then
2084 # Depending upon the size, compute the lo and hi bounds.
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2091 static int test_array [1 - 2 * !(($2) >= 0)];
2098 if ac_fn_c_try_compile "$LINENO"; then :
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2107 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115 ac_hi=$ac_mid; break
2117 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2118 if test $ac_lo -le $ac_mid; then
2122 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2133 static int test_array [1 - 2 * !(($2) < 0)];
2140 if ac_fn_c_try_compile "$LINENO"; then :
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2149 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 ac_lo=$ac_mid; break
2159 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2160 if test $ac_mid -le $ac_hi; then
2164 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 # Binary search between lo and hi bounds.
2175 while test "x$ac_lo" != "x$ac_hi"; do
2176 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2183 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2190 if ac_fn_c_try_compile "$LINENO"; then :
2193 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2205 static long int longval () { return $2; }
2206 static unsigned long int ulongval () { return $2; }
2213 FILE *f = fopen ("conftest.val", "w");
2218 long int i = longval ();
2221 fprintf (f, "%ld", i);
2225 unsigned long int i = ulongval ();
2228 fprintf (f, "%lu", i);
2230 /* Do not output a trailing newline, as this causes \r\n confusion
2231 on some platforms. */
2232 return ferror (f) || fclose (f) != 0;
2238 if ac_fn_c_try_run "$LINENO"; then :
2239 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2244 conftest.$ac_objext conftest.beam conftest.$ac_ext
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2251 } # ac_fn_c_compute_int
2253 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2254 # -------------------------------------------
2255 # Tests whether TYPE exists after having included INCLUDES, setting cache
2256 # variable VAR accordingly.
2257 ac_fn_c_check_type ()
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261 $as_echo_n "checking for $2... " >&6; }
2262 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2263 $as_echo_n "(cached) " >&6
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2291 if ac_fn_c_try_compile "$LINENO"; then :
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302 $as_echo "$ac_res" >&6; }
2303 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2305 } # ac_fn_c_check_type
2307 # ac_fn_c_find_intX_t LINENO BITS VAR
2308 # -----------------------------------
2309 # Finds a signed integer type with width BITS, setting cache variable VAR
2311 ac_fn_c_find_intX_t ()
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2315 $as_echo_n "checking for int$2_t... " >&6; }
2316 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2317 $as_echo_n "(cached) " >&6
2320 for ac_type in int$2_t 'int' 'long int' \
2321 'long long int' 'short int' 'signed char'; do
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2324 $ac_includes_default
2328 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2335 if ac_fn_c_try_compile "$LINENO"; then :
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2338 $ac_includes_default
2342 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2343 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2350 if ac_fn_c_try_compile "$LINENO"; then :
2357 eval "$3=\$ac_type" ;;
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 if test "x$as_val" = x""no; then :
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373 $as_echo "$ac_res" >&6; }
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2376 } # ac_fn_c_find_intX_t
2378 # ac_fn_c_try_link LINENO
2379 # -----------------------
2380 # Try to link conftest.$ac_ext, and return whether this succeeded.
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 rm -f conftest.$ac_objext conftest$ac_exeext
2385 if { { ac_try="$ac_link"
2387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2388 *) ac_try_echo
=$ac_try;;
2390 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2391 $as_echo "$ac_try_echo"; } >&5
2392 (eval "$ac_link") 2>conftest.err
2394 if test -s conftest.err
; then
2395 grep -v '^ *+' conftest.err
>conftest.er1
2396 cat conftest.er1
>&5
2397 mv -f conftest.er1 conftest.err
2399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400 test $ac_status = 0; } && {
2401 test -z "$ac_c_werror_flag" ||
2402 test ! -s conftest.err
2403 } && test -s conftest
$ac_exeext && {
2404 test "$cross_compiling" = yes ||
2405 $as_test_x conftest
$ac_exeext
2409 $as_echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.
$ac_ext >&5
2414 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2415 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2416 # interfere with the next link command; also delete a directory that is
2417 # left behind by Apple's compiler. We do this before executing the actions.
2418 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2419 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2422 } # ac_fn_c_try_link
2424 # ac_fn_c_find_uintX_t LINENO BITS VAR
2425 # ------------------------------------
2426 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2428 ac_fn_c_find_uintX_t
()
2430 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2432 $as_echo_n "checking for uint$2_t... " >&6; }
2433 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2434 $as_echo_n "(cached) " >&6
2437 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2438 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h. */
2441 $ac_includes_default
2445 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2452 if ac_fn_c_try_compile
"$LINENO"; then :
2457 eval "$3=\$ac_type" ;;
2460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2462 if test "x$as_val" = x
""no
; then :
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2474 } # ac_fn_c_find_uintX_t
2476 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2477 # ----------------------------------------------
2478 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2479 ac_fn_c_check_header_preproc
()
2481 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2483 $as_echo_n "checking for $2... " >&6; }
2484 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2485 $as_echo_n "(cached) " >&6
2487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2488 /* end confdefs.h. */
2491 if ac_fn_c_try_cpp
"$LINENO"; then :
2496 rm -f conftest.err conftest.
$ac_ext
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2500 $as_echo "$ac_res" >&6; }
2501 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2503 } # ac_fn_c_check_header_preproc
2505 # ac_fn_cxx_try_cpp LINENO
2506 # ------------------------
2507 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2508 ac_fn_cxx_try_cpp
()
2510 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2511 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2517 $as_echo "$ac_try_echo"; } >&5
2518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2520 if test -s conftest.err; then
2521 grep -v '^ *+' conftest.err >conftest.er1
2522 cat conftest.er1 >&5
2523 mv -f conftest.er1 conftest.err
2525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2526 test $ac_status = 0; } >/dev/null && {
2527 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2528 test ! -s conftest.err
2532 $as_echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2540 } # ac_fn_cxx_try_cpp
2542 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2543 # ------------------------------------------------
2544 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2545 ac_fn_cxx_check_header_preproc ()
2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2551 $as_echo_n "(cached) " >&6
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2557 if ac_fn_cxx_try_cpp "$LINENO"; then :
2562 rm -f conftest.err conftest.$ac_ext
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569 } # ac_fn_cxx_check_header_preproc
2571 # ac_fn_c_check_func LINENO FUNC VAR
2572 # ----------------------------------
2573 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2574 ac_fn_c_check_func ()
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2578 $as_echo_n "checking for $2... " >&6; }
2579 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2580 $as_echo_n "(cached) " >&6
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2584 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2586 #define $2 innocuous_$2
2588 /* System header to define __stub macros and hopefully few prototypes,
2589 which can conflict with char $2 (); below.
2590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2591 <limits.h> exists even on freestanding compilers. */
2594 # include <limits.h>
2596 # include <assert.h>
2601 /* Override any GCC internal prototype to avoid an error.
2602 Use char because int might match the return type of a GCC
2603 builtin and then its argument prototype would still apply. */
2608 /* The GNU C library defines this for functions which it implements
2609 to always fail with ENOSYS. Some functions are actually named
2610 something starting with __ and the normal name is an alias. */
2611 #if defined __stub_$2 || defined __stub___$2
2623 if ac_fn_c_try_link "$LINENO"; then :
2628 rm -f core conftest.err conftest.$ac_objext \
2629 conftest$ac_exeext conftest.$ac_ext
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2633 $as_echo "$ac_res" >&6; }
2634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2636 } # ac_fn_c_check_func
2638 # ac_fn_cxx_try_link LINENO
2639 # -------------------------
2640 # Try to link conftest.$ac_ext, and return whether this succeeded.
2641 ac_fn_cxx_try_link ()
2643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2644 rm -f conftest.$ac_objext conftest$ac_exeext
2645 if { { ac_try="$ac_link"
2647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2648 *) ac_try_echo
=$ac_try;;
2650 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2651 $as_echo "$ac_try_echo"; } >&5
2652 (eval "$ac_link") 2>conftest.err
2654 if test -s conftest.err
; then
2655 grep -v '^ *+' conftest.err
>conftest.er1
2656 cat conftest.er1
>&5
2657 mv -f conftest.er1 conftest.err
2659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2660 test $ac_status = 0; } && {
2661 test -z "$ac_cxx_werror_flag" ||
2662 test ! -s conftest.err
2663 } && test -s conftest
$ac_exeext && {
2664 test "$cross_compiling" = yes ||
2665 $as_test_x conftest
$ac_exeext
2669 $as_echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.
$ac_ext >&5
2674 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2675 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2676 # interfere with the next link command; also delete a directory that is
2677 # left behind by Apple's compiler. We do this before executing the actions.
2678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2679 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2682 } # ac_fn_cxx_try_link
2683 cat >config.log
<<_ACEOF
2684 This file contains any messages produced by compilers while
2685 running configure, to aid debugging if configure makes a mistake.
2687 It was created by $as_me, which was
2688 generated by GNU Autoconf 2.64. Invocation command line was
2700 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2701 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2702 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2703 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2704 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2706 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2707 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2709 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2710 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2711 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2712 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2713 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2714 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2715 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2723 test -z "$as_dir" && as_dir
=.
2724 $as_echo "PATH: $as_dir"
2740 # Keep a trace of the command line.
2741 # Strip out --no-create and --no-recursion so they do not pile up.
2742 # Strip out --silent because we don't want to record it for future runs.
2743 # Also quote any args containing shell meta-characters.
2744 # Make two passes to allow for proper duplicate-argument suppression.
2748 ac_must_keep_next
=false
2754 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2755 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2756 |
-silent |
--silent |
--silen |
--sile |
--sil)
2759 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2762 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2764 as_fn_append ac_configure_args1
" '$ac_arg'"
2765 if test $ac_must_keep_next = true
; then
2766 ac_must_keep_next
=false
# Got value, back to normal.
2769 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2770 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2771 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2772 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2773 case "$ac_configure_args0 " in
2774 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2777 -* ) ac_must_keep_next
=true
;;
2780 as_fn_append ac_configure_args
" '$ac_arg'"
2785 { ac_configure_args0
=; unset ac_configure_args0
;}
2786 { ac_configure_args1
=; unset ac_configure_args1
;}
2788 # When interrupted or exit'd, cleanup temporary files, and complete
2789 # config.log. We remove comments because anyway the quotes in there
2790 # would cause problems or look ugly.
2791 # WARNING: Use '\'' to represent an apostrophe within the trap.
2792 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2793 trap 'exit_status=$?
2794 # Save into config.log some information that might help in debugging.
2799 ## ---------------- ##
2800 ## Cache variables. ##
2801 ## ---------------- ##
2804 # The following way of writing the cache mishandles newlines in values,
2806 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2807 eval ac_val=\$$ac_var
2811 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2812 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2815 _ | IFS | as_nl) ;; #(
2816 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2817 *) { eval $ac_var=; unset $ac_var;} ;;
2822 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2823 *${as_nl}ac_space=\ *)
2825 "s/'\''/'\''\\\\'\'''\''/g;
2826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2829 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2837 ## ----------------- ##
2838 ## Output variables. ##
2839 ## ----------------- ##
2842 for ac_var in $ac_subst_vars
2844 eval ac_val=\$$ac_var
2846 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2848 $as_echo "$ac_var='\''$ac_val'\''"
2852 if test -n "$ac_subst_files"; then
2854 ## ------------------- ##
2855 ## File substitutions. ##
2856 ## ------------------- ##
2859 for ac_var
in $ac_subst_files
2861 eval ac_val
=\$
$ac_var
2863 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2865 $as_echo "$ac_var='\''$ac_val'\''"
2870 if test -s confdefs.h; then
2880 test "$ac_signal" != 0 &&
2881 $as_echo "$as_me: caught signal $ac_signal"
2882 $as_echo "$as_me: exit $exit_status"
2884 rm -f core *.core core.conftest.* &&
2885 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2888 for ac_signal
in 1 2 13 15; do
2889 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2893 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2894 rm -f -r conftest
* confdefs.h
2896 $as_echo "/* confdefs.h */" > confdefs.h
2898 # Predefined preprocessor variables.
2900 cat >>confdefs.h
<<_ACEOF
2901 #define PACKAGE_NAME "$PACKAGE_NAME"
2904 cat >>confdefs.h
<<_ACEOF
2905 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2908 cat >>confdefs.h
<<_ACEOF
2909 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2912 cat >>confdefs.h
<<_ACEOF
2913 #define PACKAGE_STRING "$PACKAGE_STRING"
2916 cat >>confdefs.h
<<_ACEOF
2917 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2920 cat >>confdefs.h
<<_ACEOF
2921 #define PACKAGE_URL "$PACKAGE_URL"
2925 # Let the site file select an alternate cache file if it wants to.
2926 # Prefer an explicitly selected file to automatically selected ones.
2929 if test -n "$CONFIG_SITE"; then
2930 ac_site_file1
=$CONFIG_SITE
2931 elif test "x$prefix" != xNONE
; then
2932 ac_site_file1
=$prefix/share
/config.site
2933 ac_site_file2
=$prefix/etc
/config.site
2935 ac_site_file1
=$ac_default_prefix/share
/config.site
2936 ac_site_file2
=$ac_default_prefix/etc
/config.site
2938 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2940 test "x$ac_site_file" = xNONE
&& continue
2941 if test -r "$ac_site_file"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2943 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2944 sed 's/^/| /' "$ac_site_file" >&5
2949 if test -r "$cache_file"; then
2950 # Some versions of bash will fail to source /dev/null (special
2951 # files actually), so we avoid doing that.
2952 if test -f "$cache_file"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2954 $as_echo "$as_me: loading cache $cache_file" >&6;}
2956 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2957 *) .
"./$cache_file";;
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2962 $as_echo "$as_me: creating cache $cache_file" >&6;}
2966 # Check that the precious variables saved in the cache have kept the same
2968 ac_cache_corrupted
=false
2969 for ac_var
in $ac_precious_vars; do
2970 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2971 eval ac_new_set
=\
$ac_env_${ac_var}_set
2972 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2973 eval ac_new_val
=\
$ac_env_${ac_var}_value
2974 case $ac_old_set,$ac_new_set in
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2977 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2978 ac_cache_corrupted
=: ;;
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2981 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2982 ac_cache_corrupted
=: ;;
2985 if test "x$ac_old_val" != "x$ac_new_val"; then
2986 # differences in whitespace do not lead to failure.
2987 ac_old_val_w
=`echo x $ac_old_val`
2988 ac_new_val_w
=`echo x $ac_new_val`
2989 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2991 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2992 ac_cache_corrupted
=:
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2995 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2996 eval $ac_var=\
$ac_old_val
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2999 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3001 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3004 # Pass precious variables to config.status.
3005 if test "$ac_new_set" = set; then
3007 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3008 *) ac_arg
=$ac_var=$ac_new_val ;;
3010 case " $ac_configure_args " in
3011 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3012 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3016 if $ac_cache_corrupted; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3020 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3021 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3023 ## -------------------- ##
3024 ## Main body of script. ##
3025 ## -------------------- ##
3028 ac_cpp
='$CPP $CPPFLAGS'
3029 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3038 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3041 gcc_version
=`cat $srcdir/BASE-VER`
3043 # Determine the host, build, and target systems
3045 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3046 for ac_t
in install-sh
install.sh shtool
; do
3047 if test -f "$ac_dir/$ac_t"; then
3049 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3054 if test -z "$ac_aux_dir"; then
3055 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3058 # These three variables are undocumented and unsupported,
3059 # and are intended to be withdrawn in a future Autoconf release.
3060 # They can cause serious problems if a builder's source tree is in a directory
3061 # whose full name contains unusual characters.
3062 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3063 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3064 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3067 # Make sure we can run config.sub.
3068 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3069 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3072 $as_echo_n "checking build system type... " >&6; }
3073 if test "${ac_cv_build+set}" = set; then :
3074 $as_echo_n "(cached) " >&6
3076 ac_build_alias
=$build_alias
3077 test "x$ac_build_alias" = x
&&
3078 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3079 test "x$ac_build_alias" = x
&&
3080 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3081 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3082 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3086 $as_echo "$ac_cv_build" >&6; }
3087 case $ac_cv_build in
3089 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3092 ac_save_IFS
=$IFS; IFS
='-'
3098 # Remember, the first character of IFS is used to create $*,
3099 # except with old shells:
3102 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3106 $as_echo_n "checking host system type... " >&6; }
3107 if test "${ac_cv_host+set}" = set; then :
3108 $as_echo_n "(cached) " >&6
3110 if test "x$host_alias" = x
; then
3111 ac_cv_host
=$ac_cv_build
3113 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3114 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3119 $as_echo "$ac_cv_host" >&6; }
3122 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3125 ac_save_IFS
=$IFS; IFS
='-'
3131 # Remember, the first character of IFS is used to create $*,
3132 # except with old shells:
3135 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3139 $as_echo_n "checking target system type... " >&6; }
3140 if test "${ac_cv_target+set}" = set; then :
3141 $as_echo_n "(cached) " >&6
3143 if test "x$target_alias" = x
; then
3144 ac_cv_target
=$ac_cv_host
3146 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3147 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3152 $as_echo "$ac_cv_target" >&6; }
3153 case $ac_cv_target in
3155 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3157 target
=$ac_cv_target
3158 ac_save_IFS
=$IFS; IFS
='-'
3164 # Remember, the first character of IFS is used to create $*,
3165 # except with old shells:
3168 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3171 # The aliases save the names the user supplied, while $host etc.
3172 # will get canonicalized.
3173 test -n "$target_alias" &&
3174 test "$program_prefix$program_suffix$program_transform_name" = \
3176 program_prefix
=${target_alias}-
3178 # Determine the noncanonical target name, for directory use.
3179 case ${build_alias} in
3180 "") build_noncanonical
=${build} ;;
3181 *) build_noncanonical
=${build_alias} ;;
3184 case ${host_alias} in
3185 "") host_noncanonical
=${build_noncanonical} ;;
3186 *) host_noncanonical
=${host_alias} ;;
3189 case ${target_alias} in
3190 "") target_noncanonical
=${host_noncanonical} ;;
3191 *) target_noncanonical
=${target_alias} ;;
3197 # Determine the target- and build-specific subdirectories
3199 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3200 # have matching libraries, they should use host libraries: Makefile.tpl
3201 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3202 # However, they still use the build modules, because the corresponding
3203 # host modules (e.g. bison) are only built for the host when bootstrap
3205 # - build_subdir is where we find build modules, and never changes.
3206 # - build_libsubdir is where we find build libraries, and can be overridden.
3208 # Prefix 'build-' so this never conflicts with target_subdir.
3209 build_subdir
="build-${build_noncanonical}"
3211 # Check whether --with-build-libsubdir was given.
3212 if test "${with_build_libsubdir+set}" = set; then :
3213 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3215 build_libsubdir
="$build_subdir"
3218 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3219 if ( test $srcdir = .
&& test -d gcc
) \
3220 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3221 host_subdir
="host-${host_noncanonical}"
3226 target_subdir
=${target_noncanonical}
3229 # Set program_transform_name
3230 test "$program_prefix" != NONE
&&
3231 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3232 # Use a double $ so make ignores it.
3233 test "$program_suffix" != NONE
&&
3234 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3235 # Double any \ or $.
3236 # By default was `s,x,x', remove it if useless.
3237 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3238 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3241 # Check for bogus environment variables.
3242 # Test if LIBRARY_PATH contains the notation for the current directory
3243 # since this would lead to problems installing/building glibc.
3244 # LIBRARY_PATH contains the current directory if one of the following
3246 # - one of the terminals (":" and ";") is the first or last sign
3247 # - two terminals occur directly after each other
3248 # - the path contains an element with a dot in it
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3250 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3251 case ${LIBRARY_PATH} in
3252 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3253 library_path_setting
="contains current directory"
3256 library_path_setting
="ok"
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3260 $as_echo "$library_path_setting" >&6; }
3261 if test "$library_path_setting" != "ok"; then
3263 *** LIBRARY_PATH shouldn't contain the current directory when
3264 *** building gcc. Please change the environment variable
3265 *** and run configure again." "$LINENO" 5
3268 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3269 # since this would lead to problems installing/building glibc.
3270 # GCC_EXEC_PREFIX contains the current directory if one of the following
3272 # - one of the terminals (":" and ";") is the first or last sign
3273 # - two terminals occur directly after each other
3274 # - the path contains an element with a dot in it
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3276 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3277 case ${GCC_EXEC_PREFIX} in
3278 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3279 gcc_exec_prefix_setting
="contains current directory"
3282 gcc_exec_prefix_setting
="ok"
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3286 $as_echo "$gcc_exec_prefix_setting" >&6; }
3287 if test "$gcc_exec_prefix_setting" != "ok"; then
3289 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3290 *** building gcc. Please change the environment variable
3291 *** and run configure again." "$LINENO" 5
3298 # Specify the local prefix
3301 # Check whether --with-local-prefix was given.
3302 if test "${with_local_prefix+set}" = set; then :
3303 withval
=$with_local_prefix; case "${withval}" in
3304 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3306 *) local_prefix
=$with_local_prefix ;;
3311 # Default local prefix if it is empty
3312 if test x
$local_prefix = x
; then
3313 local_prefix
=/usr
/local
3316 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3317 # passed in by the toplevel make and thus we'd get different behavior
3318 # depending on where we built the sources.
3319 gcc_gxx_include_dir
=
3320 # Specify the g++ header file directory
3322 # Check whether --with-gxx-include-dir was given.
3323 if test "${with_gxx_include_dir+set}" = set; then :
3324 withval
=$with_gxx_include_dir; case "${withval}" in
3325 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3327 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3332 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3333 if test x
${gcc_gxx_include_dir} = x
; then
3334 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3335 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3337 libstdcxx_incdir
='include/c++/$(version)'
3338 if test x
$host != x
$target; then
3339 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3341 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3345 gcc_gxx_include_dir_add_sysroot
=0
3346 if test "${with_sysroot+set}" = set; then
3347 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3348 if test "${gcc_gxx_without_sysroot}"; then
3349 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3350 gcc_gxx_include_dir_add_sysroot
=1
3355 # Check whether --with-cpp_install_dir was given.
3356 if test "${with_cpp_install_dir+set}" = set; then :
3357 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3358 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3359 elif test x
$withval != xno
; then
3360 cpp_install_dir
=$withval
3365 # We would like to our source tree to be readonly. However when releases or
3366 # pre-releases are generated, the flex/bison generated files as well as the
3367 # various formats of manuals need to be included along with the rest of the
3368 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3372 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3373 # Check whether --enable-generated-files-in-srcdir was given.
3374 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3375 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3377 generated_files_in_srcdir
=no
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3382 $as_echo "$generated_files_in_srcdir" >&6; }
3384 if test "$generated_files_in_srcdir" = "yes"; then
3391 # -------------------
3392 # Find default linker
3393 # -------------------
3397 # Check whether --with-gnu-ld was given.
3398 if test "${with_gnu_ld+set}" = set; then :
3399 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3405 # With pre-defined ld
3407 # Check whether --with-ld was given.
3408 if test "${with_ld+set}" = set; then :
3409 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3412 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3413 if test ! -x "$DEFAULT_LINKER"; then
3414 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3415 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3419 cat >>confdefs.h
<<_ACEOF
3420 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3426 $as_echo_n "checking whether a default linker was specified... " >&6; }
3427 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3428 if test x
"$gnu_ld_flag" = x
"no"; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3430 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3433 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3440 # With demangler in GNU ld
3442 # Check whether --with-demangler-in-ld was given.
3443 if test "${with_demangler_in_ld+set}" = set; then :
3444 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3450 # ----------------------
3451 # Find default assembler
3452 # ----------------------
3456 # Check whether --with-gnu-as was given.
3457 if test "${with_gnu_as+set}" = set; then :
3458 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3465 # Check whether --with-as was given.
3466 if test "${with_as+set}" = set; then :
3467 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3470 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3471 if test ! -x "$DEFAULT_ASSEMBLER"; then
3472 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3473 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3477 cat >>confdefs.h
<<_ACEOF
3478 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3484 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3485 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3486 if test x
"$gas_flag" = x
"no"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3488 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3491 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3502 # If a non-executable a.out is present (e.g. created by GNU as above even if
3503 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3504 # file, even when creating an executable, so an execution test fails.
3505 # Remove possible default executable files to avoid this.
3507 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3508 # Autoconf includes it.
3509 rm -f a.out a.exe b.out
3511 # Find the native compiler
3513 ac_cpp
='$CPP $CPPFLAGS'
3514 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3517 if test -n "$ac_tool_prefix"; then
3518 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3519 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if test "${ac_cv_prog_CC+set}" = set; then :
3523 $as_echo_n "(cached) " >&6
3525 if test -n "$CC"; then
3526 ac_cv_prog_CC
="$CC" # Let the user override the test.
3528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3532 test -z "$as_dir" && as_dir
=.
3533 for ac_exec_ext
in '' $ac_executable_extensions; do
3534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3546 if test -n "$CC"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3548 $as_echo "$CC" >&6; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3556 if test -z "$ac_cv_prog_CC"; then
3558 # Extract the first word of "gcc", so it can be a program name with args.
3559 set dummy gcc
; ac_word
=$2
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3561 $as_echo_n "checking for $ac_word... " >&6; }
3562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3563 $as_echo_n "(cached) " >&6
3565 if test -n "$ac_ct_CC"; then
3566 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3572 test -z "$as_dir" && as_dir
=.
3573 for ac_exec_ext
in '' $ac_executable_extensions; do
3574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3575 ac_cv_prog_ac_ct_CC
="gcc"
3576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3586 if test -n "$ac_ct_CC"; then
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3588 $as_echo "$ac_ct_CC" >&6; }
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3594 if test "x$ac_ct_CC" = x
; then
3597 case $cross_compiling:$ac_tool_warned in
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3601 ac_tool_warned
=yes ;;
3609 if test -z "$CC"; then
3610 if test -n "$ac_tool_prefix"; then
3611 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3612 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if test "${ac_cv_prog_CC+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3618 if test -n "$CC"; then
3619 ac_cv_prog_CC
="$CC" # Let the user override the test.
3621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3625 test -z "$as_dir" && as_dir
=.
3626 for ac_exec_ext
in '' $ac_executable_extensions; do
3627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 if test -n "$CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 $as_echo "$CC" >&6; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3650 if test -z "$CC"; then
3651 # Extract the first word of "cc", so it can be a program name with args.
3652 set dummy cc
; ac_word
=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if test "${ac_cv_prog_CC+set}" = set; then :
3656 $as_echo_n "(cached) " >&6
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC
="$CC" # Let the user override the test.
3662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3666 test -z "$as_dir" && as_dir
=.
3667 for ac_exec_ext
in '' $ac_executable_extensions; do
3668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3670 ac_prog_rejected
=yes
3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3681 if test $ac_prog_rejected = yes; then
3682 # We found a bogon in the path, so make sure we never use it.
3683 set dummy
$ac_cv_prog_CC
3685 if test $# != 0; then
3686 # We chose a different compiler from the bogus one.
3687 # However, it has the same basename, so the bogon will be chosen
3688 # first if we set CC to just the basename; use the full file name.
3690 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3696 if test -n "$CC"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698 $as_echo "$CC" >&6; }
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3706 if test -z "$CC"; then
3707 if test -n "$ac_tool_prefix"; then
3708 for ac_prog
in cl.exe
3710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3711 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 $as_echo_n "checking for $ac_word... " >&6; }
3714 if test "${ac_cv_prog_CC+set}" = set; then :
3715 $as_echo_n "(cached) " >&6
3717 if test -n "$CC"; then
3718 ac_cv_prog_CC
="$CC" # Let the user override the test.
3720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3724 test -z "$as_dir" && as_dir
=.
3725 for ac_exec_ext
in '' $ac_executable_extensions; do
3726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3727 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 if test -n "$CC"; then
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740 $as_echo "$CC" >&6; }
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 $as_echo "no" >&6; }
3747 test -n "$CC" && break
3750 if test -z "$CC"; then
3752 for ac_prog
in cl.exe
3754 # Extract the first word of "$ac_prog", so it can be a program name with args.
3755 set dummy
$ac_prog; ac_word
=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3761 if test -n "$ac_ct_CC"; then
3762 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3768 test -z "$as_dir" && as_dir
=.
3769 for ac_exec_ext
in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_ac_ct_CC
="$ac_prog"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3782 if test -n "$ac_ct_CC"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3784 $as_echo "$ac_ct_CC" >&6; }
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3791 test -n "$ac_ct_CC" && break
3794 if test "x$ac_ct_CC" = x
; then
3797 case $cross_compiling:$ac_tool_warned in
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3801 ac_tool_warned
=yes ;;
3810 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812 as_fn_error
"no acceptable C compiler found in \$PATH
3813 See \`config.log' for more details." "$LINENO" 5; }
3815 # Provide some information about the compiler.
3816 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3819 for ac_option
in --version -v -V -qversion; do
3820 { { ac_try
="$ac_compiler $ac_option >&5"
3822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 $as_echo "$ac_try_echo"; } >&5
3827 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3829 if test -s conftest.err; then
3831 ... rest of stderr output deleted ...
3832 10q' conftest.err >conftest.er1
3833 cat conftest.er1 >&5
3834 rm -f conftest.er1 conftest.err
3836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837 test $ac_status = 0; }
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3851 ac_clean_files_save=$ac_clean_files
3852 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3853 # Try to create an executable without -o first, disregard a.out.
3854 # It will help us diagnose broken compilers, and finding out an intuition
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3857 $as_echo_n "checking for C compiler default output file name... " >&6; }
3858 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3860 # The possible output files:
3861 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3864 for ac_file in $ac_files
3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3868 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3873 if { { ac_try="$ac_link_default"
3875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3876 *) ac_try_echo
=$ac_try;;
3878 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880 (eval "$ac_link_default") 2>&5
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }; then :
3884 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3885 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3886 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3887 # so that the user can short-circuit this test for compilers unknown to
3889 for ac_file
in $ac_files ''
3891 test -f "$ac_file" ||
continue
3893 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3896 # We found the default executable, but exeext='' is most
3900 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3902 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904 # We set ac_cv_exeext here because the later test for it is not
3905 # safe: cross compilers may not add the suffix if given an `-o'
3906 # argument, so we may need to know it at that point already.
3907 # Even if this section looks crufty: it has the advantage of
3914 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3920 $as_echo "$ac_file" >&6; }
3921 if test -z "$ac_file"; then :
3922 $as_echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.
$ac_ext >&5
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 { as_fn_set_status
77
3928 as_fn_error
"C compiler cannot create executables
3929 See \`config.log' for more details." "$LINENO" 5; }; }
3931 ac_exeext
=$ac_cv_exeext
3933 # Check that the compiler produces executables we can run. If not, either
3934 # the compiler is broken, or we cross compile.
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3936 $as_echo_n "checking whether the C compiler works... " >&6; }
3937 # If not cross compiling, check that we can run a simple program.
3938 if test "$cross_compiling" != yes; then
3939 if { ac_try
='./$ac_file'
3940 { { case "(($ac_try" in
3941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 $as_echo "$ac_try_echo"; } >&5
3946 (eval "$ac_try") 2>&5
3948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3949 test $ac_status = 0; }; }; then
3952 if test "$cross_compiling" = maybe; then
3955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error "cannot run C compiled programs.
3958 If you meant to cross compile
, use \
`--host'.
3959 See \`config.log
' for more details." "$LINENO" 5; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3964 $as_echo "yes" >&6; }
3966 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3967 ac_clean_files=$ac_clean_files_save
3968 # Check that the compiler produces executables we can run. If not, either
3969 # the compiler is broken, or we cross compile.
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3971 $as_echo_n "checking whether we are cross compiling... " >&6; }
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3973 $as_echo "$cross_compiling" >&6; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3976 $as_echo_n "checking for suffix of executables... " >&6; }
3977 if { { ac_try="$ac_link"
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 $as_echo "$ac_try_echo"; } >&5
3984 (eval "$ac_link") 2>&5
3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987 test $ac_status = 0; }; then :
3988 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3989 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3990 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3992 for ac_file
in conftest.exe conftest conftest.
*; do
3993 test -f "$ac_file" ||
continue
3995 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3996 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4004 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4005 See \`config.log' for more details." "$LINENO" 5; }
4007 rm -f conftest
$ac_cv_exeext
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4009 $as_echo "$ac_cv_exeext" >&6; }
4011 rm -f conftest.
$ac_ext
4012 EXEEXT
=$ac_cv_exeext
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4015 $as_echo_n "checking for suffix of object files... " >&6; }
4016 if test "${ac_cv_objext+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
4019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4030 rm -f conftest.o conftest.obj
4031 if { { ac_try
="$ac_compile"
4033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037 $as_echo "$ac_try_echo"; } >&5
4038 (eval "$ac_compile") 2>&5
4040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }; then :
4042 for ac_file in conftest.o conftest.obj conftest.*; do
4043 test -f "$ac_file" || continue;
4045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4046 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4051 $as_echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4056 as_fn_error "cannot compute suffix of object files
: cannot compile
4057 See \
`config.log' for more details." "$LINENO" 5; }
4059 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4062 $as_echo "$ac_cv_objext" >&6; }
4063 OBJEXT=$ac_cv_objext
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4066 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4067 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4068 $as_echo_n "(cached) " >&6
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4084 if ac_fn_c_try_compile "$LINENO"; then :
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4094 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4095 if test $ac_compiler_gnu = yes; then
4100 ac_test_CFLAGS=${CFLAGS+set}
4101 ac_save_CFLAGS=$CFLAGS
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4103 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4104 if test "${ac_cv_prog_cc_g+set}" = set; then :
4105 $as_echo_n "(cached) " >&6
4107 ac_save_c_werror_flag=$ac_c_werror_flag
4108 ac_c_werror_flag=yes
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4122 if ac_fn_c_try_compile "$LINENO"; then :
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4137 if ac_fn_c_try_compile "$LINENO"; then :
4140 ac_c_werror_flag=$ac_save_c_werror_flag
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4153 if ac_fn_c_try_compile "$LINENO"; then :
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 ac_c_werror_flag=$ac_save_c_werror_flag
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4164 $as_echo "$ac_cv_prog_cc_g" >&6; }
4165 if test "$ac_test_CFLAGS" = set; then
4166 CFLAGS=$ac_save_CFLAGS
4167 elif test $ac_cv_prog_cc_g = yes; then
4168 if test "$GCC" = yes; then
4174 if test "$GCC" = yes; then
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4181 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4182 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4183 $as_echo_n "(cached) " >&6
4185 ac_cv_prog_cc_c89=no
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4191 #include <sys/types.h>
4192 #include <sys/stat.h>
4193 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4194 struct buf { int x; };
4195 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4196 static char *e (p, i)
4202 static char *f (char * (*g) (char **, int), char **p, ...)
4207 s = g (p, va_arg (v,int));
4212 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4213 function prototypes and stuff, but not '\xHH' hex character constants.
4214 These don't provoke an error unfortunately, instead are silently treated
4215 as 'x'. The following induces an error, until -std is added to get
4216 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4217 array size at least. It's necessary to write '\x00'==0 to get something
4218 that's true only with -std. */
4219 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4221 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4222 inside strings and character constants. */
4224 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4226 int test (int i, double x);
4227 struct s1 {int (*f) (int a);};
4228 struct s2 {int (*f) (double a);};
4229 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4235 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4240 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4241 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4243 CC="$ac_save_CC $ac_arg"
4244 if ac_fn_c_try_compile "$LINENO"; then :
4245 ac_cv_prog_cc_c89=$ac_arg
4247 rm -f core conftest.err conftest.$ac_objext
4248 test "x$ac_cv_prog_cc_c89" != "xno" && break
4250 rm -f conftest.$ac_ext
4255 case "x$ac_cv_prog_cc_c89" in
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4258 $as_echo "none needed" >&6; } ;;
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4261 $as_echo "unsupported" >&6; } ;;
4263 CC="$CC $ac_cv_prog_cc_c89"
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4265 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4267 if test "x$ac_cv_prog_cc_c89" != xno; then :
4272 ac_cpp='$CPP $CPPFLAGS'
4273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278 ac_cpp='$CXXCPP $CPPFLAGS'
4279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4282 if test -z "$CXX"; then
4283 if test -n "$CCC"; then
4286 if test -n "$ac_tool_prefix"; then
4287 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292 $as_echo_n "checking for $ac_word... " >&6; }
4293 if test "${ac_cv_prog_CXX+set}" = set; then :
4294 $as_echo_n "(cached) " >&6
4296 if test -n "$CXX"; then
4297 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 test -z "$as_dir" && as_dir=.
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4317 if test -n "$CXX"; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4319 $as_echo "$CXX" >&6; }
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4326 test -n "$CXX" && break
4329 if test -z "$CXX"; then
4331 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4333 # Extract the first word of "$ac_prog", so it can be a program name with args.
4334 set dummy $ac_prog; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
4340 if test -n "$ac_ct_CXX"; then
4341 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350 ac_cv_prog_ac_ct_CXX="$ac_prog"
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4361 if test -n "$ac_ct_CXX"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4363 $as_echo "$ac_ct_CXX" >&6; }
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4370 test -n "$ac_ct_CXX" && break
4373 if test "x$ac_ct_CXX" = x; then
4376 case $cross_compiling:$ac_tool_warned in
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4380 ac_tool_warned=yes ;;
4388 # Provide some information about the compiler.
4389 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4392 for ac_option in --version -v -V -qversion; do
4393 { { ac_try="$ac_compiler $ac_option >&5"
4395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4396 *) ac_try_echo
=$ac_try;;
4398 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399 $as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4402 if test -s conftest.err
; then
4404 ... rest of stderr output deleted ...
4405 10q' conftest.err
>conftest.er1
4406 cat conftest.er1
>&5
4407 rm -f conftest.er1 conftest.err
4409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4410 test $ac_status = 0; }
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4414 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4415 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
4418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4432 if ac_fn_cxx_try_compile
"$LINENO"; then :
4437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4438 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4442 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4443 if test $ac_compiler_gnu = yes; then
4448 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4449 ac_save_CXXFLAGS
=$CXXFLAGS
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4451 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4452 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4455 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4456 ac_cxx_werror_flag
=yes
4459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4470 if ac_fn_cxx_try_compile
"$LINENO"; then :
4471 ac_cv_prog_cxx_g
=yes
4474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4485 if ac_fn_cxx_try_compile
"$LINENO"; then :
4488 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4501 if ac_fn_cxx_try_compile
"$LINENO"; then :
4502 ac_cv_prog_cxx_g
=yes
4504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4509 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4512 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4513 if test "$ac_test_CXXFLAGS" = set; then
4514 CXXFLAGS
=$ac_save_CXXFLAGS
4515 elif test $ac_cv_prog_cxx_g = yes; then
4516 if test "$GXX" = yes; then
4522 if test "$GXX" = yes; then
4529 ac_cpp
='$CPP $CPPFLAGS'
4530 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4537 if test -n "$ac_tool_prefix"; then
4538 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4539 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4543 $as_echo_n "(cached) " >&6
4545 if test -n "$GNATBIND"; then
4546 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4552 test -z "$as_dir" && as_dir
=.
4553 for ac_exec_ext
in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 GNATBIND
=$ac_cv_prog_GNATBIND
4566 if test -n "$GNATBIND"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4568 $as_echo "$GNATBIND" >&6; }
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4576 if test -z "$ac_cv_prog_GNATBIND"; then
4577 ac_ct_GNATBIND
=$GNATBIND
4578 # Extract the first word of "gnatbind", so it can be a program name with args.
4579 set dummy gnatbind
; ac_word
=$2
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4585 if test -n "$ac_ct_GNATBIND"; then
4586 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4592 test -z "$as_dir" && as_dir
=.
4593 for ac_exec_ext
in '' $ac_executable_extensions; do
4594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4606 if test -n "$ac_ct_GNATBIND"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4608 $as_echo "$ac_ct_GNATBIND" >&6; }
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4614 if test "x$ac_ct_GNATBIND" = x
; then
4617 case $cross_compiling:$ac_tool_warned in
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4621 ac_tool_warned
=yes ;;
4623 GNATBIND
=$ac_ct_GNATBIND
4626 GNATBIND
="$ac_cv_prog_GNATBIND"
4629 if test -n "$ac_tool_prefix"; then
4630 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4631 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4635 $as_echo_n "(cached) " >&6
4637 if test -n "$GNATMAKE"; then
4638 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4644 test -z "$as_dir" && as_dir
=.
4645 for ac_exec_ext
in '' $ac_executable_extensions; do
4646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4647 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 GNATMAKE
=$ac_cv_prog_GNATMAKE
4658 if test -n "$GNATMAKE"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4660 $as_echo "$GNATMAKE" >&6; }
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4668 if test -z "$ac_cv_prog_GNATMAKE"; then
4669 ac_ct_GNATMAKE
=$GNATMAKE
4670 # Extract the first word of "gnatmake", so it can be a program name with args.
4671 set dummy gnatmake
; ac_word
=$2
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4675 $as_echo_n "(cached) " >&6
4677 if test -n "$ac_ct_GNATMAKE"; then
4678 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4684 test -z "$as_dir" && as_dir
=.
4685 for ac_exec_ext
in '' $ac_executable_extensions; do
4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4698 if test -n "$ac_ct_GNATMAKE"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4700 $as_echo "$ac_ct_GNATMAKE" >&6; }
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4706 if test "x$ac_ct_GNATMAKE" = x
; then
4709 case $cross_compiling:$ac_tool_warned in
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4713 ac_tool_warned
=yes ;;
4715 GNATMAKE
=$ac_ct_GNATMAKE
4718 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4722 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4723 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4724 $as_echo_n "(cached) " >&6
4726 cat >conftest.adb
<<EOF
4727 procedure conftest is begin null; end conftest;
4729 acx_cv_cc_gcc_supports_ada
=no
4730 # There is a bug in old released versions of GCC which causes the
4731 # driver to exit successfully when the appropriate language module
4732 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4733 # Therefore we must check for the error message as well as an
4734 # unsuccessful exit.
4735 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4736 # given a .adb file, but produce no object file. So we must check
4737 # if an object file was really produced to guard against this.
4738 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4739 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4740 acx_cv_cc_gcc_supports_ada
=yes
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4745 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4747 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4754 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4755 # optimizations to be activated explicitly by the toplevel.
4757 */prev-gcc
/xgcc
*) ;;
4758 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4759 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4764 # Determine PICFLAG for target gnatlib.
4770 # PIC is the default on some targets or must not be used.
4772 # PIC is the default on this platform
4773 # Common symbols not allowed in MH_DYLIB files
4774 PICFLAG_FOR_TARGET
=-fno-common
4777 # PIC is the default.
4780 # PIC is the default for 64-bit PA HP-UX.
4782 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
4784 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
4786 i
[34567]86-*-interix[3-9]*)
4787 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4788 # Instead, we relocate shared libraries at runtime.
4790 i
[34567]86-*-nto-qnx*)
4791 # QNX uses GNU C++, but need to define -shared option too, otherwise
4793 PICFLAG_FOR_TARGET
='-fPIC -shared'
4795 i
[34567]86-pc-msdosdjgpp*)
4796 # DJGPP does not support shared libraries at all.
4799 # On IA64 HP-UX, PIC is the default but the pic flag
4800 # sets the default TLS model and affects inlining.
4801 PICFLAG_FOR_TARGET
=-fPIC
4804 # PIC is the default.
4806 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
4807 # All AIX code is PIC.
4810 # Some targets support both -fPIC and -fpic, but prefer the latter.
4812 i
[34567]86-*-* | x86_64-
*-*)
4813 PICFLAG_FOR_TARGET
=-fpic
4815 # FIXME: Override -fPIC default in libgcc only?
4816 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
4817 PICFLAG_FOR_TARGET
=-fpic
4819 # FIXME: Simplify to sh*-*-netbsd*?
4820 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
4821 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
4822 PICFLAG_FOR_TARGET
=-fpic
4824 # Default to -fPIC unless specified otherwise.
4826 PICFLAG_FOR_TARGET
=-fPIC
4830 # If the user explicitly uses -fpic/-fPIC, keep that.
4831 case "${CFLAGS_FOR_TARGET}" in
4833 PICFLAG_FOR_TARGET
=-fpic
4836 PICFLAG_FOR_TARGET
=-fPIC
4842 # -------------------------
4843 # Check C compiler features
4844 # -------------------------
4848 ac_cpp
='$CPP $CPPFLAGS'
4849 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4853 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4854 # On Suns, sometimes $CPP names a directory.
4855 if test -n "$CPP" && test -d "$CPP"; then
4858 if test -z "$CPP"; then
4859 if test "${ac_cv_prog_CPP+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4862 # Double quotes because CPP needs to be expanded
4863 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4866 for ac_c_preproc_warn_flag
in '' yes
4868 # Use a header file that comes with gcc, so configuring glibc
4869 # with a fresh cross-compiler works.
4870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4871 # <limits.h> exists even on freestanding compilers.
4872 # On the NeXT, cc -E runs the code through the compiler's parser,
4873 # not just through cpp. "Syntax error" is here to catch this case.
4874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4877 # include <limits.h>
4879 # include <assert.h>
4883 if ac_fn_c_try_cpp
"$LINENO"; then :
4886 # Broken: fails on valid input.
4889 rm -f conftest.err conftest.
$ac_ext
4891 # OK, works on sane cases. Now check whether nonexistent headers
4892 # can be detected and how.
4893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4895 #include <ac_nonexistent.h>
4897 if ac_fn_c_try_cpp
"$LINENO"; then :
4898 # Broken: success on invalid input.
4901 # Passes both tests.
4905 rm -f conftest.err conftest.
$ac_ext
4908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4909 rm -f conftest.err conftest.
$ac_ext
4910 if $ac_preproc_ok; then :
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4923 $as_echo "$CPP" >&6; }
4925 for ac_c_preproc_warn_flag
in '' yes
4927 # Use a header file that comes with gcc, so configuring glibc
4928 # with a fresh cross-compiler works.
4929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 # <limits.h> exists even on freestanding compilers.
4931 # On the NeXT, cc -E runs the code through the compiler's parser,
4932 # not just through cpp. "Syntax error" is here to catch this case.
4933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4936 # include <limits.h>
4938 # include <assert.h>
4942 if ac_fn_c_try_cpp
"$LINENO"; then :
4945 # Broken: fails on valid input.
4948 rm -f conftest.err conftest.
$ac_ext
4950 # OK, works on sane cases. Now check whether nonexistent headers
4951 # can be detected and how.
4952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4954 #include <ac_nonexistent.h>
4956 if ac_fn_c_try_cpp
"$LINENO"; then :
4957 # Broken: success on invalid input.
4960 # Passes both tests.
4964 rm -f conftest.err conftest.
$ac_ext
4967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4968 rm -f conftest.err conftest.
$ac_ext
4969 if $ac_preproc_ok; then :
4972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4974 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4975 See \`config.log' for more details." "$LINENO" 5; }
4979 ac_cpp
='$CPP $CPPFLAGS'
4980 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4981 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4982 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4986 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4987 if test "${ac_cv_path_GREP+set}" = set; then :
4988 $as_echo_n "(cached) " >&6
4990 if test -z "$GREP"; then
4991 ac_path_GREP_found
=false
4992 # Loop through the user's path and test for each of PROGNAME-LIST
4993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4994 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4997 test -z "$as_dir" && as_dir
=.
4998 for ac_prog
in grep ggrep
; do
4999 for ac_exec_ext
in '' $ac_executable_extensions; do
5000 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5001 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5002 # Check for GNU ac_path_GREP and select it if it is found.
5003 # Check for GNU $ac_path_GREP
5004 case `"$ac_path_GREP" --version 2>&1` in
5006 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5009 $as_echo_n 0123456789 >"conftest.in"
5012 cat "conftest.in" "conftest.in" >"conftest.tmp"
5013 mv "conftest.tmp" "conftest.in"
5014 cp "conftest.in" "conftest.nl"
5015 $as_echo 'GREP' >> "conftest.nl"
5016 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5017 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5018 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5019 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5020 # Best one so far, save it but keep looking for a better one
5021 ac_cv_path_GREP
="$ac_path_GREP"
5022 ac_path_GREP_max
=$ac_count
5024 # 10*(2^10) chars as input seems more than enough
5025 test $ac_count -gt 10 && break
5027 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5030 $ac_path_GREP_found && break 3
5035 if test -z "$ac_cv_path_GREP"; then
5036 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5039 ac_cv_path_GREP
=$GREP
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5044 $as_echo "$ac_cv_path_GREP" >&6; }
5045 GREP
="$ac_cv_path_GREP"
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5049 $as_echo_n "checking for egrep... " >&6; }
5050 if test "${ac_cv_path_EGREP+set}" = set; then :
5051 $as_echo_n "(cached) " >&6
5053 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5054 then ac_cv_path_EGREP
="$GREP -E"
5056 if test -z "$EGREP"; then
5057 ac_path_EGREP_found
=false
5058 # Loop through the user's path and test for each of PROGNAME-LIST
5059 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5060 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5063 test -z "$as_dir" && as_dir
=.
5064 for ac_prog
in egrep; do
5065 for ac_exec_ext
in '' $ac_executable_extensions; do
5066 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5067 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5068 # Check for GNU ac_path_EGREP and select it if it is found.
5069 # Check for GNU $ac_path_EGREP
5070 case `"$ac_path_EGREP" --version 2>&1` in
5072 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5075 $as_echo_n 0123456789 >"conftest.in"
5078 cat "conftest.in" "conftest.in" >"conftest.tmp"
5079 mv "conftest.tmp" "conftest.in"
5080 cp "conftest.in" "conftest.nl"
5081 $as_echo 'EGREP' >> "conftest.nl"
5082 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5083 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5084 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5085 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5086 # Best one so far, save it but keep looking for a better one
5087 ac_cv_path_EGREP
="$ac_path_EGREP"
5088 ac_path_EGREP_max
=$ac_count
5090 # 10*(2^10) chars as input seems more than enough
5091 test $ac_count -gt 10 && break
5093 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5096 $ac_path_EGREP_found && break 3
5101 if test -z "$ac_cv_path_EGREP"; then
5102 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5105 ac_cv_path_EGREP
=$EGREP
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5111 $as_echo "$ac_cv_path_EGREP" >&6; }
5112 EGREP
="$ac_cv_path_EGREP"
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5116 $as_echo_n "checking for ANSI C header files... " >&6; }
5117 if test "${ac_cv_header_stdc+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5135 if ac_fn_c_try_compile
"$LINENO"; then :
5136 ac_cv_header_stdc
=yes
5138 ac_cv_header_stdc
=no
5140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5142 if test $ac_cv_header_stdc = yes; then
5143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5150 $EGREP "memchr" >/dev
/null
2>&1; then :
5153 ac_cv_header_stdc
=no
5159 if test $ac_cv_header_stdc = yes; then
5160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5167 $EGREP "free" >/dev
/null
2>&1; then :
5170 ac_cv_header_stdc
=no
5176 if test $ac_cv_header_stdc = yes; then
5177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5178 if test "$cross_compiling" = yes; then :
5181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5185 #if ((' ' & 0x0FF) == 0x020)
5186 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5187 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5189 # define ISLOWER(c) \
5190 (('a' <= (c) && (c) <= 'i') \
5191 || ('j' <= (c) && (c) <= 'r') \
5192 || ('s' <= (c) && (c) <= 'z'))
5193 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5196 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5201 for (i = 0; i < 256; i++)
5202 if (XOR (islower (i), ISLOWER (i))
5203 || toupper (i) != TOUPPER (i))
5208 if ac_fn_c_try_run
"$LINENO"; then :
5211 ac_cv_header_stdc
=no
5213 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5214 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5220 $as_echo "$ac_cv_header_stdc" >&6; }
5221 if test $ac_cv_header_stdc = yes; then
5223 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5227 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5228 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5229 inttypes.h stdint.h unistd.h
5231 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5232 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5234 eval as_val
=\$
$as_ac_Header
5235 if test "x$as_val" = x
""yes; then :
5236 cat >>confdefs.h
<<_ACEOF
5237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5246 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5247 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5254 if test "$MINIX" = yes; then
5256 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5259 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5262 $as_echo "#define _MINIX 1" >>confdefs.h
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5268 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5269 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5275 # define __EXTENSIONS__ 1
5276 $ac_includes_default
5285 if ac_fn_c_try_compile
"$LINENO"; then :
5286 ac_cv_safe_to_define___extensions__
=yes
5288 ac_cv_safe_to_define___extensions__
=no
5290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5293 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5294 test $ac_cv_safe_to_define___extensions__ = yes &&
5295 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5297 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5299 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5301 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5303 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5307 ac_cpp
='$CPP $CPPFLAGS'
5308 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5312 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5313 # On Suns, sometimes $CPP names a directory.
5314 if test -n "$CPP" && test -d "$CPP"; then
5317 if test -z "$CPP"; then
5318 if test "${ac_cv_prog_CPP+set}" = set; then :
5319 $as_echo_n "(cached) " >&6
5321 # Double quotes because CPP needs to be expanded
5322 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5325 for ac_c_preproc_warn_flag
in '' yes
5327 # Use a header file that comes with gcc, so configuring glibc
5328 # with a fresh cross-compiler works.
5329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5330 # <limits.h> exists even on freestanding compilers.
5331 # On the NeXT, cc -E runs the code through the compiler's parser,
5332 # not just through cpp. "Syntax error" is here to catch this case.
5333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5336 # include <limits.h>
5338 # include <assert.h>
5342 if ac_fn_c_try_cpp
"$LINENO"; then :
5345 # Broken: fails on valid input.
5348 rm -f conftest.err conftest.
$ac_ext
5350 # OK, works on sane cases. Now check whether nonexistent headers
5351 # can be detected and how.
5352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 #include <ac_nonexistent.h>
5356 if ac_fn_c_try_cpp
"$LINENO"; then :
5357 # Broken: success on invalid input.
5360 # Passes both tests.
5364 rm -f conftest.err conftest.
$ac_ext
5367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5368 rm -f conftest.err conftest.
$ac_ext
5369 if $ac_preproc_ok; then :
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5382 $as_echo "$CPP" >&6; }
5384 for ac_c_preproc_warn_flag
in '' yes
5386 # Use a header file that comes with gcc, so configuring glibc
5387 # with a fresh cross-compiler works.
5388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5389 # <limits.h> exists even on freestanding compilers.
5390 # On the NeXT, cc -E runs the code through the compiler's parser,
5391 # not just through cpp. "Syntax error" is here to catch this case.
5392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5395 # include <limits.h>
5397 # include <assert.h>
5401 if ac_fn_c_try_cpp
"$LINENO"; then :
5404 # Broken: fails on valid input.
5407 rm -f conftest.err conftest.
$ac_ext
5409 # OK, works on sane cases. Now check whether nonexistent headers
5410 # can be detected and how.
5411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413 #include <ac_nonexistent.h>
5415 if ac_fn_c_try_cpp
"$LINENO"; then :
5416 # Broken: success on invalid input.
5419 # Passes both tests.
5423 rm -f conftest.err conftest.
$ac_ext
5426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5427 rm -f conftest.err conftest.
$ac_ext
5428 if $ac_preproc_ok; then :
5431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5433 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5434 See \`config.log' for more details." "$LINENO" 5; }
5438 ac_cpp
='$CPP $CPPFLAGS'
5439 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5440 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5441 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5444 $as_echo_n "checking for inline... " >&6; }
5445 if test "${ac_cv_c_inline+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
5449 for ac_kw
in inline __inline__ __inline
; do
5450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5454 static $ac_kw foo_t static_foo () {return 0; }
5455 $ac_kw foo_t foo () {return 0; }
5459 if ac_fn_c_try_compile
"$LINENO"; then :
5460 ac_cv_c_inline
=$ac_kw
5462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5463 test "$ac_cv_c_inline" != no
&& break
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5468 $as_echo "$ac_cv_c_inline" >&6; }
5470 case $ac_cv_c_inline in
5473 case $ac_cv_c_inline in
5475 *) ac_val
=$ac_cv_c_inline;;
5477 cat >>confdefs.h
<<_ACEOF
5479 #define inline $ac_val
5486 # Check whether --enable-largefile was given.
5487 if test "${enable_largefile+set}" = set; then :
5488 enableval
=$enable_largefile;
5491 if test "$enable_largefile" != no
; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5494 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5495 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5496 $as_echo_n "(cached) " >&6
5498 ac_cv_sys_largefile_CC
=no
5499 if test "$GCC" != yes; then
5502 # IRIX 6.2 and later do not support large files by default,
5503 # so use the C compiler's -n32 option if that helps.
5504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5506 #include <sys/types.h>
5507 /* Check that off_t can represent 2**63 - 1 correctly.
5508 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5509 since some C++ compilers masquerading as C compilers
5510 incorrectly reject 9223372036854775807. */
5511 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5513 && LARGE_OFF_T % 2147483647 == 1)
5523 if ac_fn_c_try_compile
"$LINENO"; then :
5526 rm -f core conftest.err conftest.
$ac_objext
5528 if ac_fn_c_try_compile
"$LINENO"; then :
5529 ac_cv_sys_largefile_CC
=' -n32'; break
5531 rm -f core conftest.err conftest.
$ac_objext
5535 rm -f conftest.
$ac_ext
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5539 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5540 if test "$ac_cv_sys_largefile_CC" != no
; then
5541 CC
=$CC$ac_cv_sys_largefile_CC
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5545 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5546 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
5550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5552 #include <sys/types.h>
5553 /* Check that off_t can represent 2**63 - 1 correctly.
5554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5555 since some C++ compilers masquerading as C compilers
5556 incorrectly reject 9223372036854775807. */
5557 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5559 && LARGE_OFF_T % 2147483647 == 1)
5569 if ac_fn_c_try_compile
"$LINENO"; then :
5570 ac_cv_sys_file_offset_bits
=no
; break
5572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 #define _FILE_OFFSET_BITS 64
5576 #include <sys/types.h>
5577 /* Check that off_t can represent 2**63 - 1 correctly.
5578 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5579 since some C++ compilers masquerading as C compilers
5580 incorrectly reject 9223372036854775807. */
5581 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5582 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5583 && LARGE_OFF_T % 2147483647 == 1)
5593 if ac_fn_c_try_compile
"$LINENO"; then :
5594 ac_cv_sys_file_offset_bits
=64; break
5596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5597 ac_cv_sys_file_offset_bits
=unknown
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5602 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5603 case $ac_cv_sys_file_offset_bits in #(
5606 cat >>confdefs.h
<<_ACEOF
5607 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5612 if test $ac_cv_sys_file_offset_bits = unknown
; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5614 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5615 if test "${ac_cv_sys_large_files+set}" = set; then :
5616 $as_echo_n "(cached) " >&6
5619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5621 #include <sys/types.h>
5622 /* Check that off_t can represent 2**63 - 1 correctly.
5623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5624 since some C++ compilers masquerading as C compilers
5625 incorrectly reject 9223372036854775807. */
5626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5628 && LARGE_OFF_T % 2147483647 == 1)
5638 if ac_fn_c_try_compile
"$LINENO"; then :
5639 ac_cv_sys_large_files
=no
; break
5641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #define _LARGE_FILES 1
5645 #include <sys/types.h>
5646 /* Check that off_t can represent 2**63 - 1 correctly.
5647 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5648 since some C++ compilers masquerading as C compilers
5649 incorrectly reject 9223372036854775807. */
5650 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5651 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5652 && LARGE_OFF_T % 2147483647 == 1)
5662 if ac_fn_c_try_compile
"$LINENO"; then :
5663 ac_cv_sys_large_files
=1; break
5665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5666 ac_cv_sys_large_files
=unknown
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5671 $as_echo "$ac_cv_sys_large_files" >&6; }
5672 case $ac_cv_sys_large_files in #(
5675 cat >>confdefs.h
<<_ACEOF
5676 #define _LARGE_FILES $ac_cv_sys_large_files
5685 # sizeof(char) is 1 by definition.
5686 # The cast to long int works around a bug in the HP C Compiler
5687 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5688 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5689 # This bug is HP SR number 8606223364.
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5691 $as_echo_n "checking size of void *... " >&6; }
5692 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5693 $as_echo_n "(cached) " >&6
5695 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5698 if test "$ac_cv_type_void_p" = yes; then
5699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5701 { as_fn_set_status
77
5702 as_fn_error
"cannot compute sizeof (void *)
5703 See \`config.log' for more details." "$LINENO" 5; }; }
5705 ac_cv_sizeof_void_p
=0
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5711 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5715 cat >>confdefs.h
<<_ACEOF
5716 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5720 # The cast to long int works around a bug in the HP C Compiler
5721 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5722 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5723 # This bug is HP SR number 8606223364.
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5725 $as_echo_n "checking size of short... " >&6; }
5726 if test "${ac_cv_sizeof_short+set}" = set; then :
5727 $as_echo_n "(cached) " >&6
5729 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5732 if test "$ac_cv_type_short" = yes; then
5733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5735 { as_fn_set_status
77
5736 as_fn_error
"cannot compute sizeof (short)
5737 See \`config.log' for more details." "$LINENO" 5; }; }
5739 ac_cv_sizeof_short
=0
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5745 $as_echo "$ac_cv_sizeof_short" >&6; }
5749 cat >>confdefs.h
<<_ACEOF
5750 #define SIZEOF_SHORT $ac_cv_sizeof_short
5754 # The cast to long int works around a bug in the HP C Compiler
5755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5757 # This bug is HP SR number 8606223364.
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5759 $as_echo_n "checking size of int... " >&6; }
5760 if test "${ac_cv_sizeof_int+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5763 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5766 if test "$ac_cv_type_int" = yes; then
5767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5769 { as_fn_set_status
77
5770 as_fn_error
"cannot compute sizeof (int)
5771 See \`config.log' for more details." "$LINENO" 5; }; }
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5779 $as_echo "$ac_cv_sizeof_int" >&6; }
5783 cat >>confdefs.h
<<_ACEOF
5784 #define SIZEOF_INT $ac_cv_sizeof_int
5788 # The cast to long int works around a bug in the HP C Compiler
5789 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5790 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5791 # This bug is HP SR number 8606223364.
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5793 $as_echo_n "checking size of long... " >&6; }
5794 if test "${ac_cv_sizeof_long+set}" = set; then :
5795 $as_echo_n "(cached) " >&6
5797 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5800 if test "$ac_cv_type_long" = yes; then
5801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5803 { as_fn_set_status
77
5804 as_fn_error
"cannot compute sizeof (long)
5805 See \`config.log' for more details." "$LINENO" 5; }; }
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5813 $as_echo "$ac_cv_sizeof_long" >&6; }
5817 cat >>confdefs.h
<<_ACEOF
5818 #define SIZEOF_LONG $ac_cv_sizeof_long
5822 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5823 if test "x$ac_cv_type_long_long" = x
""yes; then :
5825 cat >>confdefs.h
<<_ACEOF
5826 #define HAVE_LONG_LONG 1
5829 # The cast to long int works around a bug in the HP C Compiler
5830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5832 # This bug is HP SR number 8606223364.
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5834 $as_echo_n "checking size of long long... " >&6; }
5835 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5836 $as_echo_n "(cached) " >&6
5838 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5841 if test "$ac_cv_type_long_long" = yes; then
5842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5844 { as_fn_set_status
77
5845 as_fn_error
"cannot compute sizeof (long long)
5846 See \`config.log' for more details." "$LINENO" 5; }; }
5848 ac_cv_sizeof_long_long
=0
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5854 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5858 cat >>confdefs.h
<<_ACEOF
5859 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5865 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5866 case $ac_cv_c_int8_t in #(
5870 cat >>confdefs.h
<<_ACEOF
5871 #define int8_t $ac_cv_c_int8_t
5876 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5877 case $ac_cv_c_int16_t in #(
5881 cat >>confdefs.h
<<_ACEOF
5882 #define int16_t $ac_cv_c_int16_t
5887 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5888 case $ac_cv_c_int32_t in #(
5892 cat >>confdefs.h
<<_ACEOF
5893 #define int32_t $ac_cv_c_int32_t
5898 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5899 case $ac_cv_c_int64_t in #(
5903 cat >>confdefs.h
<<_ACEOF
5904 #define int64_t $ac_cv_c_int64_t
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5911 $as_echo_n "checking for long long int... " >&6; }
5912 if test "${ac_cv_type_long_long_int+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5918 /* For now, do not test the preprocessor; as of 2007 there are too many
5919 implementations with broken preprocessors. Perhaps this can
5920 be revisited in 2012. In the meantime, code should not expect
5921 #if to work with literals wider than 32 bits. */
5922 /* Test literals. */
5923 long long int ll = 9223372036854775807ll;
5924 long long int nll = -9223372036854775807LL;
5925 unsigned long long int ull = 18446744073709551615ULL;
5926 /* Test constant expressions. */
5927 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5929 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5935 /* Test availability of runtime routines for shift and division. */
5936 long long int llmax = 9223372036854775807ll;
5937 unsigned long long int ullmax = 18446744073709551615ull;
5938 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5939 | (llmax / ll) | (llmax % ll)
5940 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5941 | (ullmax / ull) | (ullmax % ull));
5947 if ac_fn_c_try_link
"$LINENO"; then :
5948 if test "$cross_compiling" = yes; then :
5949 ac_cv_type_long_long_int
=yes
5951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5956 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5957 # define LLONG_MAX (HALF - 1 + HALF)
5962 long long int n = 1;
5966 long long int m = n << i;
5969 if (LLONG_MAX / 2 < m)
5977 if ac_fn_c_try_run
"$LINENO"; then :
5978 ac_cv_type_long_long_int
=yes
5980 ac_cv_type_long_long_int
=no
5982 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5983 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5987 ac_cv_type_long_long_int
=no
5989 rm -f core conftest.err conftest.
$ac_objext \
5990 conftest
$ac_exeext conftest.
$ac_ext
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5993 $as_echo "$ac_cv_type_long_long_int" >&6; }
5994 if test $ac_cv_type_long_long_int = yes; then
5996 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6002 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6003 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6005 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6008 test $ac_cv_type_long_long_int = yes \
6009 && ac_type
='long long int' \
6010 || ac_type
='long int'
6012 cat >>confdefs.h
<<_ACEOF
6013 #define intmax_t $ac_type
6020 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6021 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6023 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6026 for ac_type
in 'int' 'long int' 'long long int'; do
6027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029 $ac_includes_default
6033 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6040 if ac_fn_c_try_compile
"$LINENO"; then :
6042 cat >>confdefs.h
<<_ACEOF
6043 #define intptr_t $ac_type
6048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6049 test -z "$ac_type" && break
6054 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6055 case $ac_cv_c_uint8_t in #(
6059 $as_echo "#define _UINT8_T 1" >>confdefs.h
6062 cat >>confdefs.h
<<_ACEOF
6063 #define uint8_t $ac_cv_c_uint8_t
6068 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6069 case $ac_cv_c_uint16_t in #(
6074 cat >>confdefs.h
<<_ACEOF
6075 #define uint16_t $ac_cv_c_uint16_t
6080 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6081 case $ac_cv_c_uint32_t in #(
6085 $as_echo "#define _UINT32_T 1" >>confdefs.h
6088 cat >>confdefs.h
<<_ACEOF
6089 #define uint32_t $ac_cv_c_uint32_t
6094 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6095 case $ac_cv_c_uint64_t in #(
6099 $as_echo "#define _UINT64_T 1" >>confdefs.h
6102 cat >>confdefs.h
<<_ACEOF
6103 #define uint64_t $ac_cv_c_uint64_t
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6110 $as_echo_n "checking for unsigned long long int... " >&6; }
6111 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6112 $as_echo_n "(cached) " >&6
6114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6117 /* For now, do not test the preprocessor; as of 2007 there are too many
6118 implementations with broken preprocessors. Perhaps this can
6119 be revisited in 2012. In the meantime, code should not expect
6120 #if to work with literals wider than 32 bits. */
6121 /* Test literals. */
6122 long long int ll = 9223372036854775807ll;
6123 long long int nll = -9223372036854775807LL;
6124 unsigned long long int ull = 18446744073709551615ULL;
6125 /* Test constant expressions. */
6126 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6128 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6134 /* Test availability of runtime routines for shift and division. */
6135 long long int llmax = 9223372036854775807ll;
6136 unsigned long long int ullmax = 18446744073709551615ull;
6137 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6138 | (llmax / ll) | (llmax % ll)
6139 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6140 | (ullmax / ull) | (ullmax % ull));
6146 if ac_fn_c_try_link
"$LINENO"; then :
6147 ac_cv_type_unsigned_long_long_int
=yes
6149 ac_cv_type_unsigned_long_long_int
=no
6151 rm -f core conftest.err conftest.
$ac_objext \
6152 conftest
$ac_exeext conftest.
$ac_ext
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6155 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6156 if test $ac_cv_type_unsigned_long_long_int = yes; then
6158 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6164 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6165 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6167 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6170 test $ac_cv_type_unsigned_long_long_int = yes \
6171 && ac_type
='unsigned long long int' \
6172 || ac_type
='unsigned long int'
6174 cat >>confdefs.h
<<_ACEOF
6175 #define uintmax_t $ac_type
6182 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6183 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6185 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6188 for ac_type
in 'unsigned int' 'unsigned long int' \
6189 'unsigned long long int'; do
6190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 $ac_includes_default
6196 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6203 if ac_fn_c_try_compile
"$LINENO"; then :
6205 cat >>confdefs.h
<<_ACEOF
6206 #define uintptr_t $ac_type
6211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6212 test -z "$ac_type" && break
6229 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6230 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6233 # ---------------------
6234 # Warnings and checking
6235 # ---------------------
6237 # Check $CC warning features (if it's GCC).
6238 # We want to use -pedantic, but we don't want warnings about
6241 # * overlong strings
6242 # * C++11 narrowing conversions in { }
6243 # So, we only use -pedantic if we can disable those warnings.
6245 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6246 # Check whether --enable-build-format-warnings was given.
6247 if test "${enable_build_format_warnings+set}" = set; then :
6248 enableval
=$enable_build_format_warnings;
6250 enable_build_format_warnings
=yes
6253 if test $enable_build_format_warnings = no
; then :
6259 save_CFLAGS
="$CFLAGS"
6260 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6261 # Do the check with the no- prefix removed since gcc silently
6262 # accepts any -Wno-* option on purpose
6263 case $real_option in
6264 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6265 *) option
=$real_option ;;
6267 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6270 $as_echo_n "checking whether $CC supports $option... " >&6; }
6271 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6272 $as_echo_n "(cached) " >&6
6275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6286 if ac_fn_c_try_compile
"$LINENO"; then :
6287 eval "$as_acx_Woption=yes"
6289 eval "$as_acx_Woption=no"
6291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6294 eval ac_res
=\$
$as_acx_Woption
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6296 $as_echo "$ac_res" >&6; }
6297 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6298 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6301 CFLAGS
="$save_CFLAGS"
6304 save_CFLAGS
="$CFLAGS"
6305 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6306 # Do the check with the no- prefix removed since gcc silently
6307 # accepts any -Wno-* option on purpose
6308 case $real_option in
6309 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6310 *) option
=$real_option ;;
6312 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6315 $as_echo_n "checking whether $CC supports $option... " >&6; }
6316 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6317 $as_echo_n "(cached) " >&6
6320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6331 if ac_fn_c_try_compile
"$LINENO"; then :
6332 eval "$as_acx_Woption=yes"
6334 eval "$as_acx_Woption=no"
6336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6339 eval ac_res
=\$
$as_acx_Woption
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6341 $as_echo "$ac_res" >&6; }
6342 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6343 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6346 CFLAGS
="$save_CFLAGS"
6349 save_CFLAGS
="$CFLAGS"
6350 for real_option
in -Wmissing-format-attribute; do
6351 # Do the check with the no- prefix removed since gcc silently
6352 # accepts any -Wno-* option on purpose
6353 case $real_option in
6354 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6355 *) option
=$real_option ;;
6357 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6360 $as_echo_n "checking whether $CC supports $option... " >&6; }
6361 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6362 $as_echo_n "(cached) " >&6
6365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6376 if ac_fn_c_try_compile
"$LINENO"; then :
6377 eval "$as_acx_Woption=yes"
6379 eval "$as_acx_Woption=no"
6381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6384 eval ac_res
=\$
$as_acx_Woption
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6386 $as_echo "$ac_res" >&6; }
6387 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6388 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6391 CFLAGS
="$save_CFLAGS"
6393 save_CFLAGS
="$CFLAGS"
6394 for real_option
in -Woverloaded-virtual; do
6395 # Do the check with the no- prefix removed since gcc silently
6396 # accepts any -Wno-* option on purpose
6397 case $real_option in
6398 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6399 *) option
=$real_option ;;
6401 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6404 $as_echo_n "checking whether $CC supports $option... " >&6; }
6405 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6406 $as_echo_n "(cached) " >&6
6409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6420 if ac_fn_c_try_compile
"$LINENO"; then :
6421 eval "$as_acx_Woption=yes"
6423 eval "$as_acx_Woption=no"
6425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6428 eval ac_res
=\$
$as_acx_Woption
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6430 $as_echo "$ac_res" >&6; }
6431 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6432 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6435 CFLAGS
="$save_CFLAGS"
6438 save_CFLAGS
="$CFLAGS"
6439 for real_option
in -Wold-style-definition -Wc++-compat; do
6440 # Do the check with the no- prefix removed since gcc silently
6441 # accepts any -Wno-* option on purpose
6442 case $real_option in
6443 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6444 *) option
=$real_option ;;
6446 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6449 $as_echo_n "checking whether $CC supports $option... " >&6; }
6450 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6451 $as_echo_n "(cached) " >&6
6454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6465 if ac_fn_c_try_compile
"$LINENO"; then :
6466 eval "$as_acx_Woption=yes"
6468 eval "$as_acx_Woption=no"
6470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6473 eval ac_res
=\$
$as_acx_Woption
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6475 $as_echo "$ac_res" >&6; }
6476 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6477 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6480 CFLAGS
="$save_CFLAGS"
6482 # Do the check with the no- prefix removed from the warning options
6483 # since gcc silently accepts any -Wno-* option on purpose
6484 if test "$GCC" = yes; then :
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6486 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6487 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6488 $as_echo_n "(cached) " >&6
6490 save_CFLAGS
="$CFLAGS"
6491 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6493 /* end confdefs.h. */
6503 if ac_fn_c_try_compile
"$LINENO"; then :
6504 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6506 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6509 CFLAGS
="$save_CFLAGS"
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6512 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6513 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6514 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6519 # Check whether --enable-werror-always was given.
6520 if test "${enable_werror_always+set}" = set; then :
6521 enableval
=$enable_werror_always;
6523 enable_werror_always
=no
6526 if test $enable_werror_always = yes; then :
6527 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6532 # The above macros do nothing if the compiler is not GCC. However, the
6533 # Makefile has more goo to add other flags, so these variables are used
6534 # to enable warnings only for GCC.
6537 if test "x$GCC" = "xyes"; then
6538 warn_cflags
='$(GCC_WARN_CFLAGS)'
6539 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6544 # Disable exceptions and RTTI if building with g++
6546 save_CFLAGS
="$CFLAGS"
6547 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6548 # Do the check with the no- prefix removed since gcc silently
6549 # accepts any -Wno-* option on purpose
6550 case $real_option in
6551 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6552 *) option
=$real_option ;;
6554 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6557 $as_echo_n "checking whether $CC supports $option... " >&6; }
6558 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6559 $as_echo_n "(cached) " >&6
6562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h. */
6573 if ac_fn_c_try_compile
"$LINENO"; then :
6574 eval "$as_acx_Woption=yes"
6576 eval "$as_acx_Woption=no"
6578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6581 eval ac_res
=\$
$as_acx_Woption
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6583 $as_echo "$ac_res" >&6; }
6584 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6585 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6588 CFLAGS
="$save_CFLAGS"
6591 # Enable expensive internal checks
6593 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6597 # Check whether --enable-checking was given.
6598 if test "${enable_checking+set}" = set; then :
6599 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6602 # Determine the default checks.
6603 if test x
$is_release = x
; then
6604 ac_checking_flags
=yes
6606 ac_checking_flags
=release
6610 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6611 for check
in release
$ac_checking_flags
6614 # these set all the flags to specific states
6615 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6616 ac_fold_checking
= ; ac_gc_checking
=1 ;
6617 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6618 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6619 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6620 ac_types_checking
=1 ;;
6621 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6622 ac_fold_checking
= ; ac_gc_checking
= ;
6623 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6624 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6625 ac_tree_checking
= ; ac_valgrind_checking
= ;
6626 ac_types_checking
= ;;
6627 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6628 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6629 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6630 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6631 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6632 ac_types_checking
=1 ;;
6633 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6634 ac_fold_checking
= ; ac_gc_checking
= ;
6635 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6636 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6637 ac_tree_checking
= ; ac_valgrind_checking
= ;
6638 ac_types_checking
= ;;
6639 # these enable particular checks
6640 assert
) ac_assert_checking
=1 ;;
6641 df
) ac_df_checking
=1 ;;
6642 fold) ac_fold_checking
=1 ;;
6643 gc
) ac_gc_checking
=1 ;;
6644 gcac
) ac_gc_always_collect
=1 ;;
6645 gimple
) ac_gimple_checking
=1 ;;
6646 misc
) ac_checking
=1 ;;
6647 rtl
) ac_rtl_checking
=1 ;;
6648 rtlflag
) ac_rtlflag_checking
=1 ;;
6649 runtime
) ac_runtime_checking
=1 ;;
6650 tree
) ac_tree_checking
=1 ;;
6651 types
) ac_types_checking
=1 ;;
6652 valgrind
) ac_valgrind_checking
=1 ;;
6653 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6659 if test x
$ac_checking != x
; then
6661 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6663 nocommon_flag
=-fno-common
6666 if test x
$ac_df_checking != x
; then
6668 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6671 if test x
$ac_assert_checking != x
; then
6673 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6676 if test x
$ac_gimple_checking != x
; then
6678 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6682 if test x
$ac_runtime_checking != x
; then
6684 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6687 if test x
$ac_tree_checking != x
; then
6689 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6691 TREEBROWSER
=tree-browser.o
6694 if test x
$ac_types_checking != x
; then
6696 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6701 if test x
$ac_rtl_checking != x
; then
6703 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6706 if test x
$ac_rtlflag_checking != x
; then
6708 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6711 if test x
$ac_gc_checking != x
; then
6713 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6716 if test x
$ac_gc_always_collect != x
; then
6718 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6721 if test x
$ac_fold_checking != x
; then
6723 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6726 valgrind_path_defines
=
6729 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6730 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6738 # It is certainly possible that there's valgrind but no valgrind.h.
6739 # GCC relies on making annotations so we must have both.
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6741 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h. */
6744 #include <valgrind/memcheck.h>
6745 #ifndef VALGRIND_DISCARD
6746 #error VALGRIND_DISCARD not defined
6749 if ac_fn_c_try_cpp
"$LINENO"; then :
6750 gcc_cv_header_valgrind_memcheck_h
=yes
6752 gcc_cv_header_valgrind_memcheck_h
=no
6754 rm -f conftest.err conftest.
$ac_ext
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6756 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6758 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6761 #include <memcheck.h>
6762 #ifndef VALGRIND_DISCARD
6763 #error VALGRIND_DISCARD not defined
6766 if ac_fn_c_try_cpp
"$LINENO"; then :
6767 gcc_cv_header_memcheck_h
=yes
6769 gcc_cv_header_memcheck_h
=no
6771 rm -f conftest.err conftest.
$ac_ext
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6773 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6774 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6776 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6779 if test $gcc_cv_header_memcheck_h = yes; then
6781 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6785 if test x
$ac_valgrind_checking != x
; then
6787 # Prepare PATH_SEPARATOR.
6788 # The user is always right.
6789 if test "${PATH_SEPARATOR+set}" != set; then
6790 echo "#! /bin/sh" >conf$$.sh
6791 echo "exit 0" >>conf$$.sh
6793 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6801 # Find out how to test for executable files. Don't use a zero-byte file,
6802 # as systems may use methods other than mode bits to determine executability.
6803 cat >conf$$.
file <<_ASEOF
6807 chmod +x conf$$.
file
6808 if test -x conf$$.
file >/dev
/null
2>&1; then
6809 ac_executable_p
="test -x"
6811 ac_executable_p
="test -f"
6815 # Extract the first word of "valgrind", so it can be a program name with args.
6816 set dummy valgrind
; ac_word
=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6820 $as_echo_n "(cached) " >&6
6822 case "$valgrind_path" in
6824 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6827 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6828 for ac_dir
in $PATH; do
6830 test -z "$ac_dir" && ac_dir
=.
6831 for ac_exec_ext
in '' $ac_executable_extensions; do
6832 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6833 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6834 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6844 valgrind_path
="$ac_cv_path_valgrind_path"
6845 if test -n "$valgrind_path"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6847 $as_echo "$valgrind_path" >&6; }
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6853 if test "x$valgrind_path" = "x" \
6854 ||
(test $have_valgrind_h = no \
6855 && test $gcc_cv_header_memcheck_h = no \
6856 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6857 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6859 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6860 valgrind_command
="$valgrind_path -q"
6862 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6868 # Enable code coverage collection
6869 # Check whether --enable-coverage was given.
6870 if test "${enable_coverage+set}" = set; then :
6871 enableval
=$enable_coverage; case "${enableval}" in
6873 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6876 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6879 # a.k.a. --disable-coverage
6883 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6892 # Check whether --enable-gather-detailed-mem-stats was given.
6893 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6894 enableval
=$enable_gather_detailed_mem_stats;
6896 enable_gather_detailed_mem_stats
=no
6899 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6901 cat >>confdefs.h
<<_ACEOF
6902 #define GATHER_STATISTICS $gather_stats
6906 # Check whether --enable-valgrind-annotations was given.
6907 if test "${enable_valgrind_annotations+set}" = set; then :
6908 enableval
=$enable_valgrind_annotations;
6910 enable_valgrind_annotations
=no
6913 if test x
$enable_valgrind_annotations != xno \
6914 ||
test x
$ac_valgrind_checking != x
; then
6915 if (test $have_valgrind_h = no \
6916 && test $gcc_cv_header_memcheck_h = no \
6917 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6918 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6921 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
6925 # -------------------------------
6926 # Miscenalleous configure options
6927 # -------------------------------
6931 # Check whether --with-stabs was given.
6932 if test "${with_stabs+set}" = set; then :
6933 withval
=$with_stabs; stabs
="$with_stabs"
6939 # Determine whether or not multilibs are enabled.
6940 # Check whether --enable-multilib was given.
6941 if test "${enable_multilib+set}" = set; then :
6942 enableval
=$enable_multilib;
6949 # Determine whether or not multiarch is enabled.
6950 # Check whether --enable-multiarch was given.
6951 if test "${enable_multiarch+set}" = set; then :
6952 enableval
=$enable_multiarch; case "${enableval}" in
6953 yes|no|auto
) enable_multiarch
=$enableval;;
6954 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6957 enable_multiarch
=auto
6960 if test x
${enable_multiarch} = xauto
; then
6961 if test x
${with_native_system_header_dir} != x
; then
6962 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
6965 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
6966 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6971 $as_echo_n "checking for multiarch configuration... " >&6; }
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6974 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6976 # needed for setting the multiarch name for soft-float/hard-float ABIs
6980 # Enable __cxa_atexit for C++.
6981 # Check whether --enable-__cxa_atexit was given.
6982 if test "${enable___cxa_atexit+set}" = set; then :
6983 enableval
=$enable___cxa_atexit;
6987 # Enable C extension for decimal float if target supports it.
6989 # Check whether --enable-decimal-float was given.
6990 if test "${enable_decimal_float+set}" = set; then :
6991 enableval
=$enable_decimal_float;
6992 case $enable_decimal_float in
6993 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
6994 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6995 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7001 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7003 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7004 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7005 enable_decimal_float
=yes
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7009 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7010 enable_decimal_float
=no
7017 # x86's use BID format instead of DPD
7018 case x
$enable_decimal_float in
7021 i?
86*-*-* | x86_64
*-*-*)
7022 enable_decimal_float
=bid
7025 enable_decimal_float
=dpd
7028 default_decimal_float
=$enable_decimal_float
7031 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7032 # dependency on libdecnumber.
7033 default_decimal_float
=dpd
7040 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7042 cat >>confdefs.h
<<_ACEOF
7043 #define ENABLE_DECIMAL_FLOAT $dfp
7047 # Use default_decimal_float for dependency.
7048 enable_decimal_float
=$default_decimal_float
7050 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7052 cat >>confdefs.h
<<_ACEOF
7053 #define ENABLE_DECIMAL_BID_FORMAT $bid
7057 # Enable C extension for fixed-point arithmetic.
7058 # Check whether --enable-fixed-point was given.
7059 if test "${enable_fixed_point+set}" = set; then :
7060 enableval
=$enable_fixed_point;
7065 enable_fixed_point
=yes
7069 enable_fixed_point
=yes
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7073 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7074 enable_fixed_point
=no
7082 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7084 cat >>confdefs.h
<<_ACEOF
7085 #define ENABLE_FIXED_POINT $fixedpoint
7090 # Pass with no value to take the default
7091 # Pass with a value to specify a thread package
7092 # Check whether --enable-threads was given.
7093 if test "${enable_threads+set}" = set; then :
7094 enableval
=$enable_threads;
7100 # Check whether --enable-tls was given.
7101 if test "${enable_tls+set}" = set; then :
7102 enableval
=$enable_tls;
7105 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7106 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7114 # Check whether --enable-objc-gc was given.
7115 if test "${enable_objc_gc+set}" = set; then :
7116 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7127 # Check whether --with-dwarf2 was given.
7128 if test "${with_dwarf2+set}" = set; then :
7129 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7135 # Check whether --enable-shared was given.
7136 if test "${enable_shared+set}" = set; then :
7137 enableval
=$enable_shared;
7138 case $enable_shared in
7142 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7143 for pkg
in $enableval; do
7144 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7159 # Check whether --with-native-system-header-dir was given.
7160 if test "${with_native_system_header_dir+set}" = set; then :
7161 withval
=$with_native_system_header_dir;
7162 case ${with_native_system_header_dir} in
7163 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7164 /* |
[A-Za-z
]:[\\/]*) ;;
7165 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7167 configured_native_system_header_dir
="${withval}"
7170 configured_native_system_header_dir
=
7175 # Check whether --with-build-sysroot was given.
7176 if test "${with_build_sysroot+set}" = set; then :
7177 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7178 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7181 SYSROOT_CFLAGS_FOR_TARGET
=
7186 if test "x$prefix" = xNONE
; then
7187 test_prefix
=/usr
/local
7191 if test "x$exec_prefix" = xNONE
; then
7192 test_exec_prefix
=$test_prefix
7194 test_exec_prefix
=$exec_prefix
7198 # Check whether --with-sysroot was given.
7199 if test "${with_sysroot+set}" = set; then :
7200 withval
=$with_sysroot;
7201 case ${with_sysroot} in
7202 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7203 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7206 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7207 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7209 case ${TARGET_SYSTEM_ROOT} in
7210 "${test_prefix}"|
"${test_prefix}/"*|\
7211 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7212 '${prefix}'|
'${prefix}/'*|\
7213 '${exec_prefix}'|
'${exec_prefix}/'*)
7214 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7215 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7222 TARGET_SYSTEM_ROOT_DEFINE
=
7223 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7232 # Check whether --with-specs was given.
7233 if test "${with_specs+set}" = set; then :
7234 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7244 # Check whether --with-pkgversion was given.
7245 if test "${with_pkgversion+set}" = set; then :
7246 withval
=$with_pkgversion; case "$withval" in
7247 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7249 *) PKGVERSION
="($withval) " ;;
7260 # Check whether --with-bugurl was given.
7261 if test "${with_bugurl+set}" = set; then :
7262 withval
=$with_bugurl; case "$withval" in
7263 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7266 *) BUGURL
="$withval"
7270 BUGURL
="http://gcc.gnu.org/bugs.html"
7280 REPORT_BUGS_TO
="<$BUGURL>"
7281 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7288 # Sanity check enable_languages in case someone does not run the toplevel
7289 # configure # script.
7290 # Check whether --enable-languages was given.
7291 if test "${enable_languages+set}" = set; then :
7292 enableval
=$enable_languages; case ,${enable_languages}, in
7294 # go safe -- we cannot be much sure without the toplevel
7296 # analysis of which target libs are present and usable
7300 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7305 enable_languages
=c
,${enable_languages}
7314 # Check whether --with-multilib-list was given.
7315 if test "${with_multilib_list+set}" = set; then :
7316 withval
=$with_multilib_list; :
7318 with_multilib_list
=default
7322 # -------------------------
7323 # Checks for other programs
7324 # -------------------------
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7327 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7329 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7330 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7331 $as_echo_n "(cached) " >&6
7333 cat >conftest.
make <<\_ACEOF
7336 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7338 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7339 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7341 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7343 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7347 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7349 $as_echo "yes" >&6; }
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 $as_echo "no" >&6; }
7354 SET_MAKE
="MAKE=${MAKE-make}"
7358 # Find some useful tools
7359 for ac_prog
in gawk mawk nawk
awk
7361 # Extract the first word of "$ac_prog", so it can be a program name with args.
7362 set dummy
$ac_prog; ac_word
=$2
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if test "${ac_cv_prog_AWK+set}" = set; then :
7366 $as_echo_n "(cached) " >&6
7368 if test -n "$AWK"; then
7369 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7375 test -z "$as_dir" && as_dir
=.
7376 for ac_exec_ext
in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378 ac_cv_prog_AWK
="$ac_prog"
7379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 if test -n "$AWK"; then
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7391 $as_echo "$AWK" >&6; }
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7398 test -n "$AWK" && break
7401 # We need awk to create options.c and options.h.
7402 # Bail out if it's missing.
7404 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7408 $as_echo_n "checking whether ln -s works... " >&6; }
7409 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7410 $as_echo_n "(cached) " >&6
7412 rm -f conftestdata_t
7413 echo >conftestdata_f
7414 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7416 gcc_cv_prog_LN_S
="ln -s"
7418 if ln conftestdata_f conftestdata_t
2>/dev
/null
7422 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7424 gcc_cv_prog_LN_S
="cp -p"
7430 rm -f conftestdata_f conftestdata_t
7433 LN_S
="$gcc_cv_prog_LN_S"
7434 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7436 $as_echo "yes" >&6; }
7438 if test "$gcc_cv_prog_LN_S" = "ln"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7440 $as_echo "no, using ln" >&6; }
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7443 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7448 $as_echo_n "checking whether ln works... " >&6; }
7449 if test "${acx_cv_prog_LN+set}" = set; then :
7450 $as_echo_n "(cached) " >&6
7452 rm -f conftestdata_t
7453 echo >conftestdata_f
7454 if ln conftestdata_f conftestdata_t
2>/dev
/null
7460 rm -f conftestdata_f conftestdata_t
7463 if test $acx_cv_prog_LN = no
; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7466 $as_echo "no, using $LN" >&6; }
7468 LN
="$acx_cv_prog_LN"
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7470 $as_echo "yes" >&6; }
7473 if test -n "$ac_tool_prefix"; then
7474 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7475 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7479 $as_echo_n "(cached) " >&6
7481 if test -n "$RANLIB"; then
7482 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7488 test -z "$as_dir" && as_dir
=.
7489 for ac_exec_ext
in '' $ac_executable_extensions; do
7490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7491 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 RANLIB
=$ac_cv_prog_RANLIB
7502 if test -n "$RANLIB"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7504 $as_echo "$RANLIB" >&6; }
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7512 if test -z "$ac_cv_prog_RANLIB"; then
7513 ac_ct_RANLIB
=$RANLIB
7514 # Extract the first word of "ranlib", so it can be a program name with args.
7515 set dummy ranlib
; ac_word
=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7519 $as_echo_n "(cached) " >&6
7521 if test -n "$ac_ct_RANLIB"; then
7522 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7528 test -z "$as_dir" && as_dir
=.
7529 for ac_exec_ext
in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7531 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7542 if test -n "$ac_ct_RANLIB"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7544 $as_echo "$ac_ct_RANLIB" >&6; }
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7550 if test "x$ac_ct_RANLIB" = x
; then
7553 case $cross_compiling:$ac_tool_warned in
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7557 ac_tool_warned
=yes ;;
7559 RANLIB
=$ac_ct_RANLIB
7562 RANLIB
="$ac_cv_prog_RANLIB"
7568 # Find a good install program. We prefer a C program (faster),
7569 # so one script is as good as another. But avoid the broken or
7570 # incompatible versions:
7571 # SysV /etc/install, /usr/sbin/install
7572 # SunOS /usr/etc/install
7573 # IRIX /sbin/install
7575 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7576 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7577 # ./install, which can be erroneously created by make from ./install.sh.
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7579 $as_echo_n "checking for a BSD compatible install... " >&6; }
7580 if test -z "$INSTALL"; then
7581 if test "${ac_cv_path_install+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7584 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7585 for ac_dir
in $PATH; do
7586 # Account for people who put trailing slashes in PATH elements.
7588 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7590 # OSF1 and SCO ODT 3.0 have their own names for install.
7591 for ac_prog
in ginstall scoinst
install; do
7592 if test -f $ac_dir/$ac_prog; then
7593 if test $ac_prog = install &&
7594 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7595 # AIX install. It has an incompatible calling convention.
7596 # OSF/1 installbsd also uses dspmsg, but is usable.
7599 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7610 if test "${ac_cv_path_install+set}" = set; then
7611 INSTALL
="$ac_cv_path_install"
7613 # As a last resort, use the slow shell script. We don't cache a
7614 # path for INSTALL within a source directory, because that will
7615 # break other packages using the cache if that directory is
7616 # removed, or if the path is relative.
7617 INSTALL
="$ac_install_sh"
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7621 $as_echo "$INSTALL" >&6; }
7623 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7624 # It thinks the first close brace ends the variable substitution.
7625 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7627 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7630 # See if cmp has --ignore-initial.
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7632 $as_echo_n "checking for cmp's capabilities... " >&6; }
7633 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7634 $as_echo_n "(cached) " >&6
7638 gcc_cv_prog_cmp_skip
=slowcompare
7639 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7640 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7643 gcc_cv_prog_cmp_skip
=gnucompare
7646 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7647 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7648 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7651 gcc_cv_prog_cmp_skip
=fastcompare
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7659 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7660 make_compare_target
=$gcc_cv_prog_cmp_skip
7664 # See if we have the mktemp command.
7665 # Extract the first word of "mktemp", so it can be a program name with args.
7666 set dummy mktemp
; ac_word
=$2
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668 $as_echo_n "checking for $ac_word... " >&6; }
7669 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7670 $as_echo_n "(cached) " >&6
7672 if test -n "$have_mktemp_command"; then
7673 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7679 test -z "$as_dir" && as_dir
=.
7680 for ac_exec_ext
in '' $ac_executable_extensions; do
7681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7682 ac_cv_prog_have_mktemp_command
="yes"
7683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7693 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7694 if test -n "$have_mktemp_command"; then
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7696 $as_echo "$have_mktemp_command" >&6; }
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699 $as_echo "no" >&6; }
7704 # See if makeinfo has been installed and is modern enough
7705 # that we can use it.
7707 # Extract the first word of "makeinfo", so it can be a program name with args.
7708 set dummy makeinfo
; ac_word
=$2
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710 $as_echo_n "checking for $ac_word... " >&6; }
7711 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7712 $as_echo_n "(cached) " >&6
7714 if test -n "$MAKEINFO"; then
7715 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7721 test -z "$as_dir" && as_dir
=.
7722 for ac_exec_ext
in '' $ac_executable_extensions; do
7723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7724 ac_cv_prog_MAKEINFO
="makeinfo"
7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7734 MAKEINFO
=$ac_cv_prog_MAKEINFO
7735 if test -n "$MAKEINFO"; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7737 $as_echo "$MAKEINFO" >&6; }
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 $as_echo "no" >&6; }
7744 if test -n "$MAKEINFO"; then
7745 # Found it, now check the version.
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7747 $as_echo_n "checking for modern makeinfo... " >&6; }
7748 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7749 $as_echo_n "(cached) " >&6
7751 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7752 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7754 case $ac_prog_version in
7755 '') gcc_cv_prog_makeinfo_modern
=no
;;
7756 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7757 *) gcc_cv_prog_makeinfo_modern
=no
;;
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7762 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7764 gcc_cv_prog_makeinfo_modern
=no
7766 if test $gcc_cv_prog_makeinfo_modern = no
; then
7767 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7770 if test $gcc_cv_prog_makeinfo_modern = no
; then
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7772 *** Makeinfo is missing or too old.
7773 *** Info documentation will not be built." >&5
7774 $as_echo "$as_me: WARNING:
7775 *** Makeinfo is missing or too old.
7776 *** Info documentation will not be built." >&2;}
7783 # Is pod2man recent enough to regenerate manpages?
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7785 $as_echo_n "checking for recent Pod::Man... " >&6; }
7786 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7788 $as_echo "yes" >&6; }
7789 GENERATED_MANPAGES
=generated-manpages
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7797 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7802 # Extract the first word of "$ac_prog", so it can be a program name with args.
7803 set dummy
$ac_prog; ac_word
=$2
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 $as_echo_n "checking for $ac_word... " >&6; }
7806 if test "${ac_cv_prog_FLEX+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
7809 if test -n "$FLEX"; then
7810 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7816 test -z "$as_dir" && as_dir
=.
7817 for ac_exec_ext
in '' $ac_executable_extensions; do
7818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819 ac_cv_prog_FLEX
="$ac_prog"
7820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 FLEX
=$ac_cv_prog_FLEX
7830 if test -n "$FLEX"; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7832 $as_echo "$FLEX" >&6; }
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 $as_echo "no" >&6; }
7839 test -n "$FLEX" && break
7841 test -n "$FLEX" || FLEX
="$MISSING flex"
7845 for ac_prog
in bison
7847 # Extract the first word of "$ac_prog", so it can be a program name with args.
7848 set dummy
$ac_prog; ac_word
=$2
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850 $as_echo_n "checking for $ac_word... " >&6; }
7851 if test "${ac_cv_prog_BISON+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
7854 if test -n "$BISON"; then
7855 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7861 test -z "$as_dir" && as_dir
=.
7862 for ac_exec_ext
in '' $ac_executable_extensions; do
7863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7864 ac_cv_prog_BISON
="$ac_prog"
7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7874 BISON
=$ac_cv_prog_BISON
7875 if test -n "$BISON"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7877 $as_echo "$BISON" >&6; }
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7884 test -n "$BISON" && break
7886 test -n "$BISON" || BISON
="$MISSING bison"
7889 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7890 # check for build == host before using them.
7893 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7894 && test -d ..
/binutils
; then
7895 NM
='${objdir}/../binutils/nm-new'
7897 # Extract the first word of "nm", so it can be a program name with args.
7898 set dummy nm
; ac_word
=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if test "${ac_cv_prog_NM+set}" = set; then :
7902 $as_echo_n "(cached) " >&6
7904 if test -n "$NM"; then
7905 ac_cv_prog_NM
="$NM" # Let the user override the test.
7907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7911 test -z "$as_dir" && as_dir
=.
7912 for ac_exec_ext
in '' $ac_executable_extensions; do
7913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7922 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7926 if test -n "$NM"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7928 $as_echo "$NM" >&6; }
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 $as_echo "no" >&6; }
7938 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7939 && test -d ..
/binutils
; then
7940 AR
='${objdir}/../binutils/ar'
7942 # Extract the first word of "ar", so it can be a program name with args.
7943 set dummy
ar; ac_word
=$2
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if test "${ac_cv_prog_AR+set}" = set; then :
7947 $as_echo_n "(cached) " >&6
7949 if test -n "$AR"; then
7950 ac_cv_prog_AR
="$AR" # Let the user override the test.
7952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7956 test -z "$as_dir" && as_dir
=.
7957 for ac_exec_ext
in '' $ac_executable_extensions; do
7958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7971 if test -n "$AR"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7973 $as_echo "$AR" >&6; }
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7983 # --------------------
7984 # Checks for C headers
7985 # --------------------
7987 # Need to reject headers which give warnings, so that the -Werror bootstrap
7988 # works later. *sigh* This needs to come before all header checks.
7990 ac_c_preproc_warn_flag
=yes
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7993 $as_echo_n "checking for ANSI C header files... " >&6; }
7994 if test "${ac_cv_header_stdc+set}" = set; then :
7995 $as_echo_n "(cached) " >&6
7997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h. */
8012 if ac_fn_c_try_compile
"$LINENO"; then :
8013 ac_cv_header_stdc
=yes
8015 ac_cv_header_stdc
=no
8017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8019 if test $ac_cv_header_stdc = yes; then
8020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */
8026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8027 $EGREP "memchr" >/dev
/null
2>&1; then :
8030 ac_cv_header_stdc
=no
8036 if test $ac_cv_header_stdc = yes; then
8037 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8044 $EGREP "free" >/dev
/null
2>&1; then :
8047 ac_cv_header_stdc
=no
8053 if test $ac_cv_header_stdc = yes; then
8054 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8055 if test "$cross_compiling" = yes; then :
8058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8062 #if ((' ' & 0x0FF) == 0x020)
8063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8066 # define ISLOWER(c) \
8067 (('a' <= (c) && (c) <= 'i') \
8068 || ('j' <= (c) && (c) <= 'r') \
8069 || ('s' <= (c) && (c) <= 'z'))
8070 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8078 for (i = 0; i < 256; i++)
8079 if (XOR (islower (i), ISLOWER (i))
8080 || toupper (i) != TOUPPER (i))
8085 if ac_fn_c_try_run
"$LINENO"; then :
8088 ac_cv_header_stdc
=no
8090 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8091 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8097 $as_echo "$ac_cv_header_stdc" >&6; }
8098 if test $ac_cv_header_stdc = yes; then
8100 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8105 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8106 if test "${ac_cv_header_time+set}" = set; then :
8107 $as_echo_n "(cached) " >&6
8109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h. */
8111 #include <sys/types.h>
8112 #include <sys/time.h>
8118 if ((struct tm *) 0)
8124 if ac_fn_c_try_compile
"$LINENO"; then :
8125 ac_cv_header_time
=yes
8127 ac_cv_header_time
=no
8129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8132 $as_echo "$ac_cv_header_time" >&6; }
8133 if test $ac_cv_header_time = yes; then
8135 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8140 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8141 if test "${gcc_cv_header_string+set}" = set; then :
8142 $as_echo_n "(cached) " >&6
8144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8147 #include <strings.h>
8156 if ac_fn_c_try_compile
"$LINENO"; then :
8157 gcc_cv_header_string
=yes
8159 gcc_cv_header_string
=no
8161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8164 $as_echo "$gcc_cv_header_string" >&6; }
8165 if test $gcc_cv_header_string = yes; then
8167 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8172 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8173 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8174 $as_echo_n "(cached) " >&6
8176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8177 /* end confdefs.h. */
8178 #include <sys/types.h>
8179 #include <sys/wait.h>
8181 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8184 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8192 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8197 if ac_fn_c_try_compile
"$LINENO"; then :
8198 ac_cv_header_sys_wait_h
=yes
8200 ac_cv_header_sys_wait_h
=no
8202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8205 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8206 if test $ac_cv_header_sys_wait_h = yes; then
8208 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8213 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8214 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
8217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8219 #include <sys/types.h>
8220 #include <termios.h>
8226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8227 $EGREP "yes" >/dev
/null
2>&1; then :
8228 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8230 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8236 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8238 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8240 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8241 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8242 $as_echo_n "(cached) " >&6
8244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8245 /* end confdefs.h. */
8246 #include <sys/types.h>
8247 #include <sys/ioctl.h>
8253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8254 $EGREP "yes" >/dev
/null
2>&1; then :
8255 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8257 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8263 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8265 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8267 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8272 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8273 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8274 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8275 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8277 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8278 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8279 eval as_val
=\$
$as_ac_Header
8280 if test "x$as_val" = x
""yes; then :
8281 cat >>confdefs.h
<<_ACEOF
8282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8289 # Check for thread headers.
8290 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8291 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8297 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8298 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8305 # These tests can't be done till we know if we have limits.h.
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8307 $as_echo_n "checking for CHAR_BIT... " >&6; }
8308 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8309 $as_echo_n "(cached) " >&6
8311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8313 #ifdef HAVE_LIMITS_H
8320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8321 $EGREP "found" >/dev
/null
2>&1; then :
8322 gcc_cv_decl_char_bit
=yes
8324 gcc_cv_decl_char_bit
=no
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8331 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8332 if test $gcc_cv_decl_char_bit = no
; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8334 $as_echo_n "checking number of bits in a byte... " >&6; }
8335 if test "${gcc_cv_c_nbby+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8340 while test $i -lt 65; do
8341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8348 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8349 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8355 if ac_fn_c_try_compile
"$LINENO"; then :
8356 gcc_cv_c_nbby
=$i; break
8358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8361 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8365 $as_echo "$gcc_cv_c_nbby" >&6; }
8366 if test $gcc_cv_c_nbby = failed
; then
8367 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8370 cat >>confdefs.h
<<_ACEOF
8371 #define CHAR_BIT $gcc_cv_c_nbby
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8377 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8378 if test "${ac_cv_c_bigendian+set}" = set; then :
8379 $as_echo_n "(cached) " >&6
8381 ac_cv_c_bigendian
=unknown
8382 # See if we're dealing with a universal compiler.
8383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h. */
8385 #ifndef __APPLE_CC__
8386 not a universal capable compiler
8391 if ac_fn_c_try_compile
"$LINENO"; then :
8393 # Check for potential -arch flags. It is not universal unless
8394 # there are at least two -arch flags with different values.
8397 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8398 if test -n "$ac_prev"; then
8400 i?
86 | x86_64 | ppc | ppc64
)
8401 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8404 ac_cv_c_bigendian
=universal
8410 elif test "x$ac_word" = "x-arch"; then
8415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8416 if test $ac_cv_c_bigendian = unknown
; then
8417 # See if sys/param.h defines the BYTE_ORDER macro.
8418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8419 /* end confdefs.h. */
8420 #include <sys/types.h>
8421 #include <sys/param.h>
8426 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8427 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8436 if ac_fn_c_try_compile
"$LINENO"; then :
8437 # It does; now see whether it defined to BIG_ENDIAN or not.
8438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8440 #include <sys/types.h>
8441 #include <sys/param.h>
8446 #if BYTE_ORDER != BIG_ENDIAN
8454 if ac_fn_c_try_compile
"$LINENO"; then :
8455 ac_cv_c_bigendian
=yes
8457 ac_cv_c_bigendian
=no
8459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8463 if test $ac_cv_c_bigendian = unknown
; then
8464 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8472 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8480 if ac_fn_c_try_compile
"$LINENO"; then :
8481 # It does; now see whether it defined to _BIG_ENDIAN or not.
8482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8497 if ac_fn_c_try_compile
"$LINENO"; then :
8498 ac_cv_c_bigendian
=yes
8500 ac_cv_c_bigendian
=no
8502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8506 if test $ac_cv_c_bigendian = unknown
; then
8507 # Compile a test program.
8508 if test "$cross_compiling" = yes; then :
8509 # Try to guess by grepping values from an object file.
8510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8512 short int ascii_mm[] =
8513 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8514 short int ascii_ii[] =
8515 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8516 int use_ascii (int i) {
8517 return ascii_mm[i] + ascii_ii[i];
8519 short int ebcdic_ii[] =
8520 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8521 short int ebcdic_mm[] =
8522 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8523 int use_ebcdic (int i) {
8524 return ebcdic_mm[i] + ebcdic_ii[i];
8531 return use_ascii (foo) == use_ebcdic (foo);
8536 if ac_fn_c_try_compile
"$LINENO"; then :
8537 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8538 ac_cv_c_bigendian
=yes
8540 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8541 if test "$ac_cv_c_bigendian" = unknown
; then
8542 ac_cv_c_bigendian
=no
8544 # finding both strings is unlikely to happen, but who knows?
8545 ac_cv_c_bigendian
=unknown
8549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h. */
8553 $ac_includes_default
8558 /* Are we little or big endian? From Harbison&Steele. */
8562 char c[sizeof (long int)];
8565 return u.c[sizeof (long int) - 1] == 1;
8571 if ac_fn_c_try_run
"$LINENO"; then :
8572 ac_cv_c_bigendian
=no
8574 ac_cv_c_bigendian
=yes
8576 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8577 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8583 $as_echo "$ac_cv_c_bigendian" >&6; }
8584 case $ac_cv_c_bigendian in #(
8586 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8592 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8596 as_fn_error
"unknown endianness
8597 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8601 # ----------------------
8602 # Checks for C++ headers
8603 # ----------------------
8606 ac_cpp
='$CXXCPP $CPPFLAGS'
8607 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8608 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8609 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8611 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8612 if test -z "$CXXCPP"; then
8613 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8614 $as_echo_n "(cached) " >&6
8616 # Double quotes because CXXCPP needs to be expanded
8617 for CXXCPP
in "$CXX -E" "/lib/cpp"
8620 for ac_cxx_preproc_warn_flag
in '' yes
8622 # Use a header file that comes with gcc, so configuring glibc
8623 # with a fresh cross-compiler works.
8624 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8625 # <limits.h> exists even on freestanding compilers.
8626 # On the NeXT, cc -E runs the code through the compiler's parser,
8627 # not just through cpp. "Syntax error" is here to catch this case.
8628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8629 /* end confdefs.h. */
8631 # include <limits.h>
8633 # include <assert.h>
8637 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8640 # Broken: fails on valid input.
8643 rm -f conftest.err conftest.
$ac_ext
8645 # OK, works on sane cases. Now check whether nonexistent headers
8646 # can be detected and how.
8647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8648 /* end confdefs.h. */
8649 #include <ac_nonexistent.h>
8651 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8652 # Broken: success on invalid input.
8655 # Passes both tests.
8659 rm -f conftest.err conftest.
$ac_ext
8662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8663 rm -f conftest.err conftest.
$ac_ext
8664 if $ac_preproc_ok; then :
8669 ac_cv_prog_CXXCPP
=$CXXCPP
8672 CXXCPP
=$ac_cv_prog_CXXCPP
8674 ac_cv_prog_CXXCPP
=$CXXCPP
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8677 $as_echo "$CXXCPP" >&6; }
8679 for ac_cxx_preproc_warn_flag
in '' yes
8681 # Use a header file that comes with gcc, so configuring glibc
8682 # with a fresh cross-compiler works.
8683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8684 # <limits.h> exists even on freestanding compilers.
8685 # On the NeXT, cc -E runs the code through the compiler's parser,
8686 # not just through cpp. "Syntax error" is here to catch this case.
8687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8690 # include <limits.h>
8692 # include <assert.h>
8696 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8699 # Broken: fails on valid input.
8702 rm -f conftest.err conftest.
$ac_ext
8704 # OK, works on sane cases. Now check whether nonexistent headers
8705 # can be detected and how.
8706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708 #include <ac_nonexistent.h>
8710 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8711 # Broken: success on invalid input.
8714 # Passes both tests.
8718 rm -f conftest.err conftest.
$ac_ext
8721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8722 rm -f conftest.err conftest.
$ac_ext
8723 if $ac_preproc_ok; then :
8726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8729 See \`config.log' for more details." >&5
8730 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8731 See \`config.log' for more details." >&2;}; }
8735 ac_cpp
='$CPP $CPPFLAGS'
8736 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8737 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8738 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8742 ac_cpp
='$CXXCPP $CPPFLAGS'
8743 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8744 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8745 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8750 for ac_header
in unordered_map
8752 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8753 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8754 cat >>confdefs.h
<<_ACEOF
8755 #define HAVE_UNORDERED_MAP 1
8761 for ac_header
in tr1/unordered_map
8763 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8764 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8765 cat >>confdefs.h
<<_ACEOF
8766 #define HAVE_TR1_UNORDERED_MAP 1
8772 for ac_header
in ext
/hash_map
8774 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8775 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8776 cat >>confdefs.h
<<_ACEOF
8777 #define HAVE_EXT_HASH_MAP 1
8785 ac_cpp
='$CPP $CPPFLAGS'
8786 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8787 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8788 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8792 # Dependency checking.
8796 ac_cpp
='$CXXCPP $CPPFLAGS'
8797 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8798 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8799 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8801 rm -rf .tst
2>/dev
/null
8802 mkdir .tst
2>/dev
/null
8803 if test -d .tst
; then
8808 rmdir .tst
2>/dev
/null
8810 DEPDIR
="${am__leading_dot}deps"
8812 ac_config_commands
="$ac_config_commands depdir"
8815 ac_config_commands
="$ac_config_commands gccdepdir"
8818 depcc
="$CXX" am_compiler_list
=
8820 am_depcomp
=$ac_aux_dir/depcomp
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8822 $as_echo_n "checking dependency style of $depcc... " >&6; }
8823 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8824 $as_echo_n "(cached) " >&6
8826 if test -f "$am_depcomp"; then
8827 # We make a subdir and do the tests there. Otherwise we can end up
8828 # making bogus files that we don't know about and never remove. For
8829 # instance it was reported that on HP-UX the gcc test will end up
8830 # making a dummy file named `D' -- because `-MD' means `put the output
8833 # Copy depcomp to subdir because otherwise we won't find it if we're
8834 # using a relative directory.
8835 cp "$am_depcomp" conftest.dir
8837 # We will build objects and dependencies in a subdirectory because
8838 # it helps to detect inapplicable dependency modes. For instance
8839 # both Tru64's cc and ICC support -MD to output dependencies as a
8840 # side effect of compilation, but ICC will put the dependencies in
8841 # the current directory while Tru64 will put them in the object
8845 am_cv_CXX_dependencies_compiler_type
=none
8846 if test "$am_compiler_list" = ""; then
8847 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8849 for depmode
in $am_compiler_list; do
8850 if test $depmode = none
; then break; fi
8852 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8853 # Setup a source with many dependencies, because some compilers
8854 # like to wrap large dependency lists on column 80 (with \), and
8855 # we should not choose a depcomp mode which is confused by this.
8857 # We need to recreate these files for each test, as the compiler may
8858 # overwrite some of them when testing with obscure command lines.
8859 # This happens at least with the AIX C compiler.
8861 for i
in 1 2 3 4 5 6; do
8862 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
8863 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8864 # Solaris 8's {/usr,}/bin/sh.
8865 touch sub
/conftst
$i.h
8867 echo "include sub/conftest.Po" > confmf
8869 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8870 # mode. It turns out that the SunPro C++ compiler does not properly
8871 # handle `-M -o', and we need to detect this.
8872 depcmd
="depmode=$depmode \
8873 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8874 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8875 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8876 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
8877 if env
$depcmd > conftest.err
2>&1 &&
8878 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
8879 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
8880 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
8881 # icc doesn't choke on unknown options, it will just issue warnings
8882 # or remarks (even with -Werror). So we grep stderr for any message
8883 # that says an option was ignored or not supported.
8884 # When given -MP, icc 7.0 and 7.1 complain thusly:
8885 # icc: Command line warning: ignoring option '-M'; no argument required
8886 # The diagnosis changed in icc 8.0:
8887 # icc: Command line remark: option '-MP' not supported
8888 if (grep 'ignoring option' conftest.err ||
8889 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
8890 am_cv_CXX_dependencies_compiler_type
=$depmode
8891 $as_echo "$as_me:$LINENO: success" >&5
8895 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8896 sed -e 's/^/| /' < conftest.err
>&5
8902 am_cv_CXX_dependencies_compiler_type
=none
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8907 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8908 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
8909 then as_fn_error
"no usable dependency style found" "$LINENO" 5
8910 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
8915 ac_cpp
='$CPP $CPPFLAGS'
8916 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8917 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8918 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8926 # These libraries may be used by collect2.
8927 # We may need a special search path to get them linked.
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8929 $as_echo_n "checking for collect2 libraries... " >&6; }
8930 if test "${gcc_cv_collect2_libs+set}" = set; then :
8931 $as_echo_n "(cached) " >&6
8934 for libs
in '' -lld -lmld \
8935 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8936 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h. */
8942 /* Override any GCC internal prototype to avoid an error.
8943 Use char because int might match the return type of a GCC
8944 builtin and then its argument prototype would still apply. */
8957 if ac_fn_c_try_link
"$LINENO"; then :
8958 gcc_cv_collect2_libs
="$libs"; break
8960 rm -f core conftest.err conftest.
$ac_objext \
8961 conftest
$ac_exeext conftest.
$ac_ext
8964 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8967 $as_echo "$gcc_cv_collect2_libs" >&6; }
8968 case $gcc_cv_collect2_libs in
8970 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8974 # When building Ada code on Alpha, we need exc_resume which is usually in
8975 # -lexc. So test for it.
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8979 $as_echo_n "checking for library containing exc_resume... " >&6; }
8980 if test "${ac_cv_search_exc_resume+set}" = set; then :
8981 $as_echo_n "(cached) " >&6
8983 ac_func_search_save_LIBS
=$LIBS
8984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8987 /* Override any GCC internal prototype to avoid an error.
8988 Use char because int might match the return type of a GCC
8989 builtin and then its argument prototype would still apply. */
8997 return exc_resume ();
9002 for ac_lib
in '' exc
; do
9003 if test -z "$ac_lib"; then
9004 ac_res
="none required"
9007 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9009 if ac_fn_c_try_link
"$LINENO"; then :
9010 ac_cv_search_exc_resume
=$ac_res
9012 rm -f core conftest.err conftest.
$ac_objext \
9014 if test "${ac_cv_search_exc_resume+set}" = set; then :
9018 if test "${ac_cv_search_exc_resume+set}" = set; then :
9021 ac_cv_search_exc_resume
=no
9024 LIBS
=$ac_func_search_save_LIBS
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9027 $as_echo "$ac_cv_search_exc_resume" >&6; }
9028 ac_res
=$ac_cv_search_exc_resume
9029 if test "$ac_res" != no
; then :
9030 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9038 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9042 $as_echo_n "checking for library containing kstat_open... " >&6; }
9043 if test "${ac_cv_search_kstat_open+set}" = set; then :
9044 $as_echo_n "(cached) " >&6
9046 ac_func_search_save_LIBS
=$LIBS
9047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9048 /* end confdefs.h. */
9050 /* Override any GCC internal prototype to avoid an error.
9051 Use char because int might match the return type of a GCC
9052 builtin and then its argument prototype would still apply. */
9060 return kstat_open ();
9065 for ac_lib
in '' kstat
; do
9066 if test -z "$ac_lib"; then
9067 ac_res
="none required"
9070 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9072 if ac_fn_c_try_link
"$LINENO"; then :
9073 ac_cv_search_kstat_open
=$ac_res
9075 rm -f core conftest.err conftest.
$ac_objext \
9077 if test "${ac_cv_search_kstat_open+set}" = set; then :
9081 if test "${ac_cv_search_kstat_open+set}" = set; then :
9084 ac_cv_search_kstat_open
=no
9087 LIBS
=$ac_func_search_save_LIBS
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9090 $as_echo "$ac_cv_search_kstat_open" >&6; }
9091 ac_res
=$ac_cv_search_kstat_open
9092 if test "$ac_res" != no
; then :
9093 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9097 EXTRA_GCC_LIBS
="$LIBS"
9101 # Some systems put ldexp and frexp in libm instead of libc; assume
9102 # they're both in the same place. jcf-dump needs them.
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9106 $as_echo_n "checking for library containing ldexp... " >&6; }
9107 if test "${ac_cv_search_ldexp+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9110 ac_func_search_save_LIBS
=$LIBS
9111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9112 /* end confdefs.h. */
9114 /* Override any GCC internal prototype to avoid an error.
9115 Use char because int might match the return type of a GCC
9116 builtin and then its argument prototype would still apply. */
9129 for ac_lib
in '' m
; do
9130 if test -z "$ac_lib"; then
9131 ac_res
="none required"
9134 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9136 if ac_fn_c_try_link
"$LINENO"; then :
9137 ac_cv_search_ldexp
=$ac_res
9139 rm -f core conftest.err conftest.
$ac_objext \
9141 if test "${ac_cv_search_ldexp+set}" = set; then :
9145 if test "${ac_cv_search_ldexp+set}" = set; then :
9148 ac_cv_search_ldexp
=no
9151 LIBS
=$ac_func_search_save_LIBS
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9154 $as_echo "$ac_cv_search_ldexp" >&6; }
9155 ac_res
=$ac_cv_search_ldexp
9156 if test "$ac_res" != no
; then :
9157 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9165 # Use <inttypes.h> only if it exists,
9166 # doesn't clash with <sys/types.h>, and declares intmax_t.
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9168 $as_echo_n "checking for inttypes.h... " >&6; }
9169 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9170 $as_echo_n "(cached) " >&6
9172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9174 #include <sys/types.h>
9175 #include <inttypes.h>
9184 if ac_fn_c_try_compile
"$LINENO"; then :
9185 gcc_cv_header_inttypes_h
=yes
9187 gcc_cv_header_inttypes_h
=no
9189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9193 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9194 if test $gcc_cv_header_inttypes_h = yes; then
9196 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9202 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9203 sysconf strsignal getrusage nl_langinfo \
9204 gettimeofday mbstowcs wcswidth mmap setlocale \
9205 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
9207 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9208 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9209 eval as_val
=\$
$as_ac_var
9210 if test "x$as_val" = x
""yes; then :
9211 cat >>confdefs.h
<<_ACEOF
9212 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9219 if test x
$ac_cv_func_mbstowcs = xyes
; then
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9221 $as_echo_n "checking whether mbstowcs works... " >&6; }
9222 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9223 $as_echo_n "(cached) " >&6
9225 if test "$cross_compiling" = yes; then :
9226 gcc_cv_func_mbstowcs_works
=yes
9228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9237 if ac_fn_c_try_run
"$LINENO"; then :
9238 gcc_cv_func_mbstowcs_works
=yes
9240 gcc_cv_func_mbstowcs_works
=no
9242 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9243 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9248 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9249 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9251 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9256 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9257 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9261 cat >>confdefs.h
<<_ACEOF
9267 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9268 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9272 cat >>confdefs.h
<<_ACEOF
9273 #define caddr_t char *
9280 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9281 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9282 gcc_header_sys_mman_h
=yes
9284 gcc_header_sys_mman_h
=no
9287 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9288 if test "x$ac_cv_func_mmap" = x
""yes; then :
9294 if test "$gcc_header_sys_mman_h" != yes \
9295 ||
test "$gcc_func_mmap" != yes; then
9296 gcc_cv_func_mmap_file
=no
9297 gcc_cv_func_mmap_dev_zero
=no
9298 gcc_cv_func_mmap_anon
=no
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9301 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9302 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9303 $as_echo_n "(cached) " >&6
9305 # Add a system to this blacklist if
9306 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9307 # memory area containing the same data that you'd get if you applied
9308 # read() to the same fd. The only system known to have a problem here
9309 # is VMS, where text files have record structure.
9312 gcc_cv_func_mmap_file
=no
;;
9314 gcc_cv_func_mmap_file
=yes;;
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9318 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9320 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9321 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9322 $as_echo_n "(cached) " >&6
9324 # Add a system to this blacklist if it has mmap() but /dev/zero
9325 # does not exist, or if mmapping /dev/zero does not give anonymous
9326 # zeroed pages with both the following properties:
9327 # 1. If you map N consecutive pages in with one call, and then
9328 # unmap any subset of those pages, the pages that were not
9329 # explicitly unmapped remain accessible.
9330 # 2. If you map two adjacent blocks of memory and then unmap them
9331 # both at once, they must both go away.
9332 # Systems known to be in this category are Windows (all variants),
9335 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9336 gcc_cv_func_mmap_dev_zero
=no
;;
9338 gcc_cv_func_mmap_dev_zero
=yes;;
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9342 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9344 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9346 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9347 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9348 $as_echo_n "(cached) " >&6
9350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9351 /* end confdefs.h. */
9352 #include <sys/types.h>
9353 #include <sys/mman.h>
9356 #ifndef MAP_ANONYMOUS
9357 #define MAP_ANONYMOUS MAP_ANON
9363 int n = MAP_ANONYMOUS;
9368 if ac_fn_c_try_compile
"$LINENO"; then :
9369 gcc_cv_decl_map_anon
=yes
9371 gcc_cv_decl_map_anon
=no
9373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9376 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9378 if test $gcc_cv_decl_map_anon = no
; then
9379 gcc_cv_func_mmap_anon
=no
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9382 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9383 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9384 $as_echo_n "(cached) " >&6
9386 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9387 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9388 # doesn't give anonymous zeroed pages with the same properties listed
9389 # above for use of /dev/zero.
9390 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9392 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9393 gcc_cv_func_mmap_anon
=no
;;
9395 gcc_cv_func_mmap_anon
=yes;;
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9399 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9403 if test $gcc_cv_func_mmap_file = yes; then
9405 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9408 if test $gcc_cv_func_mmap_dev_zero = yes; then
9410 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9413 if test $gcc_cv_func_mmap_anon = yes; then
9415 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9422 # Under VMS, vfork works very differently than on Unix. The standard test
9423 # won't work, and it isn't easily adaptable. It makes more sense to
9425 ac_cv_func_vfork_works
=yes
9428 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9429 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9433 cat >>confdefs.h
<<_ACEOF
9439 for ac_header
in vfork.h
9441 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9442 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9443 cat >>confdefs.h
<<_ACEOF
9444 #define HAVE_VFORK_H 1
9450 for ac_func
in fork vfork
9452 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9453 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9454 eval as_val
=\$
$as_ac_var
9455 if test "x$as_val" = x
""yes; then :
9456 cat >>confdefs.h
<<_ACEOF
9457 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9463 if test "x$ac_cv_func_fork" = xyes
; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9465 $as_echo_n "checking for working fork... " >&6; }
9466 if test "${ac_cv_func_fork_works+set}" = set; then :
9467 $as_echo_n "(cached) " >&6
9469 if test "$cross_compiling" = yes; then :
9470 ac_cv_func_fork_works
=cross
9472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9473 /* end confdefs.h. */
9474 $ac_includes_default
9479 /* By Ruediger Kuhlmann. */
9486 if ac_fn_c_try_run
"$LINENO"; then :
9487 ac_cv_func_fork_works
=yes
9489 ac_cv_func_fork_works
=no
9491 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9492 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9497 $as_echo "$ac_cv_func_fork_works" >&6; }
9500 ac_cv_func_fork_works
=$ac_cv_func_fork
9502 if test "x$ac_cv_func_fork_works" = xcross
; then
9504 *-*-amigaos* |
*-*-msdosdjgpp*)
9505 # Override, as these systems have only a dummy fork() stub
9506 ac_cv_func_fork_works
=no
9509 ac_cv_func_fork_works
=yes
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9513 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9515 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9516 if test "x$ac_cv_func_vfork" = xyes
; then
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9518 $as_echo_n "checking for working vfork... " >&6; }
9519 if test "${ac_cv_func_vfork_works+set}" = set; then :
9520 $as_echo_n "(cached) " >&6
9522 if test "$cross_compiling" = yes; then :
9523 ac_cv_func_vfork_works
=cross
9525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9527 /* Thanks to Paul Eggert for this test. */
9528 $ac_includes_default
9529 #include <sys/wait.h>
9533 /* On some sparc systems, changes by the child to local and incoming
9534 argument registers are propagated back to the parent. The compiler
9535 is told about this with #include <vfork.h>, but some compilers
9536 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9537 static variable whose address is put into a register that is
9538 clobbered by the vfork. */
9541 sparc_address_test (int arg)
9543 sparc_address_test (arg) int arg;
9564 pid_t parent = getpid ();
9567 sparc_address_test (0);
9572 /* Here is another test for sparc vfork register problems. This
9573 test uses lots of local variables, at least as many local
9574 variables as main has allocated so far including compiler
9575 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9576 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9577 reuse the register of parent for one of the local variables,
9578 since it will think that parent can't possibly be used any more
9579 in this routine. Assigning to the local variable will thus
9580 munge parent in the parent process. */
9582 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9583 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9584 /* Convince the compiler that p..p7 are live; otherwise, it might
9585 use the same hardware register for all 8 local variables. */
9586 if (p != p1 || p != p2 || p != p3 || p != p4
9587 || p != p5 || p != p6 || p != p7)
9590 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9591 from child file descriptors. If the child closes a descriptor
9592 before it execs or exits, this munges the parent's descriptor
9593 as well. Test for this by closing stdout in the child. */
9594 _exit(close(fileno(stdout)) != 0);
9599 while (wait(&status) != child)
9602 /* Was there some problem with vforking? */
9605 /* Did the child fail? (This shouldn't happen.) */
9608 /* Did the vfork/compiler bug occur? */
9609 || parent != getpid()
9611 /* Did the file descriptor bug occur? */
9612 || fstat(fileno(stdout), &st) != 0
9617 if ac_fn_c_try_run
"$LINENO"; then :
9618 ac_cv_func_vfork_works
=yes
9620 ac_cv_func_vfork_works
=no
9622 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9623 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9628 $as_echo "$ac_cv_func_vfork_works" >&6; }
9631 if test "x$ac_cv_func_fork_works" = xcross
; then
9632 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9634 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9637 if test "x$ac_cv_func_vfork_works" = xyes
; then
9639 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9643 $as_echo "#define vfork fork" >>confdefs.h
9646 if test "x$ac_cv_func_fork_works" = xyes
; then
9648 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9653 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9654 # iconv() prototype.
9656 ac_cpp
='$CXXCPP $CPPFLAGS'
9657 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9658 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9659 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9662 if test "X$prefix" = "XNONE"; then
9663 acl_final_prefix
="$ac_default_prefix"
9665 acl_final_prefix
="$prefix"
9667 if test "X$exec_prefix" = "XNONE"; then
9668 acl_final_exec_prefix
='${prefix}'
9670 acl_final_exec_prefix
="$exec_prefix"
9672 acl_save_prefix
="$prefix"
9673 prefix
="$acl_final_prefix"
9674 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9675 prefix
="$acl_save_prefix"
9678 # Check whether --with-gnu-ld was given.
9679 if test "${with_gnu_ld+set}" = set; then :
9680 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9685 # Prepare PATH_SEPARATOR.
9686 # The user is always right.
9687 if test "${PATH_SEPARATOR+set}" != set; then
9688 echo "#! /bin/sh" >conf$$.sh
9689 echo "exit 0" >>conf$$.sh
9691 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9699 if test "$GCC" = yes; then
9700 # Check if gcc -print-prog-name=ld gives a path.
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9702 $as_echo_n "checking for ld used by GCC... " >&6; }
9705 # gcc leaves a trailing carriage return which upsets mingw
9706 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9708 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9711 # Accept absolute paths.
9712 [\\/]* |
[A-Za-z
]:[\\/]*)
9713 re_direlt
='/[^/][^/]*/\.\./'
9714 # Canonicalize the path of ld
9715 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9716 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9717 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9719 test -z "$LD" && LD
="$ac_prog"
9722 # If it fails, then pretend we aren't using GCC.
9726 # If it is relative, then search for the first ld in PATH.
9730 elif test "$with_gnu_ld" = yes; then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9732 $as_echo_n "checking for GNU ld... " >&6; }
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9735 $as_echo_n "checking for non-GNU ld... " >&6; }
9737 if test "${acl_cv_path_LD+set}" = set; then :
9738 $as_echo_n "(cached) " >&6
9740 if test -z "$LD"; then
9741 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9742 for ac_dir
in $PATH; do
9743 test -z "$ac_dir" && ac_dir
=.
9744 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9745 acl_cv_path_LD
="$ac_dir/$ac_prog"
9746 # Check to see if the program is GNU ld. I'd rather use --version,
9747 # but apparently some GNU ld's only accept -v.
9748 # Break only if it was the GNU/non-GNU ld that we prefer.
9749 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9750 test "$with_gnu_ld" != no
&& break
9752 test "$with_gnu_ld" != yes && break
9758 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9762 LD
="$acl_cv_path_LD"
9763 if test -n "$LD"; then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9765 $as_echo "$LD" >&6; }
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9770 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9772 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9773 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9774 $as_echo_n "(cached) " >&6
9776 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9777 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9778 acl_cv_prog_gnu_ld
=yes
9780 acl_cv_prog_gnu_ld
=no
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9784 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9785 with_gnu_ld
=$acl_cv_prog_gnu_ld
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9790 $as_echo_n "checking for shared library run path origin... " >&6; }
9791 if test "${acl_cv_rpath+set}" = set; then :
9792 $as_echo_n "(cached) " >&6
9795 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9796 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9803 $as_echo "$acl_cv_rpath" >&6; }
9805 libext
="$acl_cv_libext"
9806 shlibext
="$acl_cv_shlibext"
9807 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9808 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9809 hardcode_direct
="$acl_cv_hardcode_direct"
9810 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9811 # Check whether --enable-rpath was given.
9812 if test "${enable_rpath+set}" = set; then :
9813 enableval
=$enable_rpath; :
9827 acl_save_prefix
="$prefix"
9828 prefix
="$acl_final_prefix"
9829 acl_save_exec_prefix
="$exec_prefix"
9830 exec_prefix
="$acl_final_exec_prefix"
9832 eval additional_includedir
=\"$includedir\"
9833 eval additional_libdir
=\"$libdir\"
9835 exec_prefix
="$acl_save_exec_prefix"
9836 prefix
="$acl_save_prefix"
9839 # Check whether --with-libiconv-prefix was given.
9840 if test "${with_libiconv_prefix+set}" = set; then :
9841 withval
=$with_libiconv_prefix;
9842 if test "X$withval" = "Xno"; then
9845 if test "X$withval" = "X"; then
9847 acl_save_prefix
="$prefix"
9848 prefix
="$acl_final_prefix"
9849 acl_save_exec_prefix
="$exec_prefix"
9850 exec_prefix
="$acl_final_exec_prefix"
9852 eval additional_includedir
=\"$includedir\"
9853 eval additional_libdir
=\"$libdir\"
9855 exec_prefix
="$acl_save_exec_prefix"
9856 prefix
="$acl_save_prefix"
9859 additional_includedir
="$withval/include"
9860 additional_libdir
="$withval/lib"
9871 names_already_handled
=
9872 names_next_round
='iconv '
9873 while test -n "$names_next_round"; do
9874 names_this_round
="$names_next_round"
9876 for name
in $names_this_round; do
9878 for n
in $names_already_handled; do
9879 if test "$n" = "$name"; then
9884 if test -z "$already_handled"; then
9885 names_already_handled
="$names_already_handled $name"
9886 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9887 eval value
=\"\
$HAVE_LIB$uppername\"
9888 if test -n "$value"; then
9889 if test "$value" = yes; then
9890 eval value
=\"\
$LIB$uppername\"
9891 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9892 eval value
=\"\
$LTLIB$uppername\"
9893 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9902 if test $use_additional = yes; then
9903 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9904 found_dir
="$additional_libdir"
9905 found_so
="$additional_libdir/lib$name.$shlibext"
9906 if test -f "$additional_libdir/lib$name.la"; then
9907 found_la
="$additional_libdir/lib$name.la"
9910 if test -f "$additional_libdir/lib$name.$libext"; then
9911 found_dir
="$additional_libdir"
9912 found_a
="$additional_libdir/lib$name.$libext"
9913 if test -f "$additional_libdir/lib$name.la"; then
9914 found_la
="$additional_libdir/lib$name.la"
9919 if test "X$found_dir" = "X"; then
9920 for x
in $LDFLAGS $LTLIBICONV; do
9922 acl_save_prefix
="$prefix"
9923 prefix
="$acl_final_prefix"
9924 acl_save_exec_prefix
="$exec_prefix"
9925 exec_prefix
="$acl_final_exec_prefix"
9927 exec_prefix
="$acl_save_exec_prefix"
9928 prefix
="$acl_save_prefix"
9932 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9933 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9935 found_so
="$dir/lib$name.$shlibext"
9936 if test -f "$dir/lib$name.la"; then
9937 found_la
="$dir/lib$name.la"
9940 if test -f "$dir/lib$name.$libext"; then
9942 found_a
="$dir/lib$name.$libext"
9943 if test -f "$dir/lib$name.la"; then
9944 found_la
="$dir/lib$name.la"
9950 if test "X$found_dir" != "X"; then
9955 if test "X$found_dir" != "X"; then
9956 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9957 if test "X$found_so" != "X"; then
9958 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9959 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9962 for x
in $ltrpathdirs; do
9963 if test "X$x" = "X$found_dir"; then
9968 if test -z "$haveit"; then
9969 ltrpathdirs
="$ltrpathdirs $found_dir"
9971 if test "$hardcode_direct" = yes; then
9972 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9974 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9975 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9977 for x
in $rpathdirs; do
9978 if test "X$x" = "X$found_dir"; then
9983 if test -z "$haveit"; then
9984 rpathdirs
="$rpathdirs $found_dir"
9988 for x
in $LDFLAGS $LIBICONV; do
9990 acl_save_prefix
="$prefix"
9991 prefix
="$acl_final_prefix"
9992 acl_save_exec_prefix
="$exec_prefix"
9993 exec_prefix
="$acl_final_exec_prefix"
9995 exec_prefix
="$acl_save_exec_prefix"
9996 prefix
="$acl_save_prefix"
9998 if test "X$x" = "X-L$found_dir"; then
10003 if test -z "$haveit"; then
10004 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10006 if test "$hardcode_minus_L" != no
; then
10007 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10009 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10015 if test "X$found_a" != "X"; then
10016 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10018 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10021 additional_includedir
=
10022 case "$found_dir" in
10024 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10025 additional_includedir
="$basedir/include"
10028 if test "X$additional_includedir" != "X"; then
10029 if test "X$additional_includedir" != "X/usr/include"; then
10031 if test "X$additional_includedir" = "X/usr/local/include"; then
10032 if test -n "$GCC"; then
10034 linux
*) haveit
=yes;;
10038 if test -z "$haveit"; then
10039 for x
in $CPPFLAGS $INCICONV; do
10041 acl_save_prefix
="$prefix"
10042 prefix
="$acl_final_prefix"
10043 acl_save_exec_prefix
="$exec_prefix"
10044 exec_prefix
="$acl_final_exec_prefix"
10046 exec_prefix
="$acl_save_exec_prefix"
10047 prefix
="$acl_save_prefix"
10049 if test "X$x" = "X-I$additional_includedir"; then
10054 if test -z "$haveit"; then
10055 if test -d "$additional_includedir"; then
10056 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10062 if test -n "$found_la"; then
10063 save_libdir
="$libdir"
10064 case "$found_la" in
10065 */* |
*\\*) .
"$found_la" ;;
10066 *) .
"./$found_la" ;;
10068 libdir
="$save_libdir"
10069 for dep
in $dependency_libs; do
10072 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10073 if test "X$additional_libdir" != "X/usr/lib"; then
10075 if test "X$additional_libdir" = "X/usr/local/lib"; then
10076 if test -n "$GCC"; then
10078 linux
*) haveit
=yes;;
10082 if test -z "$haveit"; then
10084 for x
in $LDFLAGS $LIBICONV; do
10086 acl_save_prefix
="$prefix"
10087 prefix
="$acl_final_prefix"
10088 acl_save_exec_prefix
="$exec_prefix"
10089 exec_prefix
="$acl_final_exec_prefix"
10091 exec_prefix
="$acl_save_exec_prefix"
10092 prefix
="$acl_save_prefix"
10094 if test "X$x" = "X-L$additional_libdir"; then
10099 if test -z "$haveit"; then
10100 if test -d "$additional_libdir"; then
10101 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10105 for x
in $LDFLAGS $LTLIBICONV; do
10107 acl_save_prefix
="$prefix"
10108 prefix
="$acl_final_prefix"
10109 acl_save_exec_prefix
="$exec_prefix"
10110 exec_prefix
="$acl_final_exec_prefix"
10112 exec_prefix
="$acl_save_exec_prefix"
10113 prefix
="$acl_save_prefix"
10115 if test "X$x" = "X-L$additional_libdir"; then
10120 if test -z "$haveit"; then
10121 if test -d "$additional_libdir"; then
10122 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10129 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10130 if test "$enable_rpath" != no
; then
10132 for x
in $rpathdirs; do
10133 if test "X$x" = "X$dir"; then
10138 if test -z "$haveit"; then
10139 rpathdirs
="$rpathdirs $dir"
10142 for x
in $ltrpathdirs; do
10143 if test "X$x" = "X$dir"; then
10148 if test -z "$haveit"; then
10149 ltrpathdirs
="$ltrpathdirs $dir"
10154 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10157 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10160 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10161 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10167 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10168 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10174 if test "X$rpathdirs" != "X"; then
10175 if test -n "$hardcode_libdir_separator"; then
10177 for found_dir
in $rpathdirs; do
10178 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10180 acl_save_libdir
="$libdir"
10182 eval flag
=\"$hardcode_libdir_flag_spec\"
10183 libdir
="$acl_save_libdir"
10184 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10186 for found_dir
in $rpathdirs; do
10187 acl_save_libdir
="$libdir"
10188 libdir
="$found_dir"
10189 eval flag
=\"$hardcode_libdir_flag_spec\"
10190 libdir
="$acl_save_libdir"
10191 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10195 if test "X$ltrpathdirs" != "X"; then
10196 for found_dir
in $ltrpathdirs; do
10197 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10207 am_save_CPPFLAGS
="$CPPFLAGS"
10209 for element
in $INCICONV; do
10211 for x
in $CPPFLAGS; do
10213 acl_save_prefix
="$prefix"
10214 prefix
="$acl_final_prefix"
10215 acl_save_exec_prefix
="$exec_prefix"
10216 exec_prefix
="$acl_final_exec_prefix"
10218 exec_prefix
="$acl_save_exec_prefix"
10219 prefix
="$acl_save_prefix"
10221 if test "X$x" = "X$element"; then
10226 if test -z "$haveit"; then
10227 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10233 $as_echo_n "checking for iconv... " >&6; }
10234 if test "${am_cv_func_iconv+set}" = set; then :
10235 $as_echo_n "(cached) " >&6
10238 am_cv_func_iconv
="no, consider installing GNU libiconv"
10240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10241 /* end confdefs.h. */
10242 #include <stdlib.h>
10247 iconv_t cd = iconv_open("","");
10248 iconv(cd,NULL,NULL,NULL,NULL);
10254 if ac_fn_cxx_try_link
"$LINENO"; then :
10255 am_cv_func_iconv
=yes
10257 rm -f core conftest.err conftest.
$ac_objext \
10258 conftest
$ac_exeext conftest.
$ac_ext
10259 if test "$am_cv_func_iconv" != yes; then
10260 am_save_LIBS
="$LIBS"
10261 LIBS
="$LIBS $LIBICONV"
10262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10263 /* end confdefs.h. */
10264 #include <stdlib.h>
10269 iconv_t cd = iconv_open("","");
10270 iconv(cd,NULL,NULL,NULL,NULL);
10276 if ac_fn_cxx_try_link
"$LINENO"; then :
10277 am_cv_lib_iconv
=yes
10278 am_cv_func_iconv
=yes
10280 rm -f core conftest.err conftest.
$ac_objext \
10281 conftest
$ac_exeext conftest.
$ac_ext
10282 LIBS
="$am_save_LIBS"
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10287 $as_echo "$am_cv_func_iconv" >&6; }
10288 if test "$am_cv_func_iconv" = yes; then
10290 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10293 if test "$am_cv_lib_iconv" = yes; then
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10295 $as_echo_n "checking how to link with libiconv... " >&6; }
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10297 $as_echo "$LIBICONV" >&6; }
10299 CPPFLAGS
="$am_save_CPPFLAGS"
10306 if test "$am_cv_func_iconv" = yes; then
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10308 $as_echo_n "checking for iconv declaration... " >&6; }
10309 if test "${am_cv_proto_iconv+set}" = set; then :
10310 $as_echo_n "(cached) " >&6
10313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10314 /* end confdefs.h. */
10316 #include <stdlib.h>
10322 #if defined(__STDC__) || defined(__cplusplus)
10323 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10336 if ac_fn_cxx_try_compile
"$LINENO"; then :
10337 am_cv_proto_iconv_arg1
=""
10339 am_cv_proto_iconv_arg1
="const"
10341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10342 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);"
10345 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10347 }$am_cv_proto_iconv" >&5
10349 }$am_cv_proto_iconv" >&6; }
10351 cat >>confdefs.h
<<_ACEOF
10352 #define ICONV_CONST $am_cv_proto_iconv_arg1
10358 ac_cpp
='$CPP $CPPFLAGS'
10359 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10360 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10361 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10364 # Until we have in-tree GNU iconv:
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10370 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10371 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10372 $as_echo_n "(cached) " >&6
10374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10375 /* end confdefs.h. */
10376 #include <locale.h>
10385 if ac_fn_c_try_link
"$LINENO"; then :
10386 am_cv_val_LC_MESSAGES
=yes
10388 am_cv_val_LC_MESSAGES
=no
10390 rm -f core conftest.err conftest.
$ac_objext \
10391 conftest
$ac_exeext conftest.
$ac_ext
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10394 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10395 if test $am_cv_val_LC_MESSAGES = yes; then
10397 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10404 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10405 if test "${am_cv_langinfo_codeset+set}" = set; then :
10406 $as_echo_n "(cached) " >&6
10408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h. */
10410 #include <langinfo.h>
10414 char* cs = nl_langinfo(CODESET);
10419 if ac_fn_c_try_link
"$LINENO"; then :
10420 am_cv_langinfo_codeset
=yes
10422 am_cv_langinfo_codeset
=no
10424 rm -f core conftest.err conftest.
$ac_objext \
10425 conftest
$ac_exeext conftest.
$ac_ext
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10429 $as_echo "$am_cv_langinfo_codeset" >&6; }
10430 if test $am_cv_langinfo_codeset = yes; then
10432 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10437 # We will need to find libiberty.h and ansidecl.h
10438 saved_CFLAGS
="$CFLAGS"
10439 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10440 saved_CXXFLAGS
="$CXXFLAGS"
10441 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10442 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10443 strsignal strstr stpcpy strverscmp \
10444 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10445 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
10447 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10449 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10450 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10451 $as_echo_n "(cached) " >&6
10453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10456 #define $ac_tr_decl 1
10458 #include "ansidecl.h"
10459 #include "system.h"
10465 char *(*pfn) = (char *(*)) $ac_func ;
10471 if ac_fn_c_try_compile
"$LINENO"; then :
10472 eval "gcc_cv_have_decl_$ac_func=yes"
10474 eval "gcc_cv_have_decl_$ac_func=no"
10476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10479 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10481 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10482 #define $ac_tr_decl 1
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10487 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10488 #define $ac_tr_decl 0
10496 for ac_func
in getrlimit setrlimit getrusage
10498 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10500 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10501 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10502 $as_echo_n "(cached) " >&6
10504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h. */
10507 #define $ac_tr_decl 1
10509 #include "ansidecl.h"
10510 #include "system.h"
10511 #ifdef HAVE_SYS_RESOURCE_H
10512 #include <sys/resource.h>
10520 char *(*pfn) = (char *(*)) $ac_func ;
10526 if ac_fn_c_try_compile
"$LINENO"; then :
10527 eval "gcc_cv_have_decl_$ac_func=yes"
10529 eval "gcc_cv_have_decl_$ac_func=no"
10531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10534 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10536 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10537 #define $ac_tr_decl 1
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10543 #define $ac_tr_decl 0
10551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10552 /* end confdefs.h. */
10554 #include "ansidecl.h"
10555 #include "system.h"
10556 #ifdef HAVE_SYS_RESOURCE_H
10557 #include <sys/resource.h>
10568 if ac_fn_c_try_compile
"$LINENO"; then :
10572 $as_echo "#define rlim_t long" >>confdefs.h
10575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10577 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10578 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10579 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10580 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10581 for ac_func
in ldgetname
10583 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10585 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10586 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10587 $as_echo_n "(cached) " >&6
10589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h. */
10592 #define $ac_tr_decl 1
10594 #include "ansidecl.h"
10595 #include "system.h"
10596 #ifdef HAVE_LDFCN_H
10607 char *(*pfn) = (char *(*)) $ac_func ;
10613 if ac_fn_c_try_compile
"$LINENO"; then :
10614 eval "gcc_cv_have_decl_$ac_func=yes"
10616 eval "gcc_cv_have_decl_$ac_func=no"
10618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10621 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10623 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10624 #define $ac_tr_decl 1
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10629 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10630 #define $ac_tr_decl 0
10638 for ac_func
in times
10640 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10642 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10643 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10644 $as_echo_n "(cached) " >&6
10646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h. */
10649 #define $ac_tr_decl 1
10651 #include "ansidecl.h"
10652 #include "system.h"
10653 #ifdef HAVE_SYS_TIMES_H
10654 #include <sys/times.h>
10662 char *(*pfn) = (char *(*)) $ac_func ;
10668 if ac_fn_c_try_compile
"$LINENO"; then :
10669 eval "gcc_cv_have_decl_$ac_func=yes"
10671 eval "gcc_cv_have_decl_$ac_func=no"
10673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10676 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10678 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10679 #define $ac_tr_decl 1
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10684 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10685 #define $ac_tr_decl 0
10693 for ac_func
in sigaltstack
10695 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10697 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10698 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10699 $as_echo_n "(cached) " >&6
10701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h. */
10704 #define $ac_tr_decl 1
10706 #include "ansidecl.h"
10707 #include "system.h"
10708 #include <signal.h>
10715 char *(*pfn) = (char *(*)) $ac_func ;
10721 if ac_fn_c_try_compile
"$LINENO"; then :
10722 eval "gcc_cv_have_decl_$ac_func=yes"
10724 eval "gcc_cv_have_decl_$ac_func=no"
10726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10729 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10731 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10732 #define $ac_tr_decl 1
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10738 #define $ac_tr_decl 0
10746 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10749 ac_cpp
='$CXXCPP $CPPFLAGS'
10750 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10751 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10752 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10754 for ac_func
in madvise
10756 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10758 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10759 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10760 $as_echo_n "(cached) " >&6
10762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10765 #define $ac_tr_decl 1
10767 #include "ansidecl.h"
10768 #include "system.h"
10775 char *(*pfn) = (char *(*)) $ac_func ;
10781 if ac_fn_cxx_try_compile
"$LINENO"; then :
10782 eval "gcc_cv_have_decl_$ac_func=yes"
10784 eval "gcc_cv_have_decl_$ac_func=no"
10786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10789 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10791 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10792 #define $ac_tr_decl 1
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10797 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10798 #define $ac_tr_decl 0
10806 ac_cpp
='$CPP $CPPFLAGS'
10807 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10808 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10809 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10812 # More time-related stuff.
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10814 $as_echo_n "checking for struct tms... " >&6; }
10815 if test "${ac_cv_struct_tms+set}" = set; then :
10816 $as_echo_n "(cached) " >&6
10819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10820 /* end confdefs.h. */
10822 #include "ansidecl.h"
10823 #include "system.h"
10824 #ifdef HAVE_SYS_TIMES_H
10825 #include <sys/times.h>
10836 if ac_fn_c_try_compile
"$LINENO"; then :
10837 ac_cv_struct_tms
=yes
10839 ac_cv_struct_tms
=no
10841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10844 $as_echo "$ac_cv_struct_tms" >&6; }
10845 if test $ac_cv_struct_tms = yes; then
10847 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10851 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10852 # revisit after autoconf 2.50.
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10854 $as_echo_n "checking for clock_t... " >&6; }
10855 if test "${gcc_cv_type_clock_t+set}" = set; then :
10856 $as_echo_n "(cached) " >&6
10859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10860 /* end confdefs.h. */
10862 #include "ansidecl.h"
10863 #include "system.h"
10873 if ac_fn_c_try_compile
"$LINENO"; then :
10874 gcc_cv_type_clock_t
=yes
10876 gcc_cv_type_clock_t
=no
10878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10881 $as_echo "$gcc_cv_type_clock_t" >&6; }
10882 if test $gcc_cv_type_clock_t = yes; then
10884 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10888 # Check if F_SETLKW is supported by fcntl.
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10890 $as_echo_n "checking for F_SETLKW... " >&6; }
10891 if test "${ac_cv_f_setlkw+set}" = set; then :
10892 $as_echo_n "(cached) " >&6
10895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10908 return fcntl (1, F_SETLKW, &fl);
10913 if ac_fn_c_try_compile
"$LINENO"; then :
10918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10921 $as_echo "$ac_cv_f_setlkw" >&6; }
10922 if test $ac_cv_f_setlkw = yes; then
10924 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10928 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10929 CFLAGS
="$saved_CFLAGS"
10930 CXXFLAGS
="$saved_CXXFLAGS"
10932 # mkdir takes a single argument on some systems.
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10934 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10935 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10936 $as_echo_n "(cached) " >&6
10938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h. */
10941 #include <sys/types.h>
10942 #ifdef HAVE_SYS_STAT_H
10943 # include <sys/stat.h>
10945 #ifdef HAVE_UNISTD_H
10946 # include <unistd.h>
10948 #ifdef HAVE_DIRECT_H
10949 # include <direct.h>
10959 if ac_fn_c_try_compile
"$LINENO"; then :
10960 gcc_cv_mkdir_takes_one_arg
=no
10962 gcc_cv_mkdir_takes_one_arg
=yes
10964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10967 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10968 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10970 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10981 # With Setjmp/Longjmp based exception handling.
10982 # Check whether --enable-sjlj-exceptions was given.
10983 if test "${enable_sjlj_exceptions+set}" = set; then :
10984 enableval
=$enable_sjlj_exceptions; case $target in
10986 if test $enableval != yes; then
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10988 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10993 force_sjlj_exceptions
=yes
10997 force_sjlj_exceptions
=yes
11001 force_sjlj_exceptions
=yes
11005 force_sjlj_exceptions
=no
11010 if test $force_sjlj_exceptions = yes; then
11011 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11013 cat >>confdefs.h
<<_ACEOF
11014 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11019 # --------------------------------------------------------
11020 # Build, host, and target specific configuration fragments
11021 # --------------------------------------------------------
11023 # Collect build-machine-specific information.
11024 .
${srcdir}/config.build
11026 # Collect host-machine-specific information.
11027 .
${srcdir}/config.
host
11031 # Collect target-machine-specific information.
11032 .
${srcdir}/config.gcc
11034 extra_objs
="${host_extra_objs} ${extra_objs}"
11035 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11037 # Default the target-machine variables that were not explicitly set.
11038 if test x
"$tm_file" = x
11039 then tm_file
=$cpu_type/$cpu_type.h
; fi
11041 if test x
"$extra_headers" = x
11042 then extra_headers
=; fi
11044 if test x
$md_file = x
11045 then md_file
=$cpu_type/$cpu_type.md
; fi
11047 if test x
$out_file = x
11048 then out_file
=$cpu_type/$cpu_type.c
; fi
11050 if test x
"$tmake_file" = x
11051 then tmake_file
=$cpu_type/t-
$cpu_type
11054 # Support --enable-initfini-array.
11055 if test x
$enable_initfini_array != xno
; then
11056 tm_file
="${tm_file} initfini-array.h"
11059 if test x
"$dwarf2" = xyes
11060 then tm_file
="$tm_file tm-dwarf2.h"
11063 # Say what files are being used for the output code and MD file.
11064 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11065 echo "Using \`$srcdir/config/$md_file' as machine description file."
11067 # If any of the xm_file variables contain nonexistent files, warn
11068 # about them and drop them.
11071 for x
in $build_xm_file; do
11072 if test -f $srcdir/config
/$x
11074 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11075 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11078 build_xm_file
="$bx"
11081 for x
in $host_xm_file; do
11082 if test -f $srcdir/config
/$x
11084 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11085 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11091 for x
in $xm_file; do
11092 if test -f $srcdir/config
/$x
11094 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11095 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11101 for f
in $tm_file; do
11104 if test $count = ax
; then
11105 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11107 echo "Using the following target machine macro files:"
11108 for f
in $tm_file; do
11109 echo " $srcdir/config/$f"
11113 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11115 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11119 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11121 cat >>confdefs.h
<<_ACEOF
11122 #define HAVE_GNU_LD $gnu_ld_bool
11126 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11128 cat >>confdefs.h
<<_ACEOF
11129 #define HAVE_GNU_AS $gnu_as_bool
11134 for f
in $host_xm_file; do
11137 if test $count = a
; then
11139 elif test $count = ax
; then
11140 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11142 echo "Using the following host machine macro files:"
11143 for f
in $host_xm_file; do
11144 echo " $srcdir/config/$f"
11147 echo "Using ${out_host_hook_obj} for host machine hooks."
11149 if test "$host_xm_file" != "$build_xm_file"; then
11151 for f
in $build_xm_file; do
11154 if test $count = a
; then
11156 elif test $count = ax
; then
11157 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11159 echo "Using the following build machine macro files:"
11160 for f
in $build_xm_file; do
11161 echo " $srcdir/config/$f"
11166 if test -n "$configured_native_system_header_dir"; then
11167 native_system_header_dir
=$configured_native_system_header_dir
11169 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11173 powerpc
*-*-darwin*)
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11175 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11176 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11177 $as_echo_n "(cached) " >&6
11179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11180 /* end confdefs.h. */
11182 #include <sys/cdefs.h>
11183 #include <sys/signal.h>
11184 #include <ucontext.h>
11185 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11188 if ac_fn_c_try_compile
"$LINENO"; then :
11189 gcc_cv_mcontext_underscores
=no
11191 gcc_cv_mcontext_underscores
=yes
11193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11196 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11197 if test $gcc_cv_mcontext_underscores = yes; then
11199 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11209 # Check if a valid thread package
11210 case ${enable_threads} in
11213 target_thread_file
='single'
11217 target_thread_file
='single'
11219 aix | dce | lynx | mipssde | posix | rtems | \
11220 single | tpf | vxworks | win32
)
11221 target_thread_file
=${enable_threads}
11224 echo "${enable_threads} is an unknown thread package" 1>&2
11229 if test x
${thread_file} = x
; then
11230 # No thread file set by target-specific clauses in config.gcc,
11231 # so use file chosen by default logic above
11232 thread_file
=${target_thread_file}
11240 if test x
$enable___cxa_atexit = xyes || \
11241 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11242 if test x
$host = x
$target; then
11244 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11245 # keyed to flag_use_cxa_atexit
11253 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11254 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11257 echo "__cxa_atexit can't be enabled on this target"
11263 # We can't check for __cxa_atexit when building a cross, so assume
11267 if test x
$use_cxa_atexit = xyes
; then
11269 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11274 # Look for a file containing extra machine modes.
11275 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11276 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11279 cat >>confdefs.h
<<_ACEOF
11280 #define EXTRA_MODES_FILE "config/$extra_modes"
11285 # Convert extra_options into a form suitable for Makefile use.
11288 for f
in $extra_options; do
11289 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11290 all_opt_files
="$all_opt_files $srcdir/config/$f"
11294 # auto-host.h is the file containing items generated by autoconf and is
11295 # the first file included by config.h.
11296 # If host=build, it is correct to have bconfig include auto-host.h
11297 # as well. If host!=build, we are in error and need to do more
11298 # work to find out the build config parameters.
11299 if test x
$host = x
$build
11301 build_auto
=auto-host.h
11303 # We create a subdir, then run autoconf in the subdir.
11304 # To prevent recursion we set host and build for the new
11305 # invocation of configure to the build for this invocation
11312 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11313 *) realsrcdir
=..
/${srcdir};;
11315 # Clearing GMPINC is necessary to prevent host headers being
11316 # used by the build compiler. Defining GENERATOR_FILE stops
11317 # system.h from including gmp.h.
11318 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11319 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11320 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11321 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11322 ${realsrcdir}/configure \
11323 --enable-languages=${enable_languages-all} \
11324 --target=$target_alias --host=$build_alias --build=$build_alias
11326 # We just finished tests for the build machine, so rename
11327 # the file auto-build.h in the gcc directory.
11328 mv auto-host.h ..
/auto-build.h
11331 build_auto
=auto-build.h
11335 tm_file
="${tm_file} defaults.h"
11336 tm_p_file
="${tm_p_file} tm-preds.h"
11337 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11338 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11339 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11340 # put this back in temporarily.
11341 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11347 # Compile in configure arguments.
11348 if test -f configargs.h
; then
11349 # Being re-configured.
11350 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11351 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11353 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11356 # Double all backslashes and backslash all quotes to turn
11357 # gcc_config_arguments into a C string.
11358 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11359 $gcc_config_arguments
11361 gcc_config_arguments_str
=`cat conftest.out`
11364 cat > configargs.h
<<EOF
11365 /* Generated automatically. */
11366 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11367 static const char thread_model[] = "$thread_file";
11369 static const struct {
11370 const char *name, *value;
11371 } configure_default_options[] = $configure_default_options;
11374 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11375 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11376 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11377 if test -f $srcdir/REVISION
; then
11378 gcc_REVISION
=`cat $srcdir/REVISION`
11382 cat > plugin-version.h
<<EOF
11383 #include "configargs.h"
11385 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11386 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11387 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11388 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11390 static char basever[] = "$gcc_BASEVER";
11391 static char datestamp[] = "$gcc_DATESTAMP";
11392 static char devphase[] = "$gcc_DEVPHASE";
11393 static char revision[] = "$gcc_REVISION";
11395 /* FIXME plugins: We should make the version information more precise.
11396 One way to do is to add a checksum. */
11398 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11399 devphase, revision,
11400 configuration_arguments};
11403 # Internationalization
11404 # If we haven't got the data from the intl directory,
11405 # assume NLS is disabled.
11414 if test -f ..
/intl
/config.intl
; then
11415 . ..
/intl
/config.intl
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11418 $as_echo_n "checking whether NLS is requested... " >&6; }
11419 if test x
"$USE_NLS" != xyes
; then
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11421 $as_echo "no" >&6; }
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11424 $as_echo "yes" >&6; }
11426 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11430 $as_echo_n "checking for catalogs to be installed... " >&6; }
11431 # Look for .po and .gmo files in the source directory.
11434 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11435 # If there aren't any .gmo files the shell will give us the
11436 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11438 case "$cat" in *\
**)
11441 # The quadruple backslash is collapsed to a double backslash
11442 # by the backticks, then collapsed again by the double quotes,
11443 # leaving us with one backslash in the sed expression (right
11444 # before the dot that mustn't act as a wildcard).
11445 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11446 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11447 # The user is allowed to set LINGUAS to a list of languages to
11448 # install catalogs for. If it's empty that means "all of them."
11449 if test "x$LINGUAS" = x
; then
11450 CATALOGS
="$CATALOGS $cat"
11451 XLINGUAS
="$XLINGUAS $lang"
11453 case "$LINGUAS" in *$lang*)
11454 CATALOGS
="$CATALOGS $cat"
11455 XLINGUAS
="$XLINGUAS $lang"
11460 LINGUAS
="$XLINGUAS"
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11462 $as_echo "$LINGUAS" >&6; }
11475 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11476 # -liconv on the link line twice.
11477 case "$LIBINTL" in *$LIBICONV*)
11481 # Check whether --enable-secureplt was given.
11482 if test "${enable_secureplt+set}" = set; then :
11483 enableval
=$enable_secureplt;
11487 # Check whether --enable-leading-mingw64-underscores was given.
11488 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11489 enableval
=$enable_leading_mingw64_underscores;
11492 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11494 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11498 # Check whether --enable-cld was given.
11499 if test "${enable_cld+set}" = set; then :
11500 enableval
=$enable_cld;
11506 # Check whether --enable-frame-pointer was given.
11507 if test "${enable_frame_pointer+set}" = set; then :
11508 enableval
=$enable_frame_pointer;
11512 linux
* | darwin
[8912]*)
11513 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11515 enable_frame_pointer
=no
11518 enable_frame_pointer
=yes
11525 # Windows32 Registry support for specifying GCC installation paths.
11526 # Check whether --enable-win32-registry was given.
11527 if test "${enable_win32_registry+set}" = set; then :
11528 enableval
=$enable_win32_registry;
11533 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11534 if test "x$enable_win32_registry" != xno
; then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11536 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11537 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11538 $as_echo_n "(cached) " >&6
11540 ac_func_search_save_LIBS
=$LIBS
11541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11544 /* Override any GCC internal prototype to avoid an error.
11545 Use char because int might match the return type of a GCC
11546 builtin and then its argument prototype would still apply. */
11550 char RegOpenKeyExA ();
11554 return RegOpenKeyExA ();
11559 for ac_lib
in '' advapi32
; do
11560 if test -z "$ac_lib"; then
11561 ac_res
="none required"
11564 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11566 if ac_fn_c_try_link
"$LINENO"; then :
11567 ac_cv_search_RegOpenKeyExA
=$ac_res
11569 rm -f core conftest.err conftest.
$ac_objext \
11571 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11575 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11578 ac_cv_search_RegOpenKeyExA
=no
11580 rm conftest.
$ac_ext
11581 LIBS
=$ac_func_search_save_LIBS
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11584 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11585 ac_res
=$ac_cv_search_RegOpenKeyExA
11586 if test "$ac_res" != no
; then :
11587 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11590 enable_win32_registry
=no
11595 if test "x$enable_win32_registry" != xno
; then
11597 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11600 if test "x$enable_win32_registry" != xyes \
11601 && test "x$enable_win32_registry" != x
; then
11603 cat >>confdefs.h
<<_ACEOF
11604 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11612 # Get an absolute path to the GCC top-level source directory
11613 holddir
=`${PWDCMD-pwd}`
11615 topdir
=`${PWDCMD-pwd}`
11618 # Conditionalize the makefile for this host machine.
11620 for f
in ${host_xmake_file}
11622 if test -f ${srcdir}/config
/$f
11624 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11628 # Conditionalize the makefile for this target machine.
11630 for f
in ${tmake_file}
11632 if test -f ${srcdir}/config
/$f
11634 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11637 tmake_file
="${tmake_file_}"
11639 out_object_file
=`basename $out_file .c`.o
11640 common_out_object_file
=`basename $common_out_file .c`.o
11642 tm_file_list
="options.h"
11643 tm_include_list
="options.h insn-constants.h"
11644 for f
in $tm_file; do
11647 f
=`echo $f | sed 's/^..//'`
11648 tm_file_list
="${tm_file_list} $f"
11649 tm_include_list
="${tm_include_list} $f"
11652 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11653 tm_include_list
="${tm_include_list} $f"
11656 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11657 tm_include_list
="${tm_include_list} config/$f"
11664 for f
in $tm_p_file; do
11667 tm_p_file_list
="${tm_p_file_list} $f"
11668 tm_p_include_list
="${tm_p_include_list} $f"
11671 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11672 tm_p_include_list
="${tm_p_include_list} config/$f"
11678 for f
in $xm_file; do
11681 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11682 xm_include_list
="${xm_include_list} $f"
11685 xm_file_list
="${xm_file_list} $f"
11686 xm_include_list
="${xm_include_list} $f"
11689 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11690 xm_include_list
="${xm_include_list} config/$f"
11696 host_xm_include_list
=
11697 for f
in $host_xm_file; do
11700 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11701 host_xm_include_list
="${host_xm_include_list} $f"
11704 host_xm_file_list
="${host_xm_file_list} $f"
11705 host_xm_include_list
="${host_xm_include_list} $f"
11708 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11709 host_xm_include_list
="${host_xm_include_list} config/$f"
11714 build_xm_file_list
=
11715 for f
in $build_xm_file; do
11718 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11719 build_xm_include_list
="${build_xm_include_list} $f"
11721 auto-build.h | auto-host.h
)
11722 build_xm_file_list
="${build_xm_file_list} $f"
11723 build_xm_include_list
="${build_xm_include_list} $f"
11726 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11727 build_xm_include_list
="${build_xm_include_list} config/$f"
11732 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11733 # cross-compiler which does not use the native headers and libraries.
11734 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11737 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11739 if test "x$with_build_sysroot" != x
; then
11740 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11742 # This value is used, even on a native system, because
11743 # CROSS_SYSTEM_HEADER_DIR is just
11744 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11745 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11748 if test x
$host != x
$target
11750 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11752 SYSTEM_HEADER_DIR
=$build_system_header_dir
11753 case "$host","$target" in
11754 # Darwin crosses can use the host system's libraries and headers,
11755 # because of the fat library support. Of course, it must be the
11756 # same version of Darwin on both sides. Allow the user to
11757 # just say --target=foo-darwin without a version number to mean
11758 # "the version on this system".
11759 *-*-darwin*,*-*-darwin*)
11760 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11761 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11762 if test $hostos = $targetos -o $targetos = darwin
; then
11764 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11769 i?
86-*-*,x86_64-
*-* \
11770 | powerpc
*-*-*,powerpc64
*-*-*)
11771 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11776 if test "x$with_headers" = x
; then
11783 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11784 SYSTEM_HEADER_DIR
=$build_system_header_dir
11787 # If this is a cross-compiler that does not
11788 # have its own set of headers then define
11791 # If this is using newlib, without having the headers available now,
11792 # then define inhibit_libc in LIBGCC2_CFLAGS.
11793 # This prevents libgcc2 from containing any code which requires libc
11795 : ${inhibit_libc=false}
11796 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11797 test x
$with_newlib = xyes
; } &&
11798 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11803 # When building gcc with a cross-compiler, we need to adjust things so
11804 # that the generator programs are still built with the native compiler.
11805 # Also, we cannot run fixincludes.
11807 # These are the normal (build=host) settings:
11808 CC_FOR_BUILD
='$(CC)'
11809 CXX_FOR_BUILD
='$(CXX)'
11810 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11811 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11812 BUILD_LDFLAGS
='$(LDFLAGS)'
11813 STMP_FIXINC
=stmp-fixinc
11815 # And these apply if build != host, or we are generating coverage data
11816 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11818 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11819 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11820 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11823 # Expand extra_headers to include complete path.
11824 # This substitutes for lots of t-* files.
11825 extra_headers_list
=
11826 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11827 for file in ${extra_headers} ; do
11828 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11831 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11832 if test x
"$use_gcc_tgmath" = xyes
11833 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11836 # Define collect2 in Makefile.
11837 case $host_can_use_collect2 in
11839 *) collect2
='collect2$(exeext)' ;;
11843 # Add a definition of USE_COLLECT2 if system wants one.
11844 case $use_collect2 in
11845 no
) use_collect2
= ;;
11848 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11849 xm_defines
="${xm_defines} USE_COLLECT2"
11850 case $host_can_use_collect2 in
11852 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11859 cat >>confdefs.h
<<_ACEOF
11860 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11864 # ---------------------------
11865 # Assembler & linker features
11866 # ---------------------------
11868 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11869 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11870 # However when ld-new is first executed from the build tree, libtool will
11871 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11872 # to the build tree. While doing this we need to use the previous-stage
11873 # linker, or we have an infinite loop. The presence of a shell script as
11874 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11875 # the gcc/collect-ld script. So we need to know how libtool works, or
11876 # exec-tool will fail.
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11882 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11887 macro_version
='2.2.7a'
11888 macro_revision
='1.3134'
11902 ltmain
="$ac_aux_dir/ltmain.sh"
11904 # Backslashify metacharacters that are still active within
11905 # double-quoted strings.
11906 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11908 # Same as above, but do not quote variable references.
11909 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11911 # Sed substitution to delay expansion of an escaped shell variable in a
11912 # double_quote_subst'ed string.
11913 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11915 # Sed substitution to delay expansion of an escaped single quote.
11916 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11918 # Sed substitution to avoid accidental globbing in evaled expressions
11919 no_glob_subst
='s/\*/\\\*/g'
11921 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11922 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11923 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11926 $as_echo_n "checking how to print strings... " >&6; }
11927 # Test print first, because it will be a builtin if present.
11928 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11929 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11931 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11934 # Use this function as a fallback that always works.
11935 func_fallback_echo ()
11937 eval 'cat <<_LTECHO_EOF
11941 ECHO='func_fallback_echo
'
11944 # func_echo_all arg...
11945 # Invoke $ECHO with all args, space-separated.
11952 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11953 $as_echo "printf" >&6; } ;;
11954 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11955 $as_echo "print -r" >&6; } ;;
11956 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11957 $as_echo "cat" >&6; } ;;
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11974 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11975 if test "${ac_cv_path_SED+set}" = set; then :
11976 $as_echo_n "(cached) " >&6
11978 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11979 for ac_i in 1 2 3 4 5 6 7; do
11980 ac_script="$ac_script$as_nl$ac_script"
11982 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11983 { ac_script=; unset ac_script;}
11984 if test -z "$SED"; then
11985 ac_path_SED_found=false
11986 # Loop through the user's path and
test for each of PROGNAME-LIST
11987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11988 for as_dir
in $PATH
11991 test -z "$as_dir" && as_dir
=.
11992 for ac_prog
in sed gsed
; do
11993 for ac_exec_ext
in '' $ac_executable_extensions; do
11994 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11995 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11996 # Check for GNU ac_path_SED and select it if it is found.
11997 # Check for GNU $ac_path_SED
11998 case `"$ac_path_SED" --version 2>&1` in
12000 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12003 $as_echo_n 0123456789 >"conftest.in"
12006 cat "conftest.in" "conftest.in" >"conftest.tmp"
12007 mv "conftest.tmp" "conftest.in"
12008 cp "conftest.in" "conftest.nl"
12009 $as_echo '' >> "conftest.nl"
12010 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12011 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12012 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12013 if test $ac_count -gt ${ac_path_SED_max-0}; then
12014 # Best one so far, save it but keep looking for a better one
12015 ac_cv_path_SED
="$ac_path_SED"
12016 ac_path_SED_max
=$ac_count
12018 # 10*(2^10) chars as input seems more than enough
12019 test $ac_count -gt 10 && break
12021 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12024 $ac_path_SED_found && break 3
12029 if test -z "$ac_cv_path_SED"; then
12030 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12033 ac_cv_path_SED
=$SED
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12038 $as_echo "$ac_cv_path_SED" >&6; }
12039 SED
="$ac_cv_path_SED"
12042 test -z "$SED" && SED
=sed
12043 Xsed
="$SED -e 1s/^X//"
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12056 $as_echo_n "checking for fgrep... " >&6; }
12057 if test "${ac_cv_path_FGREP+set}" = set; then :
12058 $as_echo_n "(cached) " >&6
12060 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12061 then ac_cv_path_FGREP
="$GREP -F"
12063 if test -z "$FGREP"; then
12064 ac_path_FGREP_found
=false
12065 # Loop through the user's path and test for each of PROGNAME-LIST
12066 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12067 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12070 test -z "$as_dir" && as_dir
=.
12071 for ac_prog
in fgrep
; do
12072 for ac_exec_ext
in '' $ac_executable_extensions; do
12073 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12074 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12075 # Check for GNU ac_path_FGREP and select it if it is found.
12076 # Check for GNU $ac_path_FGREP
12077 case `"$ac_path_FGREP" --version 2>&1` in
12079 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12082 $as_echo_n 0123456789 >"conftest.in"
12085 cat "conftest.in" "conftest.in" >"conftest.tmp"
12086 mv "conftest.tmp" "conftest.in"
12087 cp "conftest.in" "conftest.nl"
12088 $as_echo 'FGREP' >> "conftest.nl"
12089 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12090 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12091 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12092 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12093 # Best one so far, save it but keep looking for a better one
12094 ac_cv_path_FGREP
="$ac_path_FGREP"
12095 ac_path_FGREP_max
=$ac_count
12097 # 10*(2^10) chars as input seems more than enough
12098 test $ac_count -gt 10 && break
12100 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12103 $ac_path_FGREP_found && break 3
12108 if test -z "$ac_cv_path_FGREP"; then
12109 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12112 ac_cv_path_FGREP
=$FGREP
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12118 $as_echo "$ac_cv_path_FGREP" >&6; }
12119 FGREP
="$ac_cv_path_FGREP"
12122 test -z "$GREP" && GREP
=grep
12142 # Check whether --with-gnu-ld was given.
12143 if test "${with_gnu_ld+set}" = set; then :
12144 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12150 if test "$GCC" = yes; then
12151 # Check if gcc -print-prog-name=ld gives a path.
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12153 $as_echo_n "checking for ld used by $CC... " >&6; }
12156 # gcc leaves a trailing carriage return which upsets mingw
12157 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12159 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12162 # Accept absolute paths.
12164 re_direlt
='/[^/][^/]*/\.\./'
12165 # Canonicalize the pathname of ld
12166 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12167 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12168 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12170 test -z "$LD" && LD
="$ac_prog"
12173 # If it fails, then pretend we aren't using GCC.
12177 # If it is relative, then search for the first ld in PATH.
12178 with_gnu_ld
=unknown
12181 elif test "$with_gnu_ld" = yes; then
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12183 $as_echo_n "checking for GNU ld... " >&6; }
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12186 $as_echo_n "checking for non-GNU ld... " >&6; }
12188 if test "${lt_cv_path_LD+set}" = set; then :
12189 $as_echo_n "(cached) " >&6
12191 if test -z "$LD"; then
12192 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12193 for ac_dir
in $PATH; do
12195 test -z "$ac_dir" && ac_dir
=.
12196 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12197 lt_cv_path_LD
="$ac_dir/$ac_prog"
12198 # Check to see if the program is GNU ld. I'd rather use --version,
12199 # but apparently some variants of GNU ld only accept -v.
12200 # Break only if it was the GNU/non-GNU ld that we prefer.
12201 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12202 *GNU
* |
*'with BFD'*)
12203 test "$with_gnu_ld" != no
&& break
12206 test "$with_gnu_ld" != yes && break
12213 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12217 LD
="$lt_cv_path_LD"
12218 if test -n "$LD"; then
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12220 $as_echo "$LD" >&6; }
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223 $as_echo "no" >&6; }
12225 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12227 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12228 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12229 $as_echo_n "(cached) " >&6
12231 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12232 case `$LD -v 2>&1 </dev/null` in
12233 *GNU
* |
*'with BFD'*)
12234 lt_cv_prog_gnu_ld
=yes
12237 lt_cv_prog_gnu_ld
=no
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12242 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12243 with_gnu_ld
=$lt_cv_prog_gnu_ld
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12254 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12255 if test "${lt_cv_path_NM+set}" = set; then :
12256 $as_echo_n "(cached) " >&6
12258 if test -n "$NM"; then
12259 # Let the user override the test.
12260 lt_cv_path_NM
="$NM"
12262 lt_nm_to_check
="${ac_tool_prefix}nm"
12263 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12264 lt_nm_to_check
="$lt_nm_to_check nm"
12266 for lt_tmp_nm
in $lt_nm_to_check; do
12267 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12268 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12270 test -z "$ac_dir" && ac_dir
=.
12271 tmp_nm
="$ac_dir/$lt_tmp_nm"
12272 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12273 # Check to see if the nm accepts a BSD-compat flag.
12274 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12275 # nm: unknown option "B" ignored
12276 # Tru64's nm complains that /dev/null is an invalid object file
12277 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12278 */dev
/null
* |
*'Invalid file or object type'*)
12279 lt_cv_path_NM
="$tmp_nm -B"
12283 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12285 lt_cv_path_NM
="$tmp_nm -p"
12289 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12290 continue # so that we can try to find one that supports BSD flags
12299 : ${lt_cv_path_NM=no}
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12303 $as_echo "$lt_cv_path_NM" >&6; }
12304 if test "$lt_cv_path_NM" != "no"; then
12305 NM
="$lt_cv_path_NM"
12307 # Didn't find any BSD compatible name lister, look for dumpbin.
12308 if test -n "$DUMPBIN"; then :
12309 # Let the user override the test.
12311 if test -n "$ac_tool_prefix"; then
12312 for ac_prog
in dumpbin
"link -dump"
12314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12315 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12317 $as_echo_n "checking for $ac_word... " >&6; }
12318 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12319 $as_echo_n "(cached) " >&6
12321 if test -n "$DUMPBIN"; then
12322 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12325 for as_dir
in $PATH
12328 test -z "$as_dir" && as_dir
=.
12329 for ac_exec_ext
in '' $ac_executable_extensions; do
12330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12331 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12341 DUMPBIN
=$ac_cv_prog_DUMPBIN
12342 if test -n "$DUMPBIN"; then
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12344 $as_echo "$DUMPBIN" >&6; }
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347 $as_echo "no" >&6; }
12351 test -n "$DUMPBIN" && break
12354 if test -z "$DUMPBIN"; then
12355 ac_ct_DUMPBIN
=$DUMPBIN
12356 for ac_prog
in dumpbin
"link -dump"
12358 # Extract the first word of "$ac_prog", so it can be a program name with args.
12359 set dummy
$ac_prog; ac_word
=$2
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12361 $as_echo_n "checking for $ac_word... " >&6; }
12362 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12363 $as_echo_n "(cached) " >&6
12365 if test -n "$ac_ct_DUMPBIN"; then
12366 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12369 for as_dir
in $PATH
12372 test -z "$as_dir" && as_dir
=.
12373 for ac_exec_ext
in '' $ac_executable_extensions; do
12374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12375 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12385 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12386 if test -n "$ac_ct_DUMPBIN"; then
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12388 $as_echo "$ac_ct_DUMPBIN" >&6; }
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 $as_echo "no" >&6; }
12395 test -n "$ac_ct_DUMPBIN" && break
12398 if test "x$ac_ct_DUMPBIN" = x
; then
12401 case $cross_compiling:$ac_tool_warned in
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12405 ac_tool_warned
=yes ;;
12407 DUMPBIN
=$ac_ct_DUMPBIN
12411 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12413 DUMPBIN
="$DUMPBIN -symbols"
12421 if test "$DUMPBIN" != ":"; then
12425 test -z "$NM" && NM
=nm
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12433 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12434 if test "${lt_cv_nm_interface+set}" = set; then :
12435 $as_echo_n "(cached) " >&6
12437 lt_cv_nm_interface
="BSD nm"
12438 echo "int some_variable = 0;" > conftest.
$ac_ext
12439 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12440 (eval "$ac_compile" 2>conftest.err
)
12441 cat conftest.err
>&5
12442 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12443 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12444 cat conftest.err
>&5
12445 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12446 cat conftest.out
>&5
12447 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12448 lt_cv_nm_interface
="MS dumpbin"
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12453 $as_echo "$lt_cv_nm_interface" >&6; }
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12456 $as_echo_n "checking whether ln -s works... " >&6; }
12458 if test "$LN_S" = "ln -s"; then
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12460 $as_echo "yes" >&6; }
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12463 $as_echo "no, using $LN_S" >&6; }
12466 # find the maximum length of command line arguments
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12468 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12469 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12470 $as_echo_n "(cached) " >&6
12477 # On DJGPP, this test can blow up pretty badly due to problems in libc
12478 # (any single argument exceeding 2000 bytes causes a buffer overrun
12479 # during glob expansion). Even if it were fixed, the result of this
12480 # check would be larger than it should be.
12481 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12485 # Under GNU Hurd, this test is not required because there is
12486 # no limit to the length of command line arguments.
12487 # Libtool will interpret -1 as no limit whatsoever
12488 lt_cv_sys_max_cmd_len
=-1;
12491 cygwin
* | mingw
* | cegcc
*)
12492 # On Win9x/ME, this test blows up -- it succeeds, but takes
12493 # about 5 minutes as the teststring grows exponentially.
12494 # Worse, since 9x/ME are not pre-emptively multitasking,
12495 # you end up with a "frozen" computer, even though with patience
12496 # the test eventually succeeds (with a max line length of 256k).
12497 # Instead, let's just punt: use the minimum linelength reported by
12498 # all of the supported platforms: 8192 (on NT/2K/XP).
12499 lt_cv_sys_max_cmd_len
=8192;
12503 # On MiNT this can take a long time and run out of memory.
12504 lt_cv_sys_max_cmd_len
=8192;
12508 # On AmigaOS with pdksh, this test takes hours, literally.
12509 # So we just punt and use a minimum line length of 8192.
12510 lt_cv_sys_max_cmd_len
=8192;
12513 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12514 # This has been around since 386BSD, at least. Likely further.
12515 if test -x /sbin
/sysctl
; then
12516 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12517 elif test -x /usr
/sbin
/sysctl
; then
12518 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12520 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12522 # And add a safety zone
12523 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12524 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12528 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12529 lt_cv_sys_max_cmd_len
=196608
12533 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12534 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12535 # nice to cause kernel panics so lets avoid the loop below.
12536 # First set a reasonable default.
12537 lt_cv_sys_max_cmd_len
=16384
12539 if test -x /sbin
/sysconfig
; then
12540 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12541 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12546 lt_cv_sys_max_cmd_len
=102400
12548 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12549 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12550 if test -n "$kargmax"; then
12551 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12553 lt_cv_sys_max_cmd_len
=32768
12557 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12558 if test -n "$lt_cv_sys_max_cmd_len"; then
12559 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12560 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12562 # Make teststring a little bigger before we do anything with it.
12563 # a 1K string should be a reasonable start.
12564 for i
in 1 2 3 4 5 6 7 8 ; do
12565 teststring
=$teststring$teststring
12567 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12568 # If test is not a shell built-in, we'll probably end up computing a
12569 # maximum length that is only half of the actual maximum length, but
12571 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12572 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12573 test $i != 17 # 1/2 MB should be enough
12576 teststring
=$teststring$teststring
12578 # Only check the string length outside the loop.
12579 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12581 # Add a significant safety factor because C++ compilers can tack on
12582 # massive amounts of additional arguments before passing them to the
12583 # linker. It appears as though 1/2 is a usable value.
12584 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12591 if test -n $lt_cv_sys_max_cmd_len ; then
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12593 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12596 $as_echo "none" >&6; }
12598 max_cmd_len
=$lt_cv_sys_max_cmd_len
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12610 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12611 # Try some XSI features
12613 ( _lt_dummy
="a/b/c"
12614 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12616 && eval 'test $(( 1 + 1 )) -eq 2 \
12617 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12620 $as_echo "$xsi_shell" >&6; }
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12624 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12626 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12628 && lt_shell_append=yes
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12630 $as_echo "$lt_shell_append" >&6; }
12633 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12643 # test EBCDIC or ASCII
12644 case `echo X|tr X '\101'` in
12645 A) # ASCII based system
12646 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12647 lt_SP2NL='tr \040 \012'
12648 lt_NL2SP='tr \015\012 \040\040'
12650 *) # EBCDIC based system
12651 lt_SP2NL='tr \100 \n'
12652 lt_NL2SP='tr \r\n \100\100'
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12665 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12666 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12667 $as_echo_n "(cached
) " >&6
12669 lt_cv_ld_reload_flag='-r'
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12672 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12673 reload_flag=$lt_cv_ld_reload_flag
12674 case $reload_flag in
12676 *) reload_flag=" $reload_flag" ;;
12678 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12681 if test "$GCC" = yes; then
12682 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12684 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12697 if test -n "$ac_tool_prefix"; then
12698 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12699 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12701 $as_echo_n "checking
for $ac_word...
" >&6; }
12702 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12703 $as_echo_n "(cached
) " >&6
12705 if test -n "$OBJDUMP"; then
12706 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12709 for as_dir in $PATH
12712 test -z "$as_dir" && as_dir=.
12713 for ac_exec_ext in '' $ac_executable_extensions; do
12714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12715 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12716 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12725 OBJDUMP=$ac_cv_prog_OBJDUMP
12726 if test -n "$OBJDUMP"; then
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12728 $as_echo "$OBJDUMP" >&6; }
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12731 $as_echo "no
" >&6; }
12736 if test -z "$ac_cv_prog_OBJDUMP"; then
12737 ac_ct_OBJDUMP=$OBJDUMP
12738 # Extract the first word of "objdump
", so it can be a program name with args.
12739 set dummy objdump; ac_word=$2
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12741 $as_echo_n "checking
for $ac_word...
" >&6; }
12742 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12743 $as_echo_n "(cached
) " >&6
12745 if test -n "$ac_ct_OBJDUMP"; then
12746 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12749 for as_dir in $PATH
12752 test -z "$as_dir" && as_dir=.
12753 for ac_exec_ext in '' $ac_executable_extensions; do
12754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12755 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12756 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12765 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12766 if test -n "$ac_ct_OBJDUMP"; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12768 $as_echo "$ac_ct_OBJDUMP" >&6; }
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12771 $as_echo "no
" >&6; }
12774 if test "x
$ac_ct_OBJDUMP" = x; then
12777 case $cross_compiling:$ac_tool_warned in
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12780 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12781 ac_tool_warned=yes ;;
12783 OBJDUMP=$ac_ct_OBJDUMP
12786 OBJDUMP="$ac_cv_prog_OBJDUMP"
12789 test -z "$OBJDUMP" && OBJDUMP=objdump
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12800 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12801 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12802 $as_echo_n "(cached
) " >&6
12804 lt_cv_file_magic_cmd='$MAGIC_CMD'
12805 lt_cv_file_magic_test_file=
12806 lt_cv_deplibs_check_method='unknown'
12807 # Need to set the preceding variable on all platforms that support
12808 # interlibrary dependencies.
12809 # 'none' -- dependencies not supported.
12810 # `unknown' -- same as none, but documents that we really don't know.
12811 # 'pass_all' -- all dependencies passed with no checks.
12812 # 'test_compile' -- check by making test program.
12813 # 'file_magic [[regex]]' -- check by looking for files in library path
12814 # which responds to the $file_magic_cmd with a given extended regex.
12815 # If you have `file' or equivalent on your system and you're not sure
12816 # whether `pass_all' will *always* work, you probably want this one.
12820 lt_cv_deplibs_check_method=pass_all
12824 lt_cv_deplibs_check_method=pass_all
12828 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12829 lt_cv_file_magic_cmd='/usr/bin/file -L'
12830 lt_cv_file_magic_test_file=/shlib/libc.so
12834 # func_win32_libid is a shell function defined in ltmain.sh
12835 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12836 lt_cv_file_magic_cmd='func_win32_libid'
12840 # Base MSYS/MinGW do not provide the 'file' command needed by
12841 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12842 # unless we find 'file', for example because we are cross-compiling.
12843 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12844 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12845 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12846 lt_cv_file_magic_cmd='func_win32_libid'
12848 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12849 lt_cv_file_magic_cmd='$OBJDUMP -f'
12854 # use the weaker test based on 'objdump'. See mingw*.
12855 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12856 lt_cv_file_magic_cmd='$OBJDUMP -f'
12859 darwin* | rhapsody*)
12860 lt_cv_deplibs_check_method=pass_all
12863 freebsd* | dragonfly*)
12864 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12867 # Not sure whether the presence of OpenBSD here was a mistake.
12868 # Let's accept both of them until this is cleared up.
12869 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12870 lt_cv_file_magic_cmd=/usr/bin/file
12871 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12875 lt_cv_deplibs_check_method=pass_all
12880 lt_cv_deplibs_check_method=pass_all
12884 lt_cv_deplibs_check_method=pass_all
12887 hpux10.20* | hpux11*)
12888 lt_cv_file_magic_cmd=/usr/bin/file
12891 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12892 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12895 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]'
12896 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12899 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12900 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12906 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12907 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12910 irix5* | irix6* | nonstopux*)
12912 *-32|*"-32 ") libmagic=32-bit;;
12913 *-n32|*"-n32 ") libmagic=N32;;
12914 *-64|*"-64 ") libmagic=64-bit;;
12915 *) libmagic=never-match;;
12917 lt_cv_deplibs_check_method=pass_all
12920 # This must be Linux ELF.
12921 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12922 lt_cv_deplibs_check_method=pass_all
12926 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12935 lt_cv_file_magic_cmd=/usr/bin/file
12936 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12940 lt_cv_deplibs_check_method=pass_all
12944 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12945 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12951 osf3* | osf4* | osf5*)
12952 lt_cv_deplibs_check_method=pass_all
12956 lt_cv_deplibs_check_method=pass_all
12960 lt_cv_deplibs_check_method=pass_all
12963 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12964 lt_cv_deplibs_check_method=pass_all
12968 case $host_vendor in
12970 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]'
12971 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12974 lt_cv_deplibs_check_method=pass_all
12977 lt_cv_file_magic_cmd='/bin/file'
12978 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12981 lt_cv_file_magic_cmd='/bin/file'
12982 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12983 lt_cv_file_magic_test_file=/lib/libc.so
12986 lt_cv_deplibs_check_method=pass_all
12989 lt_cv_deplibs_check_method=pass_all
12995 lt_cv_deplibs_check_method=pass_all
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13001 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13002 file_magic_cmd=$lt_cv_file_magic_cmd
13003 deplibs_check_method=$lt_cv_deplibs_check_method
13004 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13017 if test -n "$ac_tool_prefix"; then
13018 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13019 set dummy ${ac_tool_prefix}ar; ac_word=$2
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13021 $as_echo_n "checking
for $ac_word...
" >&6; }
13022 if test "${ac_cv_prog_AR+set}" = set; then :
13023 $as_echo_n "(cached
) " >&6
13025 if test -n "$AR"; then
13026 ac_cv_prog_AR="$AR" # Let the user override the test.
13028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13029 for as_dir in $PATH
13032 test -z "$as_dir" && as_dir=.
13033 for ac_exec_ext in '' $ac_executable_extensions; do
13034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13035 ac_cv_prog_AR="${ac_tool_prefix}ar"
13036 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13046 if test -n "$AR"; then
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13048 $as_echo "$AR" >&6; }
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13051 $as_echo "no
" >&6; }
13056 if test -z "$ac_cv_prog_AR"; then
13058 # Extract the first word of "ar", so it can be a program name with args.
13059 set dummy ar; ac_word=$2
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13061 $as_echo_n "checking
for $ac_word...
" >&6; }
13062 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13063 $as_echo_n "(cached
) " >&6
13065 if test -n "$ac_ct_AR"; then
13066 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13069 for as_dir in $PATH
13072 test -z "$as_dir" && as_dir=.
13073 for ac_exec_ext in '' $ac_executable_extensions; do
13074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13075 ac_cv_prog_ac_ct_AR="ar"
13076 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13085 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13086 if test -n "$ac_ct_AR"; then
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13088 $as_echo "$ac_ct_AR" >&6; }
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13091 $as_echo "no
" >&6; }
13094 if test "x
$ac_ct_AR" = x; then
13097 case $cross_compiling:$ac_tool_warned in
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13100 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13101 ac_tool_warned=yes ;;
13106 AR="$ac_cv_prog_AR"
13109 test -z "$AR" && AR=ar
13110 test -z "$AR_FLAGS" && AR_FLAGS=cru
13122 if test -n "$ac_tool_prefix"; then
13123 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13124 set dummy ${ac_tool_prefix}strip; ac_word=$2
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13126 $as_echo_n "checking
for $ac_word...
" >&6; }
13127 if test "${ac_cv_prog_STRIP+set}" = set; then :
13128 $as_echo_n "(cached
) " >&6
13130 if test -n "$STRIP"; then
13131 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13134 for as_dir in $PATH
13137 test -z "$as_dir" && as_dir=.
13138 for ac_exec_ext in '' $ac_executable_extensions; do
13139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13140 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13141 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13150 STRIP=$ac_cv_prog_STRIP
13151 if test -n "$STRIP"; then
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13153 $as_echo "$STRIP" >&6; }
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13156 $as_echo "no
" >&6; }
13161 if test -z "$ac_cv_prog_STRIP"; then
13163 # Extract the first word of "strip
", so it can be a program name with args.
13164 set dummy strip; ac_word=$2
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13166 $as_echo_n "checking
for $ac_word...
" >&6; }
13167 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13168 $as_echo_n "(cached
) " >&6
13170 if test -n "$ac_ct_STRIP"; then
13171 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13174 for as_dir in $PATH
13177 test -z "$as_dir" && as_dir=.
13178 for ac_exec_ext in '' $ac_executable_extensions; do
13179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13180 ac_cv_prog_ac_ct_STRIP="strip
"
13181 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13190 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13191 if test -n "$ac_ct_STRIP"; then
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13193 $as_echo "$ac_ct_STRIP" >&6; }
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13196 $as_echo "no
" >&6; }
13199 if test "x
$ac_ct_STRIP" = x; then
13202 case $cross_compiling:$ac_tool_warned in
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13205 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13206 ac_tool_warned=yes ;;
13211 STRIP="$ac_cv_prog_STRIP"
13214 test -z "$STRIP" && STRIP=:
13221 if test -n "$ac_tool_prefix"; then
13222 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13223 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13225 $as_echo_n "checking
for $ac_word...
" >&6; }
13226 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13227 $as_echo_n "(cached
) " >&6
13229 if test -n "$RANLIB"; then
13230 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
13238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13239 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13240 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13249 RANLIB=$ac_cv_prog_RANLIB
13250 if test -n "$RANLIB"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13252 $as_echo "$RANLIB" >&6; }
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13255 $as_echo "no
" >&6; }
13260 if test -z "$ac_cv_prog_RANLIB"; then
13261 ac_ct_RANLIB=$RANLIB
13262 # Extract the first word of "ranlib
", so it can be a program name with args.
13263 set dummy ranlib; ac_word=$2
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13265 $as_echo_n "checking
for $ac_word...
" >&6; }
13266 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13267 $as_echo_n "(cached
) " >&6
13269 if test -n "$ac_ct_RANLIB"; then
13270 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273 for as_dir in $PATH
13276 test -z "$as_dir" && as_dir=.
13277 for ac_exec_ext in '' $ac_executable_extensions; do
13278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13279 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13280 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13289 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13290 if test -n "$ac_ct_RANLIB"; then
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13292 $as_echo "$ac_ct_RANLIB" >&6; }
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13295 $as_echo "no
" >&6; }
13298 if test "x
$ac_ct_RANLIB" = x; then
13301 case $cross_compiling:$ac_tool_warned in
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13304 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13305 ac_tool_warned=yes ;;
13307 RANLIB=$ac_ct_RANLIB
13310 RANLIB="$ac_cv_prog_RANLIB"
13313 test -z "$RANLIB" && RANLIB=:
13320 # Determine commands to create old-style static archives.
13321 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13322 old_postinstall_cmds='chmod 644 $oldlib'
13323 old_postuninstall_cmds=
13325 if test -n "$RANLIB"; then
13328 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13331 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13334 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13339 lock_old_archive_extraction=yes ;;
13341 lock_old_archive_extraction=no ;;
13382 # If no C compiler was specified, use CC.
13385 # If no C compiler flags were specified, use CFLAGS.
13386 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13388 # Allow CC to be a program name with arguments.
13392 # Check for command to grab the raw symbol name followed by C symbol from nm.
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13394 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13395 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13396 $as_echo_n "(cached
) " >&6
13399 # These are sane defaults that work on at least a few old systems.
13400 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13402 # Character class describing NM global symbol codes.
13403 symcode='[BCDEGRST]'
13405 # Regexp to match symbols that can be accessed directly from C.
13406 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13408 # Define system-specific variables.
13413 cygwin* | mingw* | pw32* | cegcc*)
13414 symcode='[ABCDGISTW]'
13417 if test "$host_cpu" = ia64; then
13418 symcode='[ABCDEGRST]'
13421 irix* | nonstopux*)
13422 symcode='[BCDEGRST]'
13425 symcode='[BCDEGQRST]'
13436 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13444 # If we're using GNU nm, then use its standard symbol codes.
13445 case `$NM -V 2>&1` in
13446 *GNU* | *'with BFD'*)
13447 symcode='[ABCDGIRSTW]' ;;
13450 # Transform an extracted symbol line into a proper C declaration.
13451 # Some systems (esp. on ia64) link data and code symbols differently,
13452 # so use this general approach.
13453 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13455 # Transform an extracted symbol line into symbol name and symbol address
13456 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13457 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'"
13459 # Handle CRLF in mingw tool chain
13463 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13467 # Try without a prefix underscore, then with it.
13468 for ac_symprfx in "" "_
"; do
13470 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13471 symxfrm="\\1 $ac_symprfx\\2 \\2"
13473 # Write the raw and C identifiers.
13474 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13475 # Fake it for dumpbin and say T for any non-static function
13476 # and D for any global variable.
13477 # Also find C++ and __fastcall symbols from MSVC++,
13478 # which start with @ or ?.
13479 lt_cv_sys_global_symbol_pipe="$AWK '"\
13480 " {last_section=section; section=\$ 3};"\
13481 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13482 " \$ 0!~/External *\|/{next};"\
13483 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13484 " {if(hide[section]) next};"\
13485 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13486 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13487 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13488 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13489 " ' prfx
=^
$ac_symprfx"
13491 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13494 # Check to see that the pipe works correctly.
13498 cat > conftest.$ac_ext <<_LT_EOF
13503 void nm_test_func(void);
13504 void nm_test_func(void){}
13508 int main(){nm_test_var='a';nm_test_func();return(0);}
13511 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13512 (eval $ac_compile) 2>&5
13514 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13515 test $ac_status = 0; }; then
13516 # Now try to grab the symbols.
13518 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13519 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13521 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13522 test $ac_status = 0; } && test -s "$nlist"; then
13523 # Try sorting and uniquifying the output.
13524 if sort "$nlist" | uniq > "$nlist"T; then
13525 mv -f "$nlist"T "$nlist"
13530 # Make sure that we snagged all the symbols we need.
13531 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13532 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13533 cat <<_LT_EOF > conftest.$ac_ext
13539 # Now generate the symbol file.
13540 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13542 cat <<_LT_EOF >> conftest.$ac_ext
13544 /* The mapping between symbol names and symbols. */
13549 lt__PROGRAM__LTX_preloaded_symbols[] =
13551 { "@PROGRAM@
", (void *) 0 },
13553 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13554 cat <<\_LT_EOF >> conftest.$ac_ext
13558 /* This works around a problem in FreeBSD linker */
13559 #ifdef FREEBSD_WORKAROUND
13560 static const void *lt_preloaded_setup() {
13561 return lt__PROGRAM__LTX_preloaded_symbols;
13569 # Now try linking the two files.
13570 mv conftest.$ac_objext conftstm.$ac_objext
13571 lt_save_LIBS="$LIBS"
13572 lt_save_CFLAGS="$CFLAGS"
13573 LIBS="conftstm.
$ac_objext"
13574 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13575 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13576 (eval $ac_link) 2>&5
13578 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13579 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13582 LIBS="$lt_save_LIBS"
13583 CFLAGS="$lt_save_CFLAGS"
13585 echo "cannot
find nm_test_func
in $nlist" >&5
13588 echo "cannot
find nm_test_var
in $nlist" >&5
13591 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13594 echo "$progname: failed program was
:" >&5
13595 cat conftest.$ac_ext >&5
13597 rm -rf conftest* conftst*
13599 # Do not use the global_symbol_pipe unless it works.
13600 if test "$pipe_works" = yes; then
13603 lt_cv_sys_global_symbol_pipe=
13609 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13610 lt_cv_sys_global_symbol_to_cdecl=
13612 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13614 $as_echo "failed
" >&6; }
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13617 $as_echo "ok
" >&6; }
13641 # Check whether --enable-libtool-lock was given.
13642 if test "${enable_libtool_lock+set}" = set; then :
13643 enableval=$enable_libtool_lock;
13646 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13648 # Some flags need to be propagated to the compiler or linker for good
13652 # Find out which ABI we are using.
13653 echo 'int i;' > conftest.$ac_ext
13654 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13655 (eval $ac_compile) 2>&5
13657 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13658 test $ac_status = 0; }; then
13659 case `/usr/bin/file conftest.$ac_objext` in
13661 HPUX_IA64_MODE="32"
13664 HPUX_IA64_MODE="64"
13671 # Find out which ABI we are using.
13672 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13673 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13674 (eval $ac_compile) 2>&5
13676 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13677 test $ac_status = 0; }; then
13678 if test "$lt_cv_prog_gnu_ld" = yes; then
13679 case `/usr/bin/file conftest.$ac_objext` in
13681 LD="${LD-ld} -melf32bsmip"
13684 LD="${LD-ld} -melf32bmipn32"
13687 LD="${LD-ld} -melf64bmip"
13691 case `/usr/bin/file conftest.$ac_objext` in
13707 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13708 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13709 # Find out which ABI we are using.
13710 echo 'int i;' > conftest.$ac_ext
13711 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13712 (eval $ac_compile) 2>&5
13714 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13715 test $ac_status = 0; }; then
13716 case `/usr/bin/file conftest.o` in
13719 x86_64-*kfreebsd*-gnu)
13720 LD="${LD-ld} -m elf_i386_fbsd
"
13723 case `/usr/bin/file conftest.o` in
13725 LD="${LD-ld} -m elf32_x86_64
"
13728 LD="${LD-ld} -m elf_i386
"
13732 powerpc64le-*linux*)
13733 LD="${LD-ld} -m elf32lppclinux
"
13736 LD="${LD-ld} -m elf32ppclinux
"
13739 LD="${LD-ld} -m elf_s390
"
13742 LD="${LD-ld} -m elf32_sparc
"
13748 x86_64-*kfreebsd*-gnu)
13749 LD="${LD-ld} -m elf_x86_64_fbsd
"
13752 LD="${LD-ld} -m elf_x86_64
"
13755 LD="${LD-ld} -m elf64lppc
"
13758 LD="${LD-ld} -m elf64ppc
"
13760 s390*-*linux*|s390*-*tpf*)
13761 LD="${LD-ld} -m elf64_s390
"
13764 LD="${LD-ld} -m elf64_sparc
"
13774 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13775 SAVE_CFLAGS="$CFLAGS"
13776 CFLAGS="$CFLAGS -belf"
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13778 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13779 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13780 $as_echo_n "(cached
) " >&6
13783 ac_cpp='$CPP $CPPFLAGS'
13784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h. */
13799 if ac_fn_c_try_link "$LINENO"; then :
13800 lt_cv_cc_needs_belf=yes
13802 lt_cv_cc_needs_belf=no
13804 rm -f core conftest.err conftest.$ac_objext \
13805 conftest$ac_exeext conftest.$ac_ext
13807 ac_cpp='$CPP $CPPFLAGS'
13808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13814 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13815 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13816 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13817 CFLAGS="$SAVE_CFLAGS"
13821 # Find out which ABI we are using.
13822 echo 'int i;' > conftest.$ac_ext
13823 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13824 (eval $ac_compile) 2>&5
13826 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13827 test $ac_status = 0; }; then
13828 case `/usr/bin/file conftest.o` in
13830 case $lt_cv_prog_gnu_ld in
13831 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13833 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13845 need_locks="$enable_libtool_lock"
13849 rhapsody* | darwin*)
13850 if test -n "$ac_tool_prefix"; then
13851 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13852 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13854 $as_echo_n "checking
for $ac_word...
" >&6; }
13855 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13856 $as_echo_n "(cached
) " >&6
13858 if test -n "$DSYMUTIL"; then
13859 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13862 for as_dir in $PATH
13865 test -z "$as_dir" && as_dir=.
13866 for ac_exec_ext in '' $ac_executable_extensions; do
13867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13868 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13869 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13878 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13879 if test -n "$DSYMUTIL"; then
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13881 $as_echo "$DSYMUTIL" >&6; }
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13884 $as_echo "no
" >&6; }
13889 if test -z "$ac_cv_prog_DSYMUTIL"; then
13890 ac_ct_DSYMUTIL=$DSYMUTIL
13891 # Extract the first word of "dsymutil
", so it can be a program name with args.
13892 set dummy dsymutil; ac_word=$2
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13894 $as_echo_n "checking
for $ac_word...
" >&6; }
13895 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13896 $as_echo_n "(cached
) " >&6
13898 if test -n "$ac_ct_DSYMUTIL"; then
13899 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13902 for as_dir in $PATH
13905 test -z "$as_dir" && as_dir=.
13906 for ac_exec_ext in '' $ac_executable_extensions; do
13907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13908 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13909 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13918 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13919 if test -n "$ac_ct_DSYMUTIL"; then
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13921 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13924 $as_echo "no
" >&6; }
13927 if test "x
$ac_ct_DSYMUTIL" = x; then
13930 case $cross_compiling:$ac_tool_warned in
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13933 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13934 ac_tool_warned=yes ;;
13936 DSYMUTIL=$ac_ct_DSYMUTIL
13939 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13942 if test -n "$ac_tool_prefix"; then
13943 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13944 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13946 $as_echo_n "checking
for $ac_word...
" >&6; }
13947 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13948 $as_echo_n "(cached
) " >&6
13950 if test -n "$NMEDIT"; then
13951 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13954 for as_dir in $PATH
13957 test -z "$as_dir" && as_dir=.
13958 for ac_exec_ext in '' $ac_executable_extensions; do
13959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13960 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13961 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13970 NMEDIT=$ac_cv_prog_NMEDIT
13971 if test -n "$NMEDIT"; then
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13973 $as_echo "$NMEDIT" >&6; }
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13976 $as_echo "no
" >&6; }
13981 if test -z "$ac_cv_prog_NMEDIT"; then
13982 ac_ct_NMEDIT=$NMEDIT
13983 # Extract the first word of "nmedit
", so it can be a program name with args.
13984 set dummy nmedit; ac_word=$2
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13986 $as_echo_n "checking
for $ac_word...
" >&6; }
13987 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13988 $as_echo_n "(cached
) " >&6
13990 if test -n "$ac_ct_NMEDIT"; then
13991 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13994 for as_dir in $PATH
13997 test -z "$as_dir" && as_dir=.
13998 for ac_exec_ext in '' $ac_executable_extensions; do
13999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14000 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14001 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14010 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14011 if test -n "$ac_ct_NMEDIT"; then
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14013 $as_echo "$ac_ct_NMEDIT" >&6; }
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14016 $as_echo "no
" >&6; }
14019 if test "x
$ac_ct_NMEDIT" = x; then
14022 case $cross_compiling:$ac_tool_warned in
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14025 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14026 ac_tool_warned=yes ;;
14028 NMEDIT=$ac_ct_NMEDIT
14031 NMEDIT="$ac_cv_prog_NMEDIT"
14034 if test -n "$ac_tool_prefix"; then
14035 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14036 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14038 $as_echo_n "checking
for $ac_word...
" >&6; }
14039 if test "${ac_cv_prog_LIPO+set}" = set; then :
14040 $as_echo_n "(cached
) " >&6
14042 if test -n "$LIPO"; then
14043 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14046 for as_dir in $PATH
14049 test -z "$as_dir" && as_dir=.
14050 for ac_exec_ext in '' $ac_executable_extensions; do
14051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14052 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14053 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14062 LIPO=$ac_cv_prog_LIPO
14063 if test -n "$LIPO"; then
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14065 $as_echo "$LIPO" >&6; }
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14068 $as_echo "no
" >&6; }
14073 if test -z "$ac_cv_prog_LIPO"; then
14075 # Extract the first word of "lipo
", so it can be a program name with args.
14076 set dummy lipo; ac_word=$2
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14078 $as_echo_n "checking
for $ac_word...
" >&6; }
14079 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14080 $as_echo_n "(cached
) " >&6
14082 if test -n "$ac_ct_LIPO"; then
14083 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14086 for as_dir in $PATH
14089 test -z "$as_dir" && as_dir=.
14090 for ac_exec_ext in '' $ac_executable_extensions; do
14091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14092 ac_cv_prog_ac_ct_LIPO="lipo
"
14093 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14102 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14103 if test -n "$ac_ct_LIPO"; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14105 $as_echo "$ac_ct_LIPO" >&6; }
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14108 $as_echo "no
" >&6; }
14111 if test "x
$ac_ct_LIPO" = x; then
14114 case $cross_compiling:$ac_tool_warned in
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14117 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14118 ac_tool_warned=yes ;;
14123 LIPO="$ac_cv_prog_LIPO"
14126 if test -n "$ac_tool_prefix"; then
14127 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14128 set dummy ${ac_tool_prefix}otool; ac_word=$2
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14130 $as_echo_n "checking
for $ac_word...
" >&6; }
14131 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14132 $as_echo_n "(cached
) " >&6
14134 if test -n "$OTOOL"; then
14135 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138 for as_dir in $PATH
14141 test -z "$as_dir" && as_dir=.
14142 for ac_exec_ext in '' $ac_executable_extensions; do
14143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14144 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14145 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14154 OTOOL=$ac_cv_prog_OTOOL
14155 if test -n "$OTOOL"; then
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14157 $as_echo "$OTOOL" >&6; }
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14160 $as_echo "no
" >&6; }
14165 if test -z "$ac_cv_prog_OTOOL"; then
14167 # Extract the first word of "otool
", so it can be a program name with args.
14168 set dummy otool; ac_word=$2
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14170 $as_echo_n "checking
for $ac_word...
" >&6; }
14171 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14172 $as_echo_n "(cached
) " >&6
14174 if test -n "$ac_ct_OTOOL"; then
14175 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14178 for as_dir in $PATH
14181 test -z "$as_dir" && as_dir=.
14182 for ac_exec_ext in '' $ac_executable_extensions; do
14183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14184 ac_cv_prog_ac_ct_OTOOL="otool
"
14185 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14194 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14195 if test -n "$ac_ct_OTOOL"; then
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14197 $as_echo "$ac_ct_OTOOL" >&6; }
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14200 $as_echo "no
" >&6; }
14203 if test "x
$ac_ct_OTOOL" = x; then
14206 case $cross_compiling:$ac_tool_warned in
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14209 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14210 ac_tool_warned=yes ;;
14215 OTOOL="$ac_cv_prog_OTOOL"
14218 if test -n "$ac_tool_prefix"; then
14219 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14220 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14222 $as_echo_n "checking
for $ac_word...
" >&6; }
14223 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14224 $as_echo_n "(cached
) " >&6
14226 if test -n "$OTOOL64"; then
14227 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14230 for as_dir in $PATH
14233 test -z "$as_dir" && as_dir=.
14234 for ac_exec_ext in '' $ac_executable_extensions; do
14235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14236 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14237 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14246 OTOOL64=$ac_cv_prog_OTOOL64
14247 if test -n "$OTOOL64"; then
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14249 $as_echo "$OTOOL64" >&6; }
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14252 $as_echo "no
" >&6; }
14257 if test -z "$ac_cv_prog_OTOOL64"; then
14258 ac_ct_OTOOL64=$OTOOL64
14259 # Extract the first word of "otool64
", so it can be a program name with args.
14260 set dummy otool64; ac_word=$2
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14262 $as_echo_n "checking
for $ac_word...
" >&6; }
14263 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14264 $as_echo_n "(cached
) " >&6
14266 if test -n "$ac_ct_OTOOL64"; then
14267 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14270 for as_dir in $PATH
14273 test -z "$as_dir" && as_dir=.
14274 for ac_exec_ext in '' $ac_executable_extensions; do
14275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14276 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14277 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14286 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14287 if test -n "$ac_ct_OTOOL64"; then
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14289 $as_echo "$ac_ct_OTOOL64" >&6; }
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14292 $as_echo "no
" >&6; }
14295 if test "x
$ac_ct_OTOOL64" = x; then
14298 case $cross_compiling:$ac_tool_warned in
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14301 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14302 ac_tool_warned=yes ;;
14304 OTOOL64=$ac_ct_OTOOL64
14307 OTOOL64="$ac_cv_prog_OTOOL64"
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14337 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14338 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14339 $as_echo_n "(cached
) " >&6
14341 lt_cv_apple_cc_single_mod=no
14342 if test -z "${LT_MULTI_MODULE}"; then
14343 # By default we will add the -single_module flag. You can override
14344 # by either setting the environment variable LT_MULTI_MODULE
14345 # non-empty at configure time, or by adding -multi_module to the
14347 rm -rf libconftest.dylib*
14348 echo "int foo
(void
){return 1;}" > conftest.c
14349 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14350 -dynamiclib -Wl,-single_module conftest.c
" >&5
14351 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14352 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14354 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14355 lt_cv_apple_cc_single_mod=yes
14357 cat conftest.err >&5
14359 rm -rf libconftest.dylib*
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14364 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14366 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14367 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14368 $as_echo_n "(cached
) " >&6
14370 lt_cv_ld_exported_symbols_list=no
14371 save_LDFLAGS=$LDFLAGS
14372 echo "_main
" > conftest.sym
14373 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14375 /* end confdefs.h. */
14385 if ac_fn_c_try_link "$LINENO"; then :
14386 lt_cv_ld_exported_symbols_list=yes
14388 lt_cv_ld_exported_symbols_list=no
14390 rm -f core conftest.err conftest.$ac_objext \
14391 conftest$ac_exeext conftest.$ac_ext
14392 LDFLAGS="$save_LDFLAGS"
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14396 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14398 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14399 if test "${lt_cv_ld_force_load+set}" = set; then :
14400 $as_echo_n "(cached
) " >&6
14402 lt_cv_ld_force_load=no
14403 cat > conftest.c << _LT_EOF
14404 int forced_loaded() { return 2;}
14406 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14407 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14408 echo "$AR cru libconftest.a conftest.o
" >&5
14409 $AR cru libconftest.a conftest.o 2>&5
14410 cat > conftest.c << _LT_EOF
14411 int main() { return 0;}
14413 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14414 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14416 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14417 lt_cv_ld_force_load=yes
14419 cat conftest.err >&5
14421 rm -f conftest.err libconftest.a conftest conftest.c
14422 rm -rf conftest.dSYM
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14426 $as_echo "$lt_cv_ld_force_load" >&6; }
14428 rhapsody* | darwin1.[012])
14429 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14431 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14432 darwin*) # darwin 5.x on
14433 # if running on 10.5 or later, the deployment target defaults
14434 # to the OS version, if on x86, and 10.4, the deployment
14435 # target defaults to 10.4. Don't you love it?
14436 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14437 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14438 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14440 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14442 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14446 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14447 _lt_dar_single_mod='$single_module'
14449 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14450 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14452 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14454 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14455 _lt_dsymutil='~$DSYMUTIL $lib || :'
14462 for ac_header in dlfcn.h
14464 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14465 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14466 cat >>confdefs.h <<_ACEOF
14467 #define HAVE_DLFCN_H 1
14484 enable_win32_dll=no
14487 # Check whether --enable-shared was given.
14488 if test "${enable_shared+set}" = set; then :
14489 enableval=$enable_shared; p=${PACKAGE-default}
14491 yes) enable_shared=yes ;;
14492 no) enable_shared=no ;;
14495 # Look at the argument we got. We use all the common list separators.
14496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14497 for pkg in $enableval; do
14499 if test "X
$pkg" = "X
$p"; then
14518 # Check whether --enable-static was given.
14519 if test "${enable_static+set}" = set; then :
14520 enableval=$enable_static; p=${PACKAGE-default}
14522 yes) enable_static=yes ;;
14523 no) enable_static=no ;;
14526 # Look at the argument we got. We use all the common list separators.
14527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14528 for pkg in $enableval; do
14530 if test "X
$pkg" = "X
$p"; then
14550 # Check whether --with-pic was given.
14551 if test "${with_pic+set}" = set; then :
14552 withval=$with_pic; pic_mode="$withval"
14558 test -z "$pic_mode" && pic_mode=default
14566 # Check whether --enable-fast-install was given.
14567 if test "${enable_fast_install+set}" = set; then :
14568 enableval=$enable_fast_install; p=${PACKAGE-default}
14570 yes) enable_fast_install=yes ;;
14571 no) enable_fast_install=no ;;
14573 enable_fast_install=no
14574 # Look at the argument we got. We use all the common list separators.
14575 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14576 for pkg in $enableval; do
14578 if test "X
$pkg" = "X
$p"; then
14579 enable_fast_install=yes
14586 enable_fast_install=yes
14599 # This can be used to rebuild libtool when needed
14600 LIBTOOL_DEPS="$ltmain"
14602 # Always use our own libtool.
14603 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14630 test -z "$LN_S" && LN_S="ln -s"
14645 if test -n "${ZSH_VERSION+set}" ; then
14646 setopt NO_GLOB_SUBST
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14650 $as_echo_n "checking
for objdir...
" >&6; }
14651 if test "${lt_cv_objdir+set}" = set; then :
14652 $as_echo_n "(cached
) " >&6
14654 rm -f .libs 2>/dev/null
14655 mkdir .libs 2>/dev/null
14656 if test -d .libs; then
14659 # MS-DOS does not allow filenames that begin with a dot.
14662 rmdir .libs 2>/dev/null
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14665 $as_echo "$lt_cv_objdir" >&6; }
14666 objdir=$lt_cv_objdir
14672 cat >>confdefs.h <<_ACEOF
14673 #define LT_OBJDIR "$lt_cv_objdir/"
14681 # AIX sometimes has problems with the GCC collect2 program. For some
14682 # reason, if we set the COLLECT_NAMES environment variable, the problems
14683 # vanish in a puff of smoke.
14684 if test "X
${COLLECT_NAMES+set}" != Xset; then
14686 export COLLECT_NAMES
14691 # Global variables:
14693 can_build_shared=yes
14695 # All known linkers require a `.a' archive for static linking (except MSVC,
14696 # which needs '.lib').
14699 with_gnu_ld="$lt_cv_prog_gnu_ld"
14702 old_CFLAGS="$CFLAGS"
14704 # Set sane defaults for various variables
14705 test -z "$CC" && CC=cc
14706 test -z "$LTCC" && LTCC=$CC
14707 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14708 test -z "$LD" && LD=ld
14709 test -z "$ac_objext" && ac_objext=o
14711 for cc_temp in $compiler""; do
14713 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14714 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14719 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14722 # Only perform the check for file, if the check method requires it
14723 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14724 case $deplibs_check_method in
14726 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14728 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14729 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14730 $as_echo_n "(cached
) " >&6
14734 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14737 lt_save_MAGIC_CMD="$MAGIC_CMD"
14738 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14739 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14740 for ac_dir in $ac_dummy; do
14742 test -z "$ac_dir" && ac_dir=.
14743 if test -f $ac_dir/${ac_tool_prefix}file; then
14744 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14745 if test -n "$file_magic_test_file"; then
14746 case $deplibs_check_method in
14748 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14749 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14750 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14751 $EGREP "$file_magic_regex" > /dev/null; then
14756 *** Warning: the command libtool uses to detect shared libraries,
14757 *** $file_magic_cmd, produces output that libtool cannot recognize.
14758 *** The result is that libtool may fail to recognize shared libraries
14759 *** as such. This will affect the creation of libtool libraries that
14760 *** depend on shared libraries, but programs linked with such libtool
14761 *** libraries will work regardless of this problem. Nevertheless, you
14762 *** may want to report the problem to your system manager and/or to
14763 *** bug-libtool@gnu.org
14773 MAGIC_CMD="$lt_save_MAGIC_CMD"
14778 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14779 if test -n "$MAGIC_CMD"; then
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14781 $as_echo "$MAGIC_CMD" >&6; }
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14784 $as_echo "no
" >&6; }
14791 if test -z "$lt_cv_path_MAGIC_CMD"; then
14792 if test -n "$ac_tool_prefix"; then
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14794 $as_echo_n "checking
for file...
" >&6; }
14795 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14796 $as_echo_n "(cached
) " >&6
14800 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14803 lt_save_MAGIC_CMD="$MAGIC_CMD"
14804 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14805 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14806 for ac_dir in $ac_dummy; do
14808 test -z "$ac_dir" && ac_dir=.
14809 if test -f $ac_dir/file; then
14810 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14811 if test -n "$file_magic_test_file"; then
14812 case $deplibs_check_method in
14814 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14815 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14816 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14817 $EGREP "$file_magic_regex" > /dev/null; then
14822 *** Warning: the command libtool uses to detect shared libraries,
14823 *** $file_magic_cmd, produces output that libtool cannot recognize.
14824 *** The result is that libtool may fail to recognize shared libraries
14825 *** as such. This will affect the creation of libtool libraries that
14826 *** depend on shared libraries, but programs linked with such libtool
14827 *** libraries will work regardless of this problem. Nevertheless, you
14828 *** may want to report the problem to your system manager and/or to
14829 *** bug-libtool@gnu.org
14839 MAGIC_CMD="$lt_save_MAGIC_CMD"
14844 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14845 if test -n "$MAGIC_CMD"; then
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14847 $as_echo "$MAGIC_CMD" >&6; }
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14850 $as_echo "no
" >&6; }
14863 # Use C for the default configuration in the libtool script
14867 ac_cpp='$CPP $CPPFLAGS'
14868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14873 # Source file extension for C test sources.
14876 # Object file extension for compiled C test sources.
14880 # Code to be used in simple compile tests
14881 lt_simple_compile_test_code="int some_variable
= 0;"
14883 # Code to be used in simple link tests
14884 lt_simple_link_test_code='int main(){return(0);}'
14892 # If no C compiler was specified, use CC.
14895 # If no C compiler flags were specified, use CFLAGS.
14896 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14898 # Allow CC to be a program name with arguments.
14901 # Save the default compiler, since it gets overwritten when the other
14902 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14903 compiler_DEFAULT=$CC
14905 # save warnings/boilerplate of simple test code
14906 ac_outfile=conftest.$ac_objext
14907 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14908 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14909 _lt_compiler_boilerplate=`cat conftest.err`
14912 ac_outfile=conftest.$ac_objext
14913 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14914 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14915 _lt_linker_boilerplate=`cat conftest.err`
14920 ## There is no encapsulation within the following macros, do not change
14921 ## the running order or otherwise move them around unless you know exactly
14922 ## what you are doing...
14923 if test -n "$compiler"; then
14925 lt_prog_compiler_no_builtin_flag=
14927 if test "$GCC" = yes; then
14928 case $cc_basename in
14930 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14932 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14936 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14937 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14938 $as_echo_n "(cached
) " >&6
14940 lt_cv_prog_compiler_rtti_exceptions=no
14941 ac_outfile=conftest.$ac_objext
14942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14943 lt_compiler_flag="-fno-rtti -fno-exceptions"
14944 # Insert the option either (1) after the last *FLAGS variable, or
14945 # (2) before a word containing "conftest.
", or (3) at the end.
14946 # Note that $ac_compile itself does not contain backslashes and begins
14947 # with a dollar sign (not a hyphen), so the echo should work correctly.
14948 # The option is referenced via a variable to avoid confusing sed.
14949 lt_compile=`echo "$ac_compile" | $SED \
14950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14952 -e 's:$: $lt_compiler_flag:'`
14953 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14954 (eval "$lt_compile" 2>conftest.err)
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14958 if (exit $ac_status) && test -s "$ac_outfile"; then
14959 # The compiler can only warn and ignore the option if not recognized
14960 # So say no if there are warnings other than the usual output.
14961 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14963 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14964 lt_cv_prog_compiler_rtti_exceptions=yes
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14971 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14973 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14974 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14986 lt_prog_compiler_wl=
14987 lt_prog_compiler_pic=
14988 lt_prog_compiler_static=
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14991 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14993 if test "$GCC" = yes; then
14994 lt_prog_compiler_wl='-Wl,'
14995 lt_prog_compiler_static='-static'
14999 # All AIX code is PIC.
15000 if test "$host_cpu" = ia64; then
15001 # AIX 5 now supports IA64 processor
15002 lt_prog_compiler_static='-Bstatic'
15004 lt_prog_compiler_pic='-fPIC'
15010 # see comment about AmigaOS4 .so support
15011 lt_prog_compiler_pic='-fPIC'
15014 # FIXME: we need at least 68020 code to build shared libraries, but
15015 # adding the `-m68020' flag to GCC prevents building anything better,
15017 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15022 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15023 # PIC is the default for these OSes.
15026 mingw* | cygwin* | pw32* | os2* | cegcc*)
15027 # This hack is so that the source file can tell whether it is being
15028 # built for inclusion in a dll (and should export symbols for example).
15029 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15030 # (--disable-auto-import) libraries
15031 lt_prog_compiler_pic='-DDLL_EXPORT'
15034 darwin* | rhapsody*)
15035 # PIC is the default on this platform
15036 # Common symbols not allowed in MH_DYLIB files
15037 lt_prog_compiler_pic='-fno-common'
15041 # PIC is the default for Haiku.
15042 # The "-static" flag exists, but is broken.
15043 lt_prog_compiler_static=
15047 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15048 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15049 # sets the default TLS model and affects inlining.
15055 lt_prog_compiler_pic='-fPIC'
15061 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15062 # Instead, we relocate shared libraries at runtime.
15066 # Just because we use GCC doesn't mean we suddenly get shared libraries
15067 # on systems that don't support them.
15068 lt_prog_compiler_can_build_shared=no
15073 # QNX uses GNU C++, but need to define -shared option too, otherwise
15074 # it will coredump.
15075 lt_prog_compiler_pic='-fPIC -shared'
15079 if test -d /usr/nec; then
15080 lt_prog_compiler_pic=-Kconform_pic
15085 lt_prog_compiler_pic='-fPIC'
15089 case $cc_basename in
15090 nvcc*) # Cuda Compiler Driver 2.2
15091 lt_prog_compiler_wl='-Xlinker '
15092 lt_prog_compiler_pic='-Xcompiler -fPIC'
15096 # PORTME Check for flag to pass linker flags through the system compiler.
15099 lt_prog_compiler_wl='-Wl,'
15100 if test "$host_cpu" = ia64; then
15101 # AIX 5 now supports IA64 processor
15102 lt_prog_compiler_static='-Bstatic'
15104 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15108 mingw* | cygwin* | pw32* | os2* | cegcc*)
15109 # This hack is so that the source file can tell whether it is being
15110 # built for inclusion in a dll (and should export symbols for example).
15111 lt_prog_compiler_pic='-DDLL_EXPORT'
15114 hpux9* | hpux10* | hpux11*)
15115 lt_prog_compiler_wl='-Wl,'
15116 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15117 # not for PA HP-UX.
15123 lt_prog_compiler_pic='+Z'
15126 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15127 lt_prog_compiler_static='${wl}-a ${wl}archive'
15130 irix5* | irix6* | nonstopux*)
15131 lt_prog_compiler_wl='-Wl,'
15132 # PIC (with -KPIC) is the default.
15133 lt_prog_compiler_static='-non_shared'
15136 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15137 case $cc_basename in
15138 # old Intel for x86_64 which still supported -KPIC.
15140 lt_prog_compiler_wl='-Wl,'
15141 lt_prog_compiler_pic='-KPIC'
15142 lt_prog_compiler_static='-static'
15144 # icc used to be incompatible with GCC.
15145 # ICC 10 doesn't accept -KPIC any more.
15147 lt_prog_compiler_wl='-Wl,'
15148 lt_prog_compiler_pic='-fPIC'
15149 lt_prog_compiler_static='-static'
15151 # Lahey Fortran 8.1.
15153 lt_prog_compiler_wl='-Wl,'
15154 lt_prog_compiler_pic='--shared'
15155 lt_prog_compiler_static='--static'
15157 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15158 # Portland Group compilers (*not* the Pentium gcc compiler,
15159 # which looks to be a dead project)
15160 lt_prog_compiler_wl='-Wl,'
15161 lt_prog_compiler_pic='-fpic'
15162 lt_prog_compiler_static='-Bstatic'
15165 lt_prog_compiler_wl='-Wl,'
15166 # All Alpha code is PIC.
15167 lt_prog_compiler_static='-non_shared'
15169 xl* | bgxl* | bgf* | mpixl*)
15170 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15171 lt_prog_compiler_wl='-Wl,'
15172 lt_prog_compiler_pic='-qpic'
15173 lt_prog_compiler_static='-qstaticlink'
15176 case `$CC -V 2>&1 | sed 5q` in
15177 *Sun\ F* | *Sun*Fortran*)
15178 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15179 lt_prog_compiler_pic='-KPIC'
15180 lt_prog_compiler_static='-Bstatic'
15181 lt_prog_compiler_wl=''
15185 lt_prog_compiler_pic='-KPIC'
15186 lt_prog_compiler_static='-Bstatic'
15187 lt_prog_compiler_wl='-Wl,'
15195 lt_prog_compiler_pic='-KPIC'
15196 lt_prog_compiler_static='-Bstatic'
15200 # QNX uses GNU C++, but need to define -shared option too, otherwise
15201 # it will coredump.
15202 lt_prog_compiler_pic='-fPIC -shared'
15205 osf3* | osf4* | osf5*)
15206 lt_prog_compiler_wl='-Wl,'
15207 # All OSF/1 code is PIC.
15208 lt_prog_compiler_static='-non_shared'
15212 lt_prog_compiler_static='-non_shared'
15216 lt_prog_compiler_pic='-KPIC'
15217 lt_prog_compiler_static='-Bstatic'
15218 case $cc_basename in
15219 f77* | f90* | f95*)
15220 lt_prog_compiler_wl='-Qoption ld ';;
15222 lt_prog_compiler_wl='-Wl,';;
15227 lt_prog_compiler_wl='-Qoption ld '
15228 lt_prog_compiler_pic='-PIC'
15229 lt_prog_compiler_static='-Bstatic'
15232 sysv4 | sysv4.2uw2* | sysv4.3*)
15233 lt_prog_compiler_wl='-Wl,'
15234 lt_prog_compiler_pic='-KPIC'
15235 lt_prog_compiler_static='-Bstatic'
15239 if test -d /usr/nec ;then
15240 lt_prog_compiler_pic='-Kconform_pic'
15241 lt_prog_compiler_static='-Bstatic'
15245 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15246 lt_prog_compiler_wl='-Wl,'
15247 lt_prog_compiler_pic='-KPIC'
15248 lt_prog_compiler_static='-Bstatic'
15252 lt_prog_compiler_wl='-Wl,'
15253 lt_prog_compiler_can_build_shared=no
15257 lt_prog_compiler_pic='-pic'
15258 lt_prog_compiler_static='-Bstatic'
15262 lt_prog_compiler_can_build_shared=no
15268 # For platforms which do not support PIC, -DPIC is meaningless:
15270 lt_prog_compiler_pic=
15273 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15277 $as_echo "$lt_prog_compiler_pic" >&6; }
15285 # Check to make sure the PIC flag actually works.
15287 if test -n "$lt_prog_compiler_pic"; then
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15289 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15290 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15291 $as_echo_n "(cached
) " >&6
15293 lt_cv_prog_compiler_pic_works=no
15294 ac_outfile=conftest.$ac_objext
15295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15296 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15297 # Insert the option either (1) after the last *FLAGS variable, or
15298 # (2) before a word containing "conftest.
", or (3) at the end.
15299 # Note that $ac_compile itself does not contain backslashes and begins
15300 # with a dollar sign (not a hyphen), so the echo should work correctly.
15301 # The option is referenced via a variable to avoid confusing sed.
15302 lt_compile=`echo "$ac_compile" | $SED \
15303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15305 -e 's:$: $lt_compiler_flag:'`
15306 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15307 (eval "$lt_compile" 2>conftest.err)
15309 cat conftest.err >&5
15310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15311 if (exit $ac_status) && test -s "$ac_outfile"; then
15312 # The compiler can only warn and ignore the option if not recognized
15313 # So say no if there are warnings other than the usual output.
15314 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15317 lt_cv_prog_compiler_pic_works=yes
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15324 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15326 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15327 case $lt_prog_compiler_pic in
15329 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15332 lt_prog_compiler_pic=
15333 lt_prog_compiler_can_build_shared=no
15344 # Check to make sure the static flag actually works.
15346 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15348 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15349 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15350 $as_echo_n "(cached
) " >&6
15352 lt_cv_prog_compiler_static_works=no
15353 save_LDFLAGS="$LDFLAGS"
15354 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15355 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15356 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15357 # The linker can only warn and ignore the option if not recognized
15358 # So say no if there are warnings
15359 if test -s conftest.err; then
15360 # Append any errors to the config.log.
15361 cat conftest.err 1>&5
15362 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15364 if diff conftest.exp conftest.er2 >/dev/null; then
15365 lt_cv_prog_compiler_static_works=yes
15368 lt_cv_prog_compiler_static_works=yes
15372 LDFLAGS="$save_LDFLAGS"
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15376 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15378 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15381 lt_prog_compiler_static=
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15391 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15392 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15393 $as_echo_n "(cached
) " >&6
15395 lt_cv_prog_compiler_c_o=no
15396 $RM -r conftest 2>/dev/null
15400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15402 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15403 # Insert the option either (1) after the last *FLAGS variable, or
15404 # (2) before a word containing "conftest.
", or (3) at the end.
15405 # Note that $ac_compile itself does not contain backslashes and begins
15406 # with a dollar sign (not a hyphen), so the echo should work correctly.
15407 lt_compile=`echo "$ac_compile" | $SED \
15408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15410 -e 's:$: $lt_compiler_flag:'`
15411 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15412 (eval "$lt_compile" 2>out/conftest.err)
15414 cat out/conftest.err >&5
15415 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15416 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15418 # The compiler can only warn and ignore the option if not recognized
15419 # So say no if there are warnings
15420 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15421 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15422 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15423 lt_cv_prog_compiler_c_o=yes
15428 # SGI C++ compiler will create directory out/ii_files/ for
15429 # template instantiation
15430 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15431 $RM out/* && rmdir out
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15438 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15446 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15447 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15448 $as_echo_n "(cached
) " >&6
15450 lt_cv_prog_compiler_c_o=no
15451 $RM -r conftest 2>/dev/null
15455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15457 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15458 # Insert the option either (1) after the last *FLAGS variable, or
15459 # (2) before a word containing "conftest.
", or (3) at the end.
15460 # Note that $ac_compile itself does not contain backslashes and begins
15461 # with a dollar sign (not a hyphen), so the echo should work correctly.
15462 lt_compile=`echo "$ac_compile" | $SED \
15463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15465 -e 's:$: $lt_compiler_flag:'`
15466 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15467 (eval "$lt_compile" 2>out/conftest.err)
15469 cat out/conftest.err >&5
15470 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15471 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15473 # The compiler can only warn and ignore the option if not recognized
15474 # So say no if there are warnings
15475 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15476 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15477 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15478 lt_cv_prog_compiler_c_o=yes
15483 # SGI C++ compiler will create directory out/ii_files/ for
15484 # template instantiation
15485 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15486 $RM out/* && rmdir out
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15493 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15498 hard_links="nottested
"
15499 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15500 # do not overwrite the value of need_locks provided by the user
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15502 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15505 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15507 ln conftest.a conftest.b 2>&5 || hard_links=no
15508 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15510 $as_echo "$hard_links" >&6; }
15511 if test "$hard_links" = no; then
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15513 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15526 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15529 allow_undefined_flag=
15530 always_export_symbols=no
15532 archive_expsym_cmds=
15533 compiler_needs_object=no
15534 enable_shared_with_static_runtimes=no
15535 export_dynamic_flag_spec=
15536 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15537 hardcode_automatic=no
15539 hardcode_direct_absolute=no
15540 hardcode_libdir_flag_spec=
15541 hardcode_libdir_flag_spec_ld=
15542 hardcode_libdir_separator=
15543 hardcode_minus_L=no
15544 hardcode_shlibpath_var=unsupported
15546 link_all_deplibs=unknown
15548 module_expsym_cmds=
15549 old_archive_from_new_cmds=
15550 old_archive_from_expsyms_cmds=
15551 thread_safe_flag_spec=
15552 whole_archive_flag_spec=
15553 # include_expsyms should be a list of space-separated symbols to be *always*
15554 # included in the symbol list
15556 # exclude_expsyms can be an extended regexp of symbols to exclude
15557 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15558 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15559 # as well as any symbol that contains `d'.
15560 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15561 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15562 # platforms (ab)use it in PIC code, but their linkers get confused if
15563 # the symbol is explicitly referenced. Since portable code cannot
15564 # rely on this symbol name, it's probably fine to never include it in
15565 # preloaded symbol tables.
15566 # Exclude shared library initialization/finalization symbols.
15567 extract_expsyms_cmds=
15570 cygwin* | mingw* | pw32* | cegcc*)
15571 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15572 # When not using gcc, we currently assume that we are using
15573 # Microsoft Visual C++.
15574 if test "$GCC" != yes; then
15579 # we just hope/assume this is gcc and not c89 (= MSVC++)
15589 # On some targets, GNU ld is compatible enough with the native linker
15590 # that we're better off using the native interface for both.
15591 lt_use_gnu_ld_interface=no
15592 if test "$with_gnu_ld" = yes; then
15595 # The AIX port of GNU ld has always aspired to compatibility
15596 # with the native linker. However, as the warning in the GNU ld
15597 # block says, versions before 2.19.5* couldn't really create working
15598 # shared libraries, regardless of the interface used.
15599 case `$LD -v 2>&1` in
15600 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15601 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15602 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15604 lt_use_gnu_ld_interface=yes
15609 lt_use_gnu_ld_interface=yes
15614 if test "$lt_use_gnu_ld_interface" = yes; then
15615 # If archive_cmds runs LD, not CC, wlarc should be empty
15618 # Set some defaults for GNU ld with shared library support. These
15619 # are reset later if shared libraries are not supported. Putting them
15620 # here allows them to be overridden if necessary.
15621 runpath_var=LD_RUN_PATH
15622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15623 export_dynamic_flag_spec='${wl}--export-dynamic'
15624 # ancient GNU ld didn't support --whole-archive et. al.
15625 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15626 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15628 whole_archive_flag_spec=
15630 supports_anon_versioning=no
15631 case `$LD -v 2>&1` in
15632 *GNU\ gold*) supports_anon_versioning=yes ;;
15633 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15634 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15635 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15636 *\ 2.11.*) ;; # other 2.11 versions
15637 *) supports_anon_versioning=yes ;;
15640 # See if GNU ld supports shared libraries.
15643 # On AIX/PPC, the GNU linker is very broken
15644 if test "$host_cpu" != ia64; then
15648 *** Warning: the GNU linker, at least up to release 2.19, is reported
15649 *** to be unable to reliably create shared libraries on AIX.
15650 *** Therefore, libtool is disabling shared libraries support. If you
15651 *** really care for shared libraries, you may want to install binutils
15652 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15653 *** You will then need to restart the configuration process.
15662 # see comment about AmigaOS4 .so support
15663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15664 archive_expsym_cmds=''
15667 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)'
15668 hardcode_libdir_flag_spec
='-L$libdir'
15669 hardcode_minus_L
=yes
15675 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15676 allow_undefined_flag
=unsupported
15677 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15678 # support --undefined. This deserves some investigation. FIXME
15679 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15685 cygwin
* | mingw
* | pw32
* | cegcc
*)
15686 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15687 # as there is no search path for DLLs.
15688 hardcode_libdir_flag_spec
='-L$libdir'
15689 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15690 allow_undefined_flag
=unsupported
15691 always_export_symbols
=no
15692 enable_shared_with_static_runtimes
=yes
15693 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15695 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15696 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15697 # If the export-symbols file already is a .def file (1st line
15698 # is EXPORTS), use it as is; otherwise, prepend...
15699 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15700 cp $export_symbols $output_objdir/$soname.def;
15702 echo EXPORTS > $output_objdir/$soname.def;
15703 cat $export_symbols >> $output_objdir/$soname.def;
15705 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15712 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15713 link_all_deplibs
=yes
15718 hardcode_shlibpath_var
=no
15719 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15720 export_dynamic_flag_spec
='${wl}-E'
15721 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15722 # Instead, shared libraries are loaded at an image base (0x10000000 by
15723 # default) and relocated if they conflict, which is a slow very memory
15724 # consuming and fragmenting process. To avoid this, we pick a random,
15725 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15726 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15727 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15728 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'
15731 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15733 if test "$host_os" = linux-dietlibc
; then
15734 case $cc_basename in
15735 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15738 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15739 && test "$tmp_diet" = no
15742 tmp_sharedflag
='-shared'
15743 case $cc_basename,$host_cpu in
15744 pgcc
*) # Portland Group C compiler
15745 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'
15746 tmp_addflag
=' $pic_flag'
15748 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15749 # Portland Group f77 and f90 compilers
15750 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'
15751 tmp_addflag
=' $pic_flag -Mnomain' ;;
15752 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15753 tmp_addflag
=' -i_dynamic' ;;
15754 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15755 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15756 ifc
* | ifort
*) # Intel Fortran compiler
15757 tmp_addflag
=' -nofor_main' ;;
15758 lf95
*) # Lahey Fortran 8.1
15759 whole_archive_flag_spec
=
15760 tmp_sharedflag
='--shared' ;;
15761 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15762 tmp_sharedflag
='-qmkshrobj'
15764 nvcc
*) # Cuda Compiler Driver 2.2
15765 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'
15766 compiler_needs_object
=yes
15769 case `$CC -V 2>&1 | sed 5q` in
15770 *Sun\ C
*) # Sun C 5.9
15771 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'
15772 compiler_needs_object
=yes
15773 tmp_sharedflag
='-G' ;;
15774 *Sun\ F
*) # Sun Fortran 8.3
15775 tmp_sharedflag
='-G' ;;
15777 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15779 if test "x$supports_anon_versioning" = xyes
; then
15780 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15782 echo "local: *; };" >> $output_objdir/$libname.ver~
15783 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15786 case $cc_basename in
15787 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15788 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15789 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15790 hardcode_libdir_flag_spec
=
15791 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15792 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15793 if test "x$supports_anon_versioning" = xyes
; then
15794 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15796 echo "local: *; };" >> $output_objdir/$libname.ver~
15797 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15807 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15808 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15811 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15812 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15817 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15821 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15822 *** create shared libraries on Solaris systems. Therefore, libtool
15823 *** is disabling shared libraries support. We urge you to upgrade GNU
15824 *** binutils to release 2.9.1 or newer. Another option is to modify
15825 *** your PATH or compiler configuration so that the native linker is
15826 *** used, and then restart.
15829 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15830 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15831 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15837 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15838 case `$LD -v 2>&1` in
15839 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15843 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15844 *** reliably create shared libraries on SCO systems. Therefore, libtool
15845 *** is disabling shared libraries support. We urge you to upgrade GNU
15846 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15847 *** your PATH or compiler configuration so that the native linker is
15848 *** used, and then restart.
15853 # For security reasons, it is highly recommended that you always
15854 # use absolute paths for naming shared libraries, and exclude the
15855 # DT_RUNPATH tag from executables and libraries. But doing so
15856 # requires that you compile everything twice, which is a pain.
15857 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15858 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15859 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15860 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15869 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15871 hardcode_direct
=yes
15872 hardcode_shlibpath_var
=no
15876 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15877 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15878 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15885 if test "$ld_shlibs" = no
; then
15887 hardcode_libdir_flag_spec
=
15888 export_dynamic_flag_spec
=
15889 whole_archive_flag_spec
=
15892 # PORTME fill in a description of your system's linker (not GNU ld)
15895 allow_undefined_flag
=unsupported
15896 always_export_symbols
=yes
15897 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'
15898 # Note: this linker hardcodes the directories in LIBPATH if there
15899 # are no directories specified by -L.
15900 hardcode_minus_L
=yes
15901 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15902 # Neither direct hardcoding nor static linking is supported with a
15904 hardcode_direct
=unsupported
15909 if test "$host_cpu" = ia64
; then
15910 # On IA64, the linker does run time linking by default, so we don't
15911 # have to do anything special.
15912 aix_use_runtimelinking
=no
15913 exp_sym_flag
='-Bexport'
15916 # If we're using GNU nm, then we don't want the "-C" option.
15917 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15918 # Also, AIX nm treats weak defined symbols like other global
15919 # defined symbols, whereas GNU nm marks them as "W".
15920 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15921 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'
15923 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'
15925 aix_use_runtimelinking
=no
15927 # Test if we are trying to use run time linking or normal
15928 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15929 # need to do runtime linking.
15930 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15931 for ld_flag
in $LDFLAGS; do
15932 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15933 aix_use_runtimelinking
=yes
15940 exp_sym_flag
='-bexport'
15941 no_entry_flag
='-bnoentry'
15944 # When large executables or shared objects are built, AIX ld can
15945 # have problems creating the table of contents. If linking a library
15946 # or program results in "error TOC overflow" add -mminimal-toc to
15947 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15948 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15951 hardcode_direct
=yes
15952 hardcode_direct_absolute
=yes
15953 hardcode_libdir_separator
=':'
15954 link_all_deplibs
=yes
15955 file_list_spec
='${wl}-f,'
15957 if test "$GCC" = yes; then
15958 case $host_os in aix4.
[012]|aix4.
[012].
*)
15959 # We only want to do this on AIX 4.2 and lower, the check
15960 # below for broken collect2 doesn't work under 4.3+
15961 collect2name
=`${CC} -print-prog-name=collect2`
15962 if test -f "$collect2name" &&
15963 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15965 # We have reworked collect2
15968 # We have old collect2
15969 hardcode_direct
=unsupported
15970 # It fails to find uninstalled libraries when the uninstalled
15971 # path is not listed in the libpath. Setting hardcode_minus_L
15972 # to unsupported forces relinking
15973 hardcode_minus_L
=yes
15974 hardcode_libdir_flag_spec
='-L$libdir'
15975 hardcode_libdir_separator
=
15979 shared_flag
='-shared'
15980 if test "$aix_use_runtimelinking" = yes; then
15981 shared_flag
="$shared_flag "'${wl}-G'
15985 if test "$host_cpu" = ia64
; then
15986 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15987 # chokes on -Wl,-G. The following line is correct:
15990 if test "$aix_use_runtimelinking" = yes; then
15991 shared_flag
='${wl}-G'
15993 shared_flag
='${wl}-bM:SRE'
15998 export_dynamic_flag_spec
='${wl}-bexpall'
15999 # It seems that -bexpall does not export symbols beginning with
16000 # underscore (_), so it is better to generate a list of symbols to export.
16001 always_export_symbols
=yes
16002 if test "$aix_use_runtimelinking" = yes; then
16003 # Warning - without using the other runtime loading flags (-brtl),
16004 # -berok will link without error, but may produce a broken library.
16005 allow_undefined_flag
='-berok'
16006 # Determine the default libpath from the value encoded in an
16007 # empty executable.
16008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h. */
16019 if ac_fn_c_try_link
"$LINENO"; then :
16021 lt_aix_libpath_sed
='
16022 /Import File Strings/,/^$/ {
16028 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16029 # Check for a 64-bit object if we didn't find anything.
16030 if test -z "$aix_libpath"; then
16031 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16034 rm -f core conftest.err conftest.
$ac_objext \
16035 conftest
$ac_exeext conftest.
$ac_ext
16036 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16038 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16039 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"
16041 if test "$host_cpu" = ia64
; then
16042 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16043 allow_undefined_flag
="-z nodefs"
16044 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"
16046 # Determine the default libpath from the value encoded in an
16047 # empty executable.
16048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16049 /* end confdefs.h. */
16059 if ac_fn_c_try_link
"$LINENO"; then :
16061 lt_aix_libpath_sed
='
16062 /Import File Strings/,/^$/ {
16068 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16069 # Check for a 64-bit object if we didn't find anything.
16070 if test -z "$aix_libpath"; then
16071 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16074 rm -f core conftest.err conftest.
$ac_objext \
16075 conftest
$ac_exeext conftest.
$ac_ext
16076 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16078 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16079 # Warning - without using the other run time loading flags,
16080 # -berok will link without error, but may produce a broken library.
16081 no_undefined_flag
=' ${wl}-bernotok'
16082 allow_undefined_flag
=' ${wl}-berok'
16083 if test "$with_gnu_ld" = yes; then
16084 # We only use this code for GNU lds that support --whole-archive.
16085 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16087 # Exported symbols can be pulled into shared objects from archives
16088 whole_archive_flag_spec
='$convenience'
16090 archive_cmds_need_lc
=yes
16091 # This is similar to how AIX traditionally builds its shared libraries.
16092 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'
16100 # see comment about AmigaOS4 .so support
16101 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16102 archive_expsym_cmds
=''
16105 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)'
16106 hardcode_libdir_flag_spec
='-L$libdir'
16107 hardcode_minus_L
=yes
16113 export_dynamic_flag_spec
=-rdynamic
16116 cygwin
* | mingw
* | pw32
* | cegcc
*)
16117 # When not using gcc, we currently assume that we are using
16118 # Microsoft Visual C++.
16119 # hardcode_libdir_flag_spec is actually meaningless, as there is
16120 # no search path for DLLs.
16121 hardcode_libdir_flag_spec
=' '
16122 allow_undefined_flag
=unsupported
16123 # Tell ltmain to make .lib files, not .a files.
16125 # Tell ltmain to make .dll files, not .so files.
16127 # FIXME: Setting linknames here is a bad hack.
16128 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16129 # The linker will automatically build a .lib file if we build a DLL.
16130 old_archive_from_new_cmds
='true'
16131 # FIXME: Should let the user specify the lib program.
16132 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16133 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16134 enable_shared_with_static_runtimes
=yes
16137 darwin
* | rhapsody
*)
16140 archive_cmds_need_lc
=no
16142 hardcode_automatic
=yes
16143 hardcode_shlibpath_var
=unsupported
16144 if test "$lt_cv_ld_force_load" = "yes"; then
16145 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\"`'
16147 whole_archive_flag_spec
=''
16149 link_all_deplibs
=yes
16150 allow_undefined_flag
="$_lt_dar_allow_undefined"
16151 case $cc_basename in
16152 ifort
*) _lt_dar_can_shared
=yes ;;
16153 *) _lt_dar_can_shared
=$GCC ;;
16155 if test "$_lt_dar_can_shared" = "yes"; then
16156 output_verbose_link_cmd
=func_echo_all
16157 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16158 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16159 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}"
16160 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}"
16169 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16170 hardcode_libdir_flag_spec
='-L$libdir'
16171 hardcode_shlibpath_var
=no
16174 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16175 # support. Future versions do this automatically, but an explicit c++rt0.o
16176 # does not break anything, and helps significantly (at the cost of a little
16179 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16180 hardcode_libdir_flag_spec
='-R$libdir'
16181 hardcode_direct
=yes
16182 hardcode_shlibpath_var
=no
16185 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16187 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16188 hardcode_direct
=yes
16189 hardcode_minus_L
=yes
16190 hardcode_shlibpath_var
=no
16193 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16194 freebsd
* | dragonfly
*)
16195 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16196 hardcode_libdir_flag_spec
='-R$libdir'
16197 hardcode_direct
=yes
16198 hardcode_shlibpath_var
=no
16202 if test "$GCC" = yes; then
16203 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'
16205 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'
16207 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16208 hardcode_libdir_separator
=:
16209 hardcode_direct
=yes
16211 # hardcode_minus_L: Not really in the search PATH,
16212 # but as the default location of the library.
16213 hardcode_minus_L
=yes
16214 export_dynamic_flag_spec
='${wl}-E'
16218 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16219 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16221 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16223 if test "$with_gnu_ld" = no
; then
16224 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16225 hardcode_libdir_flag_spec_ld
='+b $libdir'
16226 hardcode_libdir_separator
=:
16227 hardcode_direct
=yes
16228 hardcode_direct_absolute
=yes
16229 export_dynamic_flag_spec
='${wl}-E'
16230 # hardcode_minus_L: Not really in the search PATH,
16231 # but as the default location of the library.
16232 hardcode_minus_L
=yes
16237 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16240 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16243 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16246 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16252 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16255 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16259 # Older versions of the 11.00 compiler do not understand -b yet
16260 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16262 $as_echo_n "checking if $CC understands -b... " >&6; }
16263 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16264 $as_echo_n "(cached) " >&6
16266 lt_cv_prog_compiler__b
=no
16267 save_LDFLAGS
="$LDFLAGS"
16268 LDFLAGS
="$LDFLAGS -b"
16269 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16270 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16271 # The linker can only warn and ignore the option if not recognized
16272 # So say no if there are warnings
16273 if test -s conftest.err
; then
16274 # Append any errors to the config.log.
16275 cat conftest.err
1>&5
16276 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16277 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16278 if diff conftest.exp conftest.er2
>/dev
/null
; then
16279 lt_cv_prog_compiler__b
=yes
16282 lt_cv_prog_compiler__b
=yes
16286 LDFLAGS
="$save_LDFLAGS"
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16290 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16292 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16293 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16295 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16301 if test "$with_gnu_ld" = no
; then
16302 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16303 hardcode_libdir_separator
=:
16308 hardcode_shlibpath_var
=no
16311 hardcode_direct
=yes
16312 hardcode_direct_absolute
=yes
16313 export_dynamic_flag_spec
='${wl}-E'
16315 # hardcode_minus_L: Not really in the search PATH,
16316 # but as the default location of the library.
16317 hardcode_minus_L
=yes
16323 irix5
* | irix6
* | nonstopux
*)
16324 if test "$GCC" = yes; then
16325 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'
16326 # Try to use the -exported_symbol ld option, if it does not
16327 # work, assume that -exports_file does not work either and
16328 # implicitly export all symbols.
16329 save_LDFLAGS
="$LDFLAGS"
16330 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16332 /* end confdefs.h. */
16335 if ac_fn_c_try_link
"$LINENO"; then :
16336 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'
16339 rm -f core conftest.err conftest.
$ac_objext \
16340 conftest
$ac_exeext conftest.
$ac_ext
16341 LDFLAGS
="$save_LDFLAGS"
16343 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'
16344 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'
16346 archive_cmds_need_lc
='no'
16347 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16348 hardcode_libdir_separator
=:
16350 link_all_deplibs
=yes
16354 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16355 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16357 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16359 hardcode_libdir_flag_spec
='-R$libdir'
16360 hardcode_direct
=yes
16361 hardcode_shlibpath_var
=no
16365 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16366 hardcode_direct
=yes
16367 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16368 hardcode_libdir_separator
=:
16369 hardcode_shlibpath_var
=no
16376 if test -f /usr
/libexec
/ld.so
; then
16377 hardcode_direct
=yes
16378 hardcode_shlibpath_var
=no
16379 hardcode_direct_absolute
=yes
16380 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16381 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16382 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16383 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16384 export_dynamic_flag_spec
='${wl}-E'
16387 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16388 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16389 hardcode_libdir_flag_spec
='-R$libdir'
16392 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16393 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16403 hardcode_libdir_flag_spec
='-L$libdir'
16404 hardcode_minus_L
=yes
16405 allow_undefined_flag
=unsupported
16406 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'
16407 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16411 if test "$GCC" = yes; then
16412 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16413 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'
16415 allow_undefined_flag
=' -expect_unresolved \*'
16416 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'
16418 archive_cmds_need_lc
='no'
16419 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16420 hardcode_libdir_separator
=:
16423 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16424 if test "$GCC" = yes; then
16425 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16426 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'
16427 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16429 allow_undefined_flag
=' -expect_unresolved \*'
16430 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'
16431 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~
16432 $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'
16434 # Both c and cxx compiler support -rpath directly
16435 hardcode_libdir_flag_spec
='-rpath $libdir'
16437 archive_cmds_need_lc
='no'
16438 hardcode_libdir_separator
=:
16442 no_undefined_flag
=' -z defs'
16443 if test "$GCC" = yes; then
16445 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16446 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16447 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16449 case `$CC -V 2>&1` in
16452 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16453 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16454 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16458 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16459 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16460 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16464 hardcode_libdir_flag_spec
='-R$libdir'
16465 hardcode_shlibpath_var
=no
16467 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16469 # The compiler driver will combine and reorder linker options,
16470 # but understands `-z linker_flag'. GCC discards it without `$wl',
16471 # but is careful enough not to reorder.
16472 # Supported since Solaris 2.6 (maybe 2.5.1?)
16473 if test "$GCC" = yes; then
16474 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16476 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16480 link_all_deplibs
=yes
16484 if test "x$host_vendor" = xsequent
; then
16485 # Use $CC to link under sequent, because it throws in some extra .o
16486 # files that make .init and .fini sections work.
16487 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16489 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16491 hardcode_libdir_flag_spec
='-L$libdir'
16492 hardcode_direct
=yes
16493 hardcode_minus_L
=yes
16494 hardcode_shlibpath_var
=no
16498 case $host_vendor in
16500 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16501 hardcode_direct
=yes # is this really true???
16504 ## LD is ld it makes a PLAMLIB
16505 ## CC just makes a GrossModule.
16506 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16507 reload_cmds
='$CC -r -o $output$reload_objs'
16511 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16512 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16515 runpath_var
='LD_RUN_PATH'
16516 hardcode_shlibpath_var
=no
16520 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16521 hardcode_shlibpath_var
=no
16522 export_dynamic_flag_spec
='-Bexport'
16526 if test -d /usr
/nec
; then
16527 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16528 hardcode_shlibpath_var
=no
16529 runpath_var
=LD_RUN_PATH
16530 hardcode_runpath_var
=yes
16535 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16536 no_undefined_flag
='${wl}-z,text'
16537 archive_cmds_need_lc
=no
16538 hardcode_shlibpath_var
=no
16539 runpath_var
='LD_RUN_PATH'
16541 if test "$GCC" = yes; then
16542 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16543 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16545 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16546 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16550 sysv5
* | sco3.2v5
* | sco5v6
*)
16551 # Note: We can NOT use -z defs as we might desire, because we do not
16552 # link with -lc, and that would cause any symbols used from libc to
16553 # always be unresolved, which means just about no library would
16554 # ever link correctly. If we're not using GNU ld we use -z text
16555 # though, which does catch some bad symbols but isn't as heavy-handed
16557 no_undefined_flag
='${wl}-z,text'
16558 allow_undefined_flag
='${wl}-z,nodefs'
16559 archive_cmds_need_lc
=no
16560 hardcode_shlibpath_var
=no
16561 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16562 hardcode_libdir_separator
=':'
16563 link_all_deplibs
=yes
16564 export_dynamic_flag_spec
='${wl}-Bexport'
16565 runpath_var
='LD_RUN_PATH'
16567 if test "$GCC" = yes; then
16568 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16569 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16571 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16572 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16577 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16578 hardcode_libdir_flag_spec
='-L$libdir'
16579 hardcode_shlibpath_var
=no
16587 if test x
$host_vendor = xsni
; then
16589 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16590 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16597 $as_echo "$ld_shlibs" >&6; }
16598 test "$ld_shlibs" = no
&& can_build_shared
=no
16600 with_gnu_ld
=$with_gnu_ld
16617 # Do we need to explicitly link libc?
16619 case "x$archive_cmds_need_lc" in
16621 # Assume -lc should be added
16622 archive_cmds_need_lc
=yes
16624 if test "$enable_shared" = yes && test "$GCC" = yes; then
16625 case $archive_cmds in
16627 # FIXME: we may have to deal with multi-command sequences.
16630 # Test whether the compiler implicitly links with -lc since on some
16631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16632 # to ld, don't add -lc before -lgcc.
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16634 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16635 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16636 $as_echo_n "(cached) " >&6
16639 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16642 (eval $ac_compile) 2>&5
16644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16645 test $ac_status = 0; } 2>conftest.err
; then
16648 libobjs
=conftest.
$ac_objext
16650 wl
=$lt_prog_compiler_wl
16651 pic_flag
=$lt_prog_compiler_pic
16657 lt_save_allow_undefined_flag
=$allow_undefined_flag
16658 allow_undefined_flag
=
16659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16660 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16663 test $ac_status = 0; }
16665 lt_cv_archive_cmds_need_lc
=no
16667 lt_cv_archive_cmds_need_lc
=yes
16669 allow_undefined_flag
=$lt_save_allow_undefined_flag
16671 cat conftest.err
1>&5
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16677 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16678 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16842 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16844 if test "$GCC" = yes; then
16846 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16847 *) lt_awk_arg
="/^libraries:/" ;;
16850 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16851 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16853 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16854 case $lt_search_path_spec in
16856 # if the path contains ";" then we assume it to be the separator
16857 # otherwise default to the standard path separator (i.e. ":") - it is
16858 # assumed that no part of a normal pathname contains ";" but that should
16859 # okay in the real world where ";" in dirpaths is itself problematic.
16860 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16863 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16866 # Ok, now we have the path, separated by spaces, we can step through it
16867 # and add multilib dir if necessary.
16868 lt_tmp_lt_search_path_spec
=
16869 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16870 for lt_sys_path
in $lt_search_path_spec; do
16871 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16872 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16874 test -d "$lt_sys_path" && \
16875 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16878 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16879 BEGIN {RS=" "; FS="/|\n";} {
16882 for (lt_i = NF; lt_i > 0; lt_i--) {
16883 if ($lt_i != "" && $lt_i != ".") {
16884 if ($lt_i == "..") {
16887 if (lt_count == 0) {
16888 lt_foo="/" $lt_i lt_foo;
16895 if (lt_foo != "") { lt_freq[lt_foo]++; }
16896 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16898 # AWK program above erroneously prepends '/' to C:/dos/paths
16901 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16902 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16904 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16906 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16908 library_names_spec
=
16909 libname_spec
='lib$name'
16913 postuninstall_cmds
=
16917 shlibpath_overrides_runpath
=unknown
16919 dynamic_linker
="$host_os ld.so"
16920 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16921 need_lib_prefix
=unknown
16922 hardcode_into_libs
=no
16924 # when you set need_version to no, make sure it does not cause -set_version
16925 # flags to be left without arguments
16926 need_version
=unknown
16931 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16932 shlibpath_var
=LIBPATH
16934 # AIX 3 has no versioning support, so we append a major version to the name.
16935 soname_spec
='${libname}${release}${shared_ext}$major'
16942 hardcode_into_libs
=yes
16943 if test "$host_cpu" = ia64
; then
16944 # AIX 5 supports IA64
16945 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16946 shlibpath_var
=LD_LIBRARY_PATH
16948 # With GCC up to 2.95.x, collect2 would create an import file
16949 # for dependence libraries. The import file would start with
16950 # the line `#! .'. This would cause the generated library to
16951 # depend on `.', always an invalid library. This was fixed in
16952 # development snapshots of GCC prior to 3.0.
16954 aix4 | aix4.
[01] | aix4.
[01].
*)
16955 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16957 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16960 can_build_shared
=no
16964 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16965 # soname into executable. Probably we can add versioning support to
16966 # collect2, so additional links can be useful in future.
16967 if test "$aix_use_runtimelinking" = yes; then
16968 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16969 # instead of lib<name>.a to let people know that these are not
16970 # typical AIX shared libraries.
16971 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16973 # We preserve .a as extension for shared libraries through AIX4.2
16974 # and later when we are not doing run time linking.
16975 library_names_spec
='${libname}${release}.a $libname.a'
16976 soname_spec
='${libname}${release}${shared_ext}$major'
16978 shlibpath_var
=LIBPATH
16985 # Since July 2007 AmigaOS4 officially supports .so libraries.
16986 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16987 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16990 library_names_spec
='$libname.ixlibrary $libname.a'
16991 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16992 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'
16998 library_names_spec
='${libname}${shared_ext}'
16999 dynamic_linker
="$host_os ld.so"
17000 shlibpath_var
=LIBRARY_PATH
17006 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17007 soname_spec
='${libname}${release}${shared_ext}$major'
17008 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17009 shlibpath_var
=LD_LIBRARY_PATH
17010 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17011 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17012 # the default ld.so.conf also contains /usr/contrib/lib and
17013 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17014 # libtool to hard-code these into programs
17017 cygwin
* | mingw
* | pw32
* | cegcc
*)
17018 version_type
=windows
17023 case $GCC,$host_os in
17024 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17025 library_names_spec
='$libname.dll.a'
17026 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17027 postinstall_cmds
='base_file=`basename \${file}`~
17028 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17029 dldir=$destdir/`dirname \$dlpath`~
17030 test -d \$dldir || mkdir -p \$dldir~
17031 $install_prog $dir/$dlname \$dldir/$dlname~
17032 chmod a+x \$dldir/$dlname~
17033 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17034 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17036 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17037 dlpath=$dir/\$dldll~
17039 shlibpath_overrides_runpath
=yes
17043 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17044 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17046 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17049 # MinGW DLLs use traditional 'lib' prefix
17050 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17053 # pw32 DLLs use 'pw' prefix rather than 'lib'
17054 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17060 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17063 dynamic_linker
='Win32 ld.exe'
17064 # FIXME: first we should search . and the directory the executable is in
17068 darwin
* | rhapsody
*)
17069 dynamic_linker
="$host_os dyld"
17070 version_type
=darwin
17073 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17074 soname_spec
='${libname}${release}${major}$shared_ext'
17075 shlibpath_overrides_runpath
=yes
17076 shlibpath_var
=DYLD_LIBRARY_PATH
17077 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17079 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17080 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17087 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17088 soname_spec
='${libname}${release}${shared_ext}$major'
17089 shlibpath_var
=LD_LIBRARY_PATH
17092 freebsd
* | dragonfly
*)
17093 # DragonFly does not have aout. When/if they implement a new
17094 # versioning mechanism, adjust this.
17095 if test -x /usr
/bin
/objformat
; then
17096 objformat
=`/usr/bin/objformat`
17099 freebsd
[23].
*) objformat
=aout
;;
17100 *) objformat
=elf
;;
17103 version_type
=freebsd-
$objformat
17104 case $version_type in
17106 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17111 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17115 shlibpath_var
=LD_LIBRARY_PATH
17118 shlibpath_overrides_runpath
=yes
17120 freebsd3.
[01]* | freebsdelf3.
[01]*)
17121 shlibpath_overrides_runpath
=yes
17122 hardcode_into_libs
=yes
17124 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17125 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17126 shlibpath_overrides_runpath
=no
17127 hardcode_into_libs
=yes
17129 *) # from 4.6 on, and DragonFly
17130 shlibpath_overrides_runpath
=yes
17131 hardcode_into_libs
=yes
17140 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17141 soname_spec
='${libname}${release}${shared_ext}$major'
17142 shlibpath_var
=LD_LIBRARY_PATH
17143 hardcode_into_libs
=yes
17150 dynamic_linker
="$host_os runtime_loader"
17151 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17152 soname_spec
='${libname}${release}${shared_ext}$major'
17153 shlibpath_var
=LIBRARY_PATH
17154 shlibpath_overrides_runpath
=yes
17155 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17156 hardcode_into_libs
=yes
17159 hpux9
* | hpux10
* | hpux11
*)
17160 # Give a soname corresponding to the major version so that dld.sl refuses to
17161 # link against other versions.
17168 hardcode_into_libs
=yes
17169 dynamic_linker
="$host_os dld.so"
17170 shlibpath_var
=LD_LIBRARY_PATH
17171 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17172 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17173 soname_spec
='${libname}${release}${shared_ext}$major'
17174 if test "X$HPUX_IA64_MODE" = X32
; then
17175 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17177 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17179 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17183 hardcode_into_libs
=yes
17184 dynamic_linker
="$host_os dld.sl"
17185 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17186 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17187 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17188 soname_spec
='${libname}${release}${shared_ext}$major'
17189 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17190 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17194 dynamic_linker
="$host_os dld.sl"
17195 shlibpath_var
=SHLIB_PATH
17196 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17197 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17198 soname_spec
='${libname}${release}${shared_ext}$major'
17201 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17202 postinstall_cmds
='chmod 555 $lib'
17203 # or fails outright, so override atomically:
17204 install_override_mode
=555
17211 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17212 soname_spec
='${libname}${release}${shared_ext}$major'
17213 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17214 shlibpath_var
=LD_LIBRARY_PATH
17215 shlibpath_overrides_runpath
=no
17216 hardcode_into_libs
=yes
17219 irix5
* | irix6
* | nonstopux
*)
17221 nonstopux
*) version_type
=nonstopux
;;
17223 if test "$lt_cv_prog_gnu_ld" = yes; then
17231 soname_spec
='${libname}${release}${shared_ext}$major'
17232 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17234 irix5
* | nonstopux
*)
17235 libsuff
= shlibsuff
=
17238 case $LD in # libtool.m4 will add one of these switches to LD
17239 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17240 libsuff
= shlibsuff
= libmagic
=32-bit;;
17241 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17242 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17243 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17244 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17245 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17249 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17250 shlibpath_overrides_runpath
=no
17251 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17252 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17253 hardcode_into_libs
=yes
17256 # No shared lib support for Linux oldld, aout, or coff.
17257 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17261 # This must be Linux ELF.
17262 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17266 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17267 soname_spec
='${libname}${release}${shared_ext}$major'
17268 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17269 shlibpath_var
=LD_LIBRARY_PATH
17270 shlibpath_overrides_runpath
=no
17272 # Some binutils ld are patched to set DT_RUNPATH
17273 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17274 $as_echo_n "(cached) " >&6
17276 lt_cv_shlibpath_overrides_runpath
=no
17277 save_LDFLAGS
=$LDFLAGS
17278 save_libdir
=$libdir
17279 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17280 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17282 /* end confdefs.h. */
17292 if ac_fn_c_try_link
"$LINENO"; then :
17293 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17294 lt_cv_shlibpath_overrides_runpath
=yes
17297 rm -f core conftest.err conftest.
$ac_objext \
17298 conftest
$ac_exeext conftest.
$ac_ext
17299 LDFLAGS
=$save_LDFLAGS
17300 libdir
=$save_libdir
17304 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17306 # This implies no fast_install, which is unacceptable.
17307 # Some rework will be needed to allow for fast_install
17308 # before this can be enabled.
17309 hardcode_into_libs
=yes
17311 # Append ld.so.conf contents to the search path
17312 if test -f /etc
/ld.so.conf
; then
17313 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' ' '`
17314 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17317 # We used to test for /lib/ld.so.1 and disable shared libraries on
17318 # powerpc, because MkLinux only supported shared libraries with the
17319 # GNU dynamic linker. Since this was broken with cross compilers,
17320 # most powerpc-linux boxes support dynamic linking these days and
17321 # people can always --disable-shared, the test was removed, and we
17322 # assume the GNU/Linux dynamic linker is in use.
17323 dynamic_linker
='GNU/Linux ld.so'
17330 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17331 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17332 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17333 dynamic_linker
='NetBSD (a.out) ld.so'
17335 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17336 soname_spec
='${libname}${release}${shared_ext}$major'
17337 dynamic_linker
='NetBSD ld.elf_so'
17339 shlibpath_var
=LD_LIBRARY_PATH
17340 shlibpath_overrides_runpath
=yes
17341 hardcode_into_libs
=yes
17346 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17347 shlibpath_var
=LD_LIBRARY_PATH
17348 shlibpath_overrides_runpath
=yes
17355 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17356 soname_spec
='${libname}${release}${shared_ext}$major'
17357 shlibpath_var
=LD_LIBRARY_PATH
17358 shlibpath_overrides_runpath
=no
17359 hardcode_into_libs
=yes
17360 dynamic_linker
='ldqnx.so'
17365 sys_lib_dlsearch_path_spec
="/usr/lib"
17367 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17369 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17370 *) need_version
=no
;;
17372 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17373 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17374 shlibpath_var
=LD_LIBRARY_PATH
17375 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17377 openbsd2.
[89] | openbsd2.
[89].
*)
17378 shlibpath_overrides_runpath
=no
17381 shlibpath_overrides_runpath
=yes
17385 shlibpath_overrides_runpath
=yes
17390 libname_spec
='$name'
17393 library_names_spec
='$libname${shared_ext} $libname.a'
17394 dynamic_linker
='OS/2 ld.exe'
17395 shlibpath_var
=LIBPATH
17398 osf3
* | osf4
* | osf5
*)
17402 soname_spec
='${libname}${release}${shared_ext}$major'
17403 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17404 shlibpath_var
=LD_LIBRARY_PATH
17405 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17406 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17417 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17418 soname_spec
='${libname}${release}${shared_ext}$major'
17419 shlibpath_var
=LD_LIBRARY_PATH
17420 shlibpath_overrides_runpath
=yes
17421 hardcode_into_libs
=yes
17422 # ldd complains unless libraries are executable
17423 postinstall_cmds
='chmod +x $lib'
17428 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17429 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17430 shlibpath_var
=LD_LIBRARY_PATH
17431 shlibpath_overrides_runpath
=yes
17432 if test "$with_gnu_ld" = yes; then
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
17443 case $host_vendor in
17445 shlibpath_overrides_runpath
=no
17447 runpath_var
=LD_RUN_PATH
17455 shlibpath_overrides_runpath
=no
17456 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17462 if test -d /usr
/nec
;then
17464 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17465 soname_spec
='$libname${shared_ext}.$major'
17466 shlibpath_var
=LD_LIBRARY_PATH
17470 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17471 version_type
=freebsd-elf
17474 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17475 soname_spec
='${libname}${release}${shared_ext}$major'
17476 shlibpath_var
=LD_LIBRARY_PATH
17477 shlibpath_overrides_runpath
=yes
17478 hardcode_into_libs
=yes
17479 if test "$with_gnu_ld" = yes; then
17480 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17482 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17485 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17489 sys_lib_dlsearch_path_spec
='/usr/lib'
17493 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17497 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17498 shlibpath_var
=LD_LIBRARY_PATH
17499 shlibpath_overrides_runpath
=no
17500 hardcode_into_libs
=yes
17505 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17506 soname_spec
='${libname}${release}${shared_ext}$major'
17507 shlibpath_var
=LD_LIBRARY_PATH
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17515 $as_echo "$dynamic_linker" >&6; }
17516 test "$dynamic_linker" = no
&& can_build_shared
=no
17518 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17519 if test "$GCC" = yes; then
17520 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17523 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17524 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17526 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17527 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17622 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17624 if test -n "$hardcode_libdir_flag_spec" ||
17625 test -n "$runpath_var" ||
17626 test "X$hardcode_automatic" = "Xyes" ; then
17628 # We can hardcode non-existent directories.
17629 if test "$hardcode_direct" != no
&&
17630 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17631 # have to relink, otherwise we might link with an installed library
17632 # when we should be linking with a yet-to-be-installed one
17633 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17634 test "$hardcode_minus_L" != no
; then
17635 # Linking always hardcodes the temporary library directory.
17636 hardcode_action
=relink
17638 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17639 hardcode_action
=immediate
17642 # We cannot hardcode anything, or else we can only hardcode existing
17644 hardcode_action
=unsupported
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17647 $as_echo "$hardcode_action" >&6; }
17649 if test "$hardcode_action" = relink ||
17650 test "$inherit_rpath" = yes; then
17651 # Fast installation is not supported
17652 enable_fast_install
=no
17653 elif test "$shlibpath_overrides_runpath" = yes ||
17654 test "$enable_shared" = no
; then
17655 # Fast installation is not necessary
17656 enable_fast_install
=needless
17664 if test "x$enable_dlopen" != xyes
; then
17665 enable_dlopen
=unknown
17666 enable_dlopen_self
=unknown
17667 enable_dlopen_self_static
=unknown
17674 lt_cv_dlopen
="load_add_on"
17676 lt_cv_dlopen_self
=yes
17679 mingw
* | pw32
* | cegcc
*)
17680 lt_cv_dlopen
="LoadLibrary"
17685 lt_cv_dlopen
="dlopen"
17690 # if libdl is installed we need to link against it
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17692 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17693 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17694 $as_echo_n "(cached) " >&6
17696 ac_check_lib_save_LIBS
=$LIBS
17698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17699 /* end confdefs.h. */
17701 /* Override any GCC internal prototype to avoid an error.
17702 Use char because int might match the return type of a GCC
17703 builtin and then its argument prototype would still apply. */
17716 if ac_fn_c_try_link
"$LINENO"; then :
17717 ac_cv_lib_dl_dlopen
=yes
17719 ac_cv_lib_dl_dlopen
=no
17721 rm -f core conftest.err conftest.
$ac_objext \
17722 conftest
$ac_exeext conftest.
$ac_ext
17723 LIBS
=$ac_check_lib_save_LIBS
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17726 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17727 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17728 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17731 lt_cv_dlopen
="dyld"
17733 lt_cv_dlopen_self
=yes
17740 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17741 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17742 lt_cv_dlopen
="shl_load"
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17745 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17746 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17747 $as_echo_n "(cached) " >&6
17749 ac_check_lib_save_LIBS
=$LIBS
17751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17752 /* end confdefs.h. */
17754 /* Override any GCC internal prototype to avoid an error.
17755 Use char because int might match the return type of a GCC
17756 builtin and then its argument prototype would still apply. */
17764 return shl_load ();
17769 if ac_fn_c_try_link
"$LINENO"; then :
17770 ac_cv_lib_dld_shl_load
=yes
17772 ac_cv_lib_dld_shl_load
=no
17774 rm -f core conftest.err conftest.
$ac_objext \
17775 conftest
$ac_exeext conftest.
$ac_ext
17776 LIBS
=$ac_check_lib_save_LIBS
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17779 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17780 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17781 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17783 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17784 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17785 lt_cv_dlopen
="dlopen"
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17788 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17789 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17790 $as_echo_n "(cached) " >&6
17792 ac_check_lib_save_LIBS
=$LIBS
17794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h. */
17797 /* Override any GCC internal prototype to avoid an error.
17798 Use char because int might match the return type of a GCC
17799 builtin and then its argument prototype would still apply. */
17812 if ac_fn_c_try_link
"$LINENO"; then :
17813 ac_cv_lib_dl_dlopen
=yes
17815 ac_cv_lib_dl_dlopen
=no
17817 rm -f core conftest.err conftest.
$ac_objext \
17818 conftest
$ac_exeext conftest.
$ac_ext
17819 LIBS
=$ac_check_lib_save_LIBS
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17822 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17823 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17824 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17827 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17828 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17829 $as_echo_n "(cached) " >&6
17831 ac_check_lib_save_LIBS
=$LIBS
17832 LIBS
="-lsvld $LIBS"
17833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17834 /* end confdefs.h. */
17836 /* Override any GCC internal prototype to avoid an error.
17837 Use char because int might match the return type of a GCC
17838 builtin and then its argument prototype would still apply. */
17851 if ac_fn_c_try_link
"$LINENO"; then :
17852 ac_cv_lib_svld_dlopen
=yes
17854 ac_cv_lib_svld_dlopen
=no
17856 rm -f core conftest.err conftest.
$ac_objext \
17857 conftest
$ac_exeext conftest.
$ac_ext
17858 LIBS
=$ac_check_lib_save_LIBS
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17861 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17862 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17863 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17866 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17867 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17868 $as_echo_n "(cached) " >&6
17870 ac_check_lib_save_LIBS
=$LIBS
17872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17873 /* end confdefs.h. */
17875 /* Override any GCC internal prototype to avoid an error.
17876 Use char because int might match the return type of a GCC
17877 builtin and then its argument prototype would still apply. */
17885 return dld_link ();
17890 if ac_fn_c_try_link
"$LINENO"; then :
17891 ac_cv_lib_dld_dld_link
=yes
17893 ac_cv_lib_dld_dld_link
=no
17895 rm -f core conftest.err conftest.
$ac_objext \
17896 conftest
$ac_exeext conftest.
$ac_ext
17897 LIBS
=$ac_check_lib_save_LIBS
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17900 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17901 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17902 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17923 if test "x$lt_cv_dlopen" != xno
; then
17929 case $lt_cv_dlopen in
17931 save_CPPFLAGS
="$CPPFLAGS"
17932 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17934 save_LDFLAGS
="$LDFLAGS"
17935 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17938 LIBS
="$lt_cv_dlopen_libs $LIBS"
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17941 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17942 if test "${lt_cv_dlopen_self+set}" = set; then :
17943 $as_echo_n "(cached) " >&6
17945 if test "$cross_compiling" = yes; then :
17946 lt_cv_dlopen_self
=cross
17948 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17949 lt_status
=$lt_dlunknown
17950 cat > conftest.
$ac_ext <<_LT_EOF
17951 #line 17951 "configure"
17952 #include "confdefs.h"
17961 # define LT_DLGLOBAL RTLD_GLOBAL
17964 # define LT_DLGLOBAL DL_GLOBAL
17966 # define LT_DLGLOBAL 0
17970 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17971 find out it does not work in some platform. */
17972 #ifndef LT_DLLAZY_OR_NOW
17974 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17977 # define LT_DLLAZY_OR_NOW DL_LAZY
17980 # define LT_DLLAZY_OR_NOW RTLD_NOW
17983 # define LT_DLLAZY_OR_NOW DL_NOW
17985 # define LT_DLLAZY_OR_NOW 0
17992 /* When -fvisbility=hidden is used, assume the code has been annotated
17993 correspondingly for the symbols needed. */
17994 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17995 void fnord () __attribute__((visibility("default")));
17998 void fnord () { int i=42; }
18001 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18002 int status = $lt_dlunknown;
18006 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18009 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18010 else puts (dlerror ());
18012 /* dlclose (self); */
18020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18021 (eval $ac_link) 2>&5
18023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18024 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18025 (.
/conftest
; exit; ) >&5 2>/dev
/null
18027 case x
$lt_status in
18028 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18029 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18030 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18033 # compilation failed
18034 lt_cv_dlopen_self
=no
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18042 $as_echo "$lt_cv_dlopen_self" >&6; }
18044 if test "x$lt_cv_dlopen_self" = xyes
; then
18045 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18047 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18048 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18049 $as_echo_n "(cached) " >&6
18051 if test "$cross_compiling" = yes; then :
18052 lt_cv_dlopen_self_static
=cross
18054 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18055 lt_status
=$lt_dlunknown
18056 cat > conftest.
$ac_ext <<_LT_EOF
18057 #line 18057 "configure"
18058 #include "confdefs.h"
18067 # define LT_DLGLOBAL RTLD_GLOBAL
18070 # define LT_DLGLOBAL DL_GLOBAL
18072 # define LT_DLGLOBAL 0
18076 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18077 find out it does not work in some platform. */
18078 #ifndef LT_DLLAZY_OR_NOW
18080 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18083 # define LT_DLLAZY_OR_NOW DL_LAZY
18086 # define LT_DLLAZY_OR_NOW RTLD_NOW
18089 # define LT_DLLAZY_OR_NOW DL_NOW
18091 # define LT_DLLAZY_OR_NOW 0
18098 /* When -fvisbility=hidden is used, assume the code has been annotated
18099 correspondingly for the symbols needed. */
18100 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18101 void fnord () __attribute__((visibility("default")));
18104 void fnord () { int i=42; }
18107 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18108 int status = $lt_dlunknown;
18112 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18115 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18116 else puts (dlerror ());
18118 /* dlclose (self); */
18126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18127 (eval $ac_link) 2>&5
18129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18130 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18131 (.
/conftest
; exit; ) >&5 2>/dev
/null
18133 case x
$lt_status in
18134 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18135 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18136 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18139 # compilation failed
18140 lt_cv_dlopen_self_static
=no
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18148 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18151 CPPFLAGS
="$save_CPPFLAGS"
18152 LDFLAGS
="$save_LDFLAGS"
18157 case $lt_cv_dlopen_self in
18158 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18159 *) enable_dlopen_self
=unknown
;;
18162 case $lt_cv_dlopen_self_static in
18163 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18164 *) enable_dlopen_self_static
=unknown
;;
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18187 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18188 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18189 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18190 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18192 $as_echo "yes" >&6; }
18194 # FIXME - insert some real tests, host_os isn't really good enough
18197 if test -n "$STRIP" ; then
18198 striplib
="$STRIP -x"
18199 old_striplib
="$STRIP -S"
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18201 $as_echo "yes" >&6; }
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18204 $as_echo "no" >&6; }
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18209 $as_echo "no" >&6; }
18225 # Report which library types will actually be built
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18227 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18229 $as_echo "$can_build_shared" >&6; }
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18232 $as_echo_n "checking whether to build shared libraries... " >&6; }
18233 test "$can_build_shared" = "no" && enable_shared
=no
18235 # On AIX, shared libraries and static libraries use the same namespace, and
18236 # are all built from PIC.
18239 test "$enable_shared" = yes && enable_static
=no
18240 if test -n "$RANLIB"; then
18241 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18242 postinstall_cmds
='$RANLIB $lib'
18247 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18248 test "$enable_shared" = yes && enable_static
=no
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18253 $as_echo "$enable_shared" >&6; }
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18256 $as_echo_n "checking whether to build static libraries... " >&6; }
18257 # Make sure either enable_shared or enable_static is yes.
18258 test "$enable_shared" = yes || enable_static
=yes
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18260 $as_echo "$enable_static" >&6; }
18267 ac_cpp
='$CPP $CPPFLAGS'
18268 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18269 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18270 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18274 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18275 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18276 (test "X$CXX" != "Xg++"))) ; then
18278 ac_cpp
='$CXXCPP $CPPFLAGS'
18279 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18280 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18281 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18283 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18284 if test -z "$CXXCPP"; then
18285 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18286 $as_echo_n "(cached) " >&6
18288 # Double quotes because CXXCPP needs to be expanded
18289 for CXXCPP
in "$CXX -E" "/lib/cpp"
18291 ac_preproc_ok
=false
18292 for ac_cxx_preproc_warn_flag
in '' yes
18294 # Use a header file that comes with gcc, so configuring glibc
18295 # with a fresh cross-compiler works.
18296 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18297 # <limits.h> exists even on freestanding compilers.
18298 # On the NeXT, cc -E runs the code through the compiler's parser,
18299 # not just through cpp. "Syntax error" is here to catch this case.
18300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18301 /* end confdefs.h. */
18303 # include <limits.h>
18305 # include <assert.h>
18309 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18312 # Broken: fails on valid input.
18315 rm -f conftest.err conftest.
$ac_ext
18317 # OK, works on sane cases. Now check whether nonexistent headers
18318 # can be detected and how.
18319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18320 /* end confdefs.h. */
18321 #include <ac_nonexistent.h>
18323 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18324 # Broken: success on invalid input.
18327 # Passes both tests.
18331 rm -f conftest.err conftest.
$ac_ext
18334 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18335 rm -f conftest.err conftest.
$ac_ext
18336 if $ac_preproc_ok; then :
18341 ac_cv_prog_CXXCPP
=$CXXCPP
18344 CXXCPP
=$ac_cv_prog_CXXCPP
18346 ac_cv_prog_CXXCPP
=$CXXCPP
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18349 $as_echo "$CXXCPP" >&6; }
18350 ac_preproc_ok
=false
18351 for ac_cxx_preproc_warn_flag
in '' yes
18353 # Use a header file that comes with gcc, so configuring glibc
18354 # with a fresh cross-compiler works.
18355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18356 # <limits.h> exists even on freestanding compilers.
18357 # On the NeXT, cc -E runs the code through the compiler's parser,
18358 # not just through cpp. "Syntax error" is here to catch this case.
18359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18360 /* end confdefs.h. */
18362 # include <limits.h>
18364 # include <assert.h>
18368 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18371 # Broken: fails on valid input.
18374 rm -f conftest.err conftest.
$ac_ext
18376 # OK, works on sane cases. Now check whether nonexistent headers
18377 # can be detected and how.
18378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18379 /* end confdefs.h. */
18380 #include <ac_nonexistent.h>
18382 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18383 # Broken: success on invalid input.
18386 # Passes both tests.
18390 rm -f conftest.err conftest.
$ac_ext
18393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18394 rm -f conftest.err conftest.
$ac_ext
18395 if $ac_preproc_ok; then :
18398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18400 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18401 See \`config.log' for more details." "$LINENO" 5; }
18405 ac_cpp
='$CPP $CPPFLAGS'
18406 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18407 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18408 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18411 _lt_caught_CXX_error
=yes
18415 ac_cpp
='$CXXCPP $CPPFLAGS'
18416 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18417 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18418 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18420 archive_cmds_need_lc_CXX
=no
18421 allow_undefined_flag_CXX
=
18422 always_export_symbols_CXX
=no
18423 archive_expsym_cmds_CXX
=
18424 compiler_needs_object_CXX
=no
18425 export_dynamic_flag_spec_CXX
=
18426 hardcode_direct_CXX
=no
18427 hardcode_direct_absolute_CXX
=no
18428 hardcode_libdir_flag_spec_CXX
=
18429 hardcode_libdir_flag_spec_ld_CXX
=
18430 hardcode_libdir_separator_CXX
=
18431 hardcode_minus_L_CXX
=no
18432 hardcode_shlibpath_var_CXX
=unsupported
18433 hardcode_automatic_CXX
=no
18434 inherit_rpath_CXX
=no
18436 module_expsym_cmds_CXX
=
18437 link_all_deplibs_CXX
=unknown
18438 old_archive_cmds_CXX
=$old_archive_cmds
18439 reload_flag_CXX
=$reload_flag
18440 reload_cmds_CXX
=$reload_cmds
18441 no_undefined_flag_CXX
=
18442 whole_archive_flag_spec_CXX
=
18443 enable_shared_with_static_runtimes_CXX
=no
18445 # Source file extension for C++ test sources.
18448 # Object file extension for compiled C++ test sources.
18452 # No sense in running all these tests if we already determined that
18453 # the CXX compiler isn't working. Some variables (like enable_shared)
18454 # are currently assumed to apply to all compilers on this platform,
18455 # and will be corrupted by setting them based on a non-working compiler.
18456 if test "$_lt_caught_CXX_error" != yes; then
18457 # Code to be used in simple compile tests
18458 lt_simple_compile_test_code
="int some_variable = 0;"
18460 # Code to be used in simple link tests
18461 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18463 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18470 # If no C compiler was specified, use CC.
18473 # If no C compiler flags were specified, use CFLAGS.
18474 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18476 # Allow CC to be a program name with arguments.
18480 # save warnings/boilerplate of simple test code
18481 ac_outfile
=conftest.
$ac_objext
18482 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18483 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18484 _lt_compiler_boilerplate
=`cat conftest.err`
18487 ac_outfile
=conftest.
$ac_objext
18488 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18489 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18490 _lt_linker_boilerplate
=`cat conftest.err`
18494 # Allow CC to be a program name with arguments.
18499 lt_save_with_gnu_ld
=$with_gnu_ld
18500 lt_save_path_LD
=$lt_cv_path_LD
18501 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18502 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18504 $as_unset lt_cv_prog_gnu_ld
18506 if test -n "${lt_cv_path_LDCXX+set}"; then
18507 lt_cv_path_LD
=$lt_cv_path_LDCXX
18509 $as_unset lt_cv_path_LD
18511 test -z "${LDCXX+set}" || LD
=$LDCXX
18515 for cc_temp
in $compiler""; do
18517 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18518 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18523 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18526 if test -n "$compiler"; then
18527 # We don't want -fno-exception when compiling C++ code, so set the
18528 # no_builtin_flag separately
18529 if test "$GXX" = yes; then
18530 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18532 lt_prog_compiler_no_builtin_flag_CXX
=
18535 if test "$GXX" = yes; then
18536 # Set up default GNU C++ configuration
18540 # Check whether --with-gnu-ld was given.
18541 if test "${with_gnu_ld+set}" = set; then :
18542 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18548 if test "$GCC" = yes; then
18549 # Check if gcc -print-prog-name=ld gives a path.
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18551 $as_echo_n "checking for ld used by $CC... " >&6; }
18554 # gcc leaves a trailing carriage return which upsets mingw
18555 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18557 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18560 # Accept absolute paths.
18562 re_direlt
='/[^/][^/]*/\.\./'
18563 # Canonicalize the pathname of ld
18564 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18565 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18566 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18568 test -z "$LD" && LD
="$ac_prog"
18571 # If it fails, then pretend we aren't using GCC.
18575 # If it is relative, then search for the first ld in PATH.
18576 with_gnu_ld
=unknown
18579 elif test "$with_gnu_ld" = yes; then
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18581 $as_echo_n "checking for GNU ld... " >&6; }
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18584 $as_echo_n "checking for non-GNU ld... " >&6; }
18586 if test "${lt_cv_path_LD+set}" = set; then :
18587 $as_echo_n "(cached) " >&6
18589 if test -z "$LD"; then
18590 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18591 for ac_dir
in $PATH; do
18593 test -z "$ac_dir" && ac_dir
=.
18594 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18595 lt_cv_path_LD
="$ac_dir/$ac_prog"
18596 # Check to see if the program is GNU ld. I'd rather use --version,
18597 # but apparently some variants of GNU ld only accept -v.
18598 # Break only if it was the GNU/non-GNU ld that we prefer.
18599 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18600 *GNU
* |
*'with BFD'*)
18601 test "$with_gnu_ld" != no
&& break
18604 test "$with_gnu_ld" != yes && break
18611 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18615 LD
="$lt_cv_path_LD"
18616 if test -n "$LD"; then
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18618 $as_echo "$LD" >&6; }
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18621 $as_echo "no" >&6; }
18623 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18625 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18626 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18627 $as_echo_n "(cached) " >&6
18629 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18630 case `$LD -v 2>&1 </dev/null` in
18631 *GNU
* |
*'with BFD'*)
18632 lt_cv_prog_gnu_ld
=yes
18635 lt_cv_prog_gnu_ld
=no
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18640 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18641 with_gnu_ld
=$lt_cv_prog_gnu_ld
18649 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18650 # archiving commands below assume that GNU ld is being used.
18651 if test "$with_gnu_ld" = yes; then
18652 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18653 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'
18655 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18656 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18658 # If archive_cmds runs LD, not CC, wlarc should be empty
18659 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18660 # investigate it a little bit more. (MM)
18663 # ancient GNU ld didn't support --whole-archive et. al.
18664 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18665 $GREP 'no-whole-archive' > /dev
/null
; then
18666 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18668 whole_archive_flag_spec_CXX
=
18674 # A generic and very simple default shared library creation
18675 # command for GNU C++ for the case where it uses the native
18676 # linker, instead of GNU ld. If possible, this setting should
18677 # overridden to take advantage of the native linker features on
18678 # the platform it is being used on.
18679 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18682 # Commands to make compiler produce verbose output that lists
18683 # what "hidden" libraries, object files and flags are used when
18684 # linking a shared library.
18685 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18693 # PORTME: fill in a description of your system's C++ link characteristics
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18695 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18699 # FIXME: insert proper C++ library support
18703 if test "$host_cpu" = ia64
; then
18704 # On IA64, the linker does run time linking by default, so we don't
18705 # have to do anything special.
18706 aix_use_runtimelinking
=no
18707 exp_sym_flag
='-Bexport'
18710 aix_use_runtimelinking
=no
18712 # Test if we are trying to use run time linking or normal
18713 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18714 # need to do runtime linking.
18715 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18716 for ld_flag
in $LDFLAGS; do
18719 aix_use_runtimelinking
=yes
18727 exp_sym_flag
='-bexport'
18728 no_entry_flag
='-bnoentry'
18731 # When large executables or shared objects are built, AIX ld can
18732 # have problems creating the table of contents. If linking a library
18733 # or program results in "error TOC overflow" add -mminimal-toc to
18734 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18735 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18737 archive_cmds_CXX
=''
18738 hardcode_direct_CXX
=yes
18739 hardcode_direct_absolute_CXX
=yes
18740 hardcode_libdir_separator_CXX
=':'
18741 link_all_deplibs_CXX
=yes
18742 file_list_spec_CXX
='${wl}-f,'
18744 if test "$GXX" = yes; then
18745 case $host_os in aix4.
[012]|aix4.
[012].
*)
18746 # We only want to do this on AIX 4.2 and lower, the check
18747 # below for broken collect2 doesn't work under 4.3+
18748 collect2name
=`${CC} -print-prog-name=collect2`
18749 if test -f "$collect2name" &&
18750 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18752 # We have reworked collect2
18755 # We have old collect2
18756 hardcode_direct_CXX
=unsupported
18757 # It fails to find uninstalled libraries when the uninstalled
18758 # path is not listed in the libpath. Setting hardcode_minus_L
18759 # to unsupported forces relinking
18760 hardcode_minus_L_CXX
=yes
18761 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18762 hardcode_libdir_separator_CXX
=
18765 shared_flag
='-shared'
18766 if test "$aix_use_runtimelinking" = yes; then
18767 shared_flag
="$shared_flag "'${wl}-G'
18771 if test "$host_cpu" = ia64
; then
18772 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18773 # chokes on -Wl,-G. The following line is correct:
18776 if test "$aix_use_runtimelinking" = yes; then
18777 shared_flag
='${wl}-G'
18779 shared_flag
='${wl}-bM:SRE'
18784 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18785 # It seems that -bexpall does not export symbols beginning with
18786 # underscore (_), so it is better to generate a list of symbols to
18788 always_export_symbols_CXX
=yes
18789 if test "$aix_use_runtimelinking" = yes; then
18790 # Warning - without using the other runtime loading flags (-brtl),
18791 # -berok will link without error, but may produce a broken library.
18792 allow_undefined_flag_CXX
='-berok'
18793 # Determine the default libpath from the value encoded in an empty
18795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18796 /* end confdefs.h. */
18806 if ac_fn_cxx_try_link
"$LINENO"; then :
18808 lt_aix_libpath_sed
='
18809 /Import File Strings/,/^$/ {
18815 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18816 # Check for a 64-bit object if we didn't find anything.
18817 if test -z "$aix_libpath"; then
18818 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18821 rm -f core conftest.err conftest.
$ac_objext \
18822 conftest
$ac_exeext conftest.
$ac_ext
18823 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18825 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18827 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"
18829 if test "$host_cpu" = ia64
; then
18830 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18831 allow_undefined_flag_CXX
="-z nodefs"
18832 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"
18834 # Determine the default libpath from the value encoded in an
18835 # empty executable.
18836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18837 /* end confdefs.h. */
18847 if ac_fn_cxx_try_link
"$LINENO"; then :
18849 lt_aix_libpath_sed
='
18850 /Import File Strings/,/^$/ {
18856 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18857 # Check for a 64-bit object if we didn't find anything.
18858 if test -z "$aix_libpath"; then
18859 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18862 rm -f core conftest.err conftest.
$ac_objext \
18863 conftest
$ac_exeext conftest.
$ac_ext
18864 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18866 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18867 # Warning - without using the other run time loading flags,
18868 # -berok will link without error, but may produce a broken library.
18869 no_undefined_flag_CXX
=' ${wl}-bernotok'
18870 allow_undefined_flag_CXX
=' ${wl}-berok'
18871 if test "$with_gnu_ld" = yes; then
18872 # We only use this code for GNU lds that support --whole-archive.
18873 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18875 # Exported symbols can be pulled into shared objects from archives
18876 whole_archive_flag_spec_CXX
='$convenience'
18878 archive_cmds_need_lc_CXX
=yes
18879 # This is similar to how AIX traditionally builds its shared
18881 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'
18887 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18888 allow_undefined_flag_CXX
=unsupported
18889 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18890 # support --undefined. This deserves some investigation. FIXME
18891 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18898 case $cc_basename in
18900 # FIXME: insert proper C++ library support
18906 cygwin
* | mingw
* | pw32
* | cegcc
*)
18907 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18908 # as there is no search path for DLLs.
18909 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18910 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18911 allow_undefined_flag_CXX
=unsupported
18912 always_export_symbols_CXX
=no
18913 enable_shared_with_static_runtimes_CXX
=yes
18915 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18916 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'
18917 # If the export-symbols file already is a .def file (1st line
18918 # is EXPORTS), use it as is; otherwise, prepend...
18919 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18920 cp $export_symbols $output_objdir/$soname.def;
18922 echo EXPORTS > $output_objdir/$soname.def;
18923 cat $export_symbols >> $output_objdir/$soname.def;
18925 $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'
18930 darwin
* | rhapsody
*)
18933 archive_cmds_need_lc_CXX
=no
18934 hardcode_direct_CXX
=no
18935 hardcode_automatic_CXX
=yes
18936 hardcode_shlibpath_var_CXX
=unsupported
18937 if test "$lt_cv_ld_force_load" = "yes"; then
18938 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\"`'
18940 whole_archive_flag_spec_CXX
=''
18942 link_all_deplibs_CXX
=yes
18943 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18944 case $cc_basename in
18945 ifort
*) _lt_dar_can_shared
=yes ;;
18946 *) _lt_dar_can_shared
=$GCC ;;
18948 if test "$_lt_dar_can_shared" = "yes"; then
18949 output_verbose_link_cmd
=func_echo_all
18950 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}"
18951 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18952 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}"
18953 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}"
18954 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18955 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}"
18956 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}"
18966 case $cc_basename in
18968 # FIXME: insert proper C++ library support
18972 # Green Hills C++ Compiler
18973 # FIXME: insert proper C++ library support
18977 # FIXME: insert proper C++ library support
18984 # C++ shared libraries reported to be fairly broken before
18990 archive_cmds_need_lc_CXX
=no
18993 freebsd
* | dragonfly
*)
18994 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19003 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19004 link_all_deplibs_CXX
=yes
19008 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19009 hardcode_libdir_separator_CXX
=:
19010 export_dynamic_flag_spec_CXX
='${wl}-E'
19011 hardcode_direct_CXX
=yes
19012 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19013 # but as the default
19014 # location of the library.
19016 case $cc_basename in
19018 # FIXME: insert proper C++ library support
19022 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'
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) | $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"'
19034 if test "$GXX" = yes; then
19035 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'
19037 # FIXME: insert proper C++ library support
19045 if test $with_gnu_ld = no
; then
19046 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19047 hardcode_libdir_separator_CXX
=:
19053 export_dynamic_flag_spec_CXX
='${wl}-E'
19059 hardcode_direct_CXX
=no
19060 hardcode_shlibpath_var_CXX
=no
19063 hardcode_direct_CXX
=yes
19064 hardcode_direct_absolute_CXX
=yes
19065 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19066 # but as the default
19067 # location of the library.
19071 case $cc_basename in
19073 # FIXME: insert proper C++ library support
19079 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19082 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19085 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19088 # Commands to make compiler produce verbose output that lists
19089 # what "hidden" libraries, object files and flags are used when
19090 # linking a shared library.
19092 # There doesn't appear to be a way to prevent this compiler from
19093 # explicitly linking system object files so we need to strip them
19094 # from the output so that they don't get included in the library
19096 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"'
19099 if test "$GXX" = yes; then
19100 if test $with_gnu_ld = no
; then
19103 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19106 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19109 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'
19114 # FIXME: insert proper C++ library support
19122 hardcode_direct_CXX
=no
19123 hardcode_shlibpath_var_CXX
=no
19124 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19125 export_dynamic_flag_spec_CXX
='${wl}-E'
19126 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19127 # Instead, shared libraries are loaded at an image base (0x10000000 by
19128 # default) and relocated if they conflict, which is a slow very memory
19129 # consuming and fragmenting process. To avoid this, we pick a random,
19130 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19131 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19132 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'
19133 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'
19136 case $cc_basename in
19139 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'
19141 # Archives containing C++ object files must be created using
19142 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19143 # necessary to make sure instantiated templates are included
19145 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19148 if test "$GXX" = yes; then
19149 if test "$with_gnu_ld" = no
; then
19150 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19152 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'
19155 link_all_deplibs_CXX
=yes
19158 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19159 hardcode_libdir_separator_CXX
=:
19160 inherit_rpath_CXX
=yes
19163 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19164 case $cc_basename in
19166 # Kuck and Associates, Inc. (KAI) C++ Compiler
19168 # KCC will only create a shared library if the output file
19169 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19170 # to its proper name (with version) after linking.
19171 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'
19172 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'
19173 # Commands to make compiler produce verbose output that lists
19174 # what "hidden" libraries, object files and flags are used when
19175 # linking a shared library.
19177 # There doesn't appear to be a way to prevent this compiler from
19178 # explicitly linking system object files so we need to strip them
19179 # from the output so that they don't get included in the library
19181 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"'
19183 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19184 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19186 # Archives containing C++ object files must be created using
19187 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19188 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19193 # version 8.0 and above of icpc choke on multiply defined symbols
19194 # if we add $predep_objects and $postdep_objects, however 7.1 and
19195 # earlier do not add the objects themselves.
19196 case `$CC -V 2>&1` in
19198 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19199 archive_expsym_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19201 *) # Version 8.0 or newer
19204 ia64
*) tmp_idyn
=' -i_dynamic';;
19206 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19207 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'
19210 archive_cmds_need_lc_CXX
=no
19211 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19212 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19213 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19216 # Portland Group C++ compiler
19218 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19219 prelink_cmds_CXX
='tpldir=Template.dir~
19221 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19222 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19223 old_archive_cmds_CXX
='tpldir=Template.dir~
19225 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19226 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19228 archive_cmds_CXX
='tpldir=Template.dir~
19230 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19231 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19232 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19234 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19235 $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'
19237 *) # Version 6 and above use weak symbols
19238 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19239 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'
19243 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19244 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19245 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'
19249 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19250 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'
19252 runpath_var
=LD_RUN_PATH
19253 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19254 hardcode_libdir_separator_CXX
=:
19256 # Commands to make compiler produce verbose output that lists
19257 # what "hidden" libraries, object files and flags are used when
19258 # linking a shared library.
19260 # There doesn't appear to be a way to prevent this compiler from
19261 # explicitly linking system object files so we need to strip them
19262 # from the output so that they don't get included in the library
19264 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'
19266 xl
* | mpixl
* | bgxl
*)
19267 # IBM XL 8.0 on PPC, with GNU ld
19268 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19269 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19270 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19271 if test "x$supports_anon_versioning" = xyes
; then
19272 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19273 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19274 echo "local: *; };" >> $output_objdir/$libname.ver~
19275 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19279 case `$CC -V 2>&1 | sed 5q` in
19282 no_undefined_flag_CXX
=' -zdefs'
19283 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19284 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'
19285 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19286 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'
19287 compiler_needs_object_CXX
=yes
19289 # Not sure whether something based on
19290 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19292 output_verbose_link_cmd
='func_echo_all'
19294 # Archives containing C++ object files must be created using
19295 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19296 # necessary to make sure instantiated templates are included
19298 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19306 # FIXME: insert proper C++ library support
19311 # FIXME: insert proper C++ library support
19316 case $cc_basename in
19318 # FIXME: insert proper C++ library support
19322 # FIXME: insert proper C++ library support
19329 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19330 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19332 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19333 hardcode_direct_CXX
=yes
19334 hardcode_shlibpath_var_CXX
=no
19336 # Workaround some broken pre-1.5 toolchains
19337 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19345 # C++ shared libraries are fairly broken
19350 if test -f /usr
/libexec
/ld.so
; then
19351 hardcode_direct_CXX
=yes
19352 hardcode_shlibpath_var_CXX
=no
19353 hardcode_direct_absolute_CXX
=yes
19354 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19355 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19356 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19357 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19358 export_dynamic_flag_spec_CXX
='${wl}-E'
19359 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19361 output_verbose_link_cmd
=func_echo_all
19367 osf3
* | osf4
* | osf5
*)
19368 case $cc_basename in
19370 # Kuck and Associates, Inc. (KAI) C++ Compiler
19372 # KCC will only create a shared library if the output file
19373 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19374 # to its proper name (with version) after linking.
19375 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'
19377 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19378 hardcode_libdir_separator_CXX
=:
19380 # Archives containing C++ object files must be created using
19381 # the KAI C++ compiler.
19383 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19384 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19388 # Rational C++ 2.4.1
19389 # FIXME: insert proper C++ library support
19395 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19396 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'
19397 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19400 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19401 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'
19402 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19403 echo "-hidden">> $lib.exp~
19404 $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~
19406 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19410 hardcode_libdir_separator_CXX
=:
19412 # Commands to make compiler produce verbose output that lists
19413 # what "hidden" libraries, object files and flags are used when
19414 # linking a shared library.
19416 # There doesn't appear to be a way to prevent this compiler from
19417 # explicitly linking system object files so we need to strip them
19418 # from the output so that they don't get included in the library
19420 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"'
19423 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19424 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19427 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'
19430 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'
19434 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19435 hardcode_libdir_separator_CXX
=:
19437 # Commands to make compiler produce verbose output that lists
19438 # what "hidden" libraries, object files and flags are used when
19439 # linking a shared library.
19440 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19443 # FIXME: insert proper C++ library support
19451 # FIXME: insert proper C++ library support
19456 case $cc_basename in
19459 # FIXME: insert proper C++ library support
19464 # FIXME: insert proper C++ library support
19468 # FIXME: insert proper C++ library support
19475 case $cc_basename in
19477 # Sun C++ 4.2, 5.x and Centerline C++
19478 archive_cmds_need_lc_CXX
=yes
19479 no_undefined_flag_CXX
=' -zdefs'
19480 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19481 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19482 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19484 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19485 hardcode_shlibpath_var_CXX
=no
19487 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19489 # The compiler driver will combine and reorder linker options,
19490 # but understands `-z linker_flag'.
19491 # Supported since Solaris 2.6 (maybe 2.5.1?)
19492 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19495 link_all_deplibs_CXX
=yes
19497 output_verbose_link_cmd
='func_echo_all'
19499 # Archives containing C++ object files must be created using
19500 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19501 # necessary to make sure instantiated templates are included
19503 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19506 # Green Hills C++ Compiler
19507 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19509 # The C++ compiler must be used to create the archive.
19510 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19513 # GNU C++ compiler with Solaris linker
19514 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19515 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19516 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19517 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19518 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19519 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19521 # Commands to make compiler produce verbose output that lists
19522 # what "hidden" libraries, object files and flags are used when
19523 # linking a shared library.
19524 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19526 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19528 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19529 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19530 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19532 # Commands to make compiler produce verbose output that lists
19533 # what "hidden" libraries, object files and flags are used when
19534 # linking a shared library.
19535 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19538 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19540 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19542 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19550 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19551 no_undefined_flag_CXX
='${wl}-z,text'
19552 archive_cmds_need_lc_CXX
=no
19553 hardcode_shlibpath_var_CXX
=no
19554 runpath_var
='LD_RUN_PATH'
19556 case $cc_basename in
19558 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19559 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19562 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19563 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19568 sysv5
* | sco3.2v5
* | sco5v6
*)
19569 # Note: We can NOT use -z defs as we might desire, because we do not
19570 # link with -lc, and that would cause any symbols used from libc to
19571 # always be unresolved, which means just about no library would
19572 # ever link correctly. If we're not using GNU ld we use -z text
19573 # though, which does catch some bad symbols but isn't as heavy-handed
19575 no_undefined_flag_CXX
='${wl}-z,text'
19576 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19577 archive_cmds_need_lc_CXX
=no
19578 hardcode_shlibpath_var_CXX
=no
19579 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19580 hardcode_libdir_separator_CXX
=':'
19581 link_all_deplibs_CXX
=yes
19582 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19583 runpath_var
='LD_RUN_PATH'
19585 case $cc_basename in
19587 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19588 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19589 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19590 '"$old_archive_cmds_CXX"
19591 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19592 '"$reload_cmds_CXX"
19595 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19596 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19602 case $cc_basename in
19604 # NonStop-UX NCC 3.20
19605 # FIXME: insert proper C++ library support
19609 # FIXME: insert proper C++ library support
19616 # FIXME: insert proper C++ library support
19621 # FIXME: insert proper C++ library support
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19627 $as_echo "$ld_shlibs_CXX" >&6; }
19628 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19634 ## There is no encapsulation within the following macros, do not change
19635 ## the running order or otherwise move them around unless you know exactly
19636 ## what you are doing...
19637 # Dependencies to place before and after the object being linked:
19638 predep_objects_CXX
=
19639 postdep_objects_CXX
=
19642 compiler_lib_search_path_CXX
=
19644 cat > conftest.
$ac_ext <<_LT_EOF
19648 Foo (void) { a = 0; }
19654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19655 (eval $ac_compile) 2>&5
19657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19658 test $ac_status = 0; }; then
19659 # Parse the compiler output and extract the necessary
19660 # objects, libraries and library flags.
19662 # Sentinel used to keep track of whether or not we are before
19663 # the conftest object file.
19664 pre_test_object_deps_done
=no
19666 for p
in `eval "$output_verbose_link_cmd"`; do
19670 # Some compilers place space between "-{L,R}" and the path.
19671 # Remove the space.
19672 if test $p = "-L" ||
19673 test $p = "-R"; then
19680 if test "$pre_test_object_deps_done" = no
; then
19683 # Internal compiler library paths should come after those
19684 # provided the user. The postdeps already come after the
19685 # user supplied libs so there is no need to process them.
19686 if test -z "$compiler_lib_search_path_CXX"; then
19687 compiler_lib_search_path_CXX
="${prev}${p}"
19689 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19692 # The "-l" case would never come before the object being
19693 # linked, so don't bother handling this case.
19696 if test -z "$postdeps_CXX"; then
19697 postdeps_CXX
="${prev}${p}"
19699 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19705 # This assumes that the test object file only shows up
19706 # once in the compiler output.
19707 if test "$p" = "conftest.$objext"; then
19708 pre_test_object_deps_done
=yes
19712 if test "$pre_test_object_deps_done" = no
; then
19713 if test -z "$predep_objects_CXX"; then
19714 predep_objects_CXX
="$p"
19716 predep_objects_CXX
="$predep_objects_CXX $p"
19719 if test -z "$postdep_objects_CXX"; then
19720 postdep_objects_CXX
="$p"
19722 postdep_objects_CXX
="$postdep_objects_CXX $p"
19727 *) ;; # Ignore the rest.
19735 echo "libtool.m4: error: problem compiling CXX test program"
19738 $RM -f confest.
$objext
19740 # PORTME: override above test on systems where it is broken
19743 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19744 # hack all around it, let's just trust "g++" to DTRT.
19745 predep_objects_CXX
=
19746 postdep_objects_CXX
=
19751 case `$CC -V 2>&1 | sed 5q` in
19755 # The more standards-conforming stlport4 library is
19756 # incompatible with the Cstd library. Avoid specifying
19757 # it if it's in CXXFLAGS. Ignore libCrun as
19758 # -library=stlport4 depends on it.
19759 case " $CXX $CXXFLAGS " in
19760 *" -library=stlport4 "*)
19761 solaris_use_stlport4
=yes
19765 if test "$solaris_use_stlport4" != yes; then
19766 postdeps_CXX
='-library=Cstd -library=Crun'
19773 case $cc_basename in
19775 # The more standards-conforming stlport4 library is
19776 # incompatible with the Cstd library. Avoid specifying
19777 # it if it's in CXXFLAGS. Ignore libCrun as
19778 # -library=stlport4 depends on it.
19779 case " $CXX $CXXFLAGS " in
19780 *" -library=stlport4 "*)
19781 solaris_use_stlport4
=yes
19785 # Adding this requires a known-good setup of shared libraries for
19786 # Sun compiler versions before 5.6, else PIC objects from an old
19787 # archive will be linked into the output, leading to subtle bugs.
19788 if test "$solaris_use_stlport4" != yes; then
19789 postdeps_CXX
='-library=Cstd -library=Crun'
19797 case " $postdeps_CXX " in
19798 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19800 compiler_lib_search_dirs_CXX
=
19801 if test -n "${compiler_lib_search_path_CXX}"; then
19802 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19835 lt_prog_compiler_wl_CXX
=
19836 lt_prog_compiler_pic_CXX
=
19837 lt_prog_compiler_static_CXX
=
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19840 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19842 # C++ specific cases for pic, static, wl, etc.
19843 if test "$GXX" = yes; then
19844 lt_prog_compiler_wl_CXX
='-Wl,'
19845 lt_prog_compiler_static_CXX
='-static'
19849 # All AIX code is PIC.
19850 if test "$host_cpu" = ia64
; then
19851 # AIX 5 now supports IA64 processor
19852 lt_prog_compiler_static_CXX
='-Bstatic'
19854 lt_prog_compiler_pic_CXX
='-fPIC'
19860 # see comment about AmigaOS4 .so support
19861 lt_prog_compiler_pic_CXX
='-fPIC'
19864 # FIXME: we need at least 68020 code to build shared libraries, but
19865 # adding the `-m68020' flag to GCC prevents building anything better,
19867 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19872 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19873 # PIC is the default for these OSes.
19875 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19876 # This hack is so that the source file can tell whether it is being
19877 # built for inclusion in a dll (and should export symbols for example).
19878 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19879 # (--disable-auto-import) libraries
19880 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19882 darwin
* | rhapsody
*)
19883 # PIC is the default on this platform
19884 # Common symbols not allowed in MH_DYLIB files
19885 lt_prog_compiler_pic_CXX
='-fno-common'
19888 # DJGPP does not support shared libraries at all
19889 lt_prog_compiler_pic_CXX
=
19892 # PIC is the default for Haiku.
19893 # The "-static" flag exists, but is broken.
19894 lt_prog_compiler_static_CXX
=
19897 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19898 # Instead, we relocate shared libraries at runtime.
19901 if test -d /usr
/nec
; then
19902 lt_prog_compiler_pic_CXX
=-Kconform_pic
19906 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19907 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19908 # sets the default TLS model and affects inlining.
19913 lt_prog_compiler_pic_CXX
='-fPIC'
19918 # QNX uses GNU C++, but need to define -shared option too, otherwise
19919 # it will coredump.
19920 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19923 lt_prog_compiler_pic_CXX
='-fPIC'
19929 # All AIX code is PIC.
19930 if test "$host_cpu" = ia64
; then
19931 # AIX 5 now supports IA64 processor
19932 lt_prog_compiler_static_CXX
='-Bstatic'
19934 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19938 case $cc_basename in
19940 # Green Hills C++ Compiler
19941 # _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"
19946 case $cc_basename in
19948 lt_prog_compiler_pic_CXX
='-KPIC'
19951 # Green Hills C++ Compiler
19952 lt_prog_compiler_pic_CXX
='-pic'
19958 freebsd
* | dragonfly
*)
19959 # FreeBSD uses GNU C++
19961 hpux9
* | hpux10
* | hpux11
*)
19962 case $cc_basename in
19964 lt_prog_compiler_wl_CXX
='-Wl,'
19965 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19966 if test "$host_cpu" != ia64
; then
19967 lt_prog_compiler_pic_CXX
='+Z'
19971 lt_prog_compiler_wl_CXX
='-Wl,'
19972 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19978 lt_prog_compiler_pic_CXX
='+Z'
19987 # This is c89, which is MS Visual C++ (no shared libs)
19988 # Anyone wants to do a port?
19990 irix5
* | irix6
* | nonstopux
*)
19991 case $cc_basename in
19993 lt_prog_compiler_wl_CXX
='-Wl,'
19994 lt_prog_compiler_static_CXX
='-non_shared'
19995 # CC pic flag -KPIC is the default.
20001 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20002 case $cc_basename in
20005 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20006 lt_prog_compiler_pic_CXX
='-fPIC'
20009 # old Intel C++ for x86_64 which still supported -KPIC.
20010 lt_prog_compiler_wl_CXX
='-Wl,'
20011 lt_prog_compiler_pic_CXX
='-KPIC'
20012 lt_prog_compiler_static_CXX
='-static'
20015 # Intel C++, used to be incompatible with GCC.
20016 # ICC 10 doesn't accept -KPIC any more.
20017 lt_prog_compiler_wl_CXX
='-Wl,'
20018 lt_prog_compiler_pic_CXX
='-fPIC'
20019 lt_prog_compiler_static_CXX
='-static'
20022 # Portland Group C++ compiler
20023 lt_prog_compiler_wl_CXX
='-Wl,'
20024 lt_prog_compiler_pic_CXX
='-fpic'
20025 lt_prog_compiler_static_CXX
='-Bstatic'
20029 # Make sure the PIC flag is empty. It appears that all Alpha
20030 # Linux and Compaq Tru64 Unix objects are PIC.
20031 lt_prog_compiler_pic_CXX
=
20032 lt_prog_compiler_static_CXX
='-non_shared'
20034 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20035 # IBM XL 8.0, 9.0 on PPC and BlueGene
20036 lt_prog_compiler_wl_CXX
='-Wl,'
20037 lt_prog_compiler_pic_CXX
='-qpic'
20038 lt_prog_compiler_static_CXX
='-qstaticlink'
20041 case `$CC -V 2>&1 | sed 5q` in
20044 lt_prog_compiler_pic_CXX
='-KPIC'
20045 lt_prog_compiler_static_CXX
='-Bstatic'
20046 lt_prog_compiler_wl_CXX
='-Qoption ld '
20057 case $cc_basename in
20059 lt_prog_compiler_pic_CXX
='-W c,exportall'
20068 # QNX uses GNU C++, but need to define -shared option too, otherwise
20069 # it will coredump.
20070 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20072 osf3
* | osf4
* | osf5
*)
20073 case $cc_basename in
20075 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20078 # Rational C++ 2.4.1
20079 lt_prog_compiler_pic_CXX
='-pic'
20082 # Digital/Compaq C++
20083 lt_prog_compiler_wl_CXX
='-Wl,'
20084 # Make sure the PIC flag is empty. It appears that all Alpha
20085 # Linux and Compaq Tru64 Unix objects are PIC.
20086 lt_prog_compiler_pic_CXX
=
20087 lt_prog_compiler_static_CXX
='-non_shared'
20096 case $cc_basename in
20098 # Sun C++ 4.2, 5.x and Centerline C++
20099 lt_prog_compiler_pic_CXX
='-KPIC'
20100 lt_prog_compiler_static_CXX
='-Bstatic'
20101 lt_prog_compiler_wl_CXX
='-Qoption ld '
20104 # Green Hills C++ Compiler
20105 lt_prog_compiler_pic_CXX
='-PIC'
20112 case $cc_basename in
20115 lt_prog_compiler_pic_CXX
='-pic'
20116 lt_prog_compiler_static_CXX
='-Bstatic'
20120 lt_prog_compiler_pic_CXX
='-pic'
20126 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20127 case $cc_basename in
20129 lt_prog_compiler_wl_CXX
='-Wl,'
20130 lt_prog_compiler_pic_CXX
='-KPIC'
20131 lt_prog_compiler_static_CXX
='-Bstatic'
20136 case $cc_basename in
20138 # NonStop-UX NCC 3.20
20139 lt_prog_compiler_pic_CXX
='-KPIC'
20148 lt_prog_compiler_can_build_shared_CXX
=no
20154 # For platforms which do not support PIC, -DPIC is meaningless:
20156 lt_prog_compiler_pic_CXX
=
20159 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20163 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20168 # Check to make sure the PIC flag actually works.
20170 if test -n "$lt_prog_compiler_pic_CXX"; then
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20172 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20173 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20174 $as_echo_n "(cached) " >&6
20176 lt_cv_prog_compiler_pic_works_CXX
=no
20177 ac_outfile
=conftest.
$ac_objext
20178 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20179 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20180 # Insert the option either (1) after the last *FLAGS variable, or
20181 # (2) before a word containing "conftest.", or (3) at the end.
20182 # Note that $ac_compile itself does not contain backslashes and begins
20183 # with a dollar sign (not a hyphen), so the echo should work correctly.
20184 # The option is referenced via a variable to avoid confusing sed.
20185 lt_compile
=`echo "$ac_compile" | $SED \
20186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20188 -e 's:$: $lt_compiler_flag:'`
20189 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20190 (eval "$lt_compile" 2>conftest.err
)
20192 cat conftest.err
>&5
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 if (exit $ac_status) && test -s "$ac_outfile"; then
20195 # The compiler can only warn and ignore the option if not recognized
20196 # So say no if there are warnings other than the usual output.
20197 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20198 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20199 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20200 lt_cv_prog_compiler_pic_works_CXX
=yes
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20207 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20209 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20210 case $lt_prog_compiler_pic_CXX in
20212 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20215 lt_prog_compiler_pic_CXX
=
20216 lt_prog_compiler_can_build_shared_CXX
=no
20224 # Check to make sure the static flag actually works.
20226 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20228 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20229 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20230 $as_echo_n "(cached) " >&6
20232 lt_cv_prog_compiler_static_works_CXX
=no
20233 save_LDFLAGS
="$LDFLAGS"
20234 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20235 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20236 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20237 # The linker can only warn and ignore the option if not recognized
20238 # So say no if there are warnings
20239 if test -s conftest.err
; then
20240 # Append any errors to the config.log.
20241 cat conftest.err
1>&5
20242 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20243 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20244 if diff conftest.exp conftest.er2
>/dev
/null
; then
20245 lt_cv_prog_compiler_static_works_CXX
=yes
20248 lt_cv_prog_compiler_static_works_CXX
=yes
20252 LDFLAGS
="$save_LDFLAGS"
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20256 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20258 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20261 lt_prog_compiler_static_CXX
=
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20268 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20269 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20270 $as_echo_n "(cached) " >&6
20272 lt_cv_prog_compiler_c_o_CXX
=no
20273 $RM -r conftest
2>/dev
/null
20277 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20279 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20280 # Insert the option either (1) after the last *FLAGS variable, or
20281 # (2) before a word containing "conftest.", or (3) at the end.
20282 # Note that $ac_compile itself does not contain backslashes and begins
20283 # with a dollar sign (not a hyphen), so the echo should work correctly.
20284 lt_compile
=`echo "$ac_compile" | $SED \
20285 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20287 -e 's:$: $lt_compiler_flag:'`
20288 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20289 (eval "$lt_compile" 2>out
/conftest.err
)
20291 cat out
/conftest.err
>&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20295 # The compiler can only warn and ignore the option if not recognized
20296 # So say no if there are warnings
20297 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20298 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20299 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20300 lt_cv_prog_compiler_c_o_CXX
=yes
20305 # SGI C++ compiler will create directory out/ii_files/ for
20306 # template instantiation
20307 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20308 $RM out
/* && rmdir out
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20315 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20320 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20321 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20322 $as_echo_n "(cached) " >&6
20324 lt_cv_prog_compiler_c_o_CXX
=no
20325 $RM -r conftest
2>/dev
/null
20329 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20331 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20332 # Insert the option either (1) after the last *FLAGS variable, or
20333 # (2) before a word containing "conftest.", or (3) at the end.
20334 # Note that $ac_compile itself does not contain backslashes and begins
20335 # with a dollar sign (not a hyphen), so the echo should work correctly.
20336 lt_compile
=`echo "$ac_compile" | $SED \
20337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20339 -e 's:$: $lt_compiler_flag:'`
20340 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20341 (eval "$lt_compile" 2>out
/conftest.err
)
20343 cat out
/conftest.err
>&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20347 # The compiler can only warn and ignore the option if not recognized
20348 # So say no if there are warnings
20349 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20350 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20351 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20352 lt_cv_prog_compiler_c_o_CXX
=yes
20357 # SGI C++ compiler will create directory out/ii_files/ for
20358 # template instantiation
20359 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20360 $RM out
/* && rmdir out
20366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20367 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20372 hard_links
="nottested"
20373 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20374 # do not overwrite the value of need_locks provided by the user
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20376 $as_echo_n "checking if we can lock with hard links... " >&6; }
20379 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20381 ln conftest.a conftest.b
2>&5 || hard_links
=no
20382 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20384 $as_echo "$hard_links" >&6; }
20385 if test "$hard_links" = no
; then
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20387 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20397 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20399 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20402 # If we're using GNU nm, then we don't want the "-C" option.
20403 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20404 # Also, AIX nm treats weak defined symbols like other global defined
20405 # symbols, whereas GNU nm marks them as "W".
20406 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20407 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'
20409 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'
20413 export_symbols_cmds_CXX
="$ltdll_cmds"
20415 cygwin
* | mingw
* | cegcc
*)
20416 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'
20419 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20422 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20425 $as_echo "$ld_shlibs_CXX" >&6; }
20426 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20428 with_gnu_ld_CXX
=$with_gnu_ld
20436 # Do we need to explicitly link libc?
20438 case "x$archive_cmds_need_lc_CXX" in
20440 # Assume -lc should be added
20441 archive_cmds_need_lc_CXX
=yes
20443 if test "$enable_shared" = yes && test "$GCC" = yes; then
20444 case $archive_cmds_CXX in
20446 # FIXME: we may have to deal with multi-command sequences.
20449 # Test whether the compiler implicitly links with -lc since on some
20450 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20451 # to ld, don't add -lc before -lgcc.
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20453 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20454 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20455 $as_echo_n "(cached) " >&6
20458 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20461 (eval $ac_compile) 2>&5
20463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20464 test $ac_status = 0; } 2>conftest.err
; then
20467 libobjs
=conftest.
$ac_objext
20469 wl
=$lt_prog_compiler_wl_CXX
20470 pic_flag
=$lt_prog_compiler_pic_CXX
20476 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20477 allow_undefined_flag_CXX
=
20478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20479 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20482 test $ac_status = 0; }
20484 lt_cv_archive_cmds_need_lc_CXX
=no
20486 lt_cv_archive_cmds_need_lc_CXX
=yes
20488 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20490 cat conftest.err
1>&5
20495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20496 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20497 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20568 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20570 library_names_spec
=
20571 libname_spec
='lib$name'
20575 postuninstall_cmds
=
20579 shlibpath_overrides_runpath
=unknown
20581 dynamic_linker
="$host_os ld.so"
20582 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20583 need_lib_prefix
=unknown
20584 hardcode_into_libs
=no
20586 # when you set need_version to no, make sure it does not cause -set_version
20587 # flags to be left without arguments
20588 need_version
=unknown
20593 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20594 shlibpath_var
=LIBPATH
20596 # AIX 3 has no versioning support, so we append a major version to the name.
20597 soname_spec
='${libname}${release}${shared_ext}$major'
20604 hardcode_into_libs
=yes
20605 if test "$host_cpu" = ia64
; then
20606 # AIX 5 supports IA64
20607 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20608 shlibpath_var
=LD_LIBRARY_PATH
20610 # With GCC up to 2.95.x, collect2 would create an import file
20611 # for dependence libraries. The import file would start with
20612 # the line `#! .'. This would cause the generated library to
20613 # depend on `.', always an invalid library. This was fixed in
20614 # development snapshots of GCC prior to 3.0.
20616 aix4 | aix4.
[01] | aix4.
[01].
*)
20617 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20619 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20622 can_build_shared
=no
20626 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20627 # soname into executable. Probably we can add versioning support to
20628 # collect2, so additional links can be useful in future.
20629 if test "$aix_use_runtimelinking" = yes; then
20630 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20631 # instead of lib<name>.a to let people know that these are not
20632 # typical AIX shared libraries.
20633 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20635 # We preserve .a as extension for shared libraries through AIX4.2
20636 # and later when we are not doing run time linking.
20637 library_names_spec
='${libname}${release}.a $libname.a'
20638 soname_spec
='${libname}${release}${shared_ext}$major'
20640 shlibpath_var
=LIBPATH
20647 # Since July 2007 AmigaOS4 officially supports .so libraries.
20648 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20649 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20652 library_names_spec
='$libname.ixlibrary $libname.a'
20653 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20654 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'
20660 library_names_spec
='${libname}${shared_ext}'
20661 dynamic_linker
="$host_os ld.so"
20662 shlibpath_var
=LIBRARY_PATH
20668 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20669 soname_spec
='${libname}${release}${shared_ext}$major'
20670 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20671 shlibpath_var
=LD_LIBRARY_PATH
20672 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20673 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20674 # the default ld.so.conf also contains /usr/contrib/lib and
20675 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20676 # libtool to hard-code these into programs
20679 cygwin
* | mingw
* | pw32
* | cegcc
*)
20680 version_type
=windows
20685 case $GCC,$host_os in
20686 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20687 library_names_spec
='$libname.dll.a'
20688 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20689 postinstall_cmds
='base_file=`basename \${file}`~
20690 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20691 dldir=$destdir/`dirname \$dlpath`~
20692 test -d \$dldir || mkdir -p \$dldir~
20693 $install_prog $dir/$dlname \$dldir/$dlname~
20694 chmod a+x \$dldir/$dlname~
20695 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20696 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20698 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20699 dlpath=$dir/\$dldll~
20701 shlibpath_overrides_runpath
=yes
20705 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20706 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20710 # MinGW DLLs use traditional 'lib' prefix
20711 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20714 # pw32 DLLs use 'pw' prefix rather than 'lib'
20715 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20721 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20724 dynamic_linker
='Win32 ld.exe'
20725 # FIXME: first we should search . and the directory the executable is in
20729 darwin
* | rhapsody
*)
20730 dynamic_linker
="$host_os dyld"
20731 version_type
=darwin
20734 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20735 soname_spec
='${libname}${release}${major}$shared_ext'
20736 shlibpath_overrides_runpath
=yes
20737 shlibpath_var
=DYLD_LIBRARY_PATH
20738 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20740 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20747 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20748 soname_spec
='${libname}${release}${shared_ext}$major'
20749 shlibpath_var
=LD_LIBRARY_PATH
20752 freebsd
* | dragonfly
*)
20753 # DragonFly does not have aout. When/if they implement a new
20754 # versioning mechanism, adjust this.
20755 if test -x /usr
/bin
/objformat
; then
20756 objformat
=`/usr/bin/objformat`
20759 freebsd
[23].
*) objformat
=aout
;;
20760 *) objformat
=elf
;;
20763 version_type
=freebsd-
$objformat
20764 case $version_type in
20766 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20771 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20775 shlibpath_var
=LD_LIBRARY_PATH
20778 shlibpath_overrides_runpath
=yes
20780 freebsd3.
[01]* | freebsdelf3.
[01]*)
20781 shlibpath_overrides_runpath
=yes
20782 hardcode_into_libs
=yes
20784 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20785 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20786 shlibpath_overrides_runpath
=no
20787 hardcode_into_libs
=yes
20789 *) # from 4.6 on, and DragonFly
20790 shlibpath_overrides_runpath
=yes
20791 hardcode_into_libs
=yes
20800 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20801 soname_spec
='${libname}${release}${shared_ext}$major'
20802 shlibpath_var
=LD_LIBRARY_PATH
20803 hardcode_into_libs
=yes
20810 dynamic_linker
="$host_os runtime_loader"
20811 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20812 soname_spec
='${libname}${release}${shared_ext}$major'
20813 shlibpath_var
=LIBRARY_PATH
20814 shlibpath_overrides_runpath
=yes
20815 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20816 hardcode_into_libs
=yes
20819 hpux9
* | hpux10
* | hpux11
*)
20820 # Give a soname corresponding to the major version so that dld.sl refuses to
20821 # link against other versions.
20828 hardcode_into_libs
=yes
20829 dynamic_linker
="$host_os dld.so"
20830 shlibpath_var
=LD_LIBRARY_PATH
20831 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20832 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20833 soname_spec
='${libname}${release}${shared_ext}$major'
20834 if test "X$HPUX_IA64_MODE" = X32
; then
20835 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20837 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20839 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20843 hardcode_into_libs
=yes
20844 dynamic_linker
="$host_os dld.sl"
20845 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20846 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20847 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20848 soname_spec
='${libname}${release}${shared_ext}$major'
20849 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20850 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20854 dynamic_linker
="$host_os dld.sl"
20855 shlibpath_var
=SHLIB_PATH
20856 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20857 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20858 soname_spec
='${libname}${release}${shared_ext}$major'
20861 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20862 postinstall_cmds
='chmod 555 $lib'
20863 # or fails outright, so override atomically:
20864 install_override_mode
=555
20871 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20872 soname_spec
='${libname}${release}${shared_ext}$major'
20873 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20874 shlibpath_var
=LD_LIBRARY_PATH
20875 shlibpath_overrides_runpath
=no
20876 hardcode_into_libs
=yes
20879 irix5
* | irix6
* | nonstopux
*)
20881 nonstopux
*) version_type
=nonstopux
;;
20883 if test "$lt_cv_prog_gnu_ld" = yes; then
20891 soname_spec
='${libname}${release}${shared_ext}$major'
20892 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20894 irix5
* | nonstopux
*)
20895 libsuff
= shlibsuff
=
20898 case $LD in # libtool.m4 will add one of these switches to LD
20899 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20900 libsuff
= shlibsuff
= libmagic
=32-bit;;
20901 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20902 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20903 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20904 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20905 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20909 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20910 shlibpath_overrides_runpath
=no
20911 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20912 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20913 hardcode_into_libs
=yes
20916 # No shared lib support for Linux oldld, aout, or coff.
20917 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20921 # This must be Linux ELF.
20922 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20926 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20927 soname_spec
='${libname}${release}${shared_ext}$major'
20928 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20929 shlibpath_var
=LD_LIBRARY_PATH
20930 shlibpath_overrides_runpath
=no
20932 # Some binutils ld are patched to set DT_RUNPATH
20933 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20934 $as_echo_n "(cached) " >&6
20936 lt_cv_shlibpath_overrides_runpath
=no
20937 save_LDFLAGS
=$LDFLAGS
20938 save_libdir
=$libdir
20939 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20940 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20942 /* end confdefs.h. */
20952 if ac_fn_cxx_try_link
"$LINENO"; then :
20953 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20954 lt_cv_shlibpath_overrides_runpath
=yes
20957 rm -f core conftest.err conftest.
$ac_objext \
20958 conftest
$ac_exeext conftest.
$ac_ext
20959 LDFLAGS
=$save_LDFLAGS
20960 libdir
=$save_libdir
20964 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20966 # This implies no fast_install, which is unacceptable.
20967 # Some rework will be needed to allow for fast_install
20968 # before this can be enabled.
20969 hardcode_into_libs
=yes
20971 # Append ld.so.conf contents to the search path
20972 if test -f /etc
/ld.so.conf
; then
20973 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' ' '`
20974 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20977 # We used to test for /lib/ld.so.1 and disable shared libraries on
20978 # powerpc, because MkLinux only supported shared libraries with the
20979 # GNU dynamic linker. Since this was broken with cross compilers,
20980 # most powerpc-linux boxes support dynamic linking these days and
20981 # people can always --disable-shared, the test was removed, and we
20982 # assume the GNU/Linux dynamic linker is in use.
20983 dynamic_linker
='GNU/Linux ld.so'
20990 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20991 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20992 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20993 dynamic_linker
='NetBSD (a.out) ld.so'
20995 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20996 soname_spec
='${libname}${release}${shared_ext}$major'
20997 dynamic_linker
='NetBSD ld.elf_so'
20999 shlibpath_var
=LD_LIBRARY_PATH
21000 shlibpath_overrides_runpath
=yes
21001 hardcode_into_libs
=yes
21006 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21007 shlibpath_var
=LD_LIBRARY_PATH
21008 shlibpath_overrides_runpath
=yes
21015 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21016 soname_spec
='${libname}${release}${shared_ext}$major'
21017 shlibpath_var
=LD_LIBRARY_PATH
21018 shlibpath_overrides_runpath
=no
21019 hardcode_into_libs
=yes
21020 dynamic_linker
='ldqnx.so'
21025 sys_lib_dlsearch_path_spec
="/usr/lib"
21027 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21029 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21030 *) need_version
=no
;;
21032 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21033 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21034 shlibpath_var
=LD_LIBRARY_PATH
21035 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21037 openbsd2.
[89] | openbsd2.
[89].
*)
21038 shlibpath_overrides_runpath
=no
21041 shlibpath_overrides_runpath
=yes
21045 shlibpath_overrides_runpath
=yes
21050 libname_spec
='$name'
21053 library_names_spec
='$libname${shared_ext} $libname.a'
21054 dynamic_linker
='OS/2 ld.exe'
21055 shlibpath_var
=LIBPATH
21058 osf3
* | osf4
* | osf5
*)
21062 soname_spec
='${libname}${release}${shared_ext}$major'
21063 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21064 shlibpath_var
=LD_LIBRARY_PATH
21065 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21066 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21077 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21078 soname_spec
='${libname}${release}${shared_ext}$major'
21079 shlibpath_var
=LD_LIBRARY_PATH
21080 shlibpath_overrides_runpath
=yes
21081 hardcode_into_libs
=yes
21082 # ldd complains unless libraries are executable
21083 postinstall_cmds
='chmod +x $lib'
21088 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21089 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21090 shlibpath_var
=LD_LIBRARY_PATH
21091 shlibpath_overrides_runpath
=yes
21092 if test "$with_gnu_ld" = yes; then
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
21103 case $host_vendor in
21105 shlibpath_overrides_runpath
=no
21107 runpath_var
=LD_RUN_PATH
21115 shlibpath_overrides_runpath
=no
21116 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21122 if test -d /usr
/nec
;then
21124 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21125 soname_spec
='$libname${shared_ext}.$major'
21126 shlibpath_var
=LD_LIBRARY_PATH
21130 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21131 version_type
=freebsd-elf
21134 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21135 soname_spec
='${libname}${release}${shared_ext}$major'
21136 shlibpath_var
=LD_LIBRARY_PATH
21137 shlibpath_overrides_runpath
=yes
21138 hardcode_into_libs
=yes
21139 if test "$with_gnu_ld" = yes; then
21140 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21142 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21145 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21149 sys_lib_dlsearch_path_spec
='/usr/lib'
21153 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21157 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21158 shlibpath_var
=LD_LIBRARY_PATH
21159 shlibpath_overrides_runpath
=no
21160 hardcode_into_libs
=yes
21165 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21166 soname_spec
='${libname}${release}${shared_ext}$major'
21167 shlibpath_var
=LD_LIBRARY_PATH
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21175 $as_echo "$dynamic_linker" >&6; }
21176 test "$dynamic_linker" = no
&& can_build_shared
=no
21178 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21179 if test "$GCC" = yes; then
21180 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21183 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21184 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21186 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21187 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21228 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21229 hardcode_action_CXX
=
21230 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21231 test -n "$runpath_var_CXX" ||
21232 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21234 # We can hardcode non-existent directories.
21235 if test "$hardcode_direct_CXX" != no
&&
21236 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21237 # have to relink, otherwise we might link with an installed library
21238 # when we should be linking with a yet-to-be-installed one
21239 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21240 test "$hardcode_minus_L_CXX" != no
; then
21241 # Linking always hardcodes the temporary library directory.
21242 hardcode_action_CXX
=relink
21244 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21245 hardcode_action_CXX
=immediate
21248 # We cannot hardcode anything, or else we can only hardcode existing
21250 hardcode_action_CXX
=unsupported
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21253 $as_echo "$hardcode_action_CXX" >&6; }
21255 if test "$hardcode_action_CXX" = relink ||
21256 test "$inherit_rpath_CXX" = yes; then
21257 # Fast installation is not supported
21258 enable_fast_install
=no
21259 elif test "$shlibpath_overrides_runpath" = yes ||
21260 test "$enable_shared" = no
; then
21261 # Fast installation is not necessary
21262 enable_fast_install
=needless
21271 fi # test -n "$compiler"
21277 with_gnu_ld
=$lt_save_with_gnu_ld
21278 lt_cv_path_LDCXX
=$lt_cv_path_LD
21279 lt_cv_path_LD
=$lt_save_path_LD
21280 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21281 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21282 fi # test "$_lt_caught_CXX_error" != yes
21285 ac_cpp
='$CPP $CPPFLAGS'
21286 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21287 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21288 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21305 # Only expand once:
21311 # Identify the assembler which will work hand-in-glove with the newly
21312 # built GCC, so that we can examine its features. This is the assembler
21313 # which will be driven by the driver program.
21315 # If build != host, and we aren't building gas in-tree, we identify a
21316 # build->target assembler and hope that it will have the same features
21317 # as the host->target assembler we'll be using.
21318 gcc_cv_gas_major_version
=
21319 gcc_cv_gas_minor_version
=
21320 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21322 if test "${gcc_cv_as+set}" = set; then :
21326 if test -x "$DEFAULT_ASSEMBLER"; then
21327 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21328 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21329 && test -f ..
/gas
/Makefile \
21330 && test x
$build = x
$host; then
21331 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21332 elif test -x as
$build_exeext; then
21333 # Build using assembler in the current directory.
21334 gcc_cv_as
=.
/as
$build_exeext
21335 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21336 gcc_cv_as
="$AS_FOR_TARGET"
21338 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21339 set dummy
$AS_FOR_TARGET; ac_word
=$2
21340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21341 $as_echo_n "checking for $ac_word... " >&6; }
21342 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21343 $as_echo_n "(cached) " >&6
21347 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21351 for as_dir
in $PATH
21354 test -z "$as_dir" && as_dir
=.
21355 for ac_exec_ext
in '' $ac_executable_extensions; do
21356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21357 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21368 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21369 if test -n "$gcc_cv_as"; then
21370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21371 $as_echo "$gcc_cv_as" >&6; }
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21374 $as_echo "no" >&6; }
21381 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21383 case "$ORIGINAL_AS_FOR_TARGET" in
21384 .
/as | .
/as
$build_exeext) ;;
21385 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21390 $as_echo_n "checking what assembler to use... " >&6; }
21391 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21392 # Single tree build which includes gas. We want to prefer it
21393 # over whatever linker top-level may have detected, since
21394 # we'll use what we're building after installation anyway.
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21396 $as_echo "newly built gas" >&6; }
21398 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21399 for f
in $gcc_cv_as_bfd_srcdir/configure \
21400 $gcc_cv_as_gas_srcdir/configure \
21401 $gcc_cv_as_gas_srcdir/configure.
in \
21402 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21403 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21404 if test x
$gcc_cv_gas_version != x
; then
21408 case $gcc_cv_gas_version in
21410 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21412 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21413 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21414 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21415 case $gcc_cv_gas_patch_version in
21416 "") gcc_cv_gas_patch_version
="0" ;;
21418 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21419 + $gcc_cv_gas_minor_version \) \* 1000 \
21420 + $gcc_cv_gas_patch_version`
21422 in_tree_gas_is_elf
=no
21423 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21424 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21425 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21427 in_tree_gas_is_elf
=yes
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21431 $as_echo "$gcc_cv_as" >&6; }
21436 # Check whether --enable-ld was given.
21437 if test "${enable_ld+set}" = set; then :
21438 enableval
=$enable_ld; case "${enableval}" in
21446 # Check whether --enable-gold was given.
21447 if test "${enable_gold+set}" = set; then :
21448 enableval
=$enable_gold; case "${enableval}" in
21450 install_gold_as_default
=yes
21453 if test x
${default_ld} != x
; then
21454 install_gold_as_default
=yes
21460 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21464 install_gold_as_default
=no
21468 # Identify the linker which will work hand-in-glove with the newly
21469 # built GCC, so that we can examine its features. This is the linker
21470 # which will be driven by the driver program.
21472 # If build != host, and we aren't building gas in-tree, we identify a
21473 # build->target linker and hope that it will have the same features
21474 # as the host->target linker we'll be using.
21475 gcc_cv_gld_major_version
=
21476 gcc_cv_gld_minor_version
=
21477 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21478 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21479 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21481 if test "${gcc_cv_ld+set}" = set; then :
21485 if test -x "$DEFAULT_LINKER"; then
21486 gcc_cv_ld
="$DEFAULT_LINKER"
21487 elif test $install_gold_as_default = yes \
21488 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21489 && test -f ..
/gold
/Makefile \
21490 && test x
$build = x
$host; then
21491 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21492 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21493 && test -f ..
/ld
/Makefile \
21494 && test x
$build = x
$host; then
21495 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21496 elif test -x collect-ld
$build_exeext; then
21497 # Build using linker in the current directory.
21498 gcc_cv_ld
=.
/collect-ld
$build_exeext
21499 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21500 gcc_cv_ld
="$LD_FOR_TARGET"
21502 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21503 set dummy
$LD_FOR_TARGET; ac_word
=$2
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21505 $as_echo_n "checking for $ac_word... " >&6; }
21506 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21507 $as_echo_n "(cached) " >&6
21511 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21515 for as_dir
in $PATH
21518 test -z "$as_dir" && as_dir
=.
21519 for ac_exec_ext
in '' $ac_executable_extensions; do
21520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21521 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21532 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21533 if test -n "$gcc_cv_ld"; then
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21535 $as_echo "$gcc_cv_ld" >&6; }
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21538 $as_echo "no" >&6; }
21545 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21546 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21547 # if the PLUGIN_LD is set ld-new, just have it as ld
21548 # as that is the installed named.
21549 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21550 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21551 PLUGIN_LD_SUFFIX
=ld
21554 # Check whether --with-plugin-ld was given.
21555 if test "${with_plugin_ld+set}" = set; then :
21556 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21557 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21558 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21564 cat >>confdefs.h
<<_ACEOF
21565 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21569 # Check to see if we are using gold instead of ld
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21571 $as_echo_n "checking whether we are using gold... " >&6; }
21573 if test x
$gcc_cv_ld != x
; then
21574 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21575 |
grep "GNU gold" > /dev
/null
; then
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21580 $as_echo "$ld_is_gold" >&6; }
21582 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21584 case "$ORIGINAL_LD_FOR_TARGET" in
21585 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21586 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21591 $as_echo_n "checking what linker to use... " >&6; }
21592 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21593 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21594 # Single tree build which includes ld. We want to prefer it
21595 # over whatever linker top-level may have detected, since
21596 # we'll use what we're building after installation anyway.
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21598 $as_echo "newly built ld" >&6; }
21600 in_tree_ld_is_elf
=no
21601 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21602 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21603 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21604 in_tree_ld_is_elf
=yes
21605 elif test "$ld_is_gold" = yes; then
21606 in_tree_ld_is_elf
=yes
21608 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
21610 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21611 if test x
$gcc_cv_gld_version != x
; then
21615 case $gcc_cv_gld_version in
21617 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21619 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21620 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21621 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
21622 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
21624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21625 $as_echo "$gcc_cv_ld" >&6; }
21627 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21628 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
21629 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
21635 # Figure out what nm we will be using.
21636 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21637 if test "${gcc_cv_nm+set}" = set; then :
21641 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21642 && test -f ..
/binutils
/Makefile \
21643 && test x
$build = x
$host; then
21644 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21645 elif test -x nm
$build_exeext; then
21646 gcc_cv_nm
=.
/nm
$build_exeext
21647 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21648 gcc_cv_nm
="$NM_FOR_TARGET"
21650 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21651 set dummy
$NM_FOR_TARGET; ac_word
=$2
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21653 $as_echo_n "checking for $ac_word... " >&6; }
21654 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21655 $as_echo_n "(cached) " >&6
21659 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21663 for as_dir
in $PATH
21666 test -z "$as_dir" && as_dir
=.
21667 for ac_exec_ext
in '' $ac_executable_extensions; do
21668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21669 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21680 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21681 if test -n "$gcc_cv_nm"; then
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21683 $as_echo "$gcc_cv_nm" >&6; }
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21686 $as_echo "no" >&6; }
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21694 $as_echo_n "checking what nm to use... " >&6; }
21695 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21696 # Single tree build which includes binutils.
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21698 $as_echo "newly built nm" >&6; }
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21702 $as_echo "$gcc_cv_nm" >&6; }
21706 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21708 case "$ORIGINAL_NM_FOR_TARGET" in
21709 .
/nm | .
/nm
$build_exeext) ;;
21710 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21715 # Figure out what objdump we will be using.
21716 if test "${gcc_cv_objdump+set}" = set; then :
21720 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21721 && test -f ..
/binutils
/Makefile \
21722 && test x
$build = x
$host; then
21723 # Single tree build which includes binutils.
21724 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21725 elif test -x objdump
$build_exeext; then
21726 gcc_cv_objdump
=.
/objdump
$build_exeext
21727 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21728 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21730 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21731 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21733 $as_echo_n "checking for $ac_word... " >&6; }
21734 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21735 $as_echo_n "(cached) " >&6
21737 case $gcc_cv_objdump in
21739 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21743 for as_dir
in $PATH
21746 test -z "$as_dir" && as_dir
=.
21747 for ac_exec_ext
in '' $ac_executable_extensions; do
21748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21749 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21760 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21761 if test -n "$gcc_cv_objdump"; then
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21763 $as_echo "$gcc_cv_objdump" >&6; }
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21766 $as_echo "no" >&6; }
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21774 $as_echo_n "checking what objdump to use... " >&6; }
21775 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21776 # Single tree build which includes binutils.
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21778 $as_echo "newly built objdump" >&6; }
21779 elif test x
$gcc_cv_objdump = x
; then
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21781 $as_echo "not found" >&6; }
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21784 $as_echo "$gcc_cv_objdump" >&6; }
21787 # Figure out what readelf we will be using.
21788 if test "${gcc_cv_readelf+set}" = set; then :
21792 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21793 && test -f ..
/binutils
/Makefile \
21794 && test x
$build = x
$host; then
21795 # Single tree build which includes binutils.
21796 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21797 elif test -x readelf
$build_exeext; then
21798 gcc_cv_readelf
=.
/readelf
$build_exeext
21800 # Extract the first word of "readelf", so it can be a program name with args.
21801 set dummy readelf
; ac_word
=$2
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21803 $as_echo_n "checking for $ac_word... " >&6; }
21804 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21805 $as_echo_n "(cached) " >&6
21807 case $gcc_cv_readelf in
21809 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21813 for as_dir
in $PATH
21816 test -z "$as_dir" && as_dir
=.
21817 for ac_exec_ext
in '' $ac_executable_extensions; do
21818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21819 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21830 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21831 if test -n "$gcc_cv_readelf"; then
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21833 $as_echo "$gcc_cv_readelf" >&6; }
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21836 $as_echo "no" >&6; }
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21844 $as_echo_n "checking what readelf to use... " >&6; }
21845 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21846 # Single tree build which includes binutils.
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21848 $as_echo "newly built readelf" >&6; }
21849 elif test x
$gcc_cv_readelf = x
; then
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21851 $as_echo "not found" >&6; }
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21854 $as_echo "$gcc_cv_readelf" >&6; }
21857 # Figure out what assembler alignment features are present.
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21859 $as_echo_n "checking assembler flags... " >&6; }
21860 if test "${gcc_cv_as_flags+set}" = set; then :
21861 $as_echo_n "(cached) " >&6
21864 i
[34567]86-*-linux*)
21865 gcc_cv_as_flags
=--32
21867 x86_64-
*-linux-gnux32)
21868 gcc_cv_as_flags
=--x32
21871 gcc_cv_as_flags
=--64
21873 powerpc
*-*-darwin*)
21874 gcc_cv_as_flags
="-arch ppc"
21877 gcc_cv_as_flags
=" "
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21882 $as_echo "$gcc_cv_as_flags" >&6; }
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21885 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21886 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21887 $as_echo_n "(cached) " >&6
21889 gcc_cv_as_balign_and_p2align
=no
21890 if test $in_tree_gas = yes; then
21891 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21892 then gcc_cv_as_balign_and_p2align
=yes
21894 elif test x
$gcc_cv_as != x
; then
21895 $as_echo '.balign 4
21896 .p2align 2' > conftest.s
21897 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21899 (eval $ac_try) 2>&5
21901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21902 test $ac_status = 0; }; }
21904 gcc_cv_as_balign_and_p2align
=yes
21906 echo "configure: failed program was" >&5
21909 rm -f conftest.o conftest.s
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21913 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21914 if test $gcc_cv_as_balign_and_p2align = yes; then
21916 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21921 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21922 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21923 $as_echo_n "(cached) " >&6
21925 gcc_cv_as_max_skip_p2align
=no
21926 if test $in_tree_gas = yes; then
21927 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21928 then gcc_cv_as_max_skip_p2align
=yes
21930 elif test x
$gcc_cv_as != x
; then
21931 $as_echo '.p2align 4,,7' > conftest.s
21932 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21934 (eval $ac_try) 2>&5
21936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21937 test $ac_status = 0; }; }
21939 gcc_cv_as_max_skip_p2align
=yes
21941 echo "configure: failed program was" >&5
21944 rm -f conftest.o conftest.s
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21948 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21949 if test $gcc_cv_as_max_skip_p2align = yes; then
21951 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21956 $as_echo_n "checking assembler for .literal16... " >&6; }
21957 if test "${gcc_cv_as_literal16+set}" = set; then :
21958 $as_echo_n "(cached) " >&6
21960 gcc_cv_as_literal16
=no
21961 if test $in_tree_gas = yes; then
21962 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21963 then gcc_cv_as_literal16
=yes
21965 elif test x
$gcc_cv_as != x
; then
21966 $as_echo '.literal16' > conftest.s
21967 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21969 (eval $ac_try) 2>&5
21971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21972 test $ac_status = 0; }; }
21974 gcc_cv_as_literal16
=yes
21976 echo "configure: failed program was" >&5
21979 rm -f conftest.o conftest.s
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21983 $as_echo "$gcc_cv_as_literal16" >&6; }
21984 if test $gcc_cv_as_literal16 = yes; then
21986 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21991 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21992 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21993 $as_echo_n "(cached) " >&6
21995 gcc_cv_as_subsection_m1
=no
21996 if test $in_tree_gas = yes; then
21997 if test $in_tree_gas_is_elf = yes \
21998 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21999 then gcc_cv_as_subsection_m1
=yes
22001 elif test x
$gcc_cv_as != x
; then
22002 $as_echo 'conftest_label1: .word 0
22004 conftest_label2: .word 0
22005 .previous' > conftest.s
22006 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22008 (eval $ac_try) 2>&5
22010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22011 test $ac_status = 0; }; }
22013 if test x
$gcc_cv_nm != x
; then
22014 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22015 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22016 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22018 else gcc_cv_as_subsection_m1
=yes
22020 rm -f conftest.nm1 conftest.nm2
22023 echo "configure: failed program was" >&5
22026 rm -f conftest.o conftest.s
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22030 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22031 if test $gcc_cv_as_subsection_m1 = yes; then
22033 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22038 $as_echo_n "checking assembler for .weak... " >&6; }
22039 if test "${gcc_cv_as_weak+set}" = set; then :
22040 $as_echo_n "(cached) " >&6
22043 if test $in_tree_gas = yes; then
22044 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22045 then gcc_cv_as_weak
=yes
22047 elif test x
$gcc_cv_as != x
; then
22048 $as_echo ' .weak foobar' > conftest.s
22049 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22051 (eval $ac_try) 2>&5
22053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22054 test $ac_status = 0; }; }
22058 echo "configure: failed program was" >&5
22061 rm -f conftest.o conftest.s
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22065 $as_echo "$gcc_cv_as_weak" >&6; }
22066 if test $gcc_cv_as_weak = yes; then
22068 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22073 $as_echo_n "checking assembler for .weakref... " >&6; }
22074 if test "${gcc_cv_as_weakref+set}" = set; then :
22075 $as_echo_n "(cached) " >&6
22077 gcc_cv_as_weakref
=no
22078 if test $in_tree_gas = yes; then
22079 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22080 then gcc_cv_as_weakref
=yes
22082 elif test x
$gcc_cv_as != x
; then
22083 $as_echo ' .weakref foobar, barfnot' > conftest.s
22084 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22086 (eval $ac_try) 2>&5
22088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22089 test $ac_status = 0; }; }
22091 gcc_cv_as_weakref
=yes
22093 echo "configure: failed program was" >&5
22096 rm -f conftest.o conftest.s
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22100 $as_echo "$gcc_cv_as_weakref" >&6; }
22101 if test $gcc_cv_as_weakref = yes; then
22103 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22108 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22109 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22110 $as_echo_n "(cached) " >&6
22112 gcc_cv_as_nsubspa_comdat
=no
22113 if test $in_tree_gas = yes; then
22114 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22115 then gcc_cv_as_nsubspa_comdat
=yes
22117 elif test x
$gcc_cv_as != x
; then
22118 $as_echo ' .SPACE $TEXT$
22119 .NSUBSPA $CODE$,COMDAT' > conftest.s
22120 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22122 (eval $ac_try) 2>&5
22124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22125 test $ac_status = 0; }; }
22127 gcc_cv_as_nsubspa_comdat
=yes
22129 echo "configure: failed program was" >&5
22132 rm -f conftest.o conftest.s
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22136 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22137 if test $gcc_cv_as_nsubspa_comdat = yes; then
22139 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22143 # .hidden needs to be supported in both the assembler and the linker,
22144 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22145 # This is irritatingly difficult to feature test for; we have to check the
22146 # date string after the version number. If we've got an in-tree
22147 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22149 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22151 $as_echo_n "checking assembler for .hidden... " >&6; }
22152 if test "${gcc_cv_as_hidden+set}" = set; then :
22153 $as_echo_n "(cached) " >&6
22155 gcc_cv_as_hidden
=no
22156 if test $in_tree_gas = yes; then
22157 if test $in_tree_gas_is_elf = yes \
22158 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22159 then gcc_cv_as_hidden
=yes
22161 elif test x
$gcc_cv_as != x
; then
22162 $as_echo ' .hidden foobar
22163 foobar:' > conftest.s
22164 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22166 (eval $ac_try) 2>&5
22168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22169 test $ac_status = 0; }; }
22171 gcc_cv_as_hidden
=yes
22173 echo "configure: failed program was" >&5
22176 rm -f conftest.o conftest.s
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22180 $as_echo "$gcc_cv_as_hidden" >&6; }
22182 case "${target}" in
22184 # Darwin as has some visibility support, though with a different syntax.
22185 gcc_cv_as_hidden
=yes
22189 # gnu_indirect_function type is an extension proposed at
22190 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22191 # selection of function implementation
22192 # Check whether --enable-gnu-indirect-function was given.
22193 if test "${enable_gnu_indirect_function+set}" = set; then :
22194 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22196 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22197 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22200 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22204 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22206 cat >>confdefs.h
<<_ACEOF
22207 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22212 if test $in_tree_ld != yes ; then
22213 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22214 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22215 if test x
"$ld_is_gold" = xyes
; then
22216 # GNU gold --version looks like this:
22218 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22220 # We extract the binutils version which is more familiar and specific
22221 # than the gold version.
22222 ld_vers
=`echo $ld_ver | sed -n \
22223 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22225 # GNU ld --version looks like this:
22227 # GNU ld (GNU Binutils) 2.21.51.20110225
22228 ld_vers
=`echo $ld_ver | sed -n \
22229 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22231 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'`
22232 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22233 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22234 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22236 case "${target}" in
22238 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22241 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22242 # /usr/ccs/bin/ld has been configured.
22243 ld_ver
=`$gcc_cv_ld -V 2>&1`
22244 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22245 ld_vers
=`echo $ld_ver | sed -n \
22246 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22247 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22248 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22256 $as_echo_n "checking linker for .hidden support... " >&6; }
22257 if test "${gcc_cv_ld_hidden+set}" = set; then :
22258 $as_echo_n "(cached) " >&6
22260 if test $in_tree_ld = yes ; then
22261 gcc_cv_ld_hidden
=no
22262 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 \
22263 && test $in_tree_ld_is_elf = yes; then
22264 gcc_cv_ld_hidden
=yes
22267 gcc_cv_ld_hidden
=yes
22268 if test x
"$ld_is_gold" = xyes
; then
22270 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22271 case "${target}" in
22272 mmix-knuth-mmixware
)
22273 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22274 gcc_cv_ld_hidden
=no
22277 if test 0"$ld_date" -lt 20020404; then
22278 if test -n "$ld_date"; then
22279 # If there was date string, but was earlier than 2002-04-04, fail
22280 gcc_cv_ld_hidden
=no
22281 elif test -z "$ld_vers"; then
22282 # If there was no date string nor ld version number, something is wrong
22283 gcc_cv_ld_hidden
=no
22285 test -z "$ld_vers_patch" && ld_vers_patch
=0
22286 if test "$ld_vers_major" -lt 2; then
22287 gcc_cv_ld_hidden
=no
22288 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22289 gcc_cv_ld_hidden
="no"
22290 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22291 gcc_cv_ld_hidden
=no
22296 case "${target}" in
22298 # Darwin ld has some visibility support.
22299 gcc_cv_ld_hidden
=yes
22301 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22302 gcc_cv_ld_hidden
=yes
22304 *-*-solaris2.1
[0-9]*)
22305 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22306 # .symbolic was only added in Solaris 9 12/02.
22307 gcc_cv_ld_hidden
=yes
22310 gcc_cv_ld_hidden
=no
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22317 $as_echo "$gcc_cv_ld_hidden" >&6; }
22318 libgcc_visibility
=no
22321 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22322 libgcc_visibility
=yes
22324 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22329 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22330 gcc_cv_ld_ro_rw_mix
=unknown
22331 if test $in_tree_ld = yes ; then
22332 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 \
22333 && test $in_tree_ld_is_elf = yes; then
22334 gcc_cv_ld_ro_rw_mix
=read-write
22336 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22337 echo '.section myfoosect, "a"' > conftest1.s
22338 echo '.section myfoosect, "aw"' > conftest2.s
22339 echo '.byte 1' >> conftest2.s
22340 echo '.section myfoosect, "a"' > conftest3.s
22341 echo '.byte 0' >> conftest3.s
22342 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22343 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22344 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22345 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22346 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22347 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22348 | sed -e '/myfoosect/!d' -e N`
22349 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22350 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22351 gcc_cv_ld_ro_rw_mix
=read-only
22353 gcc_cv_ld_ro_rw_mix
=read-write
22357 rm -f conftest.
* conftest
[123].
*
22359 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22361 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22365 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22367 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22368 case "${target}" in
22371 # Solaris 2 ld -V output looks like this for a regular version:
22373 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22375 # but test versions add stuff at the end:
22377 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22379 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22380 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22381 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22382 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22383 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22384 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22390 # Check whether --enable-initfini-array was given.
22391 if test "${enable_initfini_array+set}" = set; then :
22392 enableval
=$enable_initfini_array;
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22396 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22397 if test "${gcc_cv_initfini_array+set}" = set; then :
22398 $as_echo_n "(cached) " >&6
22400 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22401 case "${target}" in
22403 if test "$cross_compiling" = yes; then :
22404 gcc_cv_initfini_array
=no
22406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22407 /* end confdefs.h. */
22410 #error Not an ELF OS
22412 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22413 if it can be used. */
22415 int main (void) { return x; }
22416 int foo (void) { x = 0; }
22417 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22420 if ac_fn_c_try_run
"$LINENO"; then :
22421 gcc_cv_initfini_array
=yes
22423 gcc_cv_initfini_array
=no
22425 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22426 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22430 gcc_cv_initfini_array
=no
22431 if test $in_tree_ld = yes ; then
22432 if test "$gcc_cv_gld_major_version" -eq 2 \
22433 -a "$gcc_cv_gld_minor_version" -ge 22 \
22434 -o "$gcc_cv_gld_major_version" -gt 2 \
22435 && test $in_tree_ld_is_elf = yes; then
22436 gcc_cv_initfini_array
=yes
22438 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22439 cat > conftest.s
<<\EOF
22440 .section .dtors
,"a",%progbits
22442 .byte
'A', 'A', 'A', 'A'
22443 .section .ctors
,"a",%progbits
22445 .byte
'B', 'B', 'B', 'B'
22446 .section .fini_array
.65530,"a",%progbits
22448 .byte
'C', 'C', 'C', 'C'
22449 .section .init_array
.65530,"a",%progbits
22451 .byte
'D', 'D', 'D', 'D'
22452 .section .dtors
.64528,"a",%progbits
22454 .byte
'E', 'E', 'E', 'E'
22455 .section .ctors
.64528,"a",%progbits
22457 .byte
'F', 'F', 'F', 'F'
22458 .section .fini_array
.01005,"a",%progbits
22460 .byte
'G', 'G', 'G', 'G'
22461 .section .init_array
.01005,"a",%progbits
22463 .byte
'H', 'H', 'H', 'H'
22468 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22469 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22470 && $gcc_cv_objdump -s -j .init_array conftest \
22471 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22472 && $gcc_cv_objdump -s -j .fini_array conftest \
22473 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22474 gcc_cv_initfini_array
=yes
22476 rm -f conftest conftest.
*
22478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22479 /* end confdefs.h. */
22482 # error Not an ELF OS
22484 #include <stdlib.h>
22485 #if defined __GLIBC_PREREQ
22486 # if __GLIBC_PREREQ (2, 4)
22488 # error GLIBC 2.4 required
22491 # if defined __sun__ && defined __svr4__
22492 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22494 # error The C library not known to support .init_array/.fini_array
22499 if ac_fn_c_try_cpp
"$LINENO"; then :
22502 gcc_cv_initfini_array
=no
22504 rm -f conftest.err conftest.
$ac_ext;;
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22508 $as_echo_n "checking cross compile... guessing... " >&6; }
22509 gcc_cv_initfini_array
=no
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22513 $as_echo "$gcc_cv_initfini_array" >&6; }
22514 enable_initfini_array
=$gcc_cv_initfini_array
22518 if test $enable_initfini_array = yes; then
22520 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22524 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22526 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22527 if test "${gcc_cv_as_leb128+set}" = set; then :
22528 $as_echo_n "(cached) " >&6
22530 gcc_cv_as_leb128
=no
22531 if test $in_tree_gas = yes; then
22532 if test $in_tree_gas_is_elf = yes \
22533 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22534 then gcc_cv_as_leb128
=yes
22536 elif test x
$gcc_cv_as != x
; then
22543 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22545 (eval $ac_try) 2>&5
22547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22548 test $ac_status = 0; }; }
22550 # GAS versions before 2.11 do not support uleb128,
22551 # despite appearing to.
22552 # ??? There exists an elf-specific test that will crash
22553 # the assembler. Perhaps it's better to figure out whether
22554 # arbitrary sections are supported and try the test.
22555 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22556 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22557 as_vers
=`echo $as_ver | sed -n \
22558 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22559 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22560 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22561 if test $as_major -eq 2 && test $as_minor -lt 11
22563 else gcc_cv_as_leb128
=yes
22567 echo "configure: failed program was" >&5
22570 rm -f conftest.o conftest.s
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22574 $as_echo "$gcc_cv_as_leb128" >&6; }
22575 if test $gcc_cv_as_leb128 = yes; then
22577 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22581 # Check if we have assembler support for unwind directives.
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22583 $as_echo_n "checking assembler for cfi directives... " >&6; }
22584 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22585 $as_echo_n "(cached) " >&6
22587 gcc_cv_as_cfi_directive
=no
22588 if test x
$gcc_cv_as != x
; then
22594 .cfi_escape 1, 2, 3, 4, 5
22595 .cfi_endproc' > conftest.s
22596 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22598 (eval $ac_try) 2>&5
22600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22601 test $ac_status = 0; }; }
22605 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22606 # read-only and read-write sections, we need to make sure that the
22607 # assembler used emits read-write .eh_frame sections.
22608 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22609 if test "x$gcc_cv_objdump" != x
; then
22610 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22611 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22612 gcc_cv_as_cfi_directive
=no
22615 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22616 # On Solaris/x86, make sure that GCC and assembler agree on using
22617 # read-only .eh_frame sections for 64-bit.
22618 if test x
$gas = xyes
; then
22619 as_ix86_64_opt
="--64"
22621 as_ix86_64_opt
="-xarch=amd64"
22623 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22624 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22625 sed -e /.eh_frame
/!d
-e N | \
22626 grep READONLY
> /dev
/null
; then
22627 gcc_cv_as_cfi_directive
=yes
22629 gcc_cv_as_cfi_directive
=no
22633 gcc_cv_as_cfi_directive
=yes
22638 # no objdump, err on the side of caution
22639 gcc_cv_as_cfi_directive
=no
22642 gcc_cv_as_cfi_directive
=yes
22646 gcc_cv_as_cfi_directive
=yes
22650 echo "configure: failed program was" >&5
22653 rm -f conftest.o conftest.s
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22657 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22659 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22661 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22662 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22663 $as_echo_n "(cached) " >&6
22665 gcc_cv_as_cfi_advance_working
=no
22666 if test x
$gcc_cv_as != x
; then
22669 .cfi_adjust_cfa_offset 64
22671 .cfi_adjust_cfa_offset 128
22672 .cfi_endproc' > conftest.s
22673 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22675 (eval $ac_try) 2>&5
22677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22678 test $ac_status = 0; }; }
22681 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22682 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22683 gcc_cv_as_cfi_advance_working
=yes
22687 echo "configure: failed program was" >&5
22690 rm -f conftest.o conftest.s
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22694 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22697 # no objdump, err on the side of caution
22698 gcc_cv_as_cfi_advance_working
=no
22702 cat >>confdefs.h
<<_ACEOF
22703 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22704 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22710 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22711 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22712 $as_echo_n "(cached) " >&6
22714 gcc_cv_as_cfi_personality_directive
=no
22715 if test x
$gcc_cv_as != x
; then
22718 .cfi_personality 0, symbol
22719 .cfi_endproc' > conftest.s
22720 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22722 (eval $ac_try) 2>&5
22724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22725 test $ac_status = 0; }; }
22727 gcc_cv_as_cfi_personality_directive
=yes
22729 echo "configure: failed program was" >&5
22732 rm -f conftest.o conftest.s
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22736 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22739 cat >>confdefs.h
<<_ACEOF
22740 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22741 then echo 1; else echo 0; fi`
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22746 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22747 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22748 $as_echo_n "(cached) " >&6
22750 gcc_cv_as_cfi_sections_directive
=no
22751 if test x
$gcc_cv_as != x
; then
22753 .cfi_sections .debug_frame, .eh_frame
22755 .cfi_endproc' > conftest.s
22756 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22758 (eval $ac_try) 2>&5
22760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22761 test $ac_status = 0; }; }
22764 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22765 # Need to check that we generated the correct relocation for the
22766 # .debug_frame section. This was fixed for binutils 2.21.
22767 gcc_cv_as_cfi_sections_directive
=no
22768 if test "x$gcc_cv_objdump" != x
; then
22769 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22770 grep secrel
> /dev
/null
; then
22771 gcc_cv_as_cfi_sections_directive
=yes
22776 gcc_cv_as_cfi_sections_directive
=yes
22780 echo "configure: failed program was" >&5
22783 rm -f conftest.o conftest.s
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22787 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22791 cat >>confdefs.h
<<_ACEOF
22792 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22793 then echo 1; else echo 0; fi`
22797 # GAS versions up to and including 2.11.0 may mis-optimize
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22800 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22801 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22802 $as_echo_n "(cached) " >&6
22804 gcc_cv_as_eh_frame
=no
22805 if test $in_tree_gas = yes; then
22806 if test $in_tree_gas_is_elf = yes \
22807 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22808 then gcc_cv_as_eh_frame
=yes
22810 elif test x
$gcc_cv_as != x
; then
22817 .section .eh_frame,"aw",@progbits
22819 .4byte .LECIE1-.LSCIE1
22833 .4byte .LEFDE1-.LASFDE1
22835 .4byte .LASFDE1-__FRAME_BEGIN__
22842 .LEFDE1:' > conftest.s
22843 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22845 (eval $ac_try) 2>&5
22847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22848 test $ac_status = 0; }; }
22850 cat > conftest.lit
<<EOF
22851 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22852 0010 01000000 12000000 18000000 00000000 ................
22853 0020 08000000 04080000 0044 .........D
22855 cat > conftest.big
<<EOF
22856 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22857 0010 00000001 00000012 00000018 00000000 ................
22858 0020 00000008 04000000 0844 .........D
22860 # If the assembler didn't choke, and we can objdump,
22861 # and we got the correct data, then succeed.
22862 # The text in the here-document typically retains its unix-style line
22863 # endings, while the output of objdump will use host line endings.
22864 # Therefore, use diff -b for the comparisons.
22865 if test x
$gcc_cv_objdump != x \
22866 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22867 |
tail -3 > conftest.got \
22868 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22869 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22871 gcc_cv_as_eh_frame
=yes
22872 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22874 (eval $ac_try) 2>&5
22876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22877 test $ac_status = 0; }; }; then
22878 gcc_cv_as_eh_frame
=buggy
22880 # Uh oh, what do we do now?
22881 gcc_cv_as_eh_frame
=no
22884 echo "configure: failed program was" >&5
22887 rm -f conftest.o conftest.s
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22891 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22894 if test $gcc_cv_as_eh_frame = buggy
; then
22896 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22901 $as_echo_n "checking assembler for section merging support... " >&6; }
22902 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22903 $as_echo_n "(cached) " >&6
22905 gcc_cv_as_shf_merge
=no
22906 if test $in_tree_gas = yes; then
22907 if test $in_tree_gas_is_elf = yes \
22908 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22909 then gcc_cv_as_shf_merge
=yes
22911 elif test x
$gcc_cv_as != x
; then
22912 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22913 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22915 (eval $ac_try) 2>&5
22917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22918 test $ac_status = 0; }; }
22920 gcc_cv_as_shf_merge
=yes
22922 echo "configure: failed program was" >&5
22925 rm -f conftest.o conftest.s
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22929 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22931 if test $gcc_cv_as_shf_merge = no
; then
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22933 $as_echo_n "checking assembler for section merging support... " >&6; }
22934 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22935 $as_echo_n "(cached) " >&6
22937 gcc_cv_as_shf_merge
=no
22938 if test $in_tree_gas = yes; then
22939 if test $in_tree_gas_is_elf = yes \
22940 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22941 then gcc_cv_as_shf_merge
=yes
22943 elif test x
$gcc_cv_as != x
; then
22944 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22945 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22947 (eval $ac_try) 2>&5
22949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22950 test $ac_status = 0; }; }
22952 gcc_cv_as_shf_merge
=yes
22954 echo "configure: failed program was" >&5
22957 rm -f conftest.o conftest.s
22960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22961 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22965 cat >>confdefs.h
<<_ACEOF
22966 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22971 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22972 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22973 $as_echo_n "(cached) " >&6
22975 gcc_cv_as_comdat_group
=no
22976 if test $in_tree_gas = yes; then
22977 if test $in_tree_gas_is_elf = yes \
22978 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22979 then gcc_cv_as_comdat_group
=yes
22981 elif test x
$gcc_cv_as != x
; then
22982 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22983 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22985 (eval $ac_try) 2>&5
22987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22988 test $ac_status = 0; }; }
22990 gcc_cv_as_comdat_group
=yes
22992 echo "configure: failed program was" >&5
22995 rm -f conftest.o conftest.s
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22999 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23001 if test $gcc_cv_as_comdat_group = yes; then
23002 gcc_cv_as_comdat_group_percent
=no
23003 gcc_cv_as_comdat_group_group
=no
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23006 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23007 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23008 $as_echo_n "(cached) " >&6
23010 gcc_cv_as_comdat_group_percent
=no
23011 if test $in_tree_gas = yes; then
23012 if test $in_tree_gas_is_elf = yes \
23013 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23014 then gcc_cv_as_comdat_group_percent
=yes
23016 elif test x
$gcc_cv_as != x
; then
23017 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23018 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23020 (eval $ac_try) 2>&5
23022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23023 test $ac_status = 0; }; }
23025 gcc_cv_as_comdat_group_percent
=yes
23027 echo "configure: failed program was" >&5
23030 rm -f conftest.o conftest.s
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23034 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23036 if test $gcc_cv_as_comdat_group_percent = yes; then
23037 gcc_cv_as_comdat_group_group
=no
23039 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23040 gcc_cv_as_comdat_group_group
=no
23042 case "${target}" in
23043 # Sun as uses a completely different syntax.
23045 case "${target}" in
23046 sparc
*-*-solaris2*)
23048 .group foo,".text%foo",#comdat
23049 .section ".text%foo", #alloc,#execinstr,#progbits
23054 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23056 .group foo,.text%foo,#comdat
23057 .section .text%foo, "ax", @progbits
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23064 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23065 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23066 $as_echo_n "(cached) " >&6
23068 gcc_cv_as_comdat_group_group
=no
23069 if test x
$gcc_cv_as != x
; then
23070 $as_echo "$conftest_s" > conftest.s
23071 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23073 (eval $ac_try) 2>&5
23075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23076 test $ac_status = 0; }; }
23078 gcc_cv_as_comdat_group_group
=yes
23080 echo "configure: failed program was" >&5
23083 rm -f conftest.o conftest.s
23086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23087 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23093 if test x
"$ld_is_gold" = xyes
; then
23095 elif test $in_tree_ld = yes ; then
23097 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 \
23098 && test $in_tree_ld_is_elf = yes; then
23101 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23103 if test 0"$ld_date" -lt 20050308; then
23104 if test -n "$ld_date"; then
23105 # If there was date string, but was earlier than 2005-03-08, fail
23107 elif test "$ld_vers_major" -lt 2; then
23109 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23114 case "${target}" in
23115 *-*-solaris2.1
[1-9]*)
23117 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23118 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23121 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23122 # least ld version 1.2267.
23123 if test "$ld_vers_major" -gt 1; then
23125 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23127 elif test "$ld_vers_minor" -ge 2267; then
23132 # Assume linkers other than GNU ld don't support COMDAT group.
23137 # Allow overriding the automatic COMDAT group tests above.
23138 # Check whether --enable-comdat was given.
23139 if test "${enable_comdat+set}" = set; then :
23140 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23143 if test $comdat_group = no
; then
23144 gcc_cv_as_comdat_group
=no
23145 gcc_cv_as_comdat_group_percent
=no
23146 gcc_cv_as_comdat_group_group
=no
23149 cat >>confdefs.h
<<_ACEOF
23150 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23151 || test $gcc_cv_as_comdat_group_percent = yes \
23152 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23157 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23158 if test "${gcc_cv_as_discriminator+set}" = set; then :
23159 $as_echo_n "(cached) " >&6
23161 gcc_cv_as_discriminator
=no
23162 if test $in_tree_gas = yes; then
23163 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23164 then gcc_cv_as_discriminator
=yes
23166 elif test x
$gcc_cv_as != x
; then
23169 .loc 1 1 0 discriminator 1' > conftest.s
23170 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23172 (eval $ac_try) 2>&5
23174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23175 test $ac_status = 0; }; }
23177 gcc_cv_as_discriminator
=yes
23179 echo "configure: failed program was" >&5
23182 rm -f conftest.o conftest.s
23185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23186 $as_echo "$gcc_cv_as_discriminator" >&6; }
23187 if test $gcc_cv_as_discriminator = yes; then
23189 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23193 # Thread-local storage - the check is heavily parameterized.
23201 .section ".tdata","awT",@progbits
23204 ldq $27,__tls_get_addr($29) !literal!1
23205 lda $16,foo($29) !tlsgd!1
23206 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23207 ldq $27,__tls_get_addr($29) !literal!2
23208 lda $16,foo($29) !tlsldm!2
23209 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23210 ldq $1,foo($29) !gotdtprel
23211 ldah $2,foo($29) !dtprelhi
23212 lda $3,foo($2) !dtprello
23213 lda $4,foo($29) !dtprel
23214 ldq $1,foo($29) !gottprel
23215 ldah $2,foo($29) !tprelhi
23216 lda $3,foo($2) !tprello
23217 lda $4,foo($29) !tprel'
23220 tls_as_opt
=--fatal-warnings
23222 cris-
*-*|crisv32-
*-*)
23224 .section ".tdata","awT",@progbits
23231 tls_as_opt
=--fatal-warnings
23235 .section ".tdata","awT",@progbits
23238 call #gettlsoff(x)'
23247 .section ".tdata","awT",@progbits
23251 addil LT%foo-$tls_gdidx$,gp
23252 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23255 addil LT%foo-$tls_ldidx$,gp
23257 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23258 addil LR%foo-$tls_dtpoff$,%ret0
23259 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23261 addil LT%foo-$tls_ieoff$,gp
23262 ldw RT%foo-$tls_ieoff$(%r1),%t2
23265 addil LR%foo-$tls_leoff$,%t1
23266 ldo RR%foo-$tls_leoff$(%r1),%t2'
23269 tls_as_opt
=--fatal-warnings
23273 .section ".tdata","awT",%progbits
23276 .word foo(gottpoff)
23284 i
[34567]86-*-* | x86_64-
*-*)
23286 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23293 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23295 .section .tdata,"awt",@progbits'
23300 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23304 .section ".tdata","awT",@progbits'
23308 tls_as_opt
="--fatal-warnings"
23312 conftest_s
="$conftest_s
23316 leal foo@tlsgd(,%ebx,1), %eax
23317 leal foo@tlsldm(%ebx), %eax
23318 leal foo@dtpoff(%eax), %edx
23319 movl foo@gottpoff(%ebx), %eax
23320 subl foo@gottpoff(%ebx), %eax
23321 addl foo@gotntpoff(%ebx), %eax
23322 movl foo@indntpoff, %eax
23323 movl \$foo@tpoff, %eax
23324 subl \$foo@tpoff, %eax
23325 leal foo@ntpoff(%ecx), %eax"
23328 if test x
$on_solaris = xyes
; then
23330 yes) tls_as_opt
="$tls_as_opt --64" ;;
23331 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23334 conftest_s
="$conftest_s
23338 leaq foo@tlsgd(%rip), %rdi
23339 leaq foo@tlsld(%rip), %rdi
23340 leaq foo@dtpoff(%rax), %rdx
23341 movq foo@gottpoff(%rip), %rax
23342 movq \$foo@tpoff, %rax"
23348 .section ".tdata","awT",@progbits
23351 addl r16 = @ltoff(@dtpmod(foo#)), gp
23352 addl r17 = @ltoff(@dtprel(foo#)), gp
23353 addl r18 = @ltoff(@tprel(foo#)), gp
23354 addl r19 = @dtprel(foo#), gp
23355 adds r21 = @dtprel(foo#), r13
23356 movl r23 = @dtprel(foo#)
23357 addl r20 = @tprel(foo#), gp
23358 adds r22 = @tprel(foo#), r13
23359 movl r24 = @tprel(foo#)'
23362 tls_as_opt
=--fatal-warnings
23366 .section .tdata,"awT",@progbits
23370 addik r5,r20,x@TLSGD
23371 addik r5,r20,x@TLSLDM'
23374 tls_as_opt
='--fatal-warnings'
23378 .section .tdata,"awT",@progbits
23382 addiu $4, $28, %tlsgd(x)
23383 addiu $4, $28, %tlsldm(x)
23384 lui $4, %dtprel_hi(x)
23385 addiu $4, $4, %dtprel_lo(x)
23386 lw $4, %gottprel(x)($28)
23387 lui $4, %tprel_hi(x)
23388 addiu $4, $4, %tprel_lo(x)'
23391 tls_as_opt
='-32 --fatal-warnings'
23395 .section .tdata,"awT",@progbits
23400 move.l x@TLSGD(%a5),%a0
23401 move.l x@TLSLDM(%a5),%a0
23402 move.l x@TLSLDO(%a5),%a0
23403 move.l x@TLSIE(%a5),%a0
23404 move.l x@TLSLE(%a5),%a0'
23407 tls_as_opt
='--fatal-warnings'
23411 .section ".tdata","awT",@progbits'
23414 tls_as_opt
="--fatal-warnings"
23418 .section ".tdata","awT",%progbits
23422 add x0, x0, #:tlsgd_lo12:x
23427 tls_as_opt
='--fatal-warnings'
23431 .extern __get_tpointer
23449 .section ".tdata","awT",@progbits
23457 addi 3,2,ld0@got@tlsgd
23463 addi 3,2,x1@got@tlsld
23469 addis 9,3,x2@dtprel@ha
23470 addi 9,9,x2@dtprel@l
23473 ld 9,x3@got@dtprel(2)
23479 tls_as_opt
="-a64 --fatal-warnings"
23483 .section ".tdata","awT",@progbits
23491 addi 3,31,ld0@got@tlsgd
23493 addi 3,31,x1@got@tlsld
23496 addis 9,3,x2@dtprel@ha
23497 addi 9,9,x2@dtprel@l
23498 lwz 9,x3@got@tprel(31)
23501 addis 9,2,x2@tprel@ha
23502 addi 9,9,x2@tprel@l'
23505 tls_as_opt
="-a32 --fatal-warnings"
23509 .section ".tdata","awT",@progbits
23516 .long foo@GOTNTPOFF
23517 .long foo@INDNTPOFF
23518 l %r1,foo@GOTNTPOFF(%r12)
23519 l %r1,0(%r1):tls_load:foo
23520 bas %r14,0(%r1,%r13):tls_gdcall:foo
23521 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23524 tls_as_opt
="-m31 --fatal-warnings"
23528 .section ".tdata","awT",@progbits
23535 .quad foo@GOTNTPOFF
23536 lg %r1,foo@GOTNTPOFF(%r12)
23537 larl %r1,foo@INDNTPOFF
23538 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23539 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23542 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23544 sh-
*-* | sh
[34]-*-*)
23546 .section ".tdata","awT",@progbits
23556 tls_as_opt
=--fatal-warnings
23560 sparc
*-sun-solaris2.
*)
23567 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23569 .section ".tdata",#alloc,#write,#tls'
23574 .section ".tdata","awT",@progbits'
23577 tls_as_opt
="-32 --fatal-warnings"
23579 conftest_s
="$conftest_s
23582 sethi %tgd_hi22(foo), %o0
23583 add %o0, %tgd_lo10(foo), %o1
23584 add %l7, %o1, %o0, %tgd_add(foo)
23585 call __tls_get_addr, %tgd_call(foo)
23586 sethi %tldm_hi22(foo), %l1
23587 add %l1, %tldm_lo10(foo), %l2
23588 add %l7, %l2, %o0, %tldm_add(foo)
23589 call __tls_get_addr, %tldm_call(foo)
23590 sethi %tldo_hix22(foo), %l3
23591 xor %l3, %tldo_lox10(foo), %l4
23592 add %o0, %l4, %l5, %tldo_add(foo)
23593 sethi %tie_hi22(foo), %o3
23594 add %o3, %tie_lo10(foo), %o3
23595 ld [%l7 + %o3], %o2, %tie_ld(foo)
23596 add %g7, %o2, %o4, %tie_add(foo)
23597 sethi %tle_hix22(foo), %l1
23598 xor %l1, %tle_lox10(foo), %o5
23599 ld [%g7 + %o5], %o1"
23603 .section ".tdata","awT",@progbits
23606 addli r0, zero, tls_gd(foo)
23607 auli r0, zero, tls_gd_ha16(foo)
23608 addli r0, r0, tls_gd_lo16(foo)
23610 addli r0, zero, tls_ie(foo)
23611 auli r0, r0, tls_ie_ha16(foo)
23612 addli r0, r0, tls_ie_lo16(foo)'
23615 tls_as_opt
="--fatal-warnings"
23619 .section ".tdata","awT",@progbits
23622 shl16insli r0, zero, hw0_last_tls_gd(foo)
23623 shl16insli r0, zero, hw1_last_tls_gd(foo)
23624 shl16insli r0, r0, hw0_tls_gd(foo)
23626 shl16insli r0, zero, hw1_last_tls_ie(foo)
23627 shl16insli r0, r0, hw0_tls_ie(foo)'
23630 tls_as_opt
="--fatal-warnings"
23634 .section ".tdata","awT",@progbits
23637 movi a8, foo@TLSFUNC
23638 movi a10, foo@TLSARG
23639 callx8.tls a8, foo@TLSCALL'
23645 if test "x$enable_tls" = xno
; then
23646 : # TLS explicitly disabled.
23647 elif test "x$enable_tls" = xyes
; then
23648 set_have_as_tls
=yes # TLS explicitly enabled.
23649 elif test -z "$tls_first_major"; then
23650 : # If we don't have a check, assume no support.
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23653 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23654 if test "${gcc_cv_as_tls+set}" = set; then :
23655 $as_echo_n "(cached) " >&6
23658 if test $in_tree_gas = yes; then
23659 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23660 then gcc_cv_as_tls
=yes
23662 elif test x
$gcc_cv_as != x
; then
23663 $as_echo "$conftest_s" > conftest.s
23664 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23666 (eval $ac_try) 2>&5
23668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23669 test $ac_status = 0; }; }
23673 echo "configure: failed program was" >&5
23676 rm -f conftest.o conftest.s
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23680 $as_echo "$gcc_cv_as_tls" >&6; }
23681 if test $gcc_cv_as_tls = yes; then
23682 set_have_as_tls
=yes
23685 if test $set_have_as_tls = yes ; then
23687 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23691 # Target-specific assembler checks.
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23694 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23695 gcc_cv_ld_static_dynamic
=no
23696 gcc_cv_ld_static_option
='-Bstatic'
23697 gcc_cv_ld_dynamic_option
='-Bdynamic'
23698 if test $in_tree_ld = yes ; then
23699 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
23700 gcc_cv_ld_static_dynamic
=yes
23702 elif test x
$gcc_cv_ld != x
; then
23703 # Check if linker supports -Bstatic/-Bdynamic option
23704 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23705 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23706 gcc_cv_ld_static_dynamic
=yes
23709 # AIX ld uses -b flags
23710 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
23711 gcc_cv_ld_static_dynamic
=yes
23712 gcc_cv_ld_static_option
="-bstatic"
23713 gcc_cv_ld_dynamic_option
="-bdynamic"
23715 # HP-UX ld uses -a flags to select between shared and archive.
23717 if test x
"$gnu_ld" = xno
; then
23718 gcc_cv_ld_static_dynamic
=yes
23719 gcc_cv_ld_static_option
="-aarchive_shared"
23720 gcc_cv_ld_dynamic_option
="-adefault"
23723 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23725 gcc_cv_ld_static_dynamic
=yes
23730 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23732 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23735 cat >>confdefs.h
<<_ACEOF
23736 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23740 cat >>confdefs.h
<<_ACEOF
23741 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23746 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23748 if test x
"$demangler_in_ld" = xyes
; then
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23750 $as_echo_n "checking linker --demangle support... " >&6; }
23751 gcc_cv_ld_demangle
=no
23752 if test $in_tree_ld = yes; then
23753 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 \
23754 gcc_cv_ld_demangle
=yes
23756 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23757 # Check if the GNU linker supports --demangle option
23758 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23759 gcc_cv_ld_demangle
=yes
23762 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23764 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23768 $as_echo "$gcc_cv_ld_demangle" >&6; }
23771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23772 $as_echo_n "checking linker plugin support... " >&6; }
23773 gcc_cv_lto_plugin
=0
23774 if test -f liblto_plugin.la
; then
23775 save_ld_ver
="$ld_ver"
23776 save_ld_vers_major
="$ld_vers_major"
23777 save_ld_vers_minor
="$ld_vers_minor"
23778 save_ld_is_gold
="$ld_is_gold"
23782 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23784 # FIXME: ld_is_gold?
23785 ld_vers_major
="$gcc_cv_gld_major_version"
23786 ld_vers_minor
="$gcc_cv_gld_minor_version"
23788 # Determine plugin linker version.
23789 # FIXME: Partial duplicate from above, generalize.
23790 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23791 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23792 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23794 ld_vers
=`echo $ld_ver | sed -n \
23795 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23797 ld_vers
=`echo $ld_ver | sed -n \
23798 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23800 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23801 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23805 # Determine plugin support.
23806 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23807 # Require GNU ld or gold 2.21+ for plugin support by default.
23808 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23809 gcc_cv_lto_plugin
=2
23810 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23811 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23812 gcc_cv_lto_plugin
=1
23816 ld_ver
="$save_ld_ver"
23817 ld_vers_major
="$save_ld_vers_major"
23818 ld_vers_minor
="$save_ld_vers_minor"
23819 ld_is_gold
="$save_ld_is_gold"
23822 cat >>confdefs.h
<<_ACEOF
23823 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23827 $as_echo "$gcc_cv_lto_plugin" >&6; }
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
23832 $as_echo_n "checking assembler for -mabi option... " >&6; }
23833 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
23834 $as_echo_n "(cached) " >&6
23836 gcc_cv_as_aarch64_mabi
=no
23837 if test x
$gcc_cv_as != x
; then
23838 $as_echo '.text' > conftest.s
23839 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
23840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23841 (eval $ac_try) 2>&5
23843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23844 test $ac_status = 0; }; }
23846 gcc_cv_as_aarch64_mabi
=yes
23848 echo "configure: failed program was" >&5
23851 rm -f conftest.o conftest.s
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
23855 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
23857 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
23859 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
23862 if test x
$with_abi = xilp32
; then
23863 as_fn_error
"Assembler does not support -mabi=ilp32.\
23864 Upgrade the Assembler." "$LINENO" 5
23866 if test x
"$with_multilib_list" = xdefault
; then
23867 TM_MULTILIB_CONFIG
=lp64
23869 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
23870 for aarch64_multilib
in ${aarch64_multilibs}; do
23871 case ${aarch64_multilib} in
23873 as_fn_error
"Assembler does not support -mabi=ilp32.\
23874 Upgrade the Assembler." "$LINENO" 5
23884 # All TARGET_ABI_OSF targets.
23885 alpha
*-*-linux* | alpha
*-*-*bsd
*)
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23887 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23888 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23889 $as_echo_n "(cached) " >&6
23891 gcc_cv_as_alpha_explicit_relocs
=no
23892 if test $in_tree_gas = yes; then
23893 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23894 then gcc_cv_as_alpha_explicit_relocs
=yes
23896 elif test x
$gcc_cv_as != x
; then
23897 $as_echo ' .set nomacro
23899 extbl $3, $2, $3 !lituse_bytoff!1
23900 ldq $2, a($29) !literal!1
23901 ldq $4, b($29) !literal!2
23902 ldq_u $3, 0($2) !lituse_base!1
23903 ldq $27, f($29) !literal!5
23904 jsr $26, ($27), f !lituse_jsr!5
23905 ldah $29, 0($26) !gpdisp!3
23906 lda $0, c($29) !gprel
23907 ldah $1, d($29) !gprelhigh
23908 lda $1, d($1) !gprellow
23909 lda $29, 0($29) !gpdisp!3' > conftest.s
23910 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23912 (eval $ac_try) 2>&5
23914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23915 test $ac_status = 0; }; }
23917 gcc_cv_as_alpha_explicit_relocs
=yes
23919 echo "configure: failed program was" >&5
23922 rm -f conftest.o conftest.s
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23926 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23927 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23929 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23933 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23934 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23935 $as_echo_n "(cached) " >&6
23937 gcc_cv_as_alpha_jsrdirect_relocs
=no
23938 if test $in_tree_gas = yes; then
23939 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23940 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23942 elif test x
$gcc_cv_as != x
; then
23943 $as_echo ' .set nomacro
23945 ldq $27, a($29) !literal!1
23946 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23947 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23949 (eval $ac_try) 2>&5
23951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23952 test $ac_status = 0; }; }
23954 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23956 echo "configure: failed program was" >&5
23959 rm -f conftest.o conftest.s
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23963 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23964 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23966 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23973 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23974 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23975 $as_echo_n "(cached) " >&6
23977 gcc_cv_as_cris_no_mul_bug
=no
23978 if test $in_tree_gas = yes; then
23979 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23980 then gcc_cv_as_cris_no_mul_bug
=yes
23982 elif test x
$gcc_cv_as != x
; then
23983 $as_echo '.text' > conftest.s
23984 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23986 (eval $ac_try) 2>&5
23988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23989 test $ac_status = 0; }; }
23991 gcc_cv_as_cris_no_mul_bug
=yes
23993 echo "configure: failed program was" >&5
23996 rm -f conftest.o conftest.s
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24000 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24001 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24003 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24010 $as_echo_n "checking assembler for .register... " >&6; }
24011 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24012 $as_echo_n "(cached) " >&6
24014 gcc_cv_as_sparc_register_op
=no
24015 if test x
$gcc_cv_as != x
; then
24016 $as_echo '.register %g2, #scratch' > conftest.s
24017 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24019 (eval $ac_try) 2>&5
24021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24022 test $ac_status = 0; }; }
24024 gcc_cv_as_sparc_register_op
=yes
24026 echo "configure: failed program was" >&5
24029 rm -f conftest.o conftest.s
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24033 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24034 if test $gcc_cv_as_sparc_register_op = yes; then
24036 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24041 $as_echo_n "checking assembler for #nobits... " >&6; }
24042 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24043 $as_echo_n "(cached) " >&6
24045 gcc_cv_as_sparc_nobits
=no
24046 if test x
$gcc_cv_as != x
; then
24047 $as_echo '.section "nobits",#alloc,#write,#nobits
24048 .section "progbits",#alloc,#write,#progbits' > conftest.s
24049 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24051 (eval $ac_try) 2>&5
24053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24054 test $ac_status = 0; }; }
24056 gcc_cv_as_sparc_nobits
=yes
24058 echo "configure: failed program was" >&5
24061 rm -f conftest.o conftest.s
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24065 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24068 cat >>confdefs.h
<<_ACEOF
24069 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24074 $as_echo_n "checking assembler for -relax option... " >&6; }
24075 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24076 $as_echo_n "(cached) " >&6
24078 gcc_cv_as_sparc_relax
=no
24079 if test x
$gcc_cv_as != x
; then
24080 $as_echo '.text' > conftest.s
24081 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24083 (eval $ac_try) 2>&5
24085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24086 test $ac_status = 0; }; }
24088 gcc_cv_as_sparc_relax
=yes
24090 echo "configure: failed program was" >&5
24093 rm -f conftest.o conftest.s
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24097 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24098 if test $gcc_cv_as_sparc_relax = yes; then
24100 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24105 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24106 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24107 $as_echo_n "(cached) " >&6
24109 gcc_cv_as_sparc_gotdata_op
=no
24110 if test x
$gcc_cv_as != x
; then
24116 sethi %gdop_hix22(foo), %g1
24117 xor %g1, %gdop_lox10(foo), %g1
24118 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24119 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24121 (eval $ac_try) 2>&5
24123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24124 test $ac_status = 0; }; }
24126 if test x
$gcc_cv_ld != x \
24127 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24128 if test x
$gcc_cv_objdump != x
; then
24129 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24130 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24131 gcc_cv_as_sparc_gotdata_op
=no
24133 gcc_cv_as_sparc_gotdata_op
=yes
24139 echo "configure: failed program was" >&5
24142 rm -f conftest.o conftest.s
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24146 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24147 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24149 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24154 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24155 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24156 $as_echo_n "(cached) " >&6
24158 gcc_cv_as_sparc_ua_pcrel
=no
24159 if test x
$gcc_cv_as != x
; then
24166 .uaword %r_disp32(foo)' > conftest.s
24167 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24169 (eval $ac_try) 2>&5
24171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24172 test $ac_status = 0; }; }
24174 if test x
$gcc_cv_ld != x \
24175 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24176 gcc_cv_as_sparc_ua_pcrel
=yes
24180 echo "configure: failed program was" >&5
24183 rm -f conftest.o conftest.s
24186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24187 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24188 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24190 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24194 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24195 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24196 $as_echo_n "(cached) " >&6
24198 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24199 if test x
$gcc_cv_as != x
; then
24203 .uaword %r_disp32(foo)
24204 .byte 0x32, 0x33, 0x34
24208 .skip 4' > conftest.s
24209 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24211 (eval $ac_try) 2>&5
24213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24214 test $ac_status = 0; }; }
24216 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24217 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24218 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24219 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24220 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24221 |
grep 'DISP32' > /dev
/null
2>&1; then
24224 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24229 echo "configure: failed program was" >&5
24232 rm -f conftest.o conftest.s
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24236 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24237 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24239 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24243 fi # unaligned pcrel relocs
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24246 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24247 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24248 $as_echo_n "(cached) " >&6
24250 gcc_cv_as_sparc_offsetable_lo10
=no
24251 if test x
$gcc_cv_as != x
; then
24253 or %g1, %lo(ab) + 12, %g1
24254 or %g1, %lo(ab + 12), %g1' > conftest.s
24255 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24257 (eval $ac_try) 2>&5
24259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24260 test $ac_status = 0; }; }
24262 if test x
$gcc_cv_objdump != x \
24263 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24264 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24265 gcc_cv_as_sparc_offsetable_lo10
=yes
24268 echo "configure: failed program was" >&5
24271 rm -f conftest.o conftest.s
24274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24275 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24276 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24278 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24283 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24284 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24285 $as_echo_n "(cached) " >&6
24287 gcc_cv_as_sparc_fmaf
=no
24288 if test x
$gcc_cv_as != x
; then
24290 .register %g2, #scratch
24291 .register %g3, #scratch
24293 fmaddd %f0, %f2, %f4, %f6
24294 addxccc %g1, %g2, %g3
24295 fsrl32 %f2, %f4, %f8
24296 fnaddd %f10, %f12, %f14' > conftest.s
24297 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24299 (eval $ac_try) 2>&5
24301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24302 test $ac_status = 0; }; }
24304 gcc_cv_as_sparc_fmaf
=yes
24306 echo "configure: failed program was" >&5
24309 rm -f conftest.o conftest.s
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24313 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24314 if test $gcc_cv_as_sparc_fmaf = yes; then
24316 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24321 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24322 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24323 $as_echo_n "(cached) " >&6
24325 gcc_cv_as_sparc_sparc4
=no
24326 if test x
$gcc_cv_as != x
; then
24328 .register %g2, #scratch
24329 .register %g3, #scratch
24332 1: cwbneg %g2, %g3, 1f
24335 aes_kexpand0 %f4, %f6, %f8
24336 des_round %f38, %f40, %f42, %f44
24337 camellia_f %f54, %f56, %f58, %f60
24338 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24339 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24341 (eval $ac_try) 2>&5
24343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24344 test $ac_status = 0; }; }
24346 gcc_cv_as_sparc_sparc4
=yes
24348 echo "configure: failed program was" >&5
24351 rm -f conftest.o conftest.s
24354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24355 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24356 if test $gcc_cv_as_sparc_sparc4 = yes; then
24358 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24363 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24364 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24365 $as_echo_n "(cached) " >&6
24367 gcc_cv_as_sparc_leon
=no
24368 if test x
$gcc_cv_as != x
; then
24370 .register %g2, #scratch
24371 .register %g3, #scratch
24375 casa [%g2] 0xb, %g3, %g1' > conftest.s
24376 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24378 (eval $ac_try) 2>&5
24380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24381 test $ac_status = 0; }; }
24383 gcc_cv_as_sparc_leon
=yes
24385 echo "configure: failed program was" >&5
24388 rm -f conftest.o conftest.s
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24392 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24393 if test $gcc_cv_as_sparc_leon = yes; then
24395 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24400 i
[34567]86-*-* | x86_64-
*-*)
24403 # Full C++ conformance when using a shared libstdc++-v3 requires some
24404 # support from the Cygwin DLL, which in more recent versions exports
24405 # wrappers to aid in interposing and redirecting operators new, delete,
24406 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24407 # are configuring for a version of Cygwin that exports the wrappers.
24408 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24409 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24410 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24411 gcc_ac_cygwin_dll_wrappers
=yes
24413 gcc_ac_cygwin_dll_wrappers
=no
24417 # Can't check presence of libc functions during cross-compile, so
24418 # we just have to assume we're building for an up-to-date target.
24419 gcc_ac_cygwin_dll_wrappers
=yes
24422 cat >>confdefs.h
<<_ACEOF
24423 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24428 cygwin
* | pe | mingw32
* | interix
*)
24429 # Recent binutils allows the three-operand form of ".comm" on PE. This
24430 # definition is used unconditionally to initialise the default state of
24431 # the target option variable that governs usage of the feature.
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24433 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24434 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24435 $as_echo_n "(cached) " >&6
24437 gcc_cv_as_comm_has_align
=no
24438 if test $in_tree_gas = yes; then
24439 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24440 then gcc_cv_as_comm_has_align
=yes
24442 elif test x
$gcc_cv_as != x
; then
24443 $as_echo '.comm foo,1,32' > conftest.s
24444 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24446 (eval $ac_try) 2>&5
24448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24449 test $ac_status = 0; }; }
24451 gcc_cv_as_comm_has_align
=yes
24453 echo "configure: failed program was" >&5
24456 rm -f conftest.o conftest.s
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24460 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24463 cat >>confdefs.h
<<_ACEOF
24464 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24467 # Used for DWARF 2 in PE
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24469 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24470 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24471 $as_echo_n "(cached) " >&6
24473 gcc_cv_as_ix86_pe_secrel32
=no
24474 if test $in_tree_gas = yes; then
24475 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24476 then gcc_cv_as_ix86_pe_secrel32
=yes
24478 elif test x
$gcc_cv_as != x
; then
24482 .secrel32 foo' > conftest.s
24483 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24485 (eval $ac_try) 2>&5
24487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24488 test $ac_status = 0; }; }
24490 if test x
$gcc_cv_ld != x \
24491 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24492 gcc_cv_as_ix86_pe_secrel32
=yes
24496 echo "configure: failed program was" >&5
24499 rm -f conftest.o conftest.s
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24503 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24504 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24506 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24509 # Test if the assembler supports the extended form of the .section
24510 # directive that specifies section alignment. LTO support uses this,
24511 # but normally only after installation, so we warn but don't fail the
24512 # configure if LTO is enabled but the assembler does not support it.
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24514 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24515 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24516 $as_echo_n "(cached) " >&6
24518 gcc_cv_as_section_has_align
=no
24519 if test $in_tree_gas = yes; then
24520 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24521 then gcc_cv_as_section_has_align
=yes
24523 elif test x
$gcc_cv_as != x
; then
24524 $as_echo '.section lto_test,"dr0"' > conftest.s
24525 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24527 (eval $ac_try) 2>&5
24529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24530 test $ac_status = 0; }; }
24532 gcc_cv_as_section_has_align
=yes
24534 echo "configure: failed program was" >&5
24537 rm -f conftest.o conftest.s
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24541 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24543 if test x
$gcc_cv_as_section_has_align != xyes
; then
24544 case ",$enable_languages," in
24546 { $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
24547 $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;}
24551 # Test if the assembler supports the section flag 'e' for specifying
24552 # an excluded section.
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24554 $as_echo_n "checking assembler for .section with e... " >&6; }
24555 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24556 $as_echo_n "(cached) " >&6
24558 gcc_cv_as_section_has_e
=no
24559 if test $in_tree_gas = yes; then
24560 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24561 then gcc_cv_as_section_has_e
=yes
24563 elif test x
$gcc_cv_as != x
; then
24564 $as_echo '.section foo1,"e"
24565 .byte 0,0,0,0' > conftest.s
24566 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24568 (eval $ac_try) 2>&5
24570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24571 test $ac_status = 0; }; }
24573 gcc_cv_as_section_has_e
=yes
24575 echo "configure: failed program was" >&5
24578 rm -f conftest.o conftest.s
24581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24582 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24585 cat >>confdefs.h
<<_ACEOF
24586 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24593 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24594 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24595 $as_echo_n "(cached) " >&6
24597 gcc_cv_as_ix86_filds
=no
24598 if test x
$gcc_cv_as != x
; then
24599 $as_echo 'filds mem; fists mem' > conftest.s
24600 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24602 (eval $ac_try) 2>&5
24604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24605 test $ac_status = 0; }; }
24607 gcc_cv_as_ix86_filds
=yes
24609 echo "configure: failed program was" >&5
24612 rm -f conftest.o conftest.s
24615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24616 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24617 if test $gcc_cv_as_ix86_filds = yes; then
24619 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24624 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24625 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24626 $as_echo_n "(cached) " >&6
24628 gcc_cv_as_ix86_fildq
=no
24629 if test x
$gcc_cv_as != x
; then
24630 $as_echo 'fildq mem; fistpq mem' > conftest.s
24631 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24633 (eval $ac_try) 2>&5
24635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24636 test $ac_status = 0; }; }
24638 gcc_cv_as_ix86_fildq
=yes
24640 echo "configure: failed program was" >&5
24643 rm -f conftest.o conftest.s
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24647 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24648 if test $gcc_cv_as_ix86_fildq = yes; then
24650 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24655 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24656 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24657 $as_echo_n "(cached) " >&6
24659 gcc_cv_as_ix86_cmov_sun_syntax
=no
24660 if test x
$gcc_cv_as != x
; then
24661 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24662 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24664 (eval $ac_try) 2>&5
24666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24667 test $ac_status = 0; }; }
24669 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24671 echo "configure: failed program was" >&5
24674 rm -f conftest.o conftest.s
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24678 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24679 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24681 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24686 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24687 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24688 $as_echo_n "(cached) " >&6
24690 gcc_cv_as_ix86_ffreep
=no
24691 if test x
$gcc_cv_as != x
; then
24692 $as_echo 'ffreep %st(1)' > conftest.s
24693 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24695 (eval $ac_try) 2>&5
24697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24698 test $ac_status = 0; }; }
24700 gcc_cv_as_ix86_ffreep
=yes
24702 echo "configure: failed program was" >&5
24705 rm -f conftest.o conftest.s
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24709 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24710 if test $gcc_cv_as_ix86_ffreep = yes; then
24712 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24717 $as_echo_n "checking assembler for .quad directive... " >&6; }
24718 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24719 $as_echo_n "(cached) " >&6
24721 gcc_cv_as_ix86_quad
=no
24722 if test x
$gcc_cv_as != x
; then
24723 $as_echo '.quad 0' > conftest.s
24724 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24726 (eval $ac_try) 2>&5
24728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24729 test $ac_status = 0; }; }
24731 gcc_cv_as_ix86_quad
=yes
24733 echo "configure: failed program was" >&5
24736 rm -f conftest.o conftest.s
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24740 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24741 if test $gcc_cv_as_ix86_quad = yes; then
24743 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24748 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24749 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24750 $as_echo_n "(cached) " >&6
24752 gcc_cv_as_ix86_sahf
=no
24753 if test x
$gcc_cv_as != x
; then
24756 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24758 (eval $ac_try) 2>&5
24760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24761 test $ac_status = 0; }; }
24763 gcc_cv_as_ix86_sahf
=yes
24765 echo "configure: failed program was" >&5
24768 rm -f conftest.o conftest.s
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24772 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24773 if test $gcc_cv_as_ix86_sahf = yes; then
24775 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24780 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24781 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24782 $as_echo_n "(cached) " >&6
24784 gcc_cv_as_ix86_interunit_movq
=no
24785 if test x
$gcc_cv_as != x
; then
24788 movq %rax, %xmm0' > conftest.s
24789 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24791 (eval $ac_try) 2>&5
24793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24794 test $ac_status = 0; }; }
24796 gcc_cv_as_ix86_interunit_movq
=yes
24798 echo "configure: failed program was" >&5
24801 rm -f conftest.o conftest.s
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24805 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24808 cat >>confdefs.h
<<_ACEOF
24809 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24814 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24815 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24816 $as_echo_n "(cached) " >&6
24818 gcc_cv_as_ix86_hle
=no
24819 if test x
$gcc_cv_as != x
; then
24820 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24821 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24823 (eval $ac_try) 2>&5
24825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24826 test $ac_status = 0; }; }
24828 gcc_cv_as_ix86_hle
=yes
24830 echo "configure: failed program was" >&5
24833 rm -f conftest.o conftest.s
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24837 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24838 if test $gcc_cv_as_ix86_hle = yes; then
24840 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24845 $as_echo_n "checking assembler for swap suffix... " >&6; }
24846 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24847 $as_echo_n "(cached) " >&6
24849 gcc_cv_as_ix86_swap
=no
24850 if test x
$gcc_cv_as != x
; then
24851 $as_echo 'movl.s %esp, %ebp' > conftest.s
24852 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24854 (eval $ac_try) 2>&5
24856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24857 test $ac_status = 0; }; }
24859 gcc_cv_as_ix86_swap
=yes
24861 echo "configure: failed program was" >&5
24864 rm -f conftest.o conftest.s
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24868 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24869 if test $gcc_cv_as_ix86_swap = yes; then
24871 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24876 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24877 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24878 $as_echo_n "(cached) " >&6
24880 gcc_cv_as_ix86_diff_sect_delta
=no
24881 if test x
$gcc_cv_as != x
; then
24882 $as_echo '.section .rodata
24888 .L2: nop' > conftest.s
24889 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24891 (eval $ac_try) 2>&5
24893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24894 test $ac_status = 0; }; }
24896 gcc_cv_as_ix86_diff_sect_delta
=yes
24898 echo "configure: failed program was" >&5
24901 rm -f conftest.o conftest.s
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24905 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24906 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24908 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24912 # These two are used unconditionally by i386.[ch]; it is to be defined
24913 # to 1 if the feature is present, 0 otherwise.
24914 as_ix86_gotoff_in_data_opt
=
24915 if test x
$gas = xyes
; then
24916 as_ix86_gotoff_in_data_opt
="--32"
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24919 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24920 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24921 $as_echo_n "(cached) " >&6
24923 gcc_cv_as_ix86_gotoff_in_data
=no
24924 if test $in_tree_gas = yes; then
24925 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24926 then gcc_cv_as_ix86_gotoff_in_data
=yes
24928 elif test x
$gcc_cv_as != x
; then
24933 .long .L0@GOTOFF' > conftest.s
24934 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
24935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24936 (eval $ac_try) 2>&5
24938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24939 test $ac_status = 0; }; }
24941 gcc_cv_as_ix86_gotoff_in_data
=yes
24943 echo "configure: failed program was" >&5
24946 rm -f conftest.o conftest.s
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24950 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24953 cat >>confdefs.h
<<_ACEOF
24954 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24959 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24960 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24961 $as_echo_n "(cached) " >&6
24963 gcc_cv_as_ix86_rep_lock_prefix
=no
24964 if test x
$gcc_cv_as != x
; then
24965 $as_echo 'rep movsl
24970 lock addl %edi, (%eax,%esi)
24971 lock orl $0, (%esp)' > conftest.s
24972 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24974 (eval $ac_try) 2>&5
24976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24977 test $ac_status = 0; }; }
24979 gcc_cv_as_ix86_rep_lock_prefix
=yes
24981 echo "configure: failed program was" >&5
24984 rm -f conftest.o conftest.s
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24988 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24989 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24991 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
24996 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
24997 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
24998 $as_echo_n "(cached) " >&6
25000 gcc_cv_as_ix86_ud2
=no
25001 if test x
$gcc_cv_as != x
; then
25002 $as_echo 'ud2' > conftest.s
25003 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25005 (eval $ac_try) 2>&5
25007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25008 test $ac_status = 0; }; }
25010 gcc_cv_as_ix86_ud2
=yes
25012 echo "configure: failed program was" >&5
25015 rm -f conftest.o conftest.s
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25019 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25020 if test $gcc_cv_as_ix86_ud2 = yes; then
25022 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25027 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25028 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25029 $as_echo_n "(cached) " >&6
25031 gcc_cv_as_ix86_tlsgdplt
=no
25032 if test x
$gcc_cv_as != x
; then
25033 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25034 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25036 (eval $ac_try) 2>&5
25038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25039 test $ac_status = 0; }; }
25041 if test x
$gcc_cv_ld != x \
25042 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25043 gcc_cv_as_ix86_tlsgdplt
=yes
25047 echo "configure: failed program was" >&5
25050 rm -f conftest.o conftest.s
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25054 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25055 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25057 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25062 .section .tdata,"aw'$tls_section_flag'",@progbits
25064 .section .text,"ax",@progbits
25065 call tls_ld@tlsldmplt'
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25067 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25068 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25069 $as_echo_n "(cached) " >&6
25071 gcc_cv_as_ix86_tlsldmplt
=no
25072 if test x
$gcc_cv_as != x
; then
25073 $as_echo "$conftest_s" > conftest.s
25074 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25076 (eval $ac_try) 2>&5
25078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25079 test $ac_status = 0; }; }
25081 if test x
$gcc_cv_ld != x \
25082 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25083 gcc_cv_as_ix86_tlsldmplt
=yes
25087 echo "configure: failed program was" >&5
25090 rm -f conftest.o conftest.s
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25094 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25097 cat >>confdefs.h
<<_ACEOF
25098 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25102 # Enforce 32-bit output with gas and gld.
25103 if test x
$gas = xyes
; then
25104 as_ix86_tls_ldm_opt
="--32"
25106 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25107 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25108 ld_ix86_tls_ldm_opt
="-melf_i386_sol2"
25110 ld_ix86_tls_ldm_opt
="-melf_i386"
25114 .section .text,"ax",@progbits
25116 .type _start, @function
25118 leal value@tlsldm(%ebx), %eax
25119 call ___tls_get_addr@plt
25121 .section .tdata,"aw'$tls_section_flag'",@progbits
25122 .type value, @object
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25125 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25126 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25127 $as_echo_n "(cached) " >&6
25129 gcc_cv_as_ix86_tlsldm
=no
25130 if test x
$gcc_cv_as != x
; then
25131 $as_echo "$conftest_s" > conftest.s
25132 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25134 (eval $ac_try) 2>&5
25136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25137 test $ac_status = 0; }; }
25139 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25140 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25141 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25142 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25143 gcc_cv_as_ix86_tlsldm
=yes
25148 echo "configure: failed program was" >&5
25151 rm -f conftest.o conftest.s
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25155 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25158 cat >>confdefs.h
<<_ACEOF
25159 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25167 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25168 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25169 $as_echo_n "(cached) " >&6
25171 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25172 if test $in_tree_gas = yes; then
25173 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25174 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25176 elif test x
$gcc_cv_as != x
; then
25178 addl r15 = @ltoffx(x#), gp
25180 ld8.mov r16 = [r15], x#' > conftest.s
25181 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25183 (eval $ac_try) 2>&5
25185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25186 test $ac_status = 0; }; }
25188 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25190 echo "configure: failed program was" >&5
25193 rm -f conftest.o conftest.s
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25197 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25198 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25200 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25208 *-*-aix*) conftest_s
=' .machine "pwr5"
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25213 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25214 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25215 $as_echo_n "(cached) " >&6
25217 gcc_cv_as_machine_directive
=no
25218 if test x
$gcc_cv_as != x
; then
25219 $as_echo ' .machine ppc7400' > conftest.s
25220 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25222 (eval $ac_try) 2>&5
25224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25225 test $ac_status = 0; }; }
25227 gcc_cv_as_machine_directive
=yes
25229 echo "configure: failed program was" >&5
25232 rm -f conftest.o conftest.s
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25236 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25238 if test x
$gcc_cv_as_machine_directive != xyes
; then
25239 echo "*** This target requires an assembler supporting \".machine\"" >&2
25240 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25241 test x
$build = x
$target && exit 1
25245 *) conftest_s
=' .machine power4
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25251 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25252 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25253 $as_echo_n "(cached) " >&6
25255 gcc_cv_as_powerpc_mfcrf
=no
25256 if test $in_tree_gas = yes; then
25257 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25258 then gcc_cv_as_powerpc_mfcrf
=yes
25260 elif test x
$gcc_cv_as != x
; then
25261 $as_echo "$conftest_s" > conftest.s
25262 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25264 (eval $ac_try) 2>&5
25266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25267 test $ac_status = 0; }; }
25269 gcc_cv_as_powerpc_mfcrf
=yes
25271 echo "configure: failed program was" >&5
25274 rm -f conftest.o conftest.s
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25278 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25279 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25281 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25286 *-*-aix*) conftest_s
=' .machine "pwr5"
25289 *) conftest_s
=' .machine power5
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25295 $as_echo_n "checking assembler for popcntb support... " >&6; }
25296 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25297 $as_echo_n "(cached) " >&6
25299 gcc_cv_as_powerpc_popcntb
=no
25300 if test $in_tree_gas = yes; then
25301 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25302 then gcc_cv_as_powerpc_popcntb
=yes
25304 elif test x
$gcc_cv_as != x
; then
25305 $as_echo "$conftest_s" > conftest.s
25306 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25308 (eval $ac_try) 2>&5
25310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25311 test $ac_status = 0; }; }
25313 gcc_cv_as_powerpc_popcntb
=yes
25315 echo "configure: failed program was" >&5
25318 rm -f conftest.o conftest.s
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25322 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25323 if test $gcc_cv_as_powerpc_popcntb = yes; then
25325 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25330 *-*-aix*) conftest_s
=' .machine "pwr5x"
25333 *) conftest_s
=' .machine power5
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25339 $as_echo_n "checking assembler for fp round support... " >&6; }
25340 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25341 $as_echo_n "(cached) " >&6
25343 gcc_cv_as_powerpc_fprnd
=no
25344 if test $in_tree_gas = yes; then
25345 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25346 then gcc_cv_as_powerpc_fprnd
=yes
25348 elif test x
$gcc_cv_as != x
; then
25349 $as_echo "$conftest_s" > conftest.s
25350 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25352 (eval $ac_try) 2>&5
25354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25355 test $ac_status = 0; }; }
25357 gcc_cv_as_powerpc_fprnd
=yes
25359 echo "configure: failed program was" >&5
25362 rm -f conftest.o conftest.s
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25366 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25367 if test $gcc_cv_as_powerpc_fprnd = yes; then
25369 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25374 *-*-aix*) conftest_s
=' .machine "pwr6"
25377 *) conftest_s
=' .machine power6
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25383 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25384 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25385 $as_echo_n "(cached) " >&6
25387 gcc_cv_as_powerpc_mfpgpr
=no
25388 if test $in_tree_gas = yes; then
25389 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25390 then gcc_cv_as_powerpc_mfpgpr
=yes
25392 elif test x
$gcc_cv_as != x
; then
25393 $as_echo "$conftest_s" > conftest.s
25394 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25396 (eval $ac_try) 2>&5
25398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25399 test $ac_status = 0; }; }
25401 gcc_cv_as_powerpc_mfpgpr
=yes
25403 echo "configure: failed program was" >&5
25406 rm -f conftest.o conftest.s
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25410 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25411 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25413 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25418 *-*-aix*) conftest_s
=' .csect .text[PR]
25420 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25424 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25425 *) conftest_s
=' .text
25427 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25431 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25432 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25433 $as_echo_n "(cached) " >&6
25435 gcc_cv_as_powerpc_rel16
=no
25436 if test $in_tree_gas = yes; then
25437 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25438 then gcc_cv_as_powerpc_rel16
=yes
25440 elif test x
$gcc_cv_as != x
; then
25441 $as_echo "$conftest_s" > conftest.s
25442 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25444 (eval $ac_try) 2>&5
25446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25447 test $ac_status = 0; }; }
25449 gcc_cv_as_powerpc_rel16
=yes
25451 echo "configure: failed program was" >&5
25454 rm -f conftest.o conftest.s
25457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25458 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25459 if test $gcc_cv_as_powerpc_rel16 = yes; then
25461 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25466 *-*-aix*) conftest_s
=' .machine "pwr6"
25469 *) conftest_s
=' .machine power6
25474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25475 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25476 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25477 $as_echo_n "(cached) " >&6
25479 gcc_cv_as_powerpc_cmpb
=no
25480 if test $in_tree_gas = yes; then
25481 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25482 then gcc_cv_as_powerpc_cmpb
=yes
25484 elif test x
$gcc_cv_as != x
; then
25485 $as_echo "$conftest_s" > conftest.s
25486 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25488 (eval $ac_try) 2>&5
25490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25491 test $ac_status = 0; }; }
25493 gcc_cv_as_powerpc_cmpb
=yes
25495 echo "configure: failed program was" >&5
25498 rm -f conftest.o conftest.s
25501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25502 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25503 if test $gcc_cv_as_powerpc_cmpb = yes; then
25505 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25510 *-*-aix*) conftest_s
=' .machine "pwr6"
25513 *) conftest_s
=' .machine power6
25518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25519 $as_echo_n "checking assembler for decimal float support... " >&6; }
25520 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25521 $as_echo_n "(cached) " >&6
25523 gcc_cv_as_powerpc_dfp
=no
25524 if test $in_tree_gas = yes; then
25525 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25526 then gcc_cv_as_powerpc_dfp
=yes
25528 elif test x
$gcc_cv_as != x
; then
25529 $as_echo "$conftest_s" > conftest.s
25530 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25532 (eval $ac_try) 2>&5
25534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25535 test $ac_status = 0; }; }
25537 gcc_cv_as_powerpc_dfp
=yes
25539 echo "configure: failed program was" >&5
25542 rm -f conftest.o conftest.s
25545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25546 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25547 if test $gcc_cv_as_powerpc_dfp = yes; then
25549 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25554 *-*-aix*) conftest_s
=' .machine "pwr7"
25557 *) conftest_s
=' .machine power7
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25563 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25564 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25565 $as_echo_n "(cached) " >&6
25567 gcc_cv_as_powerpc_vsx
=no
25568 if test $in_tree_gas = yes; then
25569 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25570 then gcc_cv_as_powerpc_vsx
=yes
25572 elif test x
$gcc_cv_as != x
; then
25573 $as_echo "$conftest_s" > conftest.s
25574 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25576 (eval $ac_try) 2>&5
25578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25579 test $ac_status = 0; }; }
25581 gcc_cv_as_powerpc_vsx
=yes
25583 echo "configure: failed program was" >&5
25586 rm -f conftest.o conftest.s
25589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25590 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25591 if test $gcc_cv_as_powerpc_vsx = yes; then
25593 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25598 *-*-aix*) conftest_s
=' .machine "pwr7"
25601 *) conftest_s
=' .machine power7
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25607 $as_echo_n "checking assembler for popcntd support... " >&6; }
25608 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25609 $as_echo_n "(cached) " >&6
25611 gcc_cv_as_powerpc_popcntd
=no
25612 if test $in_tree_gas = yes; then
25613 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25614 then gcc_cv_as_powerpc_popcntd
=yes
25616 elif test x
$gcc_cv_as != x
; then
25617 $as_echo "$conftest_s" > conftest.s
25618 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25620 (eval $ac_try) 2>&5
25622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25623 test $ac_status = 0; }; }
25625 gcc_cv_as_powerpc_popcntd
=yes
25627 echo "configure: failed program was" >&5
25630 rm -f conftest.o conftest.s
25633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25634 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25635 if test $gcc_cv_as_powerpc_popcntd = yes; then
25637 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25642 *-*-aix*) conftest_s
=' .machine "pwr8"
25643 .csect .text[PR]';;
25644 *) conftest_s
=' .machine power8
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25649 $as_echo_n "checking assembler for power8 support... " >&6; }
25650 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25651 $as_echo_n "(cached) " >&6
25653 gcc_cv_as_powerpc_power8
=no
25654 if test $in_tree_gas = yes; then
25655 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25656 then gcc_cv_as_powerpc_power8
=yes
25658 elif test x
$gcc_cv_as != x
; then
25659 $as_echo "$conftest_s" > conftest.s
25660 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25662 (eval $ac_try) 2>&5
25664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25665 test $ac_status = 0; }; }
25667 gcc_cv_as_powerpc_power8
=yes
25669 echo "configure: failed program was" >&5
25672 rm -f conftest.o conftest.s
25675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25676 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25677 if test $gcc_cv_as_powerpc_power8 = yes; then
25679 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25684 *-*-aix*) conftest_s
=' .csect .text[PR]
25686 *) conftest_s
=' .text
25690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25691 $as_echo_n "checking assembler for lwsync support... " >&6; }
25692 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25693 $as_echo_n "(cached) " >&6
25695 gcc_cv_as_powerpc_lwsync
=no
25696 if test $in_tree_gas = yes; then
25697 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25698 then gcc_cv_as_powerpc_lwsync
=yes
25700 elif test x
$gcc_cv_as != x
; then
25701 $as_echo "$conftest_s" > conftest.s
25702 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25704 (eval $ac_try) 2>&5
25706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25707 test $ac_status = 0; }; }
25709 gcc_cv_as_powerpc_lwsync
=yes
25711 echo "configure: failed program was" >&5
25714 rm -f conftest.o conftest.s
25717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25718 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25719 if test $gcc_cv_as_powerpc_lwsync = yes; then
25721 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25726 *-*-aix*) conftest_s
=' .machine "476"
25729 *) conftest_s
=' .machine "476"
25734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25735 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25736 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25737 $as_echo_n "(cached) " >&6
25739 gcc_cv_as_powerpc_dci
=no
25740 if test $in_tree_gas = yes; then
25741 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25742 then gcc_cv_as_powerpc_dci
=yes
25744 elif test x
$gcc_cv_as != x
; then
25745 $as_echo "$conftest_s" > conftest.s
25746 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25748 (eval $ac_try) 2>&5
25750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25751 test $ac_status = 0; }; }
25753 gcc_cv_as_powerpc_dci
=yes
25755 echo "configure: failed program was" >&5
25758 rm -f conftest.o conftest.s
25761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25762 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25763 if test $gcc_cv_as_powerpc_dci = yes; then
25765 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25770 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25771 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25772 $as_echo_n "(cached) " >&6
25774 gcc_cv_as_powerpc_gnu_attribute
=no
25775 if test $in_tree_gas = yes; then
25776 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25777 then gcc_cv_as_powerpc_gnu_attribute
=yes
25779 elif test x
$gcc_cv_as != x
; then
25780 $as_echo '.gnu_attribute 4,1' > conftest.s
25781 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25783 (eval $ac_try) 2>&5
25785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25786 test $ac_status = 0; }; }
25788 gcc_cv_as_powerpc_gnu_attribute
=yes
25790 echo "configure: failed program was" >&5
25793 rm -f conftest.o conftest.s
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25797 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25798 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25800 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25805 $as_echo_n "checking assembler for tls marker support... " >&6; }
25806 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25807 $as_echo_n "(cached) " >&6
25809 gcc_cv_as_powerpc_tls_markers
=no
25810 if test $in_tree_gas = yes; then
25811 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25812 then gcc_cv_as_powerpc_tls_markers
=yes
25814 elif test x
$gcc_cv_as != x
; then
25815 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25816 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25818 (eval $ac_try) 2>&5
25820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25821 test $ac_status = 0; }; }
25823 gcc_cv_as_powerpc_tls_markers
=yes
25825 echo "configure: failed program was" >&5
25828 rm -f conftest.o conftest.s
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25832 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25833 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25835 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25842 $as_echo_n "checking assembler for .ref support... " >&6; }
25843 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25844 $as_echo_n "(cached) " >&6
25846 gcc_cv_as_aix_ref
=no
25847 if test $in_tree_gas = yes; then
25848 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25849 then gcc_cv_as_aix_ref
=yes
25851 elif test x
$gcc_cv_as != x
; then
25852 $as_echo ' .csect stuff[rw]
25858 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25860 (eval $ac_try) 2>&5
25862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25863 test $ac_status = 0; }; }
25865 gcc_cv_as_aix_ref
=yes
25867 echo "configure: failed program was" >&5
25870 rm -f conftest.o conftest.s
25873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25874 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25875 if test $gcc_cv_as_aix_ref = yes; then
25877 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25886 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25887 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25888 $as_echo_n "(cached) " >&6
25890 gcc_cv_as_mips_explicit_relocs
=no
25891 if test $in_tree_gas = yes; then
25892 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25893 then gcc_cv_as_mips_explicit_relocs
=yes
25895 elif test x
$gcc_cv_as != x
; then
25896 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25897 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25899 (eval $ac_try) 2>&5
25901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25902 test $ac_status = 0; }; }
25904 gcc_cv_as_mips_explicit_relocs
=yes
25906 echo "configure: failed program was" >&5
25909 rm -f conftest.o conftest.s
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25913 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25914 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25915 if test x
$target_cpu_default = x
25916 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25917 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25921 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25922 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25923 $as_echo_n "(cached) " >&6
25925 gcc_cv_as_mips_no_shared
=no
25926 if test $in_tree_gas = yes; then
25927 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25928 then gcc_cv_as_mips_no_shared
=yes
25930 elif test x
$gcc_cv_as != x
; then
25931 $as_echo 'nop' > conftest.s
25932 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25934 (eval $ac_try) 2>&5
25936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25937 test $ac_status = 0; }; }
25939 gcc_cv_as_mips_no_shared
=yes
25941 echo "configure: failed program was" >&5
25944 rm -f conftest.o conftest.s
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25948 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25949 if test $gcc_cv_as_mips_no_shared = yes; then
25951 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25956 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25957 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25958 $as_echo_n "(cached) " >&6
25960 gcc_cv_as_mips_gnu_attribute
=no
25961 if test $in_tree_gas = yes; then
25962 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25963 then gcc_cv_as_mips_gnu_attribute
=yes
25965 elif test x
$gcc_cv_as != x
; then
25966 $as_echo '.gnu_attribute 4,1' > conftest.s
25967 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25969 (eval $ac_try) 2>&5
25971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25972 test $ac_status = 0; }; }
25974 gcc_cv_as_mips_gnu_attribute
=yes
25976 echo "configure: failed program was" >&5
25979 rm -f conftest.o conftest.s
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25983 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25984 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25986 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
25991 $as_echo_n "checking assembler for .micromips support... " >&6; }
25992 if test "${gcc_cv_as_micromips_support+set}" = set; then :
25993 $as_echo_n "(cached) " >&6
25995 gcc_cv_as_micromips_support
=no
25996 if test x
$gcc_cv_as != x
; then
25997 $as_echo '.set micromips' > conftest.s
25998 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26000 (eval $ac_try) 2>&5
26002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26003 test $ac_status = 0; }; }
26005 gcc_cv_as_micromips_support
=yes
26007 echo "configure: failed program was" >&5
26010 rm -f conftest.o conftest.s
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26014 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26015 if test $gcc_cv_as_micromips_support = yes; then
26017 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26022 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26023 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26024 $as_echo_n "(cached) " >&6
26026 gcc_cv_as_mips_dtprelword
=no
26027 if test $in_tree_gas = yes; then
26028 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26029 then gcc_cv_as_mips_dtprelword
=yes
26031 elif test x
$gcc_cv_as != x
; then
26032 $as_echo '.section .tdata,"awT",@progbits
26036 .dtprelword x+0x8000' > conftest.s
26037 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26039 (eval $ac_try) 2>&5
26041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26042 test $ac_status = 0; }; }
26044 gcc_cv_as_mips_dtprelword
=yes
26046 echo "configure: failed program was" >&5
26049 rm -f conftest.o conftest.s
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26053 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26054 if test $gcc_cv_as_mips_dtprelword = yes; then
26056 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26061 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26062 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26063 $as_echo_n "(cached) " >&6
26065 gcc_cv_as_mips_dspr1_mult
=no
26066 if test x
$gcc_cv_as != x
; then
26067 $as_echo ' .set mips32r2
26075 multu $ac3,$4,$5' > conftest.s
26076 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26078 (eval $ac_try) 2>&5
26080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26081 test $ac_status = 0; }; }
26083 gcc_cv_as_mips_dspr1_mult
=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_mips_dspr1_mult" >&5
26092 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26093 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26095 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26100 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26101 gcc_cv_as_ld_jalr_reloc
=no
26102 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26103 if test $in_tree_ld = yes ; then
26104 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 \
26105 && test $in_tree_ld_is_elf = yes; then
26106 gcc_cv_as_ld_jalr_reloc
=yes
26108 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26109 echo ' .ent x' > conftest.s
26110 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26111 echo ' lw $25,%call16(y)($28)' >> conftest.s
26112 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26113 echo '1: jalr $25' >> conftest.s
26114 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26115 echo '1: jalr $25' >> conftest.s
26116 echo ' .end x' >> conftest.s
26117 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26118 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26119 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26120 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26121 gcc_cv_as_ld_jalr_reloc
=yes
26127 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26128 if test x
$target_cpu_default = x
; then
26129 target_cpu_default
=MASK_RELAX_PIC_CALLS
26131 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26135 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26138 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26139 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26140 $as_echo_n "(cached) " >&6
26142 gcc_cv_ld_mips_personality_relaxation
=no
26143 if test $in_tree_ld = yes ; then
26144 if test "$gcc_cv_gld_major_version" -eq 2 \
26145 -a "$gcc_cv_gld_minor_version" -ge 21 \
26146 -o "$gcc_cv_gld_major_version" -gt 2; then
26147 gcc_cv_ld_mips_personality_relaxation
=yes
26149 elif test x
$gcc_cv_as != x \
26150 -a x
$gcc_cv_ld != x \
26151 -a x
$gcc_cv_readelf != x
; then
26152 cat > conftest.s
<<EOF
26154 .cfi_personality 0x80,indirect_ptr
26161 .section .data,"aw",@progbits
26165 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26166 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26167 if $gcc_cv_readelf -d conftest
2>&1 \
26168 |
grep TEXTREL
> /dev
/null
2>&1; then
26170 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26171 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26174 gcc_cv_ld_mips_personality_relaxation
=yes
26178 rm -f conftest.s conftest.o conftest
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26181 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26182 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26184 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26189 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26190 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26191 $as_echo_n "(cached) " >&6
26193 gcc_cv_as_mips_nan
=no
26194 if test x
$gcc_cv_as != x
; then
26195 $as_echo '' > conftest.s
26196 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26198 (eval $ac_try) 2>&5
26200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26201 test $ac_status = 0; }; }
26203 gcc_cv_as_mips_nan
=yes
26205 echo "configure: failed program was" >&5
26208 rm -f conftest.o conftest.s
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26212 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26213 if test $gcc_cv_as_mips_nan = yes; then
26215 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26218 if test x
$gcc_cv_as_mips_nan = xno \
26219 && test x
$with_nan != x
; then
26220 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26225 # Mips and HP-UX need the GNU assembler.
26226 # Linux on IA64 might be able to use the Intel assembler.
26229 mips
*-*-* |
*-*-hpux* )
26230 if test x
$gas_flag = xyes \
26231 ||
test x
"$host" != x
"$build" \
26232 ||
test ! -x "$gcc_cv_as" \
26233 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26236 echo "*** This configuration requires the GNU assembler" >&2
26242 # ??? Not all targets support dwarf2 debug_line, even within a version
26243 # of gas. Moreover, we need to emit a valid instruction to trigger any
26244 # info to the output file. So, as supported targets are added to gas 2.11,
26245 # add some instruction here to (also) show we expect this might work.
26246 # ??? Once 2.11 is released, probably need to add first known working
26247 # version to the per-target configury.
26248 case "$cpu_type" in
26249 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26250 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26251 | xstormy16 | xtensa
)
26261 if test x
"$insn" != x
; then
26263 .file 1 \"conftest.s\"
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26267 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26268 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26269 $as_echo_n "(cached) " >&6
26271 gcc_cv_as_dwarf2_debug_line
=no
26272 if test $in_tree_gas = yes; then
26273 if test $in_tree_gas_is_elf = yes \
26274 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26275 then gcc_cv_as_dwarf2_debug_line
=yes
26277 elif test x
$gcc_cv_as != x
; then
26278 $as_echo "$conftest_s" > conftest.s
26279 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26281 (eval $ac_try) 2>&5
26283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26284 test $ac_status = 0; }; }
26286 if test x
$gcc_cv_objdump != x \
26287 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26288 |
grep debug_line
> /dev
/null
2>&1; then
26289 gcc_cv_as_dwarf2_debug_line
=yes
26292 echo "configure: failed program was" >&5
26295 rm -f conftest.o conftest.s
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26299 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26302 # The .debug_line file table must be in the exact order that
26303 # we specified the files, since these indices are also used
26304 # by DW_AT_decl_file. Approximate this test by testing if
26305 # the assembler bitches if the same index is assigned twice.
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26307 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26308 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26309 $as_echo_n "(cached) " >&6
26311 gcc_cv_as_dwarf2_file_buggy
=no
26312 if test x
$gcc_cv_as != x
; then
26313 $as_echo ' .file 1 "foo.s"
26314 .file 1 "bar.s"' > conftest.s
26315 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26317 (eval $ac_try) 2>&5
26319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26320 test $ac_status = 0; }; }
26322 gcc_cv_as_dwarf2_file_buggy
=yes
26324 echo "configure: failed program was" >&5
26327 rm -f conftest.o conftest.s
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26331 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26334 if test $gcc_cv_as_dwarf2_debug_line = yes \
26335 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26337 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26342 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26343 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26344 $as_echo_n "(cached) " >&6
26346 gcc_cv_as_gdwarf2_flag
=no
26347 if test $in_tree_gas = yes; then
26348 if test $in_tree_gas_is_elf = yes \
26349 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26350 then gcc_cv_as_gdwarf2_flag
=yes
26352 elif test x
$gcc_cv_as != x
; then
26353 $as_echo "$insn" > conftest.s
26354 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26356 (eval $ac_try) 2>&5
26358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26359 test $ac_status = 0; }; }
26361 gcc_cv_as_gdwarf2_flag
=yes
26363 echo "configure: failed program was" >&5
26366 rm -f conftest.o conftest.s
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26370 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26371 if test $gcc_cv_as_gdwarf2_flag = yes; then
26373 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26378 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26379 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26380 $as_echo_n "(cached) " >&6
26382 gcc_cv_as_gstabs_flag
=no
26383 if test $in_tree_gas = yes; then
26384 if test $in_tree_gas_is_elf = yes \
26385 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26386 then gcc_cv_as_gstabs_flag
=yes
26388 elif test x
$gcc_cv_as != x
; then
26389 $as_echo "$insn" > conftest.s
26390 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26392 (eval $ac_try) 2>&5
26394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26395 test $ac_status = 0; }; }
26397 gcc_cv_as_gstabs_flag
=yes
26399 echo "configure: failed program was" >&5
26402 rm -f conftest.o conftest.s
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26406 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26407 if test $gcc_cv_as_gstabs_flag = yes; then
26409 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26414 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26415 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26416 $as_echo_n "(cached) " >&6
26418 gcc_cv_as_debug_prefix_map_flag
=no
26419 if test $in_tree_gas = yes; then
26420 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26421 then gcc_cv_as_debug_prefix_map_flag
=yes
26423 elif test x
$gcc_cv_as != x
; then
26424 $as_echo "$insn" > conftest.s
26425 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26427 (eval $ac_try) 2>&5
26429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26430 test $ac_status = 0; }; }
26432 gcc_cv_as_debug_prefix_map_flag
=yes
26434 echo "configure: failed program was" >&5
26437 rm -f conftest.o conftest.s
26440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26441 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26442 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26444 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26450 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26451 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26452 $as_echo_n "(cached) " >&6
26454 gcc_cv_as_lcomm_with_alignment
=no
26455 if test x
$gcc_cv_as != x
; then
26456 $as_echo '.lcomm bar,4,16' > conftest.s
26457 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26459 (eval $ac_try) 2>&5
26461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26462 test $ac_status = 0; }; }
26464 gcc_cv_as_lcomm_with_alignment
=yes
26466 echo "configure: failed program was" >&5
26469 rm -f conftest.o conftest.s
26472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26473 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26474 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26476 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26480 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26481 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26482 && test "$prefix" != "NONE"; then
26484 cat >>confdefs.h
<<_ACEOF
26485 #define PREFIX_INCLUDE_DIR "$prefix/include"
26490 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26491 if test "x$with_headers" != x
; then
26492 target_header_dir
=$with_headers
26493 elif test "x$with_sysroot" = x
; then
26494 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
26495 elif test "x$with_build_sysroot" != "x"; then
26496 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26497 elif test "x$with_sysroot" = xyes
; then
26498 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26500 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26503 target_header_dir
=${native_system_header_dir}
26506 # Determine the version of glibc, if any, used on the target.
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26508 $as_echo_n "checking for target glibc version... " >&6; }
26510 # Check whether --with-glibc-version was given.
26511 if test "${with_glibc_version+set}" = set; then :
26512 withval
=$with_glibc_version;
26513 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26514 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26515 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26517 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
26521 glibc_version_major
=0
26522 glibc_version_minor
=0
26523 if test -f $target_header_dir/features.h \
26524 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26525 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26526 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26527 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26532 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26534 # Check whether --enable-gnu-unique-object was given.
26535 if test "${enable_gnu_unique_object+set}" = set; then :
26536 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26538 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26539 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26543 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26544 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26545 $as_echo_n "(cached) " >&6
26547 gcc_cv_as_gnu_unique_object
=no
26548 if test $in_tree_gas = yes; then
26549 if test $in_tree_gas_is_elf = yes \
26550 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26551 then gcc_cv_as_gnu_unique_object
=yes
26553 elif test x
$gcc_cv_as != x
; then
26554 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26555 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26557 (eval $ac_try) 2>&5
26559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26560 test $ac_status = 0; }; }
26562 gcc_cv_as_gnu_unique_object
=yes
26564 echo "configure: failed program was" >&5
26567 rm -f conftest.o conftest.s
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26571 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26572 if test $gcc_cv_as_gnu_unique_object = yes; then
26573 # We need to unquote above to to use the definition from config.gcc.
26574 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26576 if test $glibc_version_major -gt 2 \
26577 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26578 enable_gnu_unique_object
=yes
26584 if test x
$enable_gnu_unique_object = xyes
; then
26586 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26591 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26592 if test "${gcc_cv_as_line_zero+set}" = set; then :
26593 $as_echo_n "(cached) " >&6
26595 gcc_cv_as_line_zero
=no
26596 if test $in_tree_gas = yes; then
26597 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26598 then gcc_cv_as_line_zero
=yes
26600 elif test "x$gcc_cv_as" != x
; then
26601 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26602 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26604 (eval $ac_try) 2>&5
26606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26607 test $ac_status = 0; }; } &&
26608 test "x`cat conftest.out`" = x
26610 gcc_cv_as_line_zero
=yes
26612 echo "configure: failed program was" >&5
26614 echo "configure: error output was" >&5
26615 cat conftest.out
>&5
26617 rm -f conftest.o conftest.s conftest.out
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26621 $as_echo "$gcc_cv_as_line_zero" >&6; }
26622 if test "x$gcc_cv_as_line_zero" = xyes
; then
26624 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26629 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26630 gcc_cv_ld_eh_frame_hdr
=no
26631 if test $in_tree_ld = yes ; then
26632 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 \
26633 && test $in_tree_ld_is_elf = yes; then
26634 gcc_cv_ld_eh_frame_hdr
=yes
26636 elif test x
$gcc_cv_ld != x
; then
26637 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26638 # Check if linker supports --eh-frame-hdr option
26639 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26640 gcc_cv_ld_eh_frame_hdr
=yes
26645 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26646 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26647 gcc_cv_ld_eh_frame_hdr
=yes
26654 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26656 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26660 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26663 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26664 gcc_cv_ld_eh_frame_ciev3
=no
26665 if test $in_tree_ld = yes ; then
26666 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 \
26667 && test $in_tree_ld_is_elf = yes; then
26668 gcc_cv_ld_eh_frame_ciev3
=yes
26670 elif test x
$gcc_cv_ld != x
; then
26671 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26672 gcc_cv_ld_eh_frame_ciev3
=yes
26673 if test 0"$ld_date" -lt 20040513; then
26674 if test -n "$ld_date"; then
26675 # If there was date string, but was earlier than 2004-05-13, fail
26676 gcc_cv_ld_eh_frame_ciev3
=no
26677 elif test "$ld_vers_major" -lt 2; then
26678 gcc_cv_ld_eh_frame_ciev3
=no
26679 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26680 gcc_cv_ld_eh_frame_ciev3
=no
26686 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26687 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
26688 gcc_cv_ld_eh_frame_ciev3
=yes
26695 cat >>confdefs.h
<<_ACEOF
26696 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26700 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26703 $as_echo_n "checking linker position independent executable support... " >&6; }
26705 if test $in_tree_ld = yes ; then
26706 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
26707 && test $in_tree_ld_is_elf = yes; then
26710 elif test x
$gcc_cv_ld != x
; then
26711 # Check if linker supports -pie option
26712 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26716 if test x
"$gcc_cv_ld_pie" = xyes
; then
26718 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26722 $as_echo "$gcc_cv_ld_pie" >&6; }
26724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26725 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26726 gcc_cv_ld_eh_gc_sections
=no
26727 if test $in_tree_ld = yes ; then
26728 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 \
26729 && test $in_tree_ld_is_elf = yes; then
26730 gcc_cv_ld_eh_gc_sections
=yes
26732 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26733 cat > conftest.s
<<EOF
26736 .type _start, @function
26739 .size _start, .-_start
26740 .section .text.foo,"ax",@progbits
26741 .type foo, @function
26745 .section .gcc_except_table.foo,"a",@progbits
26748 .section .eh_frame,"a",@progbits
26751 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26752 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26753 |
grep "gc-sections option ignored" > /dev
/null
; then
26754 gcc_cv_ld_eh_gc_sections
=no
26755 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26756 |
grep gcc_except_table
> /dev
/null
; then
26757 gcc_cv_ld_eh_gc_sections
=yes
26758 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26759 if test x
$gcc_cv_as_comdat_group != xyes
; then
26760 gcc_cv_ld_eh_gc_sections
=no
26761 cat > conftest.s
<<EOF
26764 .type _start, @function
26767 .size _start, .-_start
26768 .section .gnu.linkonce.t.foo,"ax",@progbits
26769 .type foo, @function
26773 .section .gcc_except_table.foo,"a",@progbits
26776 .section .eh_frame,"a",@progbits
26779 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26780 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26781 |
grep "gc-sections option ignored" > /dev
/null
; then
26782 gcc_cv_ld_eh_gc_sections
=no
26783 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26784 |
grep gcc_except_table
> /dev
/null
; then
26785 gcc_cv_ld_eh_gc_sections
=yes
26791 rm -f conftest.s conftest.o conftest
26795 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26796 gcc_cv_ld_eh_gc_sections
=no
26799 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26801 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26805 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26808 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26809 gcc_cv_ld_eh_gc_sections_bug
=no
26810 if test $in_tree_ld = yes ; then
26811 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 \
26812 && test $in_tree_ld_is_elf = yes; then
26813 gcc_cv_ld_eh_gc_sections_bug
=yes
26815 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
26816 gcc_cv_ld_eh_gc_sections_bug
=yes
26817 cat > conftest.s
<<EOF
26820 .type _start, @function
26823 .size _start, .-_start
26824 .section .text.startup.foo,"ax",@progbits
26825 .type foo, @function
26829 .section .gcc_except_table.foo,"a",@progbits
26832 .section .eh_frame,"a",@progbits
26835 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26836 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26837 |
grep "gc-sections option ignored" > /dev
/null
; then
26839 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26840 |
grep gcc_except_table
> /dev
/null
; then
26841 gcc_cv_ld_eh_gc_sections_bug
=no
26844 rm -f conftest.s conftest.o conftest
26846 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26848 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26852 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26859 $as_echo_n "checking linker --as-needed support... " >&6; }
26860 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26861 $as_echo_n "(cached) " >&6
26863 gcc_cv_ld_as_needed
=no
26864 gcc_cv_ld_as_needed_option
='--as-needed'
26865 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
26866 if test $in_tree_ld = yes ; then
26867 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 \
26868 && test $in_tree_ld_is_elf = yes; then
26869 gcc_cv_ld_as_needed
=yes
26871 elif test x
$gcc_cv_ld != x
; then
26872 # Check if linker supports --as-needed and --no-as-needed options
26873 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26874 gcc_cv_ld_as_needed
=yes
26877 # Solaris 2 ld always supports -z ignore/-z record.
26879 gcc_cv_ld_as_needed
=yes
26880 gcc_cv_ld_as_needed_option
="-z ignore"
26881 gcc_cv_ld_no_as_needed_option
="-z record"
26886 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26887 # dl_iterate_phdr, i.e. since Solaris 11.
26889 *-*-solaris2.1
[1-9]*)
26891 i?
86-*-* | x86_64-
*-*)
26892 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26893 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26894 gcc_cv_ld_as_needed
=no
26900 gcc_cv_ld_as_needed
=no
26905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26906 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26907 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26909 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26912 cat >>confdefs.h
<<_ACEOF
26913 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26917 cat >>confdefs.h
<<_ACEOF
26918 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26923 case "$target:$tm_file" in
26924 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26927 emul_name
="-melf64lppc"
26930 emul_name
="-melf64ppc"
26933 emul_name
="-melf64ppc_fbsd"
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26937 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26938 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26939 $as_echo_n "(cached) " >&6
26941 gcc_cv_ld_no_dot_syms
=no
26942 if test x
"$ld_is_gold" = xyes
; then
26943 gcc_cv_ld_no_dot_syms
=yes
26944 elif test $in_tree_ld = yes ; then
26945 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
26946 gcc_cv_ld_no_dot_syms
=yes
26948 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26949 cat > conftest1.s
<<EOF
26953 cat > conftest2.s
<<EOF
26954 .section ".opd","aw"
26957 .type foo,@function
26959 .quad .LEfoo,.TOC.@tocbase,0
26965 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26966 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26967 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26968 gcc_cv_ld_no_dot_syms
=yes
26970 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26975 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26976 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26978 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26983 $as_echo_n "checking linker large toc support... " >&6; }
26984 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26985 $as_echo_n "(cached) " >&6
26987 gcc_cv_ld_large_toc
=no
26988 if test x
"$ld_is_gold" = xyes
; then
26989 gcc_cv_ld_large_toc
=yes
26990 elif test $in_tree_ld = yes ; then
26991 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
26992 gcc_cv_ld_large_toc
=yes
26994 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26995 cat > conftest.s
<<EOF
26996 .section ".tbss","awT",@nobits
27002 addis 9,13,ie0@got@tprel@ha
27003 ld 9,ie0@got@tprel@l(9)
27005 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27006 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
27007 gcc_cv_ld_large_toc
=yes
27009 rm -f conftest conftest.o conftest.s
27013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27014 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27015 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27017 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27026 $as_echo_n "checking linker large toc support... " >&6; }
27027 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27028 $as_echo_n "(cached) " >&6
27030 gcc_cv_ld_large_toc
=no
27031 if test x
$gcc_cv_as != x
; then
27032 cat > conftest.s
<<EOF
27042 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
27043 gcc_cv_ld_large_toc
=yes
27045 rm -f conftest conftest.o conftest.s
27049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27050 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27051 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27053 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27060 $as_echo_n "checking linker --build-id support... " >&6; }
27061 if test "${gcc_cv_ld_buildid+set}" = set; then :
27062 $as_echo_n "(cached) " >&6
27064 gcc_cv_ld_buildid
=no
27065 if test $in_tree_ld = yes ; then
27066 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27067 "$gcc_cv_gld_minor_version" -ge 18 -o \
27068 "$gcc_cv_gld_major_version" -gt 2 \
27069 && test $in_tree_ld_is_elf = yes; then
27070 gcc_cv_ld_buildid
=yes
27072 elif test x
$gcc_cv_ld != x
; then
27073 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
27074 gcc_cv_ld_buildid
=yes
27078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27079 $as_echo "$gcc_cv_ld_buildid" >&6; }
27080 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27082 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27086 # Check whether --enable-linker-build-id was given.
27087 if test "${enable_linker_build_id+set}" = set; then :
27088 enableval
=$enable_linker_build_id;
27090 enable_linker_build_id
=no
27094 if test x
"$enable_linker_build_id" = xyes
; then
27095 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27097 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27101 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27105 # In binutils 2.21, GNU ld gained support for new emulations fully
27106 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27108 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27109 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27110 $as_echo_n "(cached) " >&6
27112 gcc_cv_ld_sol2_emulation
=no
27113 if test $in_tree_ld = yes ; then
27114 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27115 "$gcc_cv_gld_minor_version" -ge 21 -o \
27116 "$gcc_cv_gld_major_version" -gt 2 \
27117 && test $in_tree_ld_is_elf = yes; then
27118 gcc_cv_ld_sol2_emulation
=yes
27120 elif test x
$gcc_cv_ld != x
; then
27121 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
27122 grep _sol2
> /dev
/null
; then
27123 gcc_cv_ld_sol2_emulation
=yes
27127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27128 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27129 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
27131 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27136 $as_echo_n "checking linker --sysroot support... " >&6; }
27137 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27138 $as_echo_n "(cached) " >&6
27140 gcc_cv_ld_sysroot
=no
27141 if test $in_tree_ld = yes ; then
27142 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
27143 gcc_cv_ld_sysroot
=yes
27145 elif test x
$gcc_cv_ld != x
; then
27146 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
27147 gcc_cv_ld_sysroot
=yes
27151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27152 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27153 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
27155 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27159 # Test for stack protector support in target C library.
27160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27161 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27162 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27163 $as_echo_n "(cached) " >&6
27165 gcc_cv_libc_provides_ssp
=no
27167 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
27168 # glibc 2.4 and later provides __stack_chk_fail and
27169 # either __stack_chk_guard, or TLS access to stack guard canary.
27171 if test $glibc_version_major -gt 2 \
27172 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27173 gcc_cv_libc_provides_ssp
=yes
27176 if test -f $target_header_dir/features.h \
27177 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27178 $target_header_dir/features.h
> /dev
/null
; then
27179 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27180 $target_header_dir/features.h
> /dev
/null
&& \
27181 test -f $target_header_dir/bits
/uClibc_config.h
&& \
27182 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27183 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
27184 gcc_cv_libc_provides_ssp
=yes
27186 # all versions of Bionic support stack protector
27187 elif test -f $target_header_dir/sys
/cdefs.h \
27188 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27189 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
27190 gcc_cv_libc_provides_ssp
=yes
27195 # Avoid complicated tests (see
27196 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27197 # simply assert that glibc does provide this, which is true for all
27198 # realistically usable GNU/Hurd configurations.
27199 gcc_cv_libc_provides_ssp
=yes;;
27200 *-*-darwin* |
*-*-freebsd*)
27201 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27202 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
27203 gcc_cv_libc_provides_ssp
=yes
27205 echo "no __stack_chk_fail on this target"
27209 *) gcc_cv_libc_provides_ssp
=no
;;
27212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27213 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27215 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27217 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27221 # Test for <sys/sdt.h> on the target.
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27224 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27226 if test -f $target_header_dir/sys
/sdt.h
; then
27229 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27233 $as_echo "$have_sys_sdt_h" >&6; }
27235 # Check if TFmode long double should be used by default or not.
27236 # Some glibc targets used DFmode long double, but with glibc 2.4
27237 # and later they can use TFmode.
27239 powerpc
*-*-linux* | \
27240 sparc
*-*-linux* | \
27244 # Check whether --with-long-double-128 was given.
27245 if test "${with_long_double_128+set}" = set; then :
27246 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
27249 if test $glibc_version_major -gt 2 \
27250 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27251 gcc_cv_target_ldbl128
=yes
27254 gcc_cv_target_ldbl128
=no
27255 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27256 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
27257 && gcc_cv_target_ldbl128
=yes
27264 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27266 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27271 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27272 gcc_cv_target_dl_iterate_phdr
=unknown
27274 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27275 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27276 # libdl there, both complicating its use and breaking compatibility
27277 # between Solaris 10 updates.
27278 *-*-solaris2.1
[1-9]*)
27279 # <link.h> needs both a dl_iterate_phdr declaration and support for
27280 # compilation with largefile support.
27281 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27282 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27283 gcc_cv_target_dl_iterate_phdr
=yes
27285 gcc_cv_target_dl_iterate_phdr
=no
27288 *-*-dragonfly* |
*-*-freebsd*)
27289 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
27290 gcc_cv_target_dl_iterate_phdr
=yes
27292 gcc_cv_target_dl_iterate_phdr
=no
27297 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
27299 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27303 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27305 # We no longer support different GC mechanisms. Emit an error if
27306 # the user configures with --with-gc.
27308 # Check whether --with-gc was given.
27309 if test "${with_gc+set}" = set; then :
27310 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27314 # Libraries to use on the host. This will normally be set by the top
27315 # level Makefile. Here we simply capture the value for our Makefile.
27316 if test -z "${HOST_LIBS+set}"; then
27321 # Use the system's zlib library.
27323 zlibinc
="-I\$(srcdir)/../zlib"
27325 # Check whether --with-system-zlib was given.
27326 if test "${with_system_zlib+set}" = set; then :
27327 withval
=$with_system_zlib; zlibdir
=
27336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27337 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27338 # Check whether --enable-maintainer-mode was given.
27339 if test "${enable_maintainer_mode+set}" = set; then :
27340 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27347 $as_echo "$maintainer_mode" >&6; }
27349 if test "$maintainer_mode" = "yes"; then
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27357 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27358 # Check whether --enable-link-mutex was given.
27359 if test "${enable_link_mutex+set}" = set; then :
27360 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
27365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27366 $as_echo "$do_link_mutex" >&6; }
27368 if test "$do_link_mutex" = "yes"; then
27371 DO_LINK_MUTEX
=false
27379 # Make empty files to contain the specs and options for each language.
27380 # Then add #include lines to for a compiler that has specs and/or options.
27386 # These (without "all_") are set in each config-lang.in.
27387 # `language' must be a single word so is spelled singularly.
27390 all_outputs
='Makefile'
27391 # List of language makefile fragments.
27392 all_lang_makefrags
=
27393 # Additional files for gengtype
27394 all_gtfiles
="$target_gtfiles"
27396 # These are the languages that are set in --enable-languages,
27397 # and are available in the GCC tree.
27398 all_selected_languages
=
27400 # Add the language fragments.
27401 # Languages are added via two mechanisms. Some information must be
27402 # recorded in makefile variables, these are defined in config-lang.in.
27403 # We accumulate them and plug them into the main Makefile.
27404 # The other mechanism is a set of hooks for each of the main targets
27405 # like `clean', `install', etc.
27407 language_hooks
="Make-hooks"
27409 for lang
in ${srcdir}/*/config-lang.
in
27411 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27413 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27414 if test "x$lang_alias" = x
27416 echo "$lang doesn't set \$language." 1>&2
27419 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27420 subdirs
="$subdirs $subdir"
27422 # $gcc_subdir is where the gcc integration files are to be found
27423 # for a language, both for internal compiler purposes (compiler
27424 # sources implementing front-end to GCC tree converters), and for
27425 # build infrastructure purposes (Make-lang.in, etc.)
27427 # This will be <subdir> (relative to $srcdir) if a line like
27428 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27429 # is found in <langdir>/config-lang.in, and will remain <langdir>
27432 # Except for the language alias (fetched above), the regular
27433 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27434 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27435 # only this and the language alias.
27437 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27438 if [ "$gcc_subdir" = "" ]; then
27439 gcc_subdir
="$subdir"
27442 case ",$enable_languages," in
27444 all_selected_languages
="$all_selected_languages $lang_alias"
27445 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27446 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27457 .
${srcdir}/$gcc_subdir/config-lang.
in
27458 if test "x$language" = x
27460 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27465 case ",$enable_languages," in
27466 *,$lang_alias,*) ;;
27468 for i
in $subdir_requires; do
27469 test -f "${srcdir}/$i/config-lang.in" && continue
27477 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27478 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27479 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27480 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27482 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27483 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27485 all_languages
="$all_languages $language"
27486 all_compilers
="$all_compilers $compilers"
27487 all_outputs
="$all_outputs $outputs"
27488 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27489 case ",$enable_languages," in
27492 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27502 for language
in $all_selected_languages
27504 check_languages
="$check_languages check-$language"
27507 # We link each language in with a set of hooks, reached indirectly via
27508 # lang.${target}. Only do so for selected languages.
27512 target_list
="all.cross start.encap rest.encap tags \
27513 install-common install-man install-info install-pdf install-html dvi \
27514 pdf html uninstall info man srcextra srcman srcinfo \
27515 mostlyclean clean distclean maintainer-clean install-plugin"
27517 for t
in $target_list
27520 for lang
in $all_selected_languages
27524 echo "lang.$t: $x" >> Make-hooks
27528 # Option include files
27531 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27532 option_includes
="option-includes.mk"
27541 echo "dir ." > .gdbinit
27542 echo "dir ${srcdir}" >> .gdbinit
27543 if test x
$gdb_needs_out_file_path = xyes
27545 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27547 if test "x$subdirs" != x
; then
27550 echo "dir ${srcdir}/$s" >> .gdbinit
27553 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27554 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27556 # Put a breakpoint on __asan_report_error to help with debugging buffer
27559 *-fsanitize=address
*)
27560 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27564 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27568 # Find a directory in which to install a shared libgcc.
27570 # Check whether --enable-version-specific-runtime-libs was given.
27571 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27572 enableval
=$enable_version_specific_runtime_libs;
27576 # Substitute configuration variables
27640 if test x
${build} = x
${host} ; then
27641 if test x
${host} = x
${target} ; then
27642 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27644 echo "Links are now set up to build a cross-compiler" 1>&2
27645 echo " from ${host} to ${target}." 1>&2
27648 if test x
${host} = x
${target} ; then
27649 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27650 echo " for ${target}." 1>&2
27652 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27653 echo " from ${host} to ${target}." 1>&2
27665 if test "x${CLOOGLIBS}" != "x" ; then
27667 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27671 # Check for plugin support
27672 # Check whether --enable-plugin was given.
27673 if test "${enable_plugin+set}" = set; then :
27674 enableval
=$enable_plugin; enable_plugin
=$enableval
27676 enable_plugin
=yes; default_plugin
=yes
27684 if test x
$build = x
$host; then
27685 export_sym_check
="nm${exeext} -g"
27686 elif test x
$host = x
$target; then
27687 export_sym_check
="$gcc_cv_nm -g"
27693 if test x
$build = x
$host; then
27694 export_sym_check
="objdump${exeext} -T"
27695 elif test x
$host = x
$target; then
27696 export_sym_check
="$gcc_cv_objdump -T"
27703 if test x
"$enable_plugin" = x
"yes"; then
27705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27706 $as_echo_n "checking for exported symbols... " >&6; }
27707 if test "x$export_sym_check" != x
; then
27708 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27709 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
27710 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
27711 : # No need to use a flag
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27713 $as_echo "yes" >&6; }
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27716 $as_echo "yes" >&6; }
27717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27718 $as_echo_n "checking for -rdynamic... " >&6; }
27719 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
27720 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
27721 plugin_rdynamic
=yes
27722 pluginlibs
="-rdynamic"
27727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27728 $as_echo "$plugin_rdynamic" >&6; }
27731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27732 $as_echo "unable to check" >&6; }
27737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27738 $as_echo_n "checking for library containing dlopen... " >&6; }
27739 if test "${ac_cv_search_dlopen+set}" = set; then :
27740 $as_echo_n "(cached) " >&6
27742 ac_func_search_save_LIBS
=$LIBS
27743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27744 /* end confdefs.h. */
27746 /* Override any GCC internal prototype to avoid an error.
27747 Use char because int might match the return type of a GCC
27748 builtin and then its argument prototype would still apply. */
27761 for ac_lib
in '' dl
; do
27762 if test -z "$ac_lib"; then
27763 ac_res
="none required"
27766 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27768 if ac_fn_c_try_link
"$LINENO"; then :
27769 ac_cv_search_dlopen
=$ac_res
27771 rm -f core conftest.err conftest.
$ac_objext \
27773 if test "${ac_cv_search_dlopen+set}" = set; then :
27777 if test "${ac_cv_search_dlopen+set}" = set; then :
27780 ac_cv_search_dlopen
=no
27782 rm conftest.
$ac_ext
27783 LIBS
=$ac_func_search_save_LIBS
27785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27786 $as_echo "$ac_cv_search_dlopen" >&6; }
27787 ac_res
=$ac_cv_search_dlopen
27788 if test "$ac_res" != no
; then :
27789 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27793 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27794 pluginlibs
="$pluginlibs -ldl"
27798 # Check that we can build shared objects with -fPIC -shared
27799 saved_LDFLAGS
="$LDFLAGS"
27800 saved_CFLAGS
="$CFLAGS"
27803 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27804 CFLAGS
="$CFLAGS -fPIC"
27805 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27808 CFLAGS
="$CFLAGS -fPIC"
27809 LDFLAGS
="$LDFLAGS -fPIC -shared"
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27813 $as_echo_n "checking for -fPIC -shared... " >&6; }
27814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27815 /* end confdefs.h. */
27825 if ac_fn_c_try_link
"$LINENO"; then :
27826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27827 $as_echo "yes" >&6; }; have_pic_shared
=yes
27829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27830 $as_echo "no" >&6; }; have_pic_shared
=no
27832 rm -f core conftest.err conftest.
$ac_objext \
27833 conftest
$ac_exeext conftest.
$ac_ext
27834 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27838 LDFLAGS
="$saved_LDFLAGS"
27839 CFLAGS
="$saved_CFLAGS"
27841 # If plugin support had been requested but not available, fail.
27842 if test x
"$enable_plugin" = x
"no" ; then
27843 if test x
"$default_plugin" != x
"yes"; then
27845 Building GCC with plugin support requires a host that supports
27846 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27853 if test x
"$enable_plugin" = x
"yes"; then
27855 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27860 # Enable --enable-host-shared
27861 # Check whether --enable-host-shared was given.
27862 if test "${enable_host_shared+set}" = set; then :
27863 enableval
=$enable_host_shared; PICFLAG
=-fPIC
27872 # Check whether --enable-libquadmath-support was given.
27873 if test "${enable_libquadmath_support+set}" = set; then :
27874 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27876 ENABLE_LIBQUADMATH_SUPPORT
=yes
27879 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27881 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27886 # Specify what hash style to use by default.
27888 # Check whether --with-linker-hash-style was given.
27889 if test "${with_linker_hash_style+set}" = set; then :
27890 withval
=$with_linker_hash_style; case x
"$withval" in
27892 LINKER_HASH_STYLE
=sysv
27895 LINKER_HASH_STYLE
=gnu
27898 LINKER_HASH_STYLE
=both
27901 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27905 LINKER_HASH_STYLE
=''
27908 if test x
"${LINKER_HASH_STYLE}" != x
; then
27910 cat >>confdefs.h
<<_ACEOF
27911 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27916 # Configure the subdirectories
27917 # AC_CONFIG_SUBDIRS($subdirs)
27919 # Create the Makefile
27920 # and configure language subdirectories
27921 ac_config_files
="$ac_config_files $all_outputs"
27924 ac_config_commands
="$ac_config_commands default"
27926 cat >confcache
<<\_ACEOF
27927 # This file is a shell script that caches the results of configure
27928 # tests run on this system so they can be shared between configure
27929 # scripts and configure runs, see configure's option --config-cache.
27930 # It is not useful on other systems. If it contains results you don't
27931 # want to keep, you may remove or edit it.
27933 # config.status only pays attention to the cache file if you give it
27934 # the --recheck option to rerun configure.
27936 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27937 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27938 # following values.
27942 # The following way of writing the cache mishandles newlines in values,
27943 # but we know of no workaround that is simple, portable, and efficient.
27944 # So, we kill variables containing newlines.
27945 # Ultrix sh set writes to stderr and can't be redirected directly,
27946 # and sets the high bit in the cache file unless we assign to the vars.
27948 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27949 eval ac_val
=\$
$ac_var
27953 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27954 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27957 _ | IFS | as_nl
) ;; #(
27958 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27959 *) { eval $ac_var=; unset $ac_var;} ;;
27965 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27966 *${as_nl}ac_space
=\
*)
27967 # `set' does not quote correctly, so add quotes: double-quote
27968 # substitution turns \\\\ into \\, and sed turns \\ into \.
27971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27974 # `set' quotes correctly as required by POSIX, so do not add quotes.
27975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27986 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27988 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27989 if test -w "$cache_file"; then
27990 test "x$cache_file" != "x/dev/null" &&
27991 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27992 $as_echo "$as_me: updating cache $cache_file" >&6;}
27993 cat confcache
>$cache_file
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27996 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28001 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28002 # Let make expand exec_prefix.
28003 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28005 DEFS
=-DHAVE_CONFIG_H
28009 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28010 # 1. Remove the extension, and $U if already installed.
28011 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28012 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
28013 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28014 # will be set to the directory where LIBOBJS objects are built.
28015 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28016 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
28018 LIBOBJS
=$ac_libobjs
28020 LTLIBOBJS
=$ac_ltlibobjs
28025 : ${CONFIG_STATUS=./config.status}
28027 ac_clean_files_save
=$ac_clean_files
28028 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
28029 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28030 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28032 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28034 # Generated by $as_me.
28035 # Run this file to recreate the current configuration.
28036 # Compiler output produced by configure, useful for debugging
28037 # configure, is in config.log if it exists.
28040 ac_cs_recheck=false
28043 SHELL=\${CONFIG_SHELL-$SHELL}
28046 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
28047 ## -------------------- ##
28048 ## M4sh Initialization. ##
28049 ## -------------------- ##
28051 # Be more Bourne compatible
28052 DUALCASE
=1; export DUALCASE
# for MKS sh
28053 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
28056 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28057 # is contrary to our usage. Disable this feature.
28058 alias -g '${1+"$@"}'='"$@"'
28059 setopt NO_GLOB_SUBST
28061 case `(set -o) 2>/dev/null` in #(
28073 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28074 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28075 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28076 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28077 # Prefer a ksh shell builtin over an external printf program on Solaris,
28078 # but without wasting forks for bash or zsh.
28079 if test -z "$BASH_VERSION$ZSH_VERSION" \
28080 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28081 as_echo='print
-r --'
28082 as_echo_n='print
-rn --'
28083 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28084 as_echo='printf %s
\n'
28085 as_echo_n='printf %s
'
28087 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28088 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
28089 as_echo_n='/usr
/ucb
/echo -n'
28091 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28092 as_echo_n_body='eval
28096 expr "X$arg" : "X\\(.*\\)$as_nl";
28097 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28099 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
28101 export as_echo_n_body
28102 as_echo_n='sh
-c $as_echo_n_body as_echo
'
28104 export as_echo_body
28105 as_echo='sh
-c $as_echo_body as_echo
'
28108 # The user is always right.
28109 if test "${PATH_SEPARATOR+set}" != set; then
28111 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28112 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28119 # We need space, tab and new line, in precisely that order. Quoting is
28120 # there to prevent editors from complaining about space-tab.
28121 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28122 # splitting by setting IFS to empty value.)
28125 # Find who we are. Look in the path if we contain no directory separator.
28127 *[\\/]* ) as_myself=$0 ;;
28128 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28129 for as_dir in $PATH
28132 test -z "$as_dir" && as_dir=.
28133 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28139 # We did not find ourselves, most probably we were run as `sh COMMAND'
28140 # in which case we are not to be found in the path.
28141 if test "x$as_myself" = x
; then
28144 if test ! -f "$as_myself"; then
28145 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28149 # Unset variables that we do not need and which cause bugs (e.g. in
28150 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28151 # suppresses any "Segmentation fault" message there. '((' could
28152 # trigger a bug in pdksh 5.2.14.
28153 for as_var
in BASH_ENV ENV MAIL MAILPATH
28154 do eval test x\
${$as_var+set} = xset \
28155 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
28168 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
28171 # as_fn_error ERROR [LINENO LOG_FD]
28172 # ---------------------------------
28173 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28174 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28175 # script with status $?, using 1 if that was 0.
28178 as_status
=$?
; test $as_status -eq 0 && as_status
=1
28180 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
28181 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28183 $as_echo "$as_me: error: $1" >&2
28184 as_fn_exit
$as_status
28188 # as_fn_set_status STATUS
28189 # -----------------------
28190 # Set $? to STATUS, without forking.
28191 as_fn_set_status
()
28194 } # as_fn_set_status
28196 # as_fn_exit STATUS
28197 # -----------------
28198 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28202 as_fn_set_status
$1
28208 # Portably unset VAR.
28211 { eval $1=; unset $1;}
28213 as_unset
=as_fn_unset
28214 # as_fn_append VAR VALUE
28215 # ----------------------
28216 # Append the text in VALUE to the end of the definition contained in VAR. Take
28217 # advantage of any shell optimizations that allow amortized linear growth over
28218 # repeated appends, instead of the typical quadratic growth present in naive
28220 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
28221 eval 'as_fn_append ()
28232 # as_fn_arith ARG...
28233 # ------------------
28234 # Perform arithmetic evaluation on the ARGs, and store the result in the
28235 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28236 # must be portable across $(()) and expr.
28237 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
28238 eval 'as_fn_arith ()
28245 as_val
=`expr "$@" || test $? -eq 1`
28250 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28251 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28257 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28258 as_basename
=basename
28263 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28269 as_me
=`$as_basename -- "$0" ||
28270 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28271 X"$0" : 'X\(//\)$' \| \
28272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28274 sed '/^.*\/\([^/][^/]*\)\/*$/{
28288 # Avoid depending upon Character Ranges.
28289 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28290 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28291 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28292 as_cr_digits
='0123456789'
28293 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28295 ECHO_C
= ECHO_N
= ECHO_T
=
28296 case `echo -n x` in #(((((
28298 case `echo 'xy\c'` in
28299 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28301 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28308 rm -f conf$$ conf$$.exe conf$$.
file
28309 if test -d conf$$.dir
; then
28310 rm -f conf$$.dir
/conf$$.
file
28313 mkdir conf$$.dir
2>/dev
/null
28315 if (echo >conf$$.
file) 2>/dev
/null
; then
28316 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28318 # ... but there are two gotchas:
28319 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28320 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28321 # In both cases, we have to default to `cp -p'.
28322 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28324 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28332 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28333 rmdir conf$$.dir
2>/dev
/null
28338 # Create "$as_dir" as a directory, including parents if necessary.
28343 -*) as_dir
=.
/$as_dir;;
28345 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28349 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28350 *) as_qdir
=$as_dir;;
28352 as_dirs
="'$as_qdir' $as_dirs"
28353 as_dir
=`$as_dirname -- "$as_dir" ||
28354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28355 X"$as_dir" : 'X\(//\)[^/]' \| \
28356 X"$as_dir" : 'X\(//\)$' \| \
28357 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28358 $as_echo X"$as_dir" |
28359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28363 /^X\(\/\/\)[^/].*/{
28376 test -d "$as_dir" && break
28378 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28379 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28383 if mkdir
-p .
2>/dev
/null
; then
28384 as_mkdir_p
='mkdir -p "$as_dir"'
28386 test -d .
/-p && rmdir .
/-p
28390 if test -x / >/dev
/null
2>&1; then
28391 as_test_x
='test -x'
28393 if ls -dL / >/dev
/null
2>&1; then
28400 if test -d "$1"; then
28406 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28407 ???[sx]*):;;*)false;;esac;fi
28411 as_executable_p
=$as_test_x
28413 # Sed expression to map a string onto a valid CPP name.
28414 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28416 # Sed expression to map a string onto a valid variable name.
28417 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28421 ## ----------------------------------- ##
28422 ## Main body of $CONFIG_STATUS script. ##
28423 ## ----------------------------------- ##
28425 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28428 # Save the log message, to keep $0 and so on meaningful, and to
28429 # report actual input values of CONFIG_FILES etc. instead of their
28430 # values after options handling.
28432 This file was extended by $as_me, which was
28433 generated by GNU Autoconf 2.64. Invocation command line was
28435 CONFIG_FILES = $CONFIG_FILES
28436 CONFIG_HEADERS = $CONFIG_HEADERS
28437 CONFIG_LINKS = $CONFIG_LINKS
28438 CONFIG_COMMANDS = $CONFIG_COMMANDS
28441 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28446 case $ac_config_files in *"
28447 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28450 case $ac_config_headers in *"
28451 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28456 # Files that config.status was made for.
28457 config_files="$ac_config_files"
28458 config_headers="$ac_config_headers"
28459 config_commands="$ac_config_commands"
28463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28465 \`$as_me' instantiates files and other configuration actions
28466 from templates according to the current configuration. Unless the files
28467 and actions are specified as TAGs, all are instantiated by default.
28469 Usage: $0 [OPTION]... [TAG]...
28471 -h, --help print this help, then exit
28472 -V, --version print version number and configuration settings, then exit
28473 -q, --quiet, --silent
28474 do not print progress messages
28475 -d, --debug don't remove temporary files
28476 --recheck update $as_me by reconfiguring in the same conditions
28477 --file=FILE[:TEMPLATE]
28478 instantiate the configuration file FILE
28479 --header=FILE[:TEMPLATE]
28480 instantiate the configuration header FILE
28482 Configuration files:
28485 Configuration headers:
28488 Configuration commands:
28491 Report bugs to the package provider."
28494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28497 configured by $0, generated by GNU Autoconf 2.64,
28498 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28500 Copyright (C) 2009 Free Software Foundation, Inc.
28501 This config.status script is free software; the Free Software Foundation
28502 gives unlimited permission to copy, distribute and modify it."
28507 test -n "\$AWK" || AWK=awk
28510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28511 # The default lists apply if the user does not specify any file.
28517 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28518 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28529 # Handling of the options.
28530 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28532 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28533 $as_echo "$ac_cs_version"; exit ;;
28534 --debug |
--debu |
--deb |
--de |
--d |
-d )
28536 --file |
--fil |
--fi |
--f )
28539 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28541 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28542 ac_need_defaults
=false
;;
28543 --header |
--heade |
--head |
--hea )
28546 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28548 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28549 ac_need_defaults
=false
;;
28551 # Conflict between --help and --header
28552 as_fn_error
"ambiguous option: \`$1'
28553 Try \`$0 --help' for more information.";;
28554 --help |
--hel |
-h )
28555 $as_echo "$ac_cs_usage"; exit ;;
28556 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28557 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28560 # This is an error.
28561 -*) as_fn_error
"unrecognized option: \`$1'
28562 Try \`$0 --help' for more information." ;;
28564 *) as_fn_append ac_config_targets
" $1"
28565 ac_need_defaults
=false
;;
28571 ac_configure_extra_args
=
28573 if $ac_cs_silent; then
28575 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28580 if \$ac_cs_recheck; then
28581 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28583 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28584 CONFIG_SHELL='$SHELL'
28585 export CONFIG_SHELL
28590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28594 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28595 ## Running $as_me. ##
28601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28605 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28606 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28613 # Handling of arguments.
28614 for ac_config_target
in $ac_config_targets
28616 case $ac_config_target in
28617 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28618 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
28619 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
28620 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28621 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28622 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28623 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28624 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28626 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28631 # If the user did not use the arguments to specify the items to instantiate,
28632 # then the envvar interface is used. Set only those that are not.
28633 # We use the long form for the default assignment because of an extremely
28634 # bizarre bug on SunOS 4.1.3.
28635 if $ac_need_defaults; then
28636 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28637 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28638 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28641 # Have a temporary directory for convenience. Make it in the build tree
28642 # simply because there is no reason against having it here, and in addition,
28643 # creating and moving files from /tmp can sometimes cause problems.
28644 # Hook for its removal unless debugging.
28645 # Note that there is a small window in which the directory will not be cleaned:
28646 # after its creation but before its name has been assigned to `$tmp'.
28650 trap 'exit_status=$?
28651 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28653 trap 'as_fn_exit 1' 1 2 13 15
28655 # Create a (secure) tmp directory for tmp files.
28658 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28659 test -n "$tmp" && test -d "$tmp"
28662 tmp
=.
/conf$$
-$RANDOM
28663 (umask 077 && mkdir
"$tmp")
28664 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28666 # Set up the scripts for CONFIG_FILES section.
28667 # No need to generate them if there are no CONFIG_FILES.
28668 # This happens for instance with `./config.status config.h'.
28669 if test -n "$CONFIG_FILES"; then
28671 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28672 ac_cs_awk_getline
=:
28673 ac_cs_awk_pipe_init
=
28674 ac_cs_awk_read_file
='
28675 while ((getline aline < (F[key])) > 0)
28678 ac_cs_awk_pipe_fini
=
28680 ac_cs_awk_getline
=false
28681 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28682 ac_cs_awk_read_file
='
28684 print "cat " F[key] " &&"
28685 '$ac_cs_awk_pipe_init
28686 # The final `:' finishes the AND list.
28687 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28689 ac_cr
=`echo X | tr X '\015'`
28690 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28691 # But we know of no other shell where ac_cr would be empty at this
28692 # point, so we can use a bashism as a fallback.
28693 if test "x$ac_cr" = x
; then
28694 eval ac_cr
=\$
\'\\r
\'
28696 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28697 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28700 ac_cs_awk_cr
=$ac_cr
28703 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28706 # Create commands to substitute file output variables.
28708 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28709 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28710 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28713 } >conf$
$files.sh
&&
28714 . .
/conf$
$files.sh ||
28715 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28716 rm -f conf$
$files.sh
28719 echo "cat >conf$$subs.awk <<_ACEOF" &&
28720 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28722 } >conf$$subs.sh ||
28723 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28724 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28726 for ac_last_try in false false false false false :; do
28727 . ./conf$$subs.sh ||
28728 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28730 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28731 if test $ac_delim_n = $ac_delim_num; then
28733 elif $ac_last_try; then
28734 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28736 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28739 rm -f conf$$subs.sh
28741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28742 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28746 s/^/S["/; s
/!.
*/"]=/
28756 s/\(.\{148\}\).*/\1/
28758 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28763 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28770 s/\(.\{148\}\).*/\1/
28772 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28776 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28781 ' <conf$$subs.awk | sed '
28786 ' >>$CONFIG_STATUS || ac_write_fail=1
28787 rm -f conf$$subs.awk
28788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28790 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28791 for (key in S) S_is_set[key] = 1
28793 \$ac_cs_awk_pipe_init
28797 nfields = split(line, field, "@
")
28799 len = length(field[1])
28800 for (i = 2; i < nfields; i++) {
28802 keylen = length(key)
28803 if (S_is_set[key]) {
28805 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28806 len += length(value) + length(field[++i])
28811 if (nfields == 3 && !substed) {
28813 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28814 \$ac_cs_awk_read_file
28820 \$ac_cs_awk_pipe_fini
28823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28824 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28825 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28828 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28829 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28832 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28833 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28834 # trailing colons and then remove the whole line if VPATH becomes empty
28835 # (actually we leave an empty line to preserve line numbers).
28836 if test "x
$srcdir" = x.; then
28837 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28838 s/:*\$(srcdir):*/:/
28839 s/:*\${srcdir}:*/:/
28841 s/^\([^=]*=[ ]*\):*/\1/
28847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28848 fi # test -n "$CONFIG_FILES"
28850 # Set up the scripts for CONFIG_HEADERS section.
28851 # No need to generate them if there are no CONFIG_HEADERS.
28852 # This happens for instance with `./config.status Makefile'.
28853 if test -n "$CONFIG_HEADERS"; then
28854 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28858 # Transform confdefs.h into an awk script `defines.awk', embedded as
28859 # here-document in config.status, that substitutes the proper values into
28860 # config.h.in to produce config.h.
28862 # Create a delimiter string that does not exist in confdefs.h, to ease
28863 # handling of long lines.
28865 for ac_last_try in false false :; do
28866 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28867 if test -z "$ac_t"; then
28869 elif $ac_last_try; then
28870 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28872 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28876 # For the awk script, D is an array of macro values keyed by name,
28877 # likewise P contains macro parameters if any. Preserve backslash
28878 # newline sequences.
28880 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28882 s/.\{148\}/&'"$ac_delim"'/g
28885 s/^[ ]*#[ ]*define[ ][ ]*/ /
28892 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28894 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28898 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28899 D["\
1"]=" \
3\\\\\\n
"\\/p
28901 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28906 s/.\{148\}/&'"$ac_delim"'/g
28911 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28914 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28916 ' <confdefs.h | sed '
28917 s/'"$ac_delim"'/"\\\
28918 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28921 for (key in D) D_is_set[key] = 1
28924 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28926 split(line, arg, " ")
28927 if (arg[1] == "#") {
28931 defundef
= substr
(arg
[1], 2)
28934 split(mac1
, mac2
, "(") #)
28936 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28937 if (D_is_set
[macro
]) {
28938 # Preserve the white space surrounding the "#".
28939 print prefix
"define", macro P
[macro
] D
[macro
]
28942 # Replace #undef with comments. This is necessary, for example,
28943 # in the case of _POSIX_SOURCE, which is predefined and required
28944 # on some systems where configure will not decide to define it.
28945 if (defundef
== "undef") {
28946 print
"/*", prefix defundef
, macro
, "*/"
28954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28955 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28956 fi # test -n "$CONFIG_HEADERS"
28959 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28964 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28966 case $ac_mode$ac_tag in
28968 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28969 :[FH
]-) ac_tag
=-:-;;
28970 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28987 -) ac_f
="$tmp/stdin";;
28988 *) # Look for the file first in the build tree, then in the source tree
28989 # (if the path is not absolute). The absolute path cannot be DOS-style,
28990 # because $ac_f cannot contain `:'.
28994 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28996 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28998 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28999 as_fn_append ac_file_inputs
" '$ac_f'"
29002 # Let's still pretend it is `configure' which instantiates (i.e., don't
29003 # use $as_me), people would be surprised to read:
29004 # /* config.h. Generated by config.status. */
29005 configure_input
='Generated from '`
29006 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29008 if test x
"$ac_file" != x-
; then
29009 configure_input
="$ac_file. $configure_input"
29010 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29011 $as_echo "$as_me: creating $ac_file" >&6;}
29013 # Neutralize special characters interpreted by sed in replacement strings.
29014 case $configure_input in #(
29015 *\
&* |
*\|
* |
*\\* )
29016 ac_sed_conf_input
=`$as_echo "$configure_input" |
29017 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29018 *) ac_sed_conf_input
=$configure_input;;
29022 *:-:* |
*:-) cat >"$tmp/stdin" \
29023 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
29028 ac_dir
=`$as_dirname -- "$ac_file" ||
29029 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29030 X"$ac_file" : 'X\(//\)[^/]' \| \
29031 X"$ac_file" : 'X\(//\)$' \| \
29032 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29033 $as_echo X"$ac_file" |
29034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29038 /^X\(\/\/\)[^/].*/{
29051 as_dir
="$ac_dir"; as_fn_mkdir_p
29055 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29057 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29058 # A ".." for each directory in $ac_dir_suffix.
29059 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29060 case $ac_top_builddir_sub in
29061 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29062 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
29065 ac_abs_top_builddir
=$ac_pwd
29066 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
29067 # for backward compatibility:
29068 ac_top_builddir
=$ac_top_build_prefix
29071 .
) # We are building in place.
29073 ac_top_srcdir
=$ac_top_builddir_sub
29074 ac_abs_top_srcdir
=$ac_pwd ;;
29075 [\\/]* | ?
:[\\/]* ) # Absolute name.
29076 ac_srcdir
=$srcdir$ac_dir_suffix;
29077 ac_top_srcdir
=$srcdir
29078 ac_abs_top_srcdir
=$srcdir ;;
29079 *) # Relative name.
29080 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
29081 ac_top_srcdir
=$ac_top_build_prefix$srcdir
29082 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
29084 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
29095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29096 # If the template does not know about datarootdir, expand it.
29097 # FIXME: This hack should be removed a few years after 2.60.
29098 ac_datarootdir_hack
=; ac_datarootdir_seen
=
29109 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29110 *datarootdir
*) ac_datarootdir_seen
=yes;;
29111 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29113 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29116 ac_datarootdir_hack='
29117 s&@datadir@&$datadir&g
29118 s&@docdir@&$docdir&g
29119 s&@infodir@&$infodir&g
29120 s&@localedir@&$localedir&g
29121 s&@mandir@&$mandir&g
29122 s&\\\${datarootdir}&$datarootdir&g' ;;
29126 # Neutralize VPATH when `$srcdir' = `.'.
29127 # Shell code in configure.ac might set extrasub.
29128 # FIXME: do we really want to maintain this feature?
29129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29130 ac_sed_extra="$ac_vpsub
29133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29135 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
29136 s|@configure_input@|
$ac_sed_conf_input|
;t t
29137 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
29138 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
29139 s
&@srcdir@
&$ac_srcdir&;t t
29140 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
29141 s
&@top_srcdir@
&$ac_top_srcdir&;t t
29142 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
29143 s
&@builddir@
&$ac_builddir&;t t
29144 s
&@abs_builddir@
&$ac_abs_builddir&;t t
29145 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
29146 $ac_datarootdir_hack
29148 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29149 if $ac_cs_awk_getline; then
29150 $AWK -f "$tmp/subs.
awk"
29152 $AWK -f "$tmp/subs.
awk" | $SHELL
29154 || as_fn_error "could not create
$ac_file" "$LINENO" 5
29156 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29157 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
29158 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
29159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
29160 which seems to be undefined. Please make sure it is defined." >&5
29161 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
29162 which seems to be undefined. Please make sure it is defined." >&2;}
29166 -) cat "$tmp/out" && rm -f "$tmp/out";;
29167 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29169 || as_fn_error "could not create $ac_file" "$LINENO" 5
29175 if test x"$ac_file" != x-; then
29177 $as_echo "/* $configure_input */" \
29178 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29179 } >"$tmp/config.h" \
29180 || as_fn_error "could not create $ac_file" "$LINENO" 5
29181 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29182 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29183 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29186 mv "$tmp/config.h" "$ac_file" \
29187 || as_fn_error "could not create $ac_file" "$LINENO" 5
29190 $as_echo "/* $configure_input */" \
29191 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29192 || as_fn_error "could not create -" "$LINENO" 5
29196 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29197 $as_echo "$as_me: executing $ac_file commands" >&6;}
29202 case $ac_file$ac_mode in
29203 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29205 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29206 for lang in $subdirs c-family common
29208 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29210 "as":F) chmod +x as ;;
29211 "collect-ld":F) chmod +x collect-ld ;;
29212 "nm":F) chmod +x nm ;;
29214 case ${CONFIG_HEADERS} in
29215 *auto-host.h:config.in*)
29218 # Make sure all the subdirs exist.
29219 for d in $subdirs doc build common c-family
29221 test -d $d || mkdir $d
29231 ac_clean_files=$ac_clean_files_save
29233 test $ac_write_fail = 0 ||
29234 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29237 # configure is writing to config.log, and then calls config.status.
29238 # config.status does its own redirection, appending to config.log.
29239 # Unfortunately, on DOS this fails, as config.log is still kept open
29240 # by configure, so config.status won't be able to
write to it
; its
29241 # output is simply discarded. So we exec the FD to /dev/null,
29242 # effectively closing config.log, so it can be properly (re)opened and
29243 # appended to by config.status. When coming back to configure, we
29244 # need to make the FD available again.
29245 if test "$no_create" != yes; then
29247 ac_config_status_args
=
29248 test "$silent" = yes &&
29249 ac_config_status_args
="$ac_config_status_args --quiet"
29251 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29253 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29254 # would make configure fail if this is the last instruction.
29255 $ac_cs_success || as_fn_exit $?
29257 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29259 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}