2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
624 common_out_object_file
640 gcc_gxx_include_dir_add_sysroot
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
681 ORIGINAL_NM_FOR_TARGET
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 ORIGINAL_AS_FOR_TARGET
728 NATIVE_SYSTEM_HEADER_DIR
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
764 SYSROOT_CFLAGS_FOR_TARGET
774 valgrind_path_defines
848 program_transform_name
859 ac_subst_files
='option_includes
862 enable_option_checking
867 enable_generated_files_in_srcdir
877 enable_gather_detailed_mem_stats
889 with_native_system_header_dir
899 enable_sjlj_exceptions
901 enable_leading_mingw64_underscores
904 enable_win32_registry
910 enable_gnu_indirect_function
911 enable_initfini_array
913 enable_gnu_unique_object
914 enable_linker_build_id
918 enable_maintainer_mode
919 enable_version_specific_runtime_libs
921 enable_libquadmath_support
922 with_linker_hash_style
924 ac_precious_vars
='build_alias
945 # Initialize some variables set by options.
947 ac_init_version
=false
948 ac_unrecognized_opts
=
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
959 program_transform_name
=s
,x
,x
,
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir
='${exec_prefix}/bin'
974 sbindir
='${exec_prefix}/sbin'
975 libexecdir
='${exec_prefix}/libexec'
976 datarootdir
='${prefix}/share'
977 datadir
='${datarootdir}'
978 sysconfdir
='${prefix}/etc'
979 sharedstatedir
='${prefix}/com'
980 localstatedir
='${prefix}/var'
981 includedir
='${prefix}/include'
982 oldincludedir
='/usr/include'
983 docdir
='${datarootdir}/doc/${PACKAGE}'
984 infodir
='${datarootdir}/info'
989 libdir
='${exec_prefix}/lib'
990 localedir
='${datarootdir}/locale'
991 mandir
='${datarootdir}/man'
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
999 eval $ac_prev=\
$ac_option
1005 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009 # Accept the important Cygnus configure options, so we can diagnose typos.
1011 case $ac_dashdash$ac_option in
1015 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1017 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1018 bindir
=$ac_optarg ;;
1020 -build |
--build |
--buil |
--bui |
--bu)
1021 ac_prev
=build_alias
;;
1022 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1023 build_alias
=$ac_optarg ;;
1025 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1026 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1027 ac_prev
=cache_file
;;
1028 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1029 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1030 cache_file
=$ac_optarg ;;
1032 --config-cache |
-C)
1033 cache_file
=config.cache
;;
1035 -datadir |
--datadir |
--datadi |
--datad)
1037 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1038 datadir
=$ac_optarg ;;
1040 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1041 |
--dataroo |
--dataro |
--datar)
1042 ac_prev
=datarootdir
;;
1043 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1044 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1045 datarootdir
=$ac_optarg ;;
1047 -disable-* |
--disable-*)
1048 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1051 as_fn_error
"invalid feature name: $ac_useropt"
1052 ac_useropt_orig
=$ac_useropt
1053 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "enable_
$ac_useropt"
1058 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1059 ac_unrecognized_sep
=', ';;
1061 eval enable_
$ac_useropt=no
;;
1063 -docdir |
--docdir |
--docdi |
--doc |
--do)
1065 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1066 docdir
=$ac_optarg ;;
1068 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1070 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1071 dvidir
=$ac_optarg ;;
1073 -enable-* |
--enable-*)
1074 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1077 as_fn_error
"invalid feature name: $ac_useropt"
1078 ac_useropt_orig
=$ac_useropt
1079 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1082 "enable_
$ac_useropt"
1084 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1085 ac_unrecognized_sep
=', ';;
1087 eval enable_
$ac_useropt=\
$ac_optarg ;;
1089 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1090 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1091 |
--exec |
--exe |
--ex)
1092 ac_prev
=exec_prefix
;;
1093 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1094 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1095 |
--exec=* |
--exe=* |
--ex=*)
1096 exec_prefix
=$ac_optarg ;;
1098 -gas |
--gas |
--ga |
--g)
1099 # Obsolete; use --with-gas.
1102 -help |
--help |
--hel |
--he |
-h)
1103 ac_init_help
=long
;;
1104 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1105 ac_init_help
=recursive
;;
1106 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1107 ac_init_help
=short
;;
1109 -host |
--host |
--hos |
--ho)
1110 ac_prev
=host_alias
;;
1111 -host=* |
--host=* |
--hos=* |
--ho=*)
1112 host_alias
=$ac_optarg ;;
1114 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1116 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1118 htmldir
=$ac_optarg ;;
1120 -includedir |
--includedir |
--includedi |
--included |
--include \
1121 |
--includ |
--inclu |
--incl |
--inc)
1122 ac_prev
=includedir
;;
1123 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1124 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1125 includedir
=$ac_optarg ;;
1127 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1129 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1130 infodir
=$ac_optarg ;;
1132 -libdir |
--libdir |
--libdi |
--libd)
1134 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1135 libdir
=$ac_optarg ;;
1137 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1138 |
--libexe |
--libex |
--libe)
1139 ac_prev
=libexecdir
;;
1140 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1141 |
--libexe=* |
--libex=* |
--libe=*)
1142 libexecdir
=$ac_optarg ;;
1144 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1145 ac_prev
=localedir
;;
1146 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1147 localedir
=$ac_optarg ;;
1149 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1150 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1151 ac_prev
=localstatedir
;;
1152 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1153 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1154 localstatedir
=$ac_optarg ;;
1156 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1158 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1159 mandir
=$ac_optarg ;;
1161 -nfp |
--nfp |
--nf)
1162 # Obsolete; use --without-fp.
1165 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1166 |
--no-cr |
--no-c |
-n)
1169 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1170 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1173 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1174 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1175 |
--oldin |
--oldi |
--old |
--ol |
--o)
1176 ac_prev
=oldincludedir
;;
1177 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1178 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1179 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1180 oldincludedir
=$ac_optarg ;;
1182 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1184 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1185 prefix
=$ac_optarg ;;
1187 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1188 |
--program-pre |
--program-pr |
--program-p)
1189 ac_prev
=program_prefix
;;
1190 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1191 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1192 program_prefix
=$ac_optarg ;;
1194 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1195 |
--program-suf |
--program-su |
--program-s)
1196 ac_prev
=program_suffix
;;
1197 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1198 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1199 program_suffix
=$ac_optarg ;;
1201 -program-transform-name |
--program-transform-name \
1202 |
--program-transform-nam |
--program-transform-na \
1203 |
--program-transform-n |
--program-transform- \
1204 |
--program-transform |
--program-transfor \
1205 |
--program-transfo |
--program-transf \
1206 |
--program-trans |
--program-tran \
1207 |
--progr-tra |
--program-tr |
--program-t)
1208 ac_prev
=program_transform_name
;;
1209 -program-transform-name=* |
--program-transform-name=* \
1210 |
--program-transform-nam=* |
--program-transform-na=* \
1211 |
--program-transform-n=* |
--program-transform-=* \
1212 |
--program-transform=* |
--program-transfor=* \
1213 |
--program-transfo=* |
--program-transf=* \
1214 |
--program-trans=* |
--program-tran=* \
1215 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1216 program_transform_name
=$ac_optarg ;;
1218 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1220 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1221 pdfdir
=$ac_optarg ;;
1223 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1225 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1228 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1229 |
-silent |
--silent |
--silen |
--sile |
--sil)
1232 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1234 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1236 sbindir
=$ac_optarg ;;
1238 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1239 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1240 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1242 ac_prev
=sharedstatedir
;;
1243 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1244 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1245 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1247 sharedstatedir
=$ac_optarg ;;
1249 -site |
--site |
--sit)
1251 -site=* |
--site=* |
--sit=*)
1254 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1256 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1257 srcdir
=$ac_optarg ;;
1259 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1260 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1261 ac_prev
=sysconfdir
;;
1262 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1263 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1264 sysconfdir
=$ac_optarg ;;
1266 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1267 ac_prev
=target_alias
;;
1268 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1269 target_alias
=$ac_optarg ;;
1271 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1274 -version |
--version |
--versio |
--versi |
--vers |
-V)
1275 ac_init_version
=: ;;
1278 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1281 as_fn_error
"invalid package name: $ac_useropt"
1282 ac_useropt_orig
=$ac_useropt
1283 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1288 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1289 ac_unrecognized_sep
=', ';;
1291 eval with_
$ac_useropt=\
$ac_optarg ;;
1293 -without-* |
--without-*)
1294 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1297 as_fn_error
"invalid package name: $ac_useropt"
1298 ac_useropt_orig
=$ac_useropt
1299 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1304 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1305 ac_unrecognized_sep
=', ';;
1307 eval with_
$ac_useropt=no
;;
1310 # Obsolete; use --with-x.
1313 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1314 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1315 ac_prev
=x_includes
;;
1316 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1317 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1318 x_includes
=$ac_optarg ;;
1320 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1321 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1322 ac_prev
=x_libraries
;;
1323 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1324 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1325 x_libraries
=$ac_optarg ;;
1327 -*) as_fn_error
"unrecognized option: \`$ac_option'
1328 Try \`$0 --help' for more information."
1332 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1333 # Reject names that are not valid shell variable names.
1334 case $ac_envvar in #(
1335 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1336 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1338 eval $ac_envvar=\
$ac_optarg
1339 export $ac_envvar ;;
1342 # FIXME: should be removed in autoconf 3.0.
1343 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1345 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1352 if test -n "$ac_prev"; then
1353 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1354 as_fn_error
"missing argument to $ac_option"
1357 if test -n "$ac_unrecognized_opts"; then
1358 case $enable_option_checking in
1360 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1361 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365 # Check all directory arguments for consistency.
1366 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367 datadir sysconfdir sharedstatedir localstatedir includedir \
1368 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369 libdir localedir mandir
1371 eval ac_val
=\$
$ac_var
1372 # Remove trailing slashes.
1375 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1376 eval $ac_var=\
$ac_val;;
1378 # Be sure to have absolute directory names.
1380 [\\/$
]* | ?
:[\\/]* ) continue;;
1381 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1383 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1386 # There might be people who depend on the old broken behavior: `$host'
1387 # used to hold the argument of --host etc.
1388 # FIXME: To remove some day.
1391 target
=$target_alias
1393 # FIXME: To remove some day.
1394 if test "x$host_alias" != x
; then
1395 if test "x$build_alias" = x
; then
1396 cross_compiling
=maybe
1397 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1398 If a cross compiler is detected then cross compile mode will be used." >&2
1399 elif test "x$build_alias" != "x$host_alias"; then
1405 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1407 test "$silent" = yes && exec 6>/dev
/null
1410 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1411 ac_ls_di
=`ls -di .` &&
1412 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1413 as_fn_error
"working directory cannot be determined"
1414 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415 as_fn_error
"pwd does not report name of working directory"
1418 # Find the source files, if location was not specified.
1419 if test -z "$srcdir"; then
1420 ac_srcdir_defaulted
=yes
1421 # Try the directory containing this script, then the parent directory.
1422 ac_confdir
=`$as_dirname -- "$as_myself" ||
1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424 X"$as_myself" : 'X\(//\)[^/]' \| \
1425 X"$as_myself" : 'X\(//\)$' \| \
1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427 $as_echo X"$as_myself" |
1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1450 ac_srcdir_defaulted
=no
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1454 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1456 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1458 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1460 # When building in place, set srcdir=.
1461 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 # Remove unnecessary trailing slashes from srcdir.
1465 # Double slashes in file names in object file debugging info
1466 # mess up M-x gdb in Emacs.
1468 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470 for ac_var
in $ac_precious_vars; do
1471 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1472 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1473 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1474 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1478 # Report the --help message.
1480 if test "$ac_init_help" = "long"; then
1481 # Omit some internal or obsolete options to make the list less imposing.
1482 # This message is too long to be a string in the A/UX 3.1 sh.
1484 \`configure' configures this package to adapt to many kinds of systems.
1486 Usage: $0 [OPTION]... [VAR=VALUE]...
1488 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1489 VAR=VALUE. See below for descriptions of some of the useful variables.
1491 Defaults for the options are specified in brackets.
1494 -h, --help display this help and exit
1495 --help=short display options specific to this package
1496 --help=recursive display the short help of all the included packages
1497 -V, --version display version information and exit
1498 -q, --quiet, --silent do not print \`checking...' messages
1499 --cache-file=FILE cache test results in FILE [disabled]
1500 -C, --config-cache alias for \`--cache-file=config.cache'
1501 -n, --no-create do not create output files
1502 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1504 Installation directories:
1505 --prefix=PREFIX install architecture-independent files in PREFIX
1506 [$ac_default_prefix]
1507 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1510 By default, \`make install' will install all the files in
1511 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1512 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1513 for instance \`--prefix=\$HOME'.
1515 For better control, use the options below.
1517 Fine tuning of the installation directories:
1518 --bindir=DIR user executables [EPREFIX/bin]
1519 --sbindir=DIR system admin executables [EPREFIX/sbin]
1520 --libexecdir=DIR program executables [EPREFIX/libexec]
1521 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1522 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1523 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1524 --libdir=DIR object code libraries [EPREFIX/lib]
1525 --includedir=DIR C header files [PREFIX/include]
1526 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1527 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1528 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1529 --infodir=DIR info documentation [DATAROOTDIR/info]
1530 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1531 --mandir=DIR man documentation [DATAROOTDIR/man]
1532 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1533 --htmldir=DIR html documentation [DOCDIR]
1534 --dvidir=DIR dvi documentation [DOCDIR]
1535 --pdfdir=DIR pdf documentation [DOCDIR]
1536 --psdir=DIR ps documentation [DOCDIR]
1542 --program-prefix=PREFIX prepend PREFIX to installed program names
1543 --program-suffix=SUFFIX append SUFFIX to installed program names
1544 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1547 --build=BUILD configure
for building on BUILD
[guessed
]
1548 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1549 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1553 if test -n "$ac_init_help"; then
1558 --disable-option-checking ignore unrecognized
--enable/--with options
1559 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1560 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1561 --enable-generated-files-in-srcdir
1562 put copies of generated files
in source dir intended
1563 for creating
source tarballs
for users without
1564 texinfo bison or flex
1565 --disable-largefile omit support
for large files
1566 --enable-werror-always enable -Werror despite compiler version
1567 --enable-checking[=LIST
]
1568 enable expensive run-time checks. With LIST
, enable
1569 only specific categories of checks. Categories are
:
1570 yes,no
,all
,none
,release. Flags are
:
1571 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1572 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1573 --enable-coverage[=LEVEL
]
1574 enable compiler
's code coverage collection. Use to
1575 measure compiler performance and locate unused parts
1576 of the compiler. With LEVEL, specify optimization.
1577 Values are opt, noopt, default is noopt
1578 --enable-gather-detailed-mem-stats
1579 enable detailed memory allocation stats gathering
1580 --enable-multilib enable library support for multiple ABIs
1581 --enable-multiarch enable support for multiarch paths
1582 --enable-__cxa_atexit enable __cxa_atexit for C++
1583 --enable-decimal-float={no,yes,bid,dpd}
1584 enable decimal float extension to C. Selecting 'bid
'
1585 or 'dpd
' choses which decimal floating point format
1587 --enable-fixed-point enable fixed-point arithmetic extension to C
1588 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1590 --enable-tls enable or disable generation of tls code overriding
1591 the assembler check for tls support
1592 --enable-objc-gc enable the use of Boehm's garbage collector with the
1593 GNU Objective-C runtime
1594 --disable-shared don
't provide a shared libgcc
1595 --enable-languages=LIST specify which front-ends to build
1596 --disable-rpath do not hardcode runtime library paths
1597 --enable-sjlj-exceptions
1598 arrange to use setjmp/longjmp exception handling
1599 --enable-secureplt enable -msecure-plt by default for PowerPC
1600 --enable-leading-mingw64-underscores
1601 enable leading underscores on 64 bit mingw targets
1602 --enable-cld enable -mcld by default for 32bit x86
1603 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1605 --disable-win32-registry
1606 disable lookup of installation paths in the Registry
1608 --enable-win32-registry enable registry lookup (default)
1609 --enable-win32-registry=KEY
1610 use KEY instead of GCC version as the last portion
1612 --enable-shared[=PKGS] build shared libraries [default=yes]
1613 --enable-static[=PKGS] build static libraries [default=yes]
1614 --enable-fast-install[=PKGS]
1615 optimize for fast installation [default=yes]
1616 --disable-libtool-lock avoid locking (might break parallel builds)
1617 --enable-gnu-indirect-function
1618 enable the use of the @gnu_indirect_function to
1620 --enable-initfini-array use .init_array/.fini_array sections
1621 --enable-comdat enable COMDAT group support
1622 --enable-gnu-unique-object
1623 enable the use of the @gnu_unique_object ELF
1624 extension on glibc systems
1625 --enable-linker-build-id
1626 compiler will always pass --build-id to linker
1627 --enable-maintainer-mode
1628 enable make rules and dependencies not useful (and
1629 sometimes confusing) to the casual installer
1630 --enable-version-specific-runtime-libs
1631 specify that runtime libraries should be installed
1632 in a compiler-specific directory
1633 --enable-plugin enable plugin support
1634 --disable-libquadmath-support
1635 disable libquadmath support for Fortran
1638 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1639 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1640 --with-build-libsubdir=DIR Directory where to find libraries for build system
1641 --with-local-prefix=DIR specifies directory to put local include
1642 --with-gxx-include-dir=DIR
1643 specifies directory to put g++ header files
1644 --with-cpp-install-dir=DIR
1645 install the user visible C preprocessor in DIR
1646 (relative to PREFIX) as well as PREFIX/bin
1647 --with-gnu-ld arrange to work with GNU ld
1648 --with-ld arrange to use the specified ld (full pathname)
1649 --with-demangler-in-ld try to use demangler in GNU ld
1650 --with-gnu-as arrange to work with GNU as
1651 --with-as arrange to use the specified as (full pathname)
1652 --with-stabs arrange to use stabs instead of host debug format
1653 --with-dwarf2 force the default debug format to be DWARF 2
1654 --with-native-system-header-dir=dir
1655 use dir as the directory to look for standard
1656 system header files in. Defaults to /usr/include.
1657 --with-build-sysroot=sysroot
1658 use sysroot as the system root during the build
1659 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1660 --with-specs=SPECS add SPECS to driver command-line processing
1661 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1662 --with-bugurl=URL Direct users to URL to report a bug
1663 --with-multilib-list select multilibs (SH and x86-64 only)
1664 --with-gnu-ld assume the C compiler uses GNU ld default=no
1665 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1666 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1667 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1669 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1670 --with-plugin-ld=[ARG
] specify the plugin linker
1671 --with-long-double-128 use
128-bit long double by default
1672 --with-gc={page
,zone
} choose the garbage collection mechanism to use with
1674 --with-system-zlib use installed libz
1675 --with-linker-hash-style={sysv
,gnu
,both
}
1676 specify the linker
hash style
1678 Some influential environment variables
:
1679 CC C compiler
command
1680 CFLAGS C compiler flags
1681 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1682 nonstandard directory
<lib dir
>
1683 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1684 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1685 you have headers
in a nonstandard directory
<include dir
>
1686 CXX C
++ compiler
command
1687 CXXFLAGS C
++ compiler flags
1689 CXXCPP C
++ preprocessor
1690 GMPLIBS How to link GMP
1691 GMPINC How to
find GMP include files
1692 ISLLIBS How to link ISL
1693 ISLINC How to
find ISL include files
1694 CLOOGLIBS How to link CLOOG
1695 CLOOGINC How to
find CLOOG include files
1697 Use these variables to override the choices made by
`configure' or to help
1698 it to find libraries and programs with nonstandard names/locations.
1700 Report bugs to the package provider.
1705 if test "$ac_init_help" = "recursive"; then
1706 # If there are subdirs, report their specific --help.
1707 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1708 test -d "$ac_dir" ||
1709 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1714 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1716 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1717 # A ".." for each directory in $ac_dir_suffix.
1718 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1719 case $ac_top_builddir_sub in
1720 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1721 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1724 ac_abs_top_builddir=$ac_pwd
1725 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1726 # for backward compatibility:
1727 ac_top_builddir=$ac_top_build_prefix
1730 .) # We are building in place.
1732 ac_top_srcdir=$ac_top_builddir_sub
1733 ac_abs_top_srcdir=$ac_pwd ;;
1734 [\\/]* | ?:[\\/]* ) # Absolute name.
1735 ac_srcdir=$srcdir$ac_dir_suffix;
1736 ac_top_srcdir=$srcdir
1737 ac_abs_top_srcdir=$srcdir ;;
1739 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1740 ac_top_srcdir=$ac_top_build_prefix$srcdir
1741 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1743 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1745 cd "$ac_dir" || { ac_status=$?; continue; }
1746 # Check for guested configure.
1747 if test -f "$ac_srcdir/configure.gnu"; then
1749 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1750 elif test -f "$ac_srcdir/configure"; then
1752 $SHELL "$ac_srcdir/configure" --help=recursive
1754 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1756 cd "$ac_pwd" || { ac_status=$?; break; }
1760 test -n "$ac_init_help" && exit $ac_status
1761 if $ac_init_version; then
1764 generated by GNU Autoconf 2.64
1766 Copyright (C) 2009 Free Software Foundation, Inc.
1767 This configure script is free software; the Free Software Foundation
1768 gives unlimited permission to copy, distribute and modify it.
1773 ## ------------------------ ##
1774 ## Autoconf initialization. ##
1775 ## ------------------------ ##
1777 # ac_fn_c_try_compile LINENO
1778 # --------------------------
1779 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_compile ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 rm -f conftest.$ac_objext
1784 if { { ac_try="$ac_compile"
1786 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1787 *) ac_try_echo
=$ac_try;;
1789 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_compile") 2>conftest.err
1793 if test -s conftest.err
; then
1794 grep -v '^ *+' conftest.err
>conftest.er1
1795 cat conftest.er1
>&5
1796 mv -f conftest.er1 conftest.err
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && {
1800 test -z "$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1802 } && test -s conftest.
$ac_objext; then :
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.
$ac_ext >&5
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1813 } # ac_fn_c_try_compile
1815 # ac_fn_cxx_try_compile LINENO
1816 # ----------------------------
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_cxx_try_compile
()
1820 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1821 rm -f conftest.
$ac_objext
1822 if { { ac_try
="$ac_compile"
1824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_compile") 2>conftest.err
1831 if test -s conftest.err; then
1832 grep -v '^ *+' conftest.err >conftest.er1
1833 cat conftest.er1 >&5
1834 mv -f conftest.er1 conftest.err
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_cxx_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest.$ac_objext; then :
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851 } # ac_fn_cxx_try_compile
1853 # ac_fn_c_try_cpp LINENO
1854 # ----------------------
1855 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 if { { ac_try="$ac_cpp conftest.$ac_ext"
1861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1862 *) ac_try_echo
=$ac_try;;
1864 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 $as_echo "$ac_try_echo"; } >&5
1866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1868 if test -s conftest.err
; then
1869 grep -v '^ *+' conftest.err
>conftest.er1
1870 cat conftest.er1
>&5
1871 mv -f conftest.er1 conftest.err
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } >/dev
/null
&& {
1875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1876 test ! -s conftest.err
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.
$ac_ext >&5
1885 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1890 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1891 # -------------------------------------------------------
1892 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1893 # the include files in INCLUDES and setting the cache variable VAR
1895 ac_fn_c_check_header_mongrel
()
1897 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1898 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1902 $as_echo_n "(cached) " >&6
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1908 # Is the header compilable?
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1910 $as_echo_n "checking $2 usability... " >&6; }
1911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1916 if ac_fn_c_try_compile
"$LINENO"; then :
1917 ac_header_compiler
=yes
1919 ac_header_compiler
=no
1921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1923 $as_echo "$ac_header_compiler" >&6; }
1925 # Is the header present?
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1927 $as_echo_n "checking $2 presence... " >&6; }
1928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1932 if ac_fn_c_try_cpp
"$LINENO"; then :
1933 ac_header_preproc
=yes
1935 ac_header_preproc
=no
1937 rm -f conftest.err conftest.
$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1939 $as_echo "$ac_header_preproc" >&6; }
1941 # So? What about this header?
1942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1945 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1947 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1951 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1953 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1955 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1957 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1959 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1965 $as_echo_n "(cached) " >&6
1967 eval "$3=\$ac_header_compiler"
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1973 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1975 } # ac_fn_c_check_header_mongrel
1977 # ac_fn_c_try_run LINENO
1978 # ----------------------
1979 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1980 # that executables *can* be run.
1983 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1984 if { { ac_try
="$ac_link"
1986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1987 *) ac_try_echo=$ac_try;;
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991 (eval "$ac_link") 2>&5
1993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1995 { { case "(($ac_try" in
1996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1997 *) ac_try_echo
=$ac_try;;
1999 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_try") 2>&5
2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004 test $ac_status = 0; }; }; then :
2007 $as_echo "$as_me: program exited with status $ac_status" >&5
2008 $as_echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.
$ac_ext >&5
2011 ac_retval
=$ac_status
2013 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2014 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2019 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2020 # -------------------------------------------------------
2021 # Tests whether HEADER exists and can be compiled using the include files in
2022 # INCLUDES, setting the cache variable VAR accordingly.
2023 ac_fn_c_check_header_compile
()
2025 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027 $as_echo_n "checking for $2... " >&6; }
2028 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2029 $as_echo_n "(cached) " >&6
2031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2036 if ac_fn_c_try_compile
"$LINENO"; then :
2041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2046 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2048 } # ac_fn_c_check_header_compile
2050 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2051 # --------------------------------------------
2052 # Tries to find the compile-time value of EXPR in a program that includes
2053 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2055 ac_fn_c_compute_int
()
2057 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2058 if test "$cross_compiling" = yes; then
2059 # Depending upon the size, compute the lo and hi bounds.
2060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2066 static int test_array [1 - 2 * !(($2) >= 0)];
2073 if ac_fn_c_try_compile
"$LINENO"; then :
2076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2082 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2089 if ac_fn_c_try_compile
"$LINENO"; then :
2090 ac_hi
=$ac_mid; break
2092 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2093 if test $ac_lo -le $ac_mid; then
2097 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2108 static int test_array [1 - 2 * !(($2) < 0)];
2115 if ac_fn_c_try_compile
"$LINENO"; then :
2118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2124 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2131 if ac_fn_c_try_compile
"$LINENO"; then :
2132 ac_lo
=$ac_mid; break
2134 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2135 if test $ac_mid -le $ac_hi; then
2139 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2149 # Binary search between lo and hi bounds.
2150 while test "x$ac_lo" != "x$ac_hi"; do
2151 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2158 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2165 if ac_fn_c_try_compile
"$LINENO"; then :
2168 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2173 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2180 static long int longval () { return $2; }
2181 static unsigned long int ulongval () { return $2; }
2188 FILE *f = fopen ("conftest.val", "w");
2193 long int i = longval ();
2196 fprintf (f, "%ld", i);
2200 unsigned long int i = ulongval ();
2203 fprintf (f, "%lu", i);
2205 /* Do not output a trailing newline, as this causes \r\n confusion
2206 on some platforms. */
2207 return ferror (f) || fclose (f) != 0;
2213 if ac_fn_c_try_run
"$LINENO"; then :
2214 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2218 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2219 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2223 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2226 } # ac_fn_c_compute_int
2228 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2229 # -------------------------------------------
2230 # Tests whether TYPE exists after having included INCLUDES, setting cache
2231 # variable VAR accordingly.
2232 ac_fn_c_check_type
()
2234 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2236 $as_echo_n "checking for $2... " >&6; }
2237 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2238 $as_echo_n "(cached) " >&6
2241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2253 if ac_fn_c_try_compile
"$LINENO"; then :
2254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2266 if ac_fn_c_try_compile
"$LINENO"; then :
2271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2277 $as_echo "$ac_res" >&6; }
2278 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2280 } # ac_fn_c_check_type
2282 # ac_fn_c_find_intX_t LINENO BITS VAR
2283 # -----------------------------------
2284 # Finds a signed integer type with width BITS, setting cache variable VAR
2286 ac_fn_c_find_intX_t
()
2288 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2290 $as_echo_n "checking for int$2_t... " >&6; }
2291 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2292 $as_echo_n "(cached) " >&6
2295 for ac_type
in int
$2_t 'int' 'long int' \
2296 'long long int' 'short int' 'signed char'; do
2297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h. */
2299 $ac_includes_default
2303 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2310 if ac_fn_c_try_compile
"$LINENO"; then :
2311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2313 $ac_includes_default
2317 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2318 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2325 if ac_fn_c_try_compile
"$LINENO"; then :
2332 eval "$3=\$ac_type" ;;
2335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2339 if test "x$as_val" = x
""no
; then :
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2348 $as_echo "$ac_res" >&6; }
2349 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2351 } # ac_fn_c_find_intX_t
2353 # ac_fn_c_try_link LINENO
2354 # -----------------------
2355 # Try to link conftest.$ac_ext, and return whether this succeeded.
2358 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2359 rm -f conftest.
$ac_objext conftest
$ac_exeext
2360 if { { ac_try
="$ac_link"
2362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2363 *) ac_try_echo=$ac_try;;
2365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2366 $as_echo "$ac_try_echo"; } >&5
2367 (eval "$ac_link") 2>conftest.err
2369 if test -s conftest.err; then
2370 grep -v '^ *+' conftest.err >conftest.er1
2371 cat conftest.er1 >&5
2372 mv -f conftest.er1 conftest.err
2374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2375 test $ac_status = 0; } && {
2376 test -z "$ac_c_werror_flag" ||
2377 test ! -s conftest.err
2378 } && test -s conftest$ac_exeext && {
2379 test "$cross_compiling" = yes ||
2380 $as_test_x conftest$ac_exeext
2384 $as_echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2389 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2390 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2391 # interfere with the next link command; also delete a directory that is
2392 # left behind by Apple's compiler. We do this before executing the actions.
2393 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2394 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2397 } # ac_fn_c_try_link
2399 # ac_fn_c_find_uintX_t LINENO BITS VAR
2400 # ------------------------------------
2401 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2403 ac_fn_c_find_uintX_t ()
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2407 $as_echo_n "checking for uint$2_t... " >&6; }
2408 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2409 $as_echo_n "(cached) " >&6
2412 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2413 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2415 /* end confdefs.h. */
2416 $ac_includes_default
2420 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2427 if ac_fn_c_try_compile "$LINENO"; then :
2432 eval "$3=\$ac_type" ;;
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 if test "x$as_val" = x""no; then :
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2446 $as_echo "$ac_res" >&6; }
2447 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2449 } # ac_fn_c_find_uintX_t
2451 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2452 # ----------------------------------------------
2453 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2454 ac_fn_c_check_header_preproc ()
2456 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2458 $as_echo_n "checking for $2... " >&6; }
2459 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2460 $as_echo_n "(cached) " >&6
2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h. */
2466 if ac_fn_c_try_cpp "$LINENO"; then :
2471 rm -f conftest.err conftest.$ac_ext
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2475 $as_echo "$ac_res" >&6; }
2476 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2478 } # ac_fn_c_check_header_preproc
2480 # ac_fn_cxx_try_cpp LINENO
2481 # ------------------------
2482 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2483 ac_fn_cxx_try_cpp ()
2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2486 if { { ac_try="$ac_cpp conftest.$ac_ext"
2488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2489 *) ac_try_echo
=$ac_try;;
2491 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2492 $as_echo "$ac_try_echo"; } >&5
2493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2495 if test -s conftest.err
; then
2496 grep -v '^ *+' conftest.err
>conftest.er1
2497 cat conftest.er1
>&5
2498 mv -f conftest.er1 conftest.err
2500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2501 test $ac_status = 0; } >/dev
/null
&& {
2502 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2503 test ! -s conftest.err
2507 $as_echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.
$ac_ext >&5
2512 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2515 } # ac_fn_cxx_try_cpp
2517 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2518 # ------------------------------------------------
2519 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2520 ac_fn_cxx_check_header_preproc
()
2522 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2524 $as_echo_n "checking for $2... " >&6; }
2525 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2526 $as_echo_n "(cached) " >&6
2528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h. */
2532 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2537 rm -f conftest.err conftest.
$ac_ext
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2541 $as_echo "$ac_res" >&6; }
2542 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2544 } # ac_fn_cxx_check_header_preproc
2546 # ac_fn_c_check_func LINENO FUNC VAR
2547 # ----------------------------------
2548 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2549 ac_fn_c_check_func
()
2551 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2553 $as_echo_n "checking for $2... " >&6; }
2554 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2555 $as_echo_n "(cached) " >&6
2557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2558 /* end confdefs.h. */
2559 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2561 #define $2 innocuous_$2
2563 /* System header to define __stub macros and hopefully few prototypes,
2564 which can conflict with char $2 (); below.
2565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2566 <limits.h> exists even on freestanding compilers. */
2569 # include <limits.h>
2571 # include <assert.h>
2576 /* Override any GCC internal prototype to avoid an error.
2577 Use char because int might match the return type of a GCC
2578 builtin and then its argument prototype would still apply. */
2583 /* The GNU C library defines this for functions which it implements
2584 to always fail with ENOSYS. Some functions are actually named
2585 something starting with __ and the normal name is an alias. */
2586 #if defined __stub_$2 || defined __stub___$2
2598 if ac_fn_c_try_link
"$LINENO"; then :
2603 rm -f core conftest.err conftest.
$ac_objext \
2604 conftest
$ac_exeext conftest.
$ac_ext
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2608 $as_echo "$ac_res" >&6; }
2609 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2611 } # ac_fn_c_check_func
2613 # ac_fn_cxx_try_link LINENO
2614 # -------------------------
2615 # Try to link conftest.$ac_ext, and return whether this succeeded.
2616 ac_fn_cxx_try_link
()
2618 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2619 rm -f conftest.
$ac_objext conftest
$ac_exeext
2620 if { { ac_try
="$ac_link"
2622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2623 *) ac_try_echo=$ac_try;;
2625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2626 $as_echo "$ac_try_echo"; } >&5
2627 (eval "$ac_link") 2>conftest.err
2629 if test -s conftest.err; then
2630 grep -v '^ *+' conftest.err >conftest.er1
2631 cat conftest.er1 >&5
2632 mv -f conftest.er1 conftest.err
2634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2635 test $ac_status = 0; } && {
2636 test -z "$ac_cxx_werror_flag" ||
2637 test ! -s conftest.err
2638 } && test -s conftest$ac_exeext && {
2639 test "$cross_compiling" = yes ||
2640 $as_test_x conftest$ac_exeext
2644 $as_echo "$as_me: failed program was:" >&5
2645 sed 's/^/| /' conftest.$ac_ext >&5
2649 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2650 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2651 # interfere with the next link command; also delete a directory that is
2652 # left behind by Apple's compiler. We do this before executing the actions.
2653 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2654 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2657 } # ac_fn_cxx_try_link
2658 cat >config.log <<_ACEOF
2659 This file contains any messages produced by compilers while
2660 running configure, to aid debugging if configure makes a mistake.
2662 It was created by $as_me, which was
2663 generated by GNU Autoconf 2.64. Invocation command line was
2675 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2676 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2677 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2678 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2679 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2681 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2682 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2684 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2685 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2686 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2687 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2688 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2689 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2690 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 test -z "$as_dir" && as_dir=.
2699 $as_echo "PATH: $as_dir"
2715 # Keep a trace of the command line.
2716 # Strip out --no-create and --no-recursion so they do not pile up.
2717 # Strip out --silent because we don't want to record it for future runs.
2718 # Also quote any args containing shell meta-characters.
2719 # Make two passes to allow for proper duplicate-argument suppression.
2723 ac_must_keep_next=false
2729 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2730 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2731 | -silent | --silent | --silen | --sile | --sil)
2734 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2737 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2739 as_fn_append ac_configure_args1 " '$ac_arg'"
2740 if test $ac_must_keep_next = true; then
2741 ac_must_keep_next=false # Got value, back to normal.
2744 *=* | --config-cache | -C | -disable-* | --disable-* \
2745 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2746 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2747 | -with-* | --with-* | -without-* | --without-* | --x)
2748 case "$ac_configure_args0 " in
2749 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2752 -* ) ac_must_keep_next=true ;;
2755 as_fn_append ac_configure_args " '$ac_arg'"
2760 { ac_configure_args0=; unset ac_configure_args0;}
2761 { ac_configure_args1=; unset ac_configure_args1;}
2763 # When interrupted or exit'd, cleanup temporary files, and complete
2764 # config.log. We remove comments because anyway the quotes in there
2765 # would cause problems or look ugly.
2766 # WARNING: Use '\'' to represent an apostrophe within the trap.
2767 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2768 trap 'exit_status=$?
2769 # Save into config.log some information that might help in debugging.
2774 ## ---------------- ##
2775 ## Cache variables. ##
2776 ## ---------------- ##
2779 # The following way of writing the cache mishandles newlines in values,
2781 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2782 eval ac_val=\$$ac_var
2786 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2787 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2790 _ | IFS | as_nl) ;; #(
2791 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2792 *) { eval $ac_var=; unset $ac_var;} ;;
2797 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2798 *${as_nl}ac_space=\ *)
2800 "s/'\''/'\''\\\\'\'''\''/g;
2801 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2804 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2812 ## ----------------- ##
2813 ## Output variables. ##
2814 ## ----------------- ##
2817 for ac_var in $ac_subst_vars
2819 eval ac_val=\$$ac_var
2821 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2823 $as_echo "$ac_var='\''$ac_val'\''"
2827 if test -n "$ac_subst_files"; then
2829 ## ------------------- ##
2830 ## File substitutions. ##
2831 ## ------------------- ##
2834 for ac_var in $ac_subst_files
2836 eval ac_val=\$$ac_var
2838 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2840 $as_echo "$ac_var='\''$ac_val'\''"
2845 if test -s confdefs.h; then
2855 test "$ac_signal" != 0 &&
2856 $as_echo "$as_me: caught signal $ac_signal"
2857 $as_echo "$as_me: exit $exit_status"
2859 rm -f core *.core core.conftest.* &&
2860 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2863 for ac_signal in 1 2 13 15; do
2864 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2868 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2869 rm -f -r conftest* confdefs.h
2871 $as_echo "/* confdefs.h */" > confdefs.h
2873 # Predefined preprocessor variables.
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE_NAME "$PACKAGE_NAME"
2879 cat >>confdefs.h <<_ACEOF
2880 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2883 cat >>confdefs.h <<_ACEOF
2884 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2887 cat >>confdefs.h <<_ACEOF
2888 #define PACKAGE_STRING "$PACKAGE_STRING"
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2895 cat >>confdefs.h <<_ACEOF
2896 #define PACKAGE_URL "$PACKAGE_URL"
2900 # Let the site file select an alternate cache file if it wants to.
2901 # Prefer an explicitly selected file to automatically selected ones.
2904 if test -n "$CONFIG_SITE"; then
2905 ac_site_file1=$CONFIG_SITE
2906 elif test "x$prefix" != xNONE; then
2907 ac_site_file1=$prefix/share/config.site
2908 ac_site_file2=$prefix/etc/config.site
2910 ac_site_file1=$ac_default_prefix/share/config.site
2911 ac_site_file2=$ac_default_prefix/etc/config.site
2913 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2915 test "x$ac_site_file" = xNONE && continue
2916 if test -r "$ac_site_file"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2918 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2919 sed 's/^/| /' "$ac_site_file" >&5
2924 if test -r "$cache_file"; then
2925 # Some versions of bash will fail to source /dev/null (special
2926 # files actually), so we avoid doing that.
2927 if test -f "$cache_file"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2929 $as_echo "$as_me: loading cache $cache_file" >&6;}
2931 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2932 *) . "./$cache_file";;
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2937 $as_echo "$as_me: creating cache $cache_file" >&6;}
2941 # Check that the precious variables saved in the cache have kept the same
2943 ac_cache_corrupted=false
2944 for ac_var in $ac_precious_vars; do
2945 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2946 eval ac_new_set=\$ac_env_${ac_var}_set
2947 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2948 eval ac_new_val=\$ac_env_${ac_var}_value
2949 case $ac_old_set,$ac_new_set in
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2952 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2953 ac_cache_corrupted=: ;;
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2956 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2957 ac_cache_corrupted=: ;;
2960 if test "x$ac_old_val" != "x$ac_new_val"; then
2961 # differences in whitespace do not lead to failure.
2962 ac_old_val_w=`echo x
$ac_old_val`
2963 ac_new_val_w=`echo x
$ac_new_val`
2964 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2966 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2967 ac_cache_corrupted=:
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2970 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2971 eval $ac_var=\$ac_old_val
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2974 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2976 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2979 # Pass precious variables to config.status.
2980 if test "$ac_new_set" = set; then
2982 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2983 *) ac_arg=$ac_var=$ac_new_val ;;
2985 case " $ac_configure_args " in
2986 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2987 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2991 if $ac_cache_corrupted; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2995 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2996 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2998 ## -------------------- ##
2999 ## Main body of script. ##
3000 ## -------------------- ##
3003 ac_cpp='$CPP $CPPFLAGS'
3004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3016 gcc_version=`cat $srcdir/BASE-VER
`
3018 # Determine the host, build, and target systems
3020 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3021 for ac_t in install-sh install.sh shtool; do
3022 if test -f "$ac_dir/$ac_t"; then
3024 ac_install_sh="$ac_aux_dir/$ac_t -c"
3029 if test -z "$ac_aux_dir"; then
3030 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3033 # These three variables are undocumented and unsupported,
3034 # and are intended to be withdrawn in a future Autoconf release.
3035 # They can cause serious problems if a builder's source tree is in a directory
3036 # whose full name contains unusual characters.
3037 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3038 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3039 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3042 # Make sure we can run config.sub.
3043 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3044 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3047 $as_echo_n "checking build system type... " >&6; }
3048 if test "${ac_cv_build+set}" = set; then :
3049 $as_echo_n "(cached) " >&6
3051 ac_build_alias=$build_alias
3052 test "x$ac_build_alias" = x &&
3053 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3054 test "x$ac_build_alias" = x &&
3055 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3056 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3057 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3061 $as_echo "$ac_cv_build" >&6; }
3062 case $ac_cv_build in
3064 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3067 ac_save_IFS=$IFS; IFS='-'
3073 # Remember, the first character of IFS is used to create $*,
3074 # except with old shells:
3077 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3081 $as_echo_n "checking host system type... " >&6; }
3082 if test "${ac_cv_host+set}" = set; then :
3083 $as_echo_n "(cached) " >&6
3085 if test "x$host_alias" = x; then
3086 ac_cv_host=$ac_cv_build
3088 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3089 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3094 $as_echo "$ac_cv_host" >&6; }
3097 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3100 ac_save_IFS=$IFS; IFS='-'
3106 # Remember, the first character of IFS is used to create $*,
3107 # except with old shells:
3110 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3114 $as_echo_n "checking target system type... " >&6; }
3115 if test "${ac_cv_target+set}" = set; then :
3116 $as_echo_n "(cached) " >&6
3118 if test "x$target_alias" = x; then
3119 ac_cv_target=$ac_cv_host
3121 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3122 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3127 $as_echo "$ac_cv_target" >&6; }
3128 case $ac_cv_target in
3130 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3132 target=$ac_cv_target
3133 ac_save_IFS=$IFS; IFS='-'
3139 # Remember, the first character of IFS is used to create $*,
3140 # except with old shells:
3143 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3146 # The aliases save the names the user supplied, while $host etc.
3147 # will get canonicalized.
3148 test -n "$target_alias" &&
3149 test "$program_prefix$program_suffix$program_transform_name" = \
3151 program_prefix=${target_alias}-
3153 # Determine the noncanonical target name, for directory use.
3154 case ${build_alias} in
3155 "") build_noncanonical=${build} ;;
3156 *) build_noncanonical=${build_alias} ;;
3159 case ${host_alias} in
3160 "") host_noncanonical=${build_noncanonical} ;;
3161 *) host_noncanonical=${host_alias} ;;
3164 case ${target_alias} in
3165 "") target_noncanonical=${host_noncanonical} ;;
3166 *) target_noncanonical=${target_alias} ;;
3172 # Determine the target- and build-specific subdirectories
3174 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3175 # have matching libraries, they should use host libraries: Makefile.tpl
3176 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3177 # However, they still use the build modules, because the corresponding
3178 # host modules (e.g. bison) are only built for the host when bootstrap
3180 # - build_subdir is where we find build modules, and never changes.
3181 # - build_libsubdir is where we find build libraries, and can be overridden.
3183 # Prefix 'build-' so this never conflicts with target_subdir.
3184 build_subdir="build-${build_noncanonical}"
3186 # Check whether --with-build-libsubdir was given.
3187 if test "${with_build_libsubdir+set}" = set; then :
3188 withval=$with_build_libsubdir; build_libsubdir="$withval"
3190 build_libsubdir="$build_subdir"
3193 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3194 if ( test $srcdir = . && test -d gcc ) \
3195 || test -d $srcdir/../host-${host_noncanonical}; then
3196 host_subdir="host-${host_noncanonical}"
3201 target_subdir=${target_noncanonical}
3204 # Set program_transform_name
3205 test "$program_prefix" != NONE &&
3206 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3207 # Use a double $ so make ignores it.
3208 test "$program_suffix" != NONE &&
3209 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3210 # Double any \ or $.
3211 # By default was `s
,x
,x
', remove it if useless.
3212 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3213 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3216 # Check for bogus environment variables.
3217 # Test if LIBRARY_PATH contains the notation for the current directory
3218 # since this would lead to problems installing/building glibc.
3219 # LIBRARY_PATH contains the current directory if one of the following
3221 # - one of the terminals (":" and ";") is the first or last sign
3222 # - two terminals occur directly after each other
3223 # - the path contains an element with a dot in it
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3225 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3226 case ${LIBRARY_PATH} in
3227 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3228 library_path_setting="contains current directory"
3231 library_path_setting="ok"
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3235 $as_echo "$library_path_setting" >&6; }
3236 if test "$library_path_setting" != "ok"; then
3238 *** LIBRARY_PATH shouldn't contain the current directory when
3239 *** building gcc. Please change the environment variable
3240 *** and run configure again.
" "$LINENO" 5
3243 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3244 # since this would lead to problems installing/building glibc.
3245 # GCC_EXEC_PREFIX contains the current directory if one of the following
3247 # - one of the terminals (":" and ";") is the first or last sign
3248 # - two terminals occur directly after each other
3249 # - the path contains an element with a dot in it
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3251 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3252 case ${GCC_EXEC_PREFIX} in
3253 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3254 gcc_exec_prefix_setting="contains current directory
"
3257 gcc_exec_prefix_setting="ok
"
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3261 $as_echo "$gcc_exec_prefix_setting" >&6; }
3262 if test "$gcc_exec_prefix_setting" != "ok
"; then
3264 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3265 *** building gcc. Please change the environment variable
3266 *** and run configure again." "$LINENO" 5
3273 # Specify the local prefix
3276 # Check whether --with-local-prefix was given.
3277 if test "${with_local_prefix+set}" = set; then :
3278 withval=$with_local_prefix; case "${withval}" in
3279 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3281 *) local_prefix=$with_local_prefix ;;
3286 # Default local prefix if it is empty
3287 if test x$local_prefix = x; then
3288 local_prefix=/usr/local
3291 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3292 # passed in by the toplevel make and thus we'd get different behavior
3293 # depending on where we built the sources.
3294 gcc_gxx_include_dir
=
3295 # Specify the g++ header file directory
3297 # Check whether --with-gxx-include-dir was given.
3298 if test "${with_gxx_include_dir+set}" = set; then :
3299 withval
=$with_gxx_include_dir; case "${withval}" in
3300 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3302 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3307 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3308 if test x
${gcc_gxx_include_dir} = x
; then
3309 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3310 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3312 libstdcxx_incdir
='include/c++/$(version)'
3313 if test x
$host != x
$target; then
3314 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3316 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3320 gcc_gxx_include_dir_add_sysroot
=0
3321 if test "${with_sysroot+set}" = set; then
3322 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3323 if test "${gcc_gxx_without_sysroot}"; then
3324 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3325 gcc_gxx_include_dir_add_sysroot
=1
3330 # Check whether --with-cpp_install_dir was given.
3331 if test "${with_cpp_install_dir+set}" = set; then :
3332 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3333 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3334 elif test x
$withval != xno
; then
3335 cpp_install_dir
=$withval
3340 # We would like to our source tree to be readonly. However when releases or
3341 # pre-releases are generated, the flex/bison generated files as well as the
3342 # various formats of manuals need to be included along with the rest of the
3343 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3347 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3348 # Check whether --enable-generated-files-in-srcdir was given.
3349 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3350 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3352 generated_files_in_srcdir
=no
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3357 $as_echo "$generated_files_in_srcdir" >&6; }
3359 if test "$generated_files_in_srcdir" = "yes"; then
3366 # -------------------
3367 # Find default linker
3368 # -------------------
3372 # Check whether --with-gnu-ld was given.
3373 if test "${with_gnu_ld+set}" = set; then :
3374 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3380 # With pre-defined ld
3382 # Check whether --with-ld was given.
3383 if test "${with_ld+set}" = set; then :
3384 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3387 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3388 if test ! -x "$DEFAULT_LINKER"; then
3389 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3390 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3394 cat >>confdefs.h
<<_ACEOF
3395 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3401 $as_echo_n "checking whether a default linker was specified... " >&6; }
3402 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3403 if test x
"$gnu_ld_flag" = x
"no"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3405 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3408 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3415 # With demangler in GNU ld
3417 # Check whether --with-demangler-in-ld was given.
3418 if test "${with_demangler_in_ld+set}" = set; then :
3419 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3425 # ----------------------
3426 # Find default assembler
3427 # ----------------------
3431 # Check whether --with-gnu-as was given.
3432 if test "${with_gnu_as+set}" = set; then :
3433 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3440 # Check whether --with-as was given.
3441 if test "${with_as+set}" = set; then :
3442 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3445 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3446 if test ! -x "$DEFAULT_ASSEMBLER"; then
3447 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3448 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3452 cat >>confdefs.h
<<_ACEOF
3453 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3459 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3460 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3461 if test x
"$gas_flag" = x
"no"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3463 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3466 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3477 # If a non-executable a.out is present (e.g. created by GNU as above even if
3478 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3479 # file, even when creating an executable, so an execution test fails.
3480 # Remove possible default executable files to avoid this.
3482 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3483 # Autoconf includes it.
3484 rm -f a.out a.exe b.out
3486 # Find the native compiler
3488 ac_cpp
='$CPP $CPPFLAGS'
3489 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3492 if test -n "$ac_tool_prefix"; then
3493 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3494 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if test "${ac_cv_prog_CC+set}" = set; then :
3498 $as_echo_n "(cached) " >&6
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC
="$CC" # Let the user override the test.
3503 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3507 test -z "$as_dir" && as_dir
=.
3508 for ac_exec_ext
in '' $ac_executable_extensions; do
3509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 if test -n "$CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3523 $as_echo "$CC" >&6; }
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3531 if test -z "$ac_cv_prog_CC"; then
3533 # Extract the first word of "gcc", so it can be a program name with args.
3534 set dummy gcc
; ac_word
=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3538 $as_echo_n "(cached) " >&6
3540 if test -n "$ac_ct_CC"; then
3541 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3547 test -z "$as_dir" && as_dir
=.
3548 for ac_exec_ext
in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_ac_ct_CC
="gcc"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3561 if test -n "$ac_ct_CC"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3563 $as_echo "$ac_ct_CC" >&6; }
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3569 if test "x$ac_ct_CC" = x
; then
3572 case $cross_compiling:$ac_tool_warned in
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3576 ac_tool_warned
=yes ;;
3584 if test -z "$CC"; then
3585 if test -n "$ac_tool_prefix"; then
3586 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3587 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if test "${ac_cv_prog_CC+set}" = set; then :
3591 $as_echo_n "(cached) " >&6
3593 if test -n "$CC"; then
3594 ac_cv_prog_CC
="$CC" # Let the user override the test.
3596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3600 test -z "$as_dir" && as_dir
=.
3601 for ac_exec_ext
in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 if test -n "$CC"; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3616 $as_echo "$CC" >&6; }
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3625 if test -z "$CC"; then
3626 # Extract the first word of "cc", so it can be a program name with args.
3627 set dummy cc
; ac_word
=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if test "${ac_cv_prog_CC+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3633 if test -n "$CC"; then
3634 ac_cv_prog_CC
="$CC" # Let the user override the test.
3637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3641 test -z "$as_dir" && as_dir
=.
3642 for ac_exec_ext
in '' $ac_executable_extensions; do
3643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3645 ac_prog_rejected
=yes
3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 if test $ac_prog_rejected = yes; then
3657 # We found a bogon in the path, so make sure we never use it.
3658 set dummy
$ac_cv_prog_CC
3660 if test $# != 0; then
3661 # We chose a different compiler from the bogus one.
3662 # However, it has the same basename, so the bogon will be chosen
3663 # first if we set CC to just the basename; use the full file name.
3665 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3671 if test -n "$CC"; then
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3673 $as_echo "$CC" >&6; }
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676 $as_echo "no" >&6; }
3681 if test -z "$CC"; then
3682 if test -n "$ac_tool_prefix"; then
3683 for ac_prog
in cl.exe
3685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3686 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 $as_echo_n "checking for $ac_word... " >&6; }
3689 if test "${ac_cv_prog_CC+set}" = set; then :
3690 $as_echo_n "(cached) " >&6
3692 if test -n "$CC"; then
3693 ac_cv_prog_CC
="$CC" # Let the user override the test.
3695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3699 test -z "$as_dir" && as_dir
=.
3700 for ac_exec_ext
in '' $ac_executable_extensions; do
3701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3702 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 if test -n "$CC"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715 $as_echo "$CC" >&6; }
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3722 test -n "$CC" && break
3725 if test -z "$CC"; then
3727 for ac_prog
in cl.exe
3729 # Extract the first word of "$ac_prog", so it can be a program name with args.
3730 set dummy
$ac_prog; ac_word
=$2
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3732 $as_echo_n "checking for $ac_word... " >&6; }
3733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3734 $as_echo_n "(cached) " >&6
3736 if test -n "$ac_ct_CC"; then
3737 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3743 test -z "$as_dir" && as_dir
=.
3744 for ac_exec_ext
in '' $ac_executable_extensions; do
3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3746 ac_cv_prog_ac_ct_CC
="$ac_prog"
3747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3756 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3757 if test -n "$ac_ct_CC"; then
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3759 $as_echo "$ac_ct_CC" >&6; }
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 $as_echo "no" >&6; }
3766 test -n "$ac_ct_CC" && break
3769 if test "x$ac_ct_CC" = x
; then
3772 case $cross_compiling:$ac_tool_warned in
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3776 ac_tool_warned
=yes ;;
3785 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787 as_fn_error
"no acceptable C compiler found in \$PATH
3788 See \`config.log' for more details." "$LINENO" 5; }
3790 # Provide some information about the compiler.
3791 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3794 for ac_option
in --version -v -V -qversion; do
3795 { { ac_try
="$ac_compiler $ac_option >&5"
3797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3804 if test -s conftest.err; then
3806 ... rest of stderr output deleted ...
3807 10q' conftest.err >conftest.er1
3808 cat conftest.er1 >&5
3809 rm -f conftest.er1 conftest.err
3811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812 test $ac_status = 0; }
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3826 ac_clean_files_save=$ac_clean_files
3827 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3828 # Try to create an executable without -o first, disregard a.out.
3829 # It will help us diagnose broken compilers, and finding out an intuition
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3832 $as_echo_n "checking for C compiler default output file name... " >&6; }
3833 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3835 # The possible output files:
3836 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3839 for ac_file in $ac_files
3842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3843 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3848 if { { ac_try="$ac_link_default"
3850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3851 *) ac_try_echo
=$ac_try;;
3853 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3854 $as_echo "$ac_try_echo"; } >&5
3855 (eval "$ac_link_default") 2>&5
3857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3858 test $ac_status = 0; }; then :
3859 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3860 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3861 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3862 # so that the user can short-circuit this test for compilers unknown to
3864 for ac_file
in $ac_files ''
3866 test -f "$ac_file" ||
continue
3868 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3871 # We found the default executable, but exeext='' is most
3875 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3877 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3879 # We set ac_cv_exeext here because the later test for it is not
3880 # safe: cross compilers may not add the suffix if given an `-o'
3881 # argument, so we may need to know it at that point already.
3882 # Even if this section looks crufty: it has the advantage of
3889 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3895 $as_echo "$ac_file" >&6; }
3896 if test -z "$ac_file"; then :
3897 $as_echo "$as_me: failed program was:" >&5
3898 sed 's/^/| /' conftest.
$ac_ext >&5
3900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902 { as_fn_set_status
77
3903 as_fn_error
"C compiler cannot create executables
3904 See \`config.log' for more details." "$LINENO" 5; }; }
3906 ac_exeext
=$ac_cv_exeext
3908 # Check that the compiler produces executables we can run. If not, either
3909 # the compiler is broken, or we cross compile.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3911 $as_echo_n "checking whether the C compiler works... " >&6; }
3912 # If not cross compiling, check that we can run a simple program.
3913 if test "$cross_compiling" != yes; then
3914 if { ac_try
='./$ac_file'
3915 { { case "(($ac_try" in
3916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920 $as_echo "$ac_try_echo"; } >&5
3921 (eval "$ac_try") 2>&5
3923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924 test $ac_status = 0; }; }; then
3927 if test "$cross_compiling" = maybe; then
3930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932 as_fn_error "cannot run C compiled programs.
3933 If you meant to cross compile
, use \
`--host'.
3934 See \`config.log
' for more details." "$LINENO" 5; }
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3939 $as_echo "yes" >&6; }
3941 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3942 ac_clean_files=$ac_clean_files_save
3943 # Check that the compiler produces executables we can run. If not, either
3944 # the compiler is broken, or we cross compile.
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3946 $as_echo_n "checking whether we are cross compiling... " >&6; }
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3948 $as_echo "$cross_compiling" >&6; }
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3951 $as_echo_n "checking for suffix of executables... " >&6; }
3952 if { { ac_try="$ac_link"
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958 $as_echo "$ac_try_echo"; } >&5
3959 (eval "$ac_link") 2>&5
3961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962 test $ac_status = 0; }; then :
3963 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3964 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3965 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3967 for ac_file
in conftest.exe conftest conftest.
*; do
3968 test -f "$ac_file" ||
continue
3970 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3971 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3980 See \`config.log' for more details." "$LINENO" 5; }
3982 rm -f conftest
$ac_cv_exeext
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3984 $as_echo "$ac_cv_exeext" >&6; }
3986 rm -f conftest.
$ac_ext
3987 EXEEXT
=$ac_cv_exeext
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3990 $as_echo_n "checking for suffix of object files... " >&6; }
3991 if test "${ac_cv_objext+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
4005 rm -f conftest.o conftest.obj
4006 if { { ac_try
="$ac_compile"
4008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012 $as_echo "$ac_try_echo"; } >&5
4013 (eval "$ac_compile") 2>&5
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }; then :
4017 for ac_file in conftest.o conftest.obj conftest.*; do
4018 test -f "$ac_file" || continue;
4020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4021 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4026 $as_echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4031 as_fn_error "cannot compute suffix of object files
: cannot compile
4032 See \
`config.log' for more details." "$LINENO" 5; }
4034 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4037 $as_echo "$ac_cv_objext" >&6; }
4038 OBJEXT=$ac_cv_objext
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4041 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4042 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4059 if ac_fn_c_try_compile "$LINENO"; then :
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4069 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4070 if test $ac_compiler_gnu = yes; then
4075 ac_test_CFLAGS=${CFLAGS+set}
4076 ac_save_CFLAGS=$CFLAGS
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4078 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4079 if test "${ac_cv_prog_cc_g+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4097 if ac_fn_c_try_compile "$LINENO"; then :
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4112 if ac_fn_c_try_compile "$LINENO"; then :
4115 ac_c_werror_flag=$ac_save_c_werror_flag
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4128 if ac_fn_c_try_compile "$LINENO"; then :
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 ac_c_werror_flag=$ac_save_c_werror_flag
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4139 $as_echo "$ac_cv_prog_cc_g" >&6; }
4140 if test "$ac_test_CFLAGS" = set; then
4141 CFLAGS=$ac_save_CFLAGS
4142 elif test $ac_cv_prog_cc_g = yes; then
4143 if test "$GCC" = yes; then
4149 if test "$GCC" = yes; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4156 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4157 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
4160 ac_cv_prog_cc_c89=no
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4166 #include <sys/types.h>
4167 #include <sys/stat.h>
4168 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4169 struct buf { int x; };
4170 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4171 static char *e (p, i)
4177 static char *f (char * (*g) (char **, int), char **p, ...)
4182 s = g (p, va_arg (v,int));
4187 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4188 function prototypes and stuff, but not '\xHH' hex character constants.
4189 These don't provoke an error unfortunately, instead are silently treated
4190 as 'x'. The following induces an error, until -std is added to get
4191 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4192 array size at least. It's necessary to write '\x00'==0 to get something
4193 that's true only with -std. */
4194 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4196 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4197 inside strings and character constants. */
4199 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4201 int test (int i, double x);
4202 struct s1 {int (*f) (int a);};
4203 struct s2 {int (*f) (double a);};
4204 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4210 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4215 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4216 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4218 CC="$ac_save_CC $ac_arg"
4219 if ac_fn_c_try_compile "$LINENO"; then :
4220 ac_cv_prog_cc_c89=$ac_arg
4222 rm -f core conftest.err conftest.$ac_objext
4223 test "x$ac_cv_prog_cc_c89" != "xno" && break
4225 rm -f conftest.$ac_ext
4230 case "x$ac_cv_prog_cc_c89" in
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4233 $as_echo "none needed" >&6; } ;;
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4236 $as_echo "unsupported" >&6; } ;;
4238 CC="$CC $ac_cv_prog_cc_c89"
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4240 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4242 if test "x$ac_cv_prog_cc_c89" != xno; then :
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252 if test "x$CC" != xcc; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4254 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4257 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4259 set dummy $CC; ac_cc=`$as_echo "$2" |
4260 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4261 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4262 $as_echo_n "(cached) " >&6
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4275 # Make sure it works both with $CC and with simple cc.
4276 # We do the test twice because some compilers refuse to overwrite an
4277 # existing .o file with -o, though they will create one.
4278 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4280 if { { case "(($ac_try" in
4281 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4282 *) ac_try_echo
=$ac_try;;
4284 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4285 $as_echo "$ac_try_echo"; } >&5
4286 (eval "$ac_try") 2>&5
4288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4289 test $ac_status = 0; } &&
4290 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_try") 2>&5
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; };
4301 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4302 if test "x$CC" != xcc; then
4303 # Test first that cc exists at all.
4304 if { ac_try='cc -c conftest.$ac_ext >&5'
4305 { { case "(($ac_try" in
4306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4307 *) ac_try_echo
=$ac_try;;
4309 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_try") 2>&5
4313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314 test $ac_status = 0; }; }; then
4315 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4317 if { { case "(($ac_try" in
4318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4322 $as_echo "$ac_try_echo"; } >&5
4323 (eval "$ac_try") 2>&5
4325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326 test $ac_status = 0; } &&
4327 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4329 *) ac_try_echo
=$ac_try;;
4331 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4332 $as_echo "$ac_try_echo"; } >&5
4333 (eval "$ac_try") 2>&5
4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336 test $ac_status = 0; };
4341 # cc exists but doesn't like -o.
4342 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4347 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4349 rm -f core conftest
*
4352 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4354 $as_echo "yes" >&6; }
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4359 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4363 # expand $ac_aux_dir to an absolute path
4364 am_aux_dir
=`cd $ac_aux_dir && pwd`
4366 # FIXME: we rely on the cache variable name because
4367 # there is no other way.
4369 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4370 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4371 if test "$am_t" != yes; then
4372 # Losing compiler, so override with the script.
4373 # FIXME: It is wrong to rewrite CC.
4374 # But if we don't then we get into trouble of one sort or another.
4375 # A longer-term fix would be to have automake use am__CC in this case,
4376 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4377 CC
="$am_aux_dir/compile $CC"
4382 ac_cpp
='$CXXCPP $CPPFLAGS'
4383 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4386 if test -z "$CXX"; then
4387 if test -n "$CCC"; then
4390 if test -n "$ac_tool_prefix"; then
4391 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if test "${ac_cv_prog_CXX+set}" = set; then :
4398 $as_echo_n "(cached) " >&6
4400 if test -n "$CXX"; then
4401 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4407 test -z "$as_dir" && as_dir
=.
4408 for ac_exec_ext
in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 if test -n "$CXX"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4423 $as_echo "$CXX" >&6; }
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4430 test -n "$CXX" && break
4433 if test -z "$CXX"; then
4435 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4437 # Extract the first word of "$ac_prog", so it can be a program name with args.
4438 set dummy
$ac_prog; ac_word
=$2
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4444 if test -n "$ac_ct_CXX"; then
4445 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4451 test -z "$as_dir" && as_dir
=.
4452 for ac_exec_ext
in '' $ac_executable_extensions; do
4453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4465 if test -n "$ac_ct_CXX"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4467 $as_echo "$ac_ct_CXX" >&6; }
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470 $as_echo "no" >&6; }
4474 test -n "$ac_ct_CXX" && break
4477 if test "x$ac_ct_CXX" = x
; then
4480 case $cross_compiling:$ac_tool_warned in
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484 ac_tool_warned
=yes ;;
4492 # Provide some information about the compiler.
4493 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4496 for ac_option
in --version -v -V -qversion; do
4497 { { ac_try
="$ac_compiler $ac_option >&5"
4499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503 $as_echo "$ac_try_echo"; } >&5
4504 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4506 if test -s conftest.err; then
4508 ... rest of stderr output deleted ...
4509 10q' conftest.err >conftest.er1
4510 cat conftest.er1 >&5
4511 rm -f conftest.er1 conftest.err
4513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4518 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4519 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4536 if ac_fn_cxx_try_compile "$LINENO"; then :
4541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4546 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4547 if test $ac_compiler_gnu = yes; then
4552 ac_test_CXXFLAGS=${CXXFLAGS+set}
4553 ac_save_CXXFLAGS=$CXXFLAGS
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4555 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4556 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4559 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4560 ac_cxx_werror_flag=yes
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4574 if ac_fn_cxx_try_compile "$LINENO"; then :
4575 ac_cv_prog_cxx_g=yes
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4589 if ac_fn_cxx_try_compile "$LINENO"; then :
4592 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4605 if ac_fn_cxx_try_compile "$LINENO"; then :
4606 ac_cv_prog_cxx_g=yes
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4616 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4617 if test "$ac_test_CXXFLAGS" = set; then
4618 CXXFLAGS=$ac_save_CXXFLAGS
4619 elif test $ac_cv_prog_cxx_g = yes; then
4620 if test "$GXX" = yes; then
4626 if test "$GXX" = yes; then
4633 ac_cpp='$CPP $CPPFLAGS'
4634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4641 if test -n "$ac_tool_prefix"; then
4642 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4643 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4649 if test -n "$GNATBIND"; then
4650 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 GNATBIND=$ac_cv_prog_GNATBIND
4670 if test -n "$GNATBIND"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4672 $as_echo "$GNATBIND" >&6; }
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4680 if test -z "$ac_cv_prog_GNATBIND"; then
4681 ac_ct_GNATBIND=$GNATBIND
4682 # Extract the first word of "gnatbind", so it can be a program name with args.
4683 set dummy gnatbind; ac_word=$2
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 $as_echo_n "checking for $ac_word... " >&6; }
4686 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
4689 if test -n "$ac_ct_GNATBIND"; then
4690 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4699 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4710 if test -n "$ac_ct_GNATBIND"; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4712 $as_echo "$ac_ct_GNATBIND" >&6; }
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4718 if test "x$ac_ct_GNATBIND" = x; then
4721 case $cross_compiling:$ac_tool_warned in
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4725 ac_tool_warned=yes ;;
4727 GNATBIND=$ac_ct_GNATBIND
4730 GNATBIND="$ac_cv_prog_GNATBIND"
4733 if test -n "$ac_tool_prefix"; then
4734 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4735 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4741 if test -n "$GNATMAKE"; then
4742 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 GNATMAKE=$ac_cv_prog_GNATMAKE
4762 if test -n "$GNATMAKE"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4764 $as_echo "$GNATMAKE" >&6; }
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4772 if test -z "$ac_cv_prog_GNATMAKE"; then
4773 ac_ct_GNATMAKE=$GNATMAKE
4774 # Extract the first word of "gnatmake", so it can be a program name with args.
4775 set dummy gnatmake; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4781 if test -n "$ac_ct_GNATMAKE"; then
4782 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4802 if test -n "$ac_ct_GNATMAKE"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4804 $as_echo "$ac_ct_GNATMAKE" >&6; }
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4810 if test "x$ac_ct_GNATMAKE" = x; then
4813 case $cross_compiling:$ac_tool_warned in
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817 ac_tool_warned=yes ;;
4819 GNATMAKE=$ac_ct_GNATMAKE
4822 GNATMAKE="$ac_cv_prog_GNATMAKE"
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4826 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4827 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
4830 cat >conftest.adb <<EOF
4831 procedure conftest is begin null; end conftest;
4833 acx_cv_cc_gcc_supports_ada=no
4834 # There is a bug in old released versions of GCC which causes the
4835 # driver to exit successfully when the appropriate language module
4836 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4837 # Therefore we must check for the error message as well as an
4838 # unsuccessful exit.
4839 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4840 # given a .adb file, but produce no object file. So we must check
4841 # if an object file was really produced to guard against this.
4842 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4843 if test x"$errors" = x && test -f conftest.$ac_objext; then
4844 acx_cv_cc_gcc_supports_ada=yes
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4849 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4851 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4858 # autoconf is lame and doesn't give us any substitution variable for this.
4859 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4860 NO_MINUS_C_MINUS_O=yes
4862 OUTPUT_OPTION='-o $@'
4867 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4868 # optimizations to be activated explicitly by the toplevel.
4870 */prev-gcc/xgcc*) ;;
4871 *) CFLAGS=`echo "$CFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4872 CXXFLAGS=`echo "$CXXFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4877 # Determine PICFLAG for target gnatlib.
4883 # PIC is the default on some targets or must not be used.
4885 # PIC is the default on this platform
4886 # Common symbols not allowed in MH_DYLIB files
4887 PICFLAG_FOR_TARGET=-fno-common
4890 # PIC is the default.
4893 # PIC is the default for 64-bit PA HP-UX.
4895 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4897 i[34567]86-*-interix[3-9]*)
4898 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4899 # Instead, we relocate shared libraries at runtime.
4901 i[34567]86-*-nto-qnx*)
4902 # QNX uses GNU C++, but need to define -shared option too, otherwise
4904 PICFLAG_FOR_TARGET='-fPIC -shared'
4906 i[34567]86-pc-msdosdjgpp*)
4907 # DJGPP does not support shared libraries at all.
4910 # On IA64 HP-UX, PIC is the default but the pic flag
4911 # sets the default TLS model and affects inlining.
4912 PICFLAG_FOR_TARGET=-fPIC
4915 # PIC is the default.
4917 rs6000-ibm-aix* | powerpc-ibm-aix*)
4918 # All AIX code is PIC.
4921 # Some targets support both -fPIC and -fpic, but prefer the latter.
4923 i[34567]86-*-* | x86_64-*-*)
4924 PICFLAG_FOR_TARGET=-fpic
4927 PICFLAG_FOR_TARGET=-fpic
4929 # FIXME: Override -fPIC default in libgcc only?
4930 sh-*-linux* | sh[2346lbe]*-*-linux*)
4931 PICFLAG_FOR_TARGET=-fpic
4933 # FIXME: Simplify to sh*-*-netbsd*?
4934 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4935 sh64-*-netbsd* | sh64l*-*-netbsd*)
4936 PICFLAG_FOR_TARGET=-fpic
4938 # Default to -fPIC unless specified otherwise.
4940 PICFLAG_FOR_TARGET=-fPIC
4944 # If the user explicitly uses -fpic/-fPIC, keep that.
4945 case "${CFLAGS_FOR_TARGET}" in
4947 PICFLAG_FOR_TARGET=-fpic
4950 PICFLAG_FOR_TARGET=-fPIC
4956 # -------------------------
4957 # Check C compiler features
4958 # -------------------------
4962 ac_cpp='$CPP $CPPFLAGS'
4963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4967 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4968 # On Suns, sometimes $CPP names a directory.
4969 if test -n "$CPP" && test -d "$CPP"; then
4972 if test -z "$CPP"; then
4973 if test "${ac_cv_prog_CPP+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4976 # Double quotes because CPP needs to be expanded
4977 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4980 for ac_c_preproc_warn_flag in '' yes
4982 # Use a header file that comes with gcc, so configuring glibc
4983 # with a fresh cross-compiler works.
4984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4985 # <limits.h> exists even on freestanding compilers.
4986 # On the NeXT, cc -E runs the code through the compiler's parser,
4987 # not just through cpp. "Syntax error" is here to catch this case.
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4991 # include <limits.h>
4993 # include <assert.h>
4997 if ac_fn_c_try_cpp "$LINENO"; then :
5000 # Broken: fails on valid input.
5003 rm -f conftest.err conftest.$ac_ext
5005 # OK, works on sane cases. Now check whether nonexistent headers
5006 # can be detected and how.
5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008 /* end confdefs.h. */
5009 #include <ac_nonexistent.h>
5011 if ac_fn_c_try_cpp "$LINENO"; then :
5012 # Broken: success on invalid input.
5015 # Passes both tests.
5019 rm -f conftest.err conftest.$ac_ext
5022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5023 rm -f conftest.err conftest.
$ac_ext
5024 if $ac_preproc_ok; then :
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5037 $as_echo "$CPP" >&6; }
5039 for ac_c_preproc_warn_flag
in '' yes
5041 # Use a header file that comes with gcc, so configuring glibc
5042 # with a fresh cross-compiler works.
5043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5044 # <limits.h> exists even on freestanding compilers.
5045 # On the NeXT, cc -E runs the code through the compiler's parser,
5046 # not just through cpp. "Syntax error" is here to catch this case.
5047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5050 # include <limits.h>
5052 # include <assert.h>
5056 if ac_fn_c_try_cpp
"$LINENO"; then :
5059 # Broken: fails on valid input.
5062 rm -f conftest.err conftest.
$ac_ext
5064 # OK, works on sane cases. Now check whether nonexistent headers
5065 # can be detected and how.
5066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5067 /* end confdefs.h. */
5068 #include <ac_nonexistent.h>
5070 if ac_fn_c_try_cpp
"$LINENO"; then :
5071 # Broken: success on invalid input.
5074 # Passes both tests.
5078 rm -f conftest.err conftest.
$ac_ext
5081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5082 rm -f conftest.err conftest.
$ac_ext
5083 if $ac_preproc_ok; then :
5086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5088 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5089 See \`config.log' for more details." "$LINENO" 5; }
5093 ac_cpp
='$CPP $CPPFLAGS'
5094 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5100 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5101 if test "${ac_cv_path_GREP+set}" = set; then :
5102 $as_echo_n "(cached) " >&6
5104 if test -z "$GREP"; then
5105 ac_path_GREP_found
=false
5106 # Loop through the user's path and test for each of PROGNAME-LIST
5107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5108 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5111 test -z "$as_dir" && as_dir
=.
5112 for ac_prog
in grep ggrep
; do
5113 for ac_exec_ext
in '' $ac_executable_extensions; do
5114 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5115 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5116 # Check for GNU ac_path_GREP and select it if it is found.
5117 # Check for GNU $ac_path_GREP
5118 case `"$ac_path_GREP" --version 2>&1` in
5120 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5123 $as_echo_n 0123456789 >"conftest.in"
5126 cat "conftest.in" "conftest.in" >"conftest.tmp"
5127 mv "conftest.tmp" "conftest.in"
5128 cp "conftest.in" "conftest.nl"
5129 $as_echo 'GREP' >> "conftest.nl"
5130 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5131 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5132 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5133 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5134 # Best one so far, save it but keep looking for a better one
5135 ac_cv_path_GREP
="$ac_path_GREP"
5136 ac_path_GREP_max
=$ac_count
5138 # 10*(2^10) chars as input seems more than enough
5139 test $ac_count -gt 10 && break
5141 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5144 $ac_path_GREP_found && break 3
5149 if test -z "$ac_cv_path_GREP"; then
5150 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5153 ac_cv_path_GREP
=$GREP
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5158 $as_echo "$ac_cv_path_GREP" >&6; }
5159 GREP
="$ac_cv_path_GREP"
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5163 $as_echo_n "checking for egrep... " >&6; }
5164 if test "${ac_cv_path_EGREP+set}" = set; then :
5165 $as_echo_n "(cached) " >&6
5167 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5168 then ac_cv_path_EGREP
="$GREP -E"
5170 if test -z "$EGREP"; then
5171 ac_path_EGREP_found
=false
5172 # Loop through the user's path and test for each of PROGNAME-LIST
5173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5174 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5177 test -z "$as_dir" && as_dir
=.
5178 for ac_prog
in egrep; do
5179 for ac_exec_ext
in '' $ac_executable_extensions; do
5180 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5181 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5182 # Check for GNU ac_path_EGREP and select it if it is found.
5183 # Check for GNU $ac_path_EGREP
5184 case `"$ac_path_EGREP" --version 2>&1` in
5186 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5189 $as_echo_n 0123456789 >"conftest.in"
5192 cat "conftest.in" "conftest.in" >"conftest.tmp"
5193 mv "conftest.tmp" "conftest.in"
5194 cp "conftest.in" "conftest.nl"
5195 $as_echo 'EGREP' >> "conftest.nl"
5196 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5197 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5198 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5199 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5200 # Best one so far, save it but keep looking for a better one
5201 ac_cv_path_EGREP
="$ac_path_EGREP"
5202 ac_path_EGREP_max
=$ac_count
5204 # 10*(2^10) chars as input seems more than enough
5205 test $ac_count -gt 10 && break
5207 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5210 $ac_path_EGREP_found && break 3
5215 if test -z "$ac_cv_path_EGREP"; then
5216 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5219 ac_cv_path_EGREP
=$EGREP
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5225 $as_echo "$ac_cv_path_EGREP" >&6; }
5226 EGREP
="$ac_cv_path_EGREP"
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5230 $as_echo_n "checking for ANSI C header files... " >&6; }
5231 if test "${ac_cv_header_stdc+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5249 if ac_fn_c_try_compile
"$LINENO"; then :
5250 ac_cv_header_stdc
=yes
5252 ac_cv_header_stdc
=no
5254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5256 if test $ac_cv_header_stdc = yes; then
5257 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5264 $EGREP "memchr" >/dev
/null
2>&1; then :
5267 ac_cv_header_stdc
=no
5273 if test $ac_cv_header_stdc = yes; then
5274 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5281 $EGREP "free" >/dev
/null
2>&1; then :
5284 ac_cv_header_stdc
=no
5290 if test $ac_cv_header_stdc = yes; then
5291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5292 if test "$cross_compiling" = yes; then :
5295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5299 #if ((' ' & 0x0FF) == 0x020)
5300 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5301 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5303 # define ISLOWER(c) \
5304 (('a' <= (c) && (c) <= 'i') \
5305 || ('j' <= (c) && (c) <= 'r') \
5306 || ('s' <= (c) && (c) <= 'z'))
5307 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5310 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5315 for (i = 0; i < 256; i++)
5316 if (XOR (islower (i), ISLOWER (i))
5317 || toupper (i) != TOUPPER (i))
5322 if ac_fn_c_try_run
"$LINENO"; then :
5325 ac_cv_header_stdc
=no
5327 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5328 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5334 $as_echo "$ac_cv_header_stdc" >&6; }
5335 if test $ac_cv_header_stdc = yes; then
5337 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5341 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5342 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5343 inttypes.h stdint.h unistd.h
5345 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5346 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5348 eval as_val
=\$
$as_ac_Header
5349 if test "x$as_val" = x
""yes; then :
5350 cat >>confdefs.h
<<_ACEOF
5351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5360 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5361 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5368 if test "$MINIX" = yes; then
5370 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5373 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5376 $as_echo "#define _MINIX 1" >>confdefs.h
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5382 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5383 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5389 # define __EXTENSIONS__ 1
5390 $ac_includes_default
5399 if ac_fn_c_try_compile
"$LINENO"; then :
5400 ac_cv_safe_to_define___extensions__
=yes
5402 ac_cv_safe_to_define___extensions__
=no
5404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5407 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5408 test $ac_cv_safe_to_define___extensions__ = yes &&
5409 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5411 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5413 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5415 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5417 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5421 ac_cpp
='$CPP $CPPFLAGS'
5422 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5423 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5424 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5426 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5427 # On Suns, sometimes $CPP names a directory.
5428 if test -n "$CPP" && test -d "$CPP"; then
5431 if test -z "$CPP"; then
5432 if test "${ac_cv_prog_CPP+set}" = set; then :
5433 $as_echo_n "(cached) " >&6
5435 # Double quotes because CPP needs to be expanded
5436 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5439 for ac_c_preproc_warn_flag
in '' yes
5441 # Use a header file that comes with gcc, so configuring glibc
5442 # with a fresh cross-compiler works.
5443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5444 # <limits.h> exists even on freestanding compilers.
5445 # On the NeXT, cc -E runs the code through the compiler's parser,
5446 # not just through cpp. "Syntax error" is here to catch this case.
5447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5450 # include <limits.h>
5452 # include <assert.h>
5456 if ac_fn_c_try_cpp
"$LINENO"; then :
5459 # Broken: fails on valid input.
5462 rm -f conftest.err conftest.
$ac_ext
5464 # OK, works on sane cases. Now check whether nonexistent headers
5465 # can be detected and how.
5466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5468 #include <ac_nonexistent.h>
5470 if ac_fn_c_try_cpp
"$LINENO"; then :
5471 # Broken: success on invalid input.
5474 # Passes both tests.
5478 rm -f conftest.err conftest.
$ac_ext
5481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5482 rm -f conftest.err conftest.
$ac_ext
5483 if $ac_preproc_ok; then :
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5496 $as_echo "$CPP" >&6; }
5498 for ac_c_preproc_warn_flag
in '' yes
5500 # Use a header file that comes with gcc, so configuring glibc
5501 # with a fresh cross-compiler works.
5502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5503 # <limits.h> exists even on freestanding compilers.
5504 # On the NeXT, cc -E runs the code through the compiler's parser,
5505 # not just through cpp. "Syntax error" is here to catch this case.
5506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5509 # include <limits.h>
5511 # include <assert.h>
5515 if ac_fn_c_try_cpp
"$LINENO"; then :
5518 # Broken: fails on valid input.
5521 rm -f conftest.err conftest.
$ac_ext
5523 # OK, works on sane cases. Now check whether nonexistent headers
5524 # can be detected and how.
5525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5527 #include <ac_nonexistent.h>
5529 if ac_fn_c_try_cpp
"$LINENO"; then :
5530 # Broken: success on invalid input.
5533 # Passes both tests.
5537 rm -f conftest.err conftest.
$ac_ext
5540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5541 rm -f conftest.err conftest.
$ac_ext
5542 if $ac_preproc_ok; then :
5545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5547 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5548 See \`config.log' for more details." "$LINENO" 5; }
5552 ac_cpp
='$CPP $CPPFLAGS'
5553 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5554 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5555 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5558 $as_echo_n "checking for inline... " >&6; }
5559 if test "${ac_cv_c_inline+set}" = set; then :
5560 $as_echo_n "(cached) " >&6
5563 for ac_kw
in inline __inline__ __inline
; do
5564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5568 static $ac_kw foo_t static_foo () {return 0; }
5569 $ac_kw foo_t foo () {return 0; }
5573 if ac_fn_c_try_compile
"$LINENO"; then :
5574 ac_cv_c_inline
=$ac_kw
5576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5577 test "$ac_cv_c_inline" != no
&& break
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5582 $as_echo "$ac_cv_c_inline" >&6; }
5584 case $ac_cv_c_inline in
5587 case $ac_cv_c_inline in
5589 *) ac_val
=$ac_cv_c_inline;;
5591 cat >>confdefs.h
<<_ACEOF
5593 #define inline $ac_val
5600 # Check whether --enable-largefile was given.
5601 if test "${enable_largefile+set}" = set; then :
5602 enableval
=$enable_largefile;
5605 if test "$enable_largefile" != no
; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5608 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5609 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5610 $as_echo_n "(cached) " >&6
5612 ac_cv_sys_largefile_CC
=no
5613 if test "$GCC" != yes; then
5616 # IRIX 6.2 and later do not support large files by default,
5617 # so use the C compiler's -n32 option if that helps.
5618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620 #include <sys/types.h>
5621 /* Check that off_t can represent 2**63 - 1 correctly.
5622 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5623 since some C++ compilers masquerading as C compilers
5624 incorrectly reject 9223372036854775807. */
5625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5626 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5627 && LARGE_OFF_T % 2147483647 == 1)
5637 if ac_fn_c_try_compile
"$LINENO"; then :
5640 rm -f core conftest.err conftest.
$ac_objext
5642 if ac_fn_c_try_compile
"$LINENO"; then :
5643 ac_cv_sys_largefile_CC
=' -n32'; break
5645 rm -f core conftest.err conftest.
$ac_objext
5649 rm -f conftest.
$ac_ext
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5653 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5654 if test "$ac_cv_sys_largefile_CC" != no
; then
5655 CC
=$CC$ac_cv_sys_largefile_CC
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5659 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5660 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5661 $as_echo_n "(cached) " >&6
5664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5666 #include <sys/types.h>
5667 /* Check that off_t can represent 2**63 - 1 correctly.
5668 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5669 since some C++ compilers masquerading as C compilers
5670 incorrectly reject 9223372036854775807. */
5671 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5672 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5673 && LARGE_OFF_T % 2147483647 == 1)
5683 if ac_fn_c_try_compile
"$LINENO"; then :
5684 ac_cv_sys_file_offset_bits
=no
; break
5686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 #define _FILE_OFFSET_BITS 64
5690 #include <sys/types.h>
5691 /* Check that off_t can represent 2**63 - 1 correctly.
5692 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5693 since some C++ compilers masquerading as C compilers
5694 incorrectly reject 9223372036854775807. */
5695 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5697 && LARGE_OFF_T % 2147483647 == 1)
5707 if ac_fn_c_try_compile
"$LINENO"; then :
5708 ac_cv_sys_file_offset_bits
=64; break
5710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5711 ac_cv_sys_file_offset_bits
=unknown
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5716 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5717 case $ac_cv_sys_file_offset_bits in #(
5720 cat >>confdefs.h
<<_ACEOF
5721 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5726 if test $ac_cv_sys_file_offset_bits = unknown
; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5728 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5729 if test "${ac_cv_sys_large_files+set}" = set; then :
5730 $as_echo_n "(cached) " >&6
5733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5735 #include <sys/types.h>
5736 /* Check that off_t can represent 2**63 - 1 correctly.
5737 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5738 since some C++ compilers masquerading as C compilers
5739 incorrectly reject 9223372036854775807. */
5740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5741 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5742 && LARGE_OFF_T % 2147483647 == 1)
5752 if ac_fn_c_try_compile
"$LINENO"; then :
5753 ac_cv_sys_large_files
=no
; break
5755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5758 #define _LARGE_FILES 1
5759 #include <sys/types.h>
5760 /* Check that off_t can represent 2**63 - 1 correctly.
5761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5762 since some C++ compilers masquerading as C compilers
5763 incorrectly reject 9223372036854775807. */
5764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5766 && LARGE_OFF_T % 2147483647 == 1)
5776 if ac_fn_c_try_compile
"$LINENO"; then :
5777 ac_cv_sys_large_files
=1; break
5779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5780 ac_cv_sys_large_files
=unknown
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5785 $as_echo "$ac_cv_sys_large_files" >&6; }
5786 case $ac_cv_sys_large_files in #(
5789 cat >>confdefs.h
<<_ACEOF
5790 #define _LARGE_FILES $ac_cv_sys_large_files
5799 # sizeof(char) is 1 by definition.
5800 # The cast to long int works around a bug in the HP C Compiler
5801 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5802 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5803 # This bug is HP SR number 8606223364.
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5805 $as_echo_n "checking size of void *... " >&6; }
5806 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5807 $as_echo_n "(cached) " >&6
5809 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5812 if test "$ac_cv_type_void_p" = yes; then
5813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5815 { as_fn_set_status
77
5816 as_fn_error
"cannot compute sizeof (void *)
5817 See \`config.log' for more details." "$LINENO" 5; }; }
5819 ac_cv_sizeof_void_p
=0
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5825 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5829 cat >>confdefs.h
<<_ACEOF
5830 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5834 # The cast to long int works around a bug in the HP C Compiler
5835 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5836 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5837 # This bug is HP SR number 8606223364.
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5839 $as_echo_n "checking size of short... " >&6; }
5840 if test "${ac_cv_sizeof_short+set}" = set; then :
5841 $as_echo_n "(cached) " >&6
5843 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5846 if test "$ac_cv_type_short" = yes; then
5847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5849 { as_fn_set_status
77
5850 as_fn_error
"cannot compute sizeof (short)
5851 See \`config.log' for more details." "$LINENO" 5; }; }
5853 ac_cv_sizeof_short
=0
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5859 $as_echo "$ac_cv_sizeof_short" >&6; }
5863 cat >>confdefs.h
<<_ACEOF
5864 #define SIZEOF_SHORT $ac_cv_sizeof_short
5868 # The cast to long int works around a bug in the HP C Compiler
5869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5870 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5871 # This bug is HP SR number 8606223364.
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5873 $as_echo_n "checking size of int... " >&6; }
5874 if test "${ac_cv_sizeof_int+set}" = set; then :
5875 $as_echo_n "(cached) " >&6
5877 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5880 if test "$ac_cv_type_int" = yes; then
5881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5883 { as_fn_set_status
77
5884 as_fn_error
"cannot compute sizeof (int)
5885 See \`config.log' for more details." "$LINENO" 5; }; }
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5893 $as_echo "$ac_cv_sizeof_int" >&6; }
5897 cat >>confdefs.h
<<_ACEOF
5898 #define SIZEOF_INT $ac_cv_sizeof_int
5902 # The cast to long int works around a bug in the HP C Compiler
5903 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5904 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5905 # This bug is HP SR number 8606223364.
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5907 $as_echo_n "checking size of long... " >&6; }
5908 if test "${ac_cv_sizeof_long+set}" = set; then :
5909 $as_echo_n "(cached) " >&6
5911 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5914 if test "$ac_cv_type_long" = yes; then
5915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5917 { as_fn_set_status
77
5918 as_fn_error
"cannot compute sizeof (long)
5919 See \`config.log' for more details." "$LINENO" 5; }; }
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5927 $as_echo "$ac_cv_sizeof_long" >&6; }
5931 cat >>confdefs.h
<<_ACEOF
5932 #define SIZEOF_LONG $ac_cv_sizeof_long
5936 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5937 if test "x$ac_cv_type_long_long" = x
""yes; then :
5939 cat >>confdefs.h
<<_ACEOF
5940 #define HAVE_LONG_LONG 1
5943 # The cast to long int works around a bug in the HP C Compiler
5944 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5945 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5946 # This bug is HP SR number 8606223364.
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5948 $as_echo_n "checking size of long long... " >&6; }
5949 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5950 $as_echo_n "(cached) " >&6
5952 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5955 if test "$ac_cv_type_long_long" = yes; then
5956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5958 { as_fn_set_status
77
5959 as_fn_error
"cannot compute sizeof (long long)
5960 See \`config.log' for more details." "$LINENO" 5; }; }
5962 ac_cv_sizeof_long_long
=0
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5968 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5972 cat >>confdefs.h
<<_ACEOF
5973 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5979 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5980 if test "x$ac_cv_type___int64" = x
""yes; then :
5982 cat >>confdefs.h
<<_ACEOF
5983 #define HAVE___INT64 1
5986 # The cast to long int works around a bug in the HP C Compiler
5987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5989 # This bug is HP SR number 8606223364.
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5991 $as_echo_n "checking size of __int64... " >&6; }
5992 if test "${ac_cv_sizeof___int64+set}" = set; then :
5993 $as_echo_n "(cached) " >&6
5995 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5998 if test "$ac_cv_type___int64" = yes; then
5999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6001 { as_fn_set_status
77
6002 as_fn_error
"cannot compute sizeof (__int64)
6003 See \`config.log' for more details." "$LINENO" 5; }; }
6005 ac_cv_sizeof___int64
=0
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6011 $as_echo "$ac_cv_sizeof___int64" >&6; }
6015 cat >>confdefs.h
<<_ACEOF
6016 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6022 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6023 case $ac_cv_c_int8_t in #(
6027 cat >>confdefs.h
<<_ACEOF
6028 #define int8_t $ac_cv_c_int8_t
6033 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6034 case $ac_cv_c_int16_t in #(
6038 cat >>confdefs.h
<<_ACEOF
6039 #define int16_t $ac_cv_c_int16_t
6044 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6045 case $ac_cv_c_int32_t in #(
6049 cat >>confdefs.h
<<_ACEOF
6050 #define int32_t $ac_cv_c_int32_t
6055 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6056 case $ac_cv_c_int64_t in #(
6060 cat >>confdefs.h
<<_ACEOF
6061 #define int64_t $ac_cv_c_int64_t
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6068 $as_echo_n "checking for long long int... " >&6; }
6069 if test "${ac_cv_type_long_long_int+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6075 /* For now, do not test the preprocessor; as of 2007 there are too many
6076 implementations with broken preprocessors. Perhaps this can
6077 be revisited in 2012. In the meantime, code should not expect
6078 #if to work with literals wider than 32 bits. */
6079 /* Test literals. */
6080 long long int ll = 9223372036854775807ll;
6081 long long int nll = -9223372036854775807LL;
6082 unsigned long long int ull = 18446744073709551615ULL;
6083 /* Test constant expressions. */
6084 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6086 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6092 /* Test availability of runtime routines for shift and division. */
6093 long long int llmax = 9223372036854775807ll;
6094 unsigned long long int ullmax = 18446744073709551615ull;
6095 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6096 | (llmax / ll) | (llmax % ll)
6097 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6098 | (ullmax / ull) | (ullmax % ull));
6104 if ac_fn_c_try_link
"$LINENO"; then :
6105 if test "$cross_compiling" = yes; then :
6106 ac_cv_type_long_long_int
=yes
6108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6113 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6114 # define LLONG_MAX (HALF - 1 + HALF)
6119 long long int n = 1;
6123 long long int m = n << i;
6126 if (LLONG_MAX / 2 < m)
6134 if ac_fn_c_try_run
"$LINENO"; then :
6135 ac_cv_type_long_long_int
=yes
6137 ac_cv_type_long_long_int
=no
6139 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6140 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6144 ac_cv_type_long_long_int
=no
6146 rm -f core conftest.err conftest.
$ac_objext \
6147 conftest
$ac_exeext conftest.
$ac_ext
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6150 $as_echo "$ac_cv_type_long_long_int" >&6; }
6151 if test $ac_cv_type_long_long_int = yes; then
6153 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6159 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6160 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6162 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6165 test $ac_cv_type_long_long_int = yes \
6166 && ac_type
='long long int' \
6167 || ac_type
='long int'
6169 cat >>confdefs.h
<<_ACEOF
6170 #define intmax_t $ac_type
6177 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6178 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6180 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6183 for ac_type
in 'int' 'long int' 'long long int'; do
6184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6186 $ac_includes_default
6190 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6197 if ac_fn_c_try_compile
"$LINENO"; then :
6199 cat >>confdefs.h
<<_ACEOF
6200 #define intptr_t $ac_type
6205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6206 test -z "$ac_type" && break
6211 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6212 case $ac_cv_c_uint8_t in #(
6216 $as_echo "#define _UINT8_T 1" >>confdefs.h
6219 cat >>confdefs.h
<<_ACEOF
6220 #define uint8_t $ac_cv_c_uint8_t
6225 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6226 case $ac_cv_c_uint16_t in #(
6231 cat >>confdefs.h
<<_ACEOF
6232 #define uint16_t $ac_cv_c_uint16_t
6237 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6238 case $ac_cv_c_uint32_t in #(
6242 $as_echo "#define _UINT32_T 1" >>confdefs.h
6245 cat >>confdefs.h
<<_ACEOF
6246 #define uint32_t $ac_cv_c_uint32_t
6251 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6252 case $ac_cv_c_uint64_t in #(
6256 $as_echo "#define _UINT64_T 1" >>confdefs.h
6259 cat >>confdefs.h
<<_ACEOF
6260 #define uint64_t $ac_cv_c_uint64_t
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6267 $as_echo_n "checking for unsigned long long int... " >&6; }
6268 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6269 $as_echo_n "(cached) " >&6
6271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6274 /* For now, do not test the preprocessor; as of 2007 there are too many
6275 implementations with broken preprocessors. Perhaps this can
6276 be revisited in 2012. In the meantime, code should not expect
6277 #if to work with literals wider than 32 bits. */
6278 /* Test literals. */
6279 long long int ll = 9223372036854775807ll;
6280 long long int nll = -9223372036854775807LL;
6281 unsigned long long int ull = 18446744073709551615ULL;
6282 /* Test constant expressions. */
6283 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6285 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6291 /* Test availability of runtime routines for shift and division. */
6292 long long int llmax = 9223372036854775807ll;
6293 unsigned long long int ullmax = 18446744073709551615ull;
6294 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6295 | (llmax / ll) | (llmax % ll)
6296 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6297 | (ullmax / ull) | (ullmax % ull));
6303 if ac_fn_c_try_link
"$LINENO"; then :
6304 ac_cv_type_unsigned_long_long_int
=yes
6306 ac_cv_type_unsigned_long_long_int
=no
6308 rm -f core conftest.err conftest.
$ac_objext \
6309 conftest
$ac_exeext conftest.
$ac_ext
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6312 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6313 if test $ac_cv_type_unsigned_long_long_int = yes; then
6315 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6321 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6322 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6324 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6327 test $ac_cv_type_unsigned_long_long_int = yes \
6328 && ac_type
='unsigned long long int' \
6329 || ac_type
='unsigned long int'
6331 cat >>confdefs.h
<<_ACEOF
6332 #define uintmax_t $ac_type
6339 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6340 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6342 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6345 for ac_type
in 'unsigned int' 'unsigned long int' \
6346 'unsigned long long int'; do
6347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h. */
6349 $ac_includes_default
6353 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6360 if ac_fn_c_try_compile
"$LINENO"; then :
6362 cat >>confdefs.h
<<_ACEOF
6363 #define uintptr_t $ac_type
6368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6369 test -z "$ac_type" && break
6387 # ---------------------
6388 # Warnings and checking
6389 # ---------------------
6391 # Check $CC warning features (if it's GCC).
6392 # We want to use -pedantic, but we don't want warnings about
6395 # * overlong strings
6396 # * C++11 narrowing conversions in { }
6397 # So, we only use -pedantic if we can disable those warnings.
6400 save_CFLAGS
="$CFLAGS"
6401 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6402 # Do the check with the no- prefix removed since gcc silently
6403 # accepts any -Wno-* option on purpose
6404 case $real_option in
6405 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6406 *) option
=$real_option ;;
6408 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6411 $as_echo_n "checking whether $CC supports $option... " >&6; }
6412 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6413 $as_echo_n "(cached) " >&6
6416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6417 /* end confdefs.h. */
6427 if ac_fn_c_try_compile
"$LINENO"; then :
6428 eval "$as_acx_Woption=yes"
6430 eval "$as_acx_Woption=no"
6432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6435 eval ac_res
=\$
$as_acx_Woption
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6437 $as_echo "$ac_res" >&6; }
6438 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6439 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6442 CFLAGS
="$save_CFLAGS"
6445 save_CFLAGS
="$CFLAGS"
6446 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6447 # Do the check with the no- prefix removed since gcc silently
6448 # accepts any -Wno-* option on purpose
6449 case $real_option in
6450 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6451 *) option
=$real_option ;;
6453 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6456 $as_echo_n "checking whether $CC supports $option... " >&6; }
6457 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6458 $as_echo_n "(cached) " >&6
6461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6472 if ac_fn_c_try_compile
"$LINENO"; then :
6473 eval "$as_acx_Woption=yes"
6475 eval "$as_acx_Woption=no"
6477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6480 eval ac_res
=\$
$as_acx_Woption
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6482 $as_echo "$ac_res" >&6; }
6483 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6484 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6487 CFLAGS
="$save_CFLAGS"
6490 save_CFLAGS
="$CFLAGS"
6491 for real_option
in -Wmissing-format-attribute; do
6492 # Do the check with the no- prefix removed since gcc silently
6493 # accepts any -Wno-* option on purpose
6494 case $real_option in
6495 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6496 *) option
=$real_option ;;
6498 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6501 $as_echo_n "checking whether $CC supports $option... " >&6; }
6502 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6503 $as_echo_n "(cached) " >&6
6506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6517 if ac_fn_c_try_compile
"$LINENO"; then :
6518 eval "$as_acx_Woption=yes"
6520 eval "$as_acx_Woption=no"
6522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6525 eval ac_res
=\$
$as_acx_Woption
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6527 $as_echo "$ac_res" >&6; }
6528 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6529 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6532 CFLAGS
="$save_CFLAGS"
6535 save_CFLAGS
="$CFLAGS"
6536 for real_option
in -Wold-style-definition -Wc++-compat; do
6537 # Do the check with the no- prefix removed since gcc silently
6538 # accepts any -Wno-* option on purpose
6539 case $real_option in
6540 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6541 *) option
=$real_option ;;
6543 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6546 $as_echo_n "checking whether $CC supports $option... " >&6; }
6547 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6548 $as_echo_n "(cached) " >&6
6551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6562 if ac_fn_c_try_compile
"$LINENO"; then :
6563 eval "$as_acx_Woption=yes"
6565 eval "$as_acx_Woption=no"
6567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6570 eval ac_res
=\$
$as_acx_Woption
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6572 $as_echo "$ac_res" >&6; }
6573 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6574 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6577 CFLAGS
="$save_CFLAGS"
6579 # Do the check with the no- prefix removed from the warning options
6580 # since gcc silently accepts any -Wno-* option on purpose
6581 if test "$GCC" = yes; then :
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6583 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6584 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6585 $as_echo_n "(cached) " >&6
6587 save_CFLAGS
="$CFLAGS"
6588 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6600 if ac_fn_c_try_compile
"$LINENO"; then :
6601 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6603 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6606 CFLAGS
="$save_CFLAGS"
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6609 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6610 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6611 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6616 # Check whether --enable-werror-always was given.
6617 if test "${enable_werror_always+set}" = set; then :
6618 enableval
=$enable_werror_always;
6620 enable_werror_always
=no
6623 if test $enable_werror_always = yes; then :
6624 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6629 # The above macros do nothing if the compiler is not GCC. However, the
6630 # Makefile has more goo to add other flags, so these variables are used
6631 # to enable warnings only for GCC.
6634 if test "x$GCC" = "xyes"; then
6635 warn_cflags
='$(GCC_WARN_CFLAGS)'
6636 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6641 # Disable exceptions and RTTI if building with g++
6643 save_CFLAGS
="$CFLAGS"
6644 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6645 # Do the check with the no- prefix removed since gcc silently
6646 # accepts any -Wno-* option on purpose
6647 case $real_option in
6648 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6649 *) option
=$real_option ;;
6651 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6654 $as_echo_n "checking whether $CC supports $option... " >&6; }
6655 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6656 $as_echo_n "(cached) " >&6
6659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h. */
6670 if ac_fn_c_try_compile
"$LINENO"; then :
6671 eval "$as_acx_Woption=yes"
6673 eval "$as_acx_Woption=no"
6675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6678 eval ac_res
=\$
$as_acx_Woption
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6680 $as_echo "$ac_res" >&6; }
6681 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6682 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6685 CFLAGS
="$save_CFLAGS"
6688 # Enable expensive internal checks
6690 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6694 # Check whether --enable-checking was given.
6695 if test "${enable_checking+set}" = set; then :
6696 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6699 # Determine the default checks.
6700 if test x
$is_release = x
; then
6701 ac_checking_flags
=yes
6703 ac_checking_flags
=release
6707 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6708 for check
in release
$ac_checking_flags
6711 # these set all the flags to specific states
6712 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6713 ac_fold_checking
= ; ac_gc_checking
=1 ;
6714 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6715 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6716 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6717 ac_types_checking
=1 ;;
6718 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6719 ac_fold_checking
= ; ac_gc_checking
= ;
6720 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6721 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6722 ac_tree_checking
= ; ac_valgrind_checking
= ;
6723 ac_types_checking
= ;;
6724 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6725 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6726 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6727 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6728 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6729 ac_types_checking
=1 ;;
6730 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6731 ac_fold_checking
= ; ac_gc_checking
= ;
6732 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6733 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6734 ac_tree_checking
= ; ac_valgrind_checking
= ;
6735 ac_types_checking
= ;;
6736 # these enable particular checks
6737 assert
) ac_assert_checking
=1 ;;
6738 df
) ac_df_checking
=1 ;;
6739 fold) ac_fold_checking
=1 ;;
6740 gc
) ac_gc_checking
=1 ;;
6741 gcac
) ac_gc_always_collect
=1 ;;
6742 gimple
) ac_gimple_checking
=1 ;;
6743 misc
) ac_checking
=1 ;;
6744 rtl
) ac_rtl_checking
=1 ;;
6745 rtlflag
) ac_rtlflag_checking
=1 ;;
6746 runtime
) ac_runtime_checking
=1 ;;
6747 tree
) ac_tree_checking
=1 ;;
6748 types
) ac_types_checking
=1 ;;
6749 valgrind
) ac_valgrind_checking
=1 ;;
6750 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6756 if test x
$ac_checking != x
; then
6758 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6760 nocommon_flag
=-fno-common
6763 if test x
$ac_df_checking != x
; then
6765 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6768 if test x
$ac_assert_checking != x
; then
6770 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6773 if test x
$ac_gimple_checking != x
; then
6775 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6779 if test x
$ac_runtime_checking != x
; then
6781 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6784 if test x
$ac_tree_checking != x
; then
6786 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6788 TREEBROWSER
=tree-browser.o
6790 if test x
$ac_types_checking != x
; then
6792 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6796 if test x
$ac_rtl_checking != x
; then
6798 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6801 if test x
$ac_rtlflag_checking != x
; then
6803 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6806 if test x
$ac_gc_checking != x
; then
6808 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6811 if test x
$ac_gc_always_collect != x
; then
6813 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6816 if test x
$ac_fold_checking != x
; then
6818 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6821 valgrind_path_defines
=
6824 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6825 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6833 if test x
$ac_valgrind_checking != x
; then
6834 # It is certainly possible that there's valgrind but no valgrind.h.
6835 # GCC relies on making annotations so we must have both.
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6837 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6840 #include <valgrind/memcheck.h>
6841 #ifndef VALGRIND_DISCARD
6842 #error VALGRIND_DISCARD not defined
6845 if ac_fn_c_try_cpp
"$LINENO"; then :
6846 gcc_cv_header_valgrind_memcheck_h
=yes
6848 gcc_cv_header_valgrind_memcheck_h
=no
6850 rm -f conftest.err conftest.
$ac_ext
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6852 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6854 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 #include <memcheck.h>
6858 #ifndef VALGRIND_DISCARD
6859 #error VALGRIND_DISCARD not defined
6862 if ac_fn_c_try_cpp
"$LINENO"; then :
6863 gcc_cv_header_memcheck_h
=yes
6865 gcc_cv_header_memcheck_h
=no
6867 rm -f conftest.err conftest.
$ac_ext
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6869 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6871 # Prepare PATH_SEPARATOR.
6872 # The user is always right.
6873 if test "${PATH_SEPARATOR+set}" != set; then
6874 echo "#! /bin/sh" >conf$$.sh
6875 echo "exit 0" >>conf$$.sh
6877 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6885 # Find out how to test for executable files. Don't use a zero-byte file,
6886 # as systems may use methods other than mode bits to determine executability.
6887 cat >conf$$.
file <<_ASEOF
6891 chmod +x conf$$.
file
6892 if test -x conf$$.
file >/dev
/null
2>&1; then
6893 ac_executable_p
="test -x"
6895 ac_executable_p
="test -f"
6899 # Extract the first word of "valgrind", so it can be a program name with args.
6900 set dummy valgrind
; ac_word
=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6904 $as_echo_n "(cached) " >&6
6906 case "$valgrind_path" in
6908 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6911 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6912 for ac_dir
in $PATH; do
6914 test -z "$ac_dir" && ac_dir
=.
6915 for ac_exec_ext
in '' $ac_executable_extensions; do
6916 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6917 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6918 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6928 valgrind_path
="$ac_cv_path_valgrind_path"
6929 if test -n "$valgrind_path"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6931 $as_echo "$valgrind_path" >&6; }
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6937 if test "x$valgrind_path" = "x" \
6938 ||
(test $have_valgrind_h = no \
6939 && test $gcc_cv_header_memcheck_h = no \
6940 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6941 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6943 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6944 valgrind_command
="$valgrind_path -q"
6946 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6948 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6950 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6953 if test $gcc_cv_header_memcheck_h = yes; then
6955 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6962 # Enable code coverage collection
6963 # Check whether --enable-coverage was given.
6964 if test "${enable_coverage+set}" = set; then :
6965 enableval
=$enable_coverage; case "${enableval}" in
6967 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6970 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6973 # a.k.a. --disable-coverage
6977 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6986 # Check whether --enable-gather-detailed-mem-stats was given.
6987 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6988 enableval
=$enable_gather_detailed_mem_stats;
6990 enable_gather_detailed_mem_stats
=no
6993 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6995 cat >>confdefs.h
<<_ACEOF
6996 #define GATHER_STATISTICS $gather_stats
7000 # -------------------------------
7001 # Miscenalleous configure options
7002 # -------------------------------
7006 # Check whether --with-stabs was given.
7007 if test "${with_stabs+set}" = set; then :
7008 withval
=$with_stabs; stabs
="$with_stabs"
7014 # Determine whether or not multilibs are enabled.
7015 # Check whether --enable-multilib was given.
7016 if test "${enable_multilib+set}" = set; then :
7017 enableval
=$enable_multilib;
7024 # Determine whether or not multiarch is enabled.
7025 # Check whether --enable-multiarch was given.
7026 if test "${enable_multiarch+set}" = set; then :
7027 enableval
=$enable_multiarch; case "${enableval}" in
7028 yes|no|auto
) enable_multiarch
=$enableval;;
7029 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7032 enable_multiarch
=auto
7035 if test x
${enable_multiarch} = xauto
; then
7036 if test x
${with_native_system_header_dir} != x
; then
7037 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7040 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7041 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7046 $as_echo_n "checking for multiarch configuration... " >&6; }
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7049 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7051 # needed for setting the multiarch name for soft-float/hard-float ABIs
7055 # Enable __cxa_atexit for C++.
7056 # Check whether --enable-__cxa_atexit was given.
7057 if test "${enable___cxa_atexit+set}" = set; then :
7058 enableval
=$enable___cxa_atexit;
7062 # Enable C extension for decimal float if target supports it.
7064 # Check whether --enable-decimal-float was given.
7065 if test "${enable_decimal_float+set}" = set; then :
7066 enableval
=$enable_decimal_float;
7067 case $enable_decimal_float in
7068 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7069 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7070 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7076 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7078 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7080 enable_decimal_float
=yes
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7084 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7085 enable_decimal_float
=no
7092 # x86's use BID format instead of DPD
7093 case x
$enable_decimal_float in
7096 i?
86*-*-* | x86_64
*-*-*)
7097 enable_decimal_float
=bid
7100 enable_decimal_float
=dpd
7103 default_decimal_float
=$enable_decimal_float
7106 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7107 # dependency on libdecnumber.
7108 default_decimal_float
=dpd
7115 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7117 cat >>confdefs.h
<<_ACEOF
7118 #define ENABLE_DECIMAL_FLOAT $dfp
7122 # Use default_decimal_float for dependency.
7123 enable_decimal_float
=$default_decimal_float
7125 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7127 cat >>confdefs.h
<<_ACEOF
7128 #define ENABLE_DECIMAL_BID_FORMAT $bid
7132 # Enable C extension for fixed-point arithmetic.
7133 # Check whether --enable-fixed-point was given.
7134 if test "${enable_fixed_point+set}" = set; then :
7135 enableval
=$enable_fixed_point;
7140 enable_fixed_point
=yes
7144 enable_fixed_point
=yes
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7148 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7149 enable_fixed_point
=no
7157 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7159 cat >>confdefs.h
<<_ACEOF
7160 #define ENABLE_FIXED_POINT $fixedpoint
7165 # Pass with no value to take the default
7166 # Pass with a value to specify a thread package
7167 # Check whether --enable-threads was given.
7168 if test "${enable_threads+set}" = set; then :
7169 enableval
=$enable_threads;
7175 # Check whether --enable-tls was given.
7176 if test "${enable_tls+set}" = set; then :
7177 enableval
=$enable_tls;
7180 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7181 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7189 # Check whether --enable-objc-gc was given.
7190 if test "${enable_objc_gc+set}" = set; then :
7191 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7202 # Check whether --with-dwarf2 was given.
7203 if test "${with_dwarf2+set}" = set; then :
7204 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7210 # Check whether --enable-shared was given.
7211 if test "${enable_shared+set}" = set; then :
7212 enableval
=$enable_shared;
7213 case $enable_shared in
7217 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7218 for pkg
in $enableval; do
7219 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7234 # Check whether --with-native-system-header-dir was given.
7235 if test "${with_native_system_header_dir+set}" = set; then :
7236 withval
=$with_native_system_header_dir;
7237 case ${with_native_system_header_dir} in
7238 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7239 /* |
[A-Za-z
]:[\\/]*) ;;
7240 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7242 configured_native_system_header_dir
="${withval}"
7245 configured_native_system_header_dir
=
7250 # Check whether --with-build-sysroot was given.
7251 if test "${with_build_sysroot+set}" = set; then :
7252 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7253 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7256 SYSROOT_CFLAGS_FOR_TARGET
=
7261 if test "x$prefix" = xNONE
; then
7262 test_prefix
=/usr
/local
7266 if test "x$exec_prefix" = xNONE
; then
7267 test_exec_prefix
=$test_prefix
7269 test_exec_prefix
=$exec_prefix
7273 # Check whether --with-sysroot was given.
7274 if test "${with_sysroot+set}" = set; then :
7275 withval
=$with_sysroot;
7276 case ${with_sysroot} in
7277 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7278 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7281 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7282 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7284 case ${TARGET_SYSTEM_ROOT} in
7285 "${test_prefix}"|
"${test_prefix}/"*|\
7286 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7287 '${prefix}'|
'${prefix}/'*|\
7288 '${exec_prefix}'|
'${exec_prefix}/'*)
7289 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7290 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7297 TARGET_SYSTEM_ROOT_DEFINE
=
7298 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7307 # Check whether --with-specs was given.
7308 if test "${with_specs+set}" = set; then :
7309 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7319 # Check whether --with-pkgversion was given.
7320 if test "${with_pkgversion+set}" = set; then :
7321 withval
=$with_pkgversion; case "$withval" in
7322 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7324 *) PKGVERSION
="($withval) " ;;
7335 # Check whether --with-bugurl was given.
7336 if test "${with_bugurl+set}" = set; then :
7337 withval
=$with_bugurl; case "$withval" in
7338 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7341 *) BUGURL
="$withval"
7345 BUGURL
="http://gcc.gnu.org/bugs.html"
7355 REPORT_BUGS_TO
="<$BUGURL>"
7356 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7363 # Sanity check enable_languages in case someone does not run the toplevel
7364 # configure # script.
7365 # Check whether --enable-languages was given.
7366 if test "${enable_languages+set}" = set; then :
7367 enableval
=$enable_languages; case ,${enable_languages}, in
7369 # go safe -- we cannot be much sure without the toplevel
7371 # analysis of which target libs are present and usable
7375 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7380 enable_languages
=c
,${enable_languages}
7389 # Check whether --with-multilib-list was given.
7390 if test "${with_multilib_list+set}" = set; then :
7391 withval
=$with_multilib_list; :
7393 with_multilib_list
=default
7397 # -------------------------
7398 # Checks for other programs
7399 # -------------------------
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7402 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7404 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7405 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7406 $as_echo_n "(cached) " >&6
7408 cat >conftest.
make <<\_ACEOF
7411 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7413 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7414 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7416 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7418 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7422 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7424 $as_echo "yes" >&6; }
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428 $as_echo "no" >&6; }
7429 SET_MAKE
="MAKE=${MAKE-make}"
7433 # Find some useful tools
7434 for ac_prog
in gawk mawk nawk
awk
7436 # Extract the first word of "$ac_prog", so it can be a program name with args.
7437 set dummy
$ac_prog; ac_word
=$2
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439 $as_echo_n "checking for $ac_word... " >&6; }
7440 if test "${ac_cv_prog_AWK+set}" = set; then :
7441 $as_echo_n "(cached) " >&6
7443 if test -n "$AWK"; then
7444 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7450 test -z "$as_dir" && as_dir
=.
7451 for ac_exec_ext
in '' $ac_executable_extensions; do
7452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7453 ac_cv_prog_AWK
="$ac_prog"
7454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 if test -n "$AWK"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7466 $as_echo "$AWK" >&6; }
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7473 test -n "$AWK" && break
7476 # We need awk to create options.c and options.h.
7477 # Bail out if it's missing.
7479 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7483 $as_echo_n "checking whether ln -s works... " >&6; }
7484 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7485 $as_echo_n "(cached) " >&6
7487 rm -f conftestdata_t
7488 echo >conftestdata_f
7489 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7491 gcc_cv_prog_LN_S
="ln -s"
7493 if ln conftestdata_f conftestdata_t
2>/dev
/null
7497 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7499 gcc_cv_prog_LN_S
="cp -p"
7505 rm -f conftestdata_f conftestdata_t
7508 LN_S
="$gcc_cv_prog_LN_S"
7509 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7511 $as_echo "yes" >&6; }
7513 if test "$gcc_cv_prog_LN_S" = "ln"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7515 $as_echo "no, using ln" >&6; }
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7518 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7523 $as_echo_n "checking whether ln works... " >&6; }
7524 if test "${acx_cv_prog_LN+set}" = set; then :
7525 $as_echo_n "(cached) " >&6
7527 rm -f conftestdata_t
7528 echo >conftestdata_f
7529 if ln conftestdata_f conftestdata_t
2>/dev
/null
7535 rm -f conftestdata_f conftestdata_t
7538 if test $acx_cv_prog_LN = no
; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7541 $as_echo "no, using $LN" >&6; }
7543 LN
="$acx_cv_prog_LN"
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7545 $as_echo "yes" >&6; }
7548 if test -n "$ac_tool_prefix"; then
7549 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7550 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7554 $as_echo_n "(cached) " >&6
7556 if test -n "$RANLIB"; then
7557 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7563 test -z "$as_dir" && as_dir
=.
7564 for ac_exec_ext
in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 RANLIB
=$ac_cv_prog_RANLIB
7577 if test -n "$RANLIB"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7579 $as_echo "$RANLIB" >&6; }
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7587 if test -z "$ac_cv_prog_RANLIB"; then
7588 ac_ct_RANLIB
=$RANLIB
7589 # Extract the first word of "ranlib", so it can be a program name with args.
7590 set dummy ranlib
; ac_word
=$2
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592 $as_echo_n "checking for $ac_word... " >&6; }
7593 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7594 $as_echo_n "(cached) " >&6
7596 if test -n "$ac_ct_RANLIB"; then
7597 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7603 test -z "$as_dir" && as_dir
=.
7604 for ac_exec_ext
in '' $ac_executable_extensions; do
7605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7606 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7617 if test -n "$ac_ct_RANLIB"; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7619 $as_echo "$ac_ct_RANLIB" >&6; }
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 $as_echo "no" >&6; }
7625 if test "x$ac_ct_RANLIB" = x
; then
7628 case $cross_compiling:$ac_tool_warned in
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7632 ac_tool_warned
=yes ;;
7634 RANLIB
=$ac_ct_RANLIB
7637 RANLIB
="$ac_cv_prog_RANLIB"
7643 # Find a good install program. We prefer a C program (faster),
7644 # so one script is as good as another. But avoid the broken or
7645 # incompatible versions:
7646 # SysV /etc/install, /usr/sbin/install
7647 # SunOS /usr/etc/install
7648 # IRIX /sbin/install
7650 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7651 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7652 # ./install, which can be erroneously created by make from ./install.sh.
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7654 $as_echo_n "checking for a BSD compatible install... " >&6; }
7655 if test -z "$INSTALL"; then
7656 if test "${ac_cv_path_install+set}" = set; then :
7657 $as_echo_n "(cached) " >&6
7659 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7660 for ac_dir
in $PATH; do
7661 # Account for people who put trailing slashes in PATH elements.
7663 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7665 # OSF1 and SCO ODT 3.0 have their own names for install.
7666 for ac_prog
in ginstall scoinst
install; do
7667 if test -f $ac_dir/$ac_prog; then
7668 if test $ac_prog = install &&
7669 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7670 # AIX install. It has an incompatible calling convention.
7671 # OSF/1 installbsd also uses dspmsg, but is usable.
7674 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7685 if test "${ac_cv_path_install+set}" = set; then
7686 INSTALL
="$ac_cv_path_install"
7688 # As a last resort, use the slow shell script. We don't cache a
7689 # path for INSTALL within a source directory, because that will
7690 # break other packages using the cache if that directory is
7691 # removed, or if the path is relative.
7692 INSTALL
="$ac_install_sh"
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7696 $as_echo "$INSTALL" >&6; }
7698 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7699 # It thinks the first close brace ends the variable substitution.
7700 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7702 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7705 # See if cmp has --ignore-initial.
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7707 $as_echo_n "checking for cmp's capabilities... " >&6; }
7708 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7709 $as_echo_n "(cached) " >&6
7713 gcc_cv_prog_cmp_skip
=slowcompare
7714 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7715 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7718 gcc_cv_prog_cmp_skip
=gnucompare
7721 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7722 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7723 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7726 gcc_cv_prog_cmp_skip
=fastcompare
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7734 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7735 make_compare_target
=$gcc_cv_prog_cmp_skip
7739 # See if we have the mktemp command.
7740 # Extract the first word of "mktemp", so it can be a program name with args.
7741 set dummy mktemp
; ac_word
=$2
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7743 $as_echo_n "checking for $ac_word... " >&6; }
7744 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7745 $as_echo_n "(cached) " >&6
7747 if test -n "$have_mktemp_command"; then
7748 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7754 test -z "$as_dir" && as_dir
=.
7755 for ac_exec_ext
in '' $ac_executable_extensions; do
7756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7757 ac_cv_prog_have_mktemp_command
="yes"
7758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7768 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7769 if test -n "$have_mktemp_command"; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7771 $as_echo "$have_mktemp_command" >&6; }
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774 $as_echo "no" >&6; }
7779 # See if makeinfo has been installed and is modern enough
7780 # that we can use it.
7782 # Extract the first word of "makeinfo", so it can be a program name with args.
7783 set dummy makeinfo
; ac_word
=$2
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 $as_echo_n "checking for $ac_word... " >&6; }
7786 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
7789 if test -n "$MAKEINFO"; then
7790 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7796 test -z "$as_dir" && as_dir
=.
7797 for ac_exec_ext
in '' $ac_executable_extensions; do
7798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7799 ac_cv_prog_MAKEINFO
="makeinfo"
7800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 MAKEINFO
=$ac_cv_prog_MAKEINFO
7810 if test -n "$MAKEINFO"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7812 $as_echo "$MAKEINFO" >&6; }
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7819 if test -n "$MAKEINFO"; then
7820 # Found it, now check the version.
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7822 $as_echo_n "checking for modern makeinfo... " >&6; }
7823 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7824 $as_echo_n "(cached) " >&6
7826 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7827 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7829 case $ac_prog_version in
7830 '') gcc_cv_prog_makeinfo_modern
=no
;;
7831 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7832 *) gcc_cv_prog_makeinfo_modern
=no
;;
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7837 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7839 gcc_cv_prog_makeinfo_modern
=no
7841 if test $gcc_cv_prog_makeinfo_modern = no
; then
7842 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7845 if test $gcc_cv_prog_makeinfo_modern = no
; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7847 *** Makeinfo is missing or too old.
7848 *** Info documentation will not be built." >&5
7849 $as_echo "$as_me: WARNING:
7850 *** Makeinfo is missing or too old.
7851 *** Info documentation will not be built." >&2;}
7858 # Is pod2man recent enough to regenerate manpages?
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7860 $as_echo_n "checking for recent Pod::Man... " >&6; }
7861 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7863 $as_echo "yes" >&6; }
7864 GENERATED_MANPAGES
=generated-manpages
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7872 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7877 # Extract the first word of "$ac_prog", so it can be a program name with args.
7878 set dummy
$ac_prog; ac_word
=$2
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7880 $as_echo_n "checking for $ac_word... " >&6; }
7881 if test "${ac_cv_prog_FLEX+set}" = set; then :
7882 $as_echo_n "(cached) " >&6
7884 if test -n "$FLEX"; then
7885 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7891 test -z "$as_dir" && as_dir
=.
7892 for ac_exec_ext
in '' $ac_executable_extensions; do
7893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7894 ac_cv_prog_FLEX
="$ac_prog"
7895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 FLEX
=$ac_cv_prog_FLEX
7905 if test -n "$FLEX"; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7907 $as_echo "$FLEX" >&6; }
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7914 test -n "$FLEX" && break
7916 test -n "$FLEX" || FLEX
="$MISSING flex"
7920 for ac_prog
in bison
7922 # Extract the first word of "$ac_prog", so it can be a program name with args.
7923 set dummy
$ac_prog; ac_word
=$2
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925 $as_echo_n "checking for $ac_word... " >&6; }
7926 if test "${ac_cv_prog_BISON+set}" = set; then :
7927 $as_echo_n "(cached) " >&6
7929 if test -n "$BISON"; then
7930 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7936 test -z "$as_dir" && as_dir
=.
7937 for ac_exec_ext
in '' $ac_executable_extensions; do
7938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7939 ac_cv_prog_BISON
="$ac_prog"
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 BISON
=$ac_cv_prog_BISON
7950 if test -n "$BISON"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7952 $as_echo "$BISON" >&6; }
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7959 test -n "$BISON" && break
7961 test -n "$BISON" || BISON
="$MISSING bison"
7964 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7965 # check for build == host before using them.
7968 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7969 && test -d ..
/binutils
; then
7970 NM
='${objdir}/../binutils/nm-new'
7972 # Extract the first word of "nm", so it can be a program name with args.
7973 set dummy nm
; ac_word
=$2
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975 $as_echo_n "checking for $ac_word... " >&6; }
7976 if test "${ac_cv_prog_NM+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7979 if test -n "$NM"; then
7980 ac_cv_prog_NM
="$NM" # Let the user override the test.
7982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7986 test -z "$as_dir" && as_dir
=.
7987 for ac_exec_ext
in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8001 if test -n "$NM"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8003 $as_echo "$NM" >&6; }
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8013 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8014 && test -d ..
/binutils
; then
8015 AR
='${objdir}/../binutils/ar'
8017 # Extract the first word of "ar", so it can be a program name with args.
8018 set dummy
ar; ac_word
=$2
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020 $as_echo_n "checking for $ac_word... " >&6; }
8021 if test "${ac_cv_prog_AR+set}" = set; then :
8022 $as_echo_n "(cached) " >&6
8024 if test -n "$AR"; then
8025 ac_cv_prog_AR
="$AR" # Let the user override the test.
8027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8031 test -z "$as_dir" && as_dir
=.
8032 for ac_exec_ext
in '' $ac_executable_extensions; do
8033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8046 if test -n "$AR"; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8048 $as_echo "$AR" >&6; }
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 $as_echo "no" >&6; }
8058 # --------------------
8059 # Checks for C headers
8060 # --------------------
8062 # Need to reject headers which give warnings, so that the -Werror bootstrap
8063 # works later. *sigh* This needs to come before all header checks.
8065 ac_c_preproc_warn_flag
=yes
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8068 $as_echo_n "checking for ANSI C header files... " >&6; }
8069 if test "${ac_cv_header_stdc+set}" = set; then :
8070 $as_echo_n "(cached) " >&6
8072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h. */
8087 if ac_fn_c_try_compile
"$LINENO"; then :
8088 ac_cv_header_stdc
=yes
8090 ac_cv_header_stdc
=no
8092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8094 if test $ac_cv_header_stdc = yes; then
8095 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h. */
8101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8102 $EGREP "memchr" >/dev
/null
2>&1; then :
8105 ac_cv_header_stdc
=no
8111 if test $ac_cv_header_stdc = yes; then
8112 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8119 $EGREP "free" >/dev
/null
2>&1; then :
8122 ac_cv_header_stdc
=no
8128 if test $ac_cv_header_stdc = yes; then
8129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8130 if test "$cross_compiling" = yes; then :
8133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8137 #if ((' ' & 0x0FF) == 0x020)
8138 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8139 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8141 # define ISLOWER(c) \
8142 (('a' <= (c) && (c) <= 'i') \
8143 || ('j' <= (c) && (c) <= 'r') \
8144 || ('s' <= (c) && (c) <= 'z'))
8145 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8148 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8153 for (i = 0; i < 256; i++)
8154 if (XOR (islower (i), ISLOWER (i))
8155 || toupper (i) != TOUPPER (i))
8160 if ac_fn_c_try_run
"$LINENO"; then :
8163 ac_cv_header_stdc
=no
8165 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8166 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8172 $as_echo "$ac_cv_header_stdc" >&6; }
8173 if test $ac_cv_header_stdc = yes; then
8175 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8180 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8181 if test "${ac_cv_header_time+set}" = set; then :
8182 $as_echo_n "(cached) " >&6
8184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8185 /* end confdefs.h. */
8186 #include <sys/types.h>
8187 #include <sys/time.h>
8193 if ((struct tm *) 0)
8199 if ac_fn_c_try_compile
"$LINENO"; then :
8200 ac_cv_header_time
=yes
8202 ac_cv_header_time
=no
8204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8207 $as_echo "$ac_cv_header_time" >&6; }
8208 if test $ac_cv_header_time = yes; then
8210 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8215 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8216 if test "${gcc_cv_header_string+set}" = set; then :
8217 $as_echo_n "(cached) " >&6
8219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8222 #include <strings.h>
8231 if ac_fn_c_try_compile
"$LINENO"; then :
8232 gcc_cv_header_string
=yes
8234 gcc_cv_header_string
=no
8236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8239 $as_echo "$gcc_cv_header_string" >&6; }
8240 if test $gcc_cv_header_string = yes; then
8242 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8247 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8248 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8252 /* end confdefs.h. */
8253 #include <sys/types.h>
8254 #include <sys/wait.h>
8256 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8259 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8267 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8272 if ac_fn_c_try_compile
"$LINENO"; then :
8273 ac_cv_header_sys_wait_h
=yes
8275 ac_cv_header_sys_wait_h
=no
8277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8280 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8281 if test $ac_cv_header_sys_wait_h = yes; then
8283 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8287 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8288 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8289 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8290 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h libintl.h
8292 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8293 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8294 eval as_val
=\$
$as_ac_Header
8295 if test "x$as_val" = x
""yes; then :
8296 cat >>confdefs.h
<<_ACEOF
8297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8304 # Check for thread headers.
8305 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8306 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8312 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8313 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8320 # These tests can't be done till we know if we have limits.h.
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8322 $as_echo_n "checking for CHAR_BIT... " >&6; }
8323 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8324 $as_echo_n "(cached) " >&6
8326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8328 #ifdef HAVE_LIMITS_H
8335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8336 $EGREP "found" >/dev
/null
2>&1; then :
8337 gcc_cv_decl_char_bit
=yes
8339 gcc_cv_decl_char_bit
=no
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8346 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8347 if test $gcc_cv_decl_char_bit = no
; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8349 $as_echo_n "checking number of bits in a byte... " >&6; }
8350 if test "${gcc_cv_c_nbby+set}" = set; then :
8351 $as_echo_n "(cached) " >&6
8355 while test $i -lt 65; do
8356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h. */
8363 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8364 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8370 if ac_fn_c_try_compile
"$LINENO"; then :
8371 gcc_cv_c_nbby
=$i; break
8373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8376 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8380 $as_echo "$gcc_cv_c_nbby" >&6; }
8381 if test $gcc_cv_c_nbby = failed
; then
8382 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8385 cat >>confdefs.h
<<_ACEOF
8386 #define CHAR_BIT $gcc_cv_c_nbby
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8392 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8393 if test "${ac_cv_c_bigendian+set}" = set; then :
8394 $as_echo_n "(cached) " >&6
8396 ac_cv_c_bigendian
=unknown
8397 # See if we're dealing with a universal compiler.
8398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8400 #ifndef __APPLE_CC__
8401 not a universal capable compiler
8406 if ac_fn_c_try_compile
"$LINENO"; then :
8408 # Check for potential -arch flags. It is not universal unless
8409 # there are at least two -arch flags with different values.
8412 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8413 if test -n "$ac_prev"; then
8415 i?
86 | x86_64 | ppc | ppc64
)
8416 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8419 ac_cv_c_bigendian
=universal
8425 elif test "x$ac_word" = "x-arch"; then
8430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8431 if test $ac_cv_c_bigendian = unknown
; then
8432 # See if sys/param.h defines the BYTE_ORDER macro.
8433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8435 #include <sys/types.h>
8436 #include <sys/param.h>
8441 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8442 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8451 if ac_fn_c_try_compile
"$LINENO"; then :
8452 # It does; now see whether it defined to BIG_ENDIAN or not.
8453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8455 #include <sys/types.h>
8456 #include <sys/param.h>
8461 #if BYTE_ORDER != BIG_ENDIAN
8469 if ac_fn_c_try_compile
"$LINENO"; then :
8470 ac_cv_c_bigendian
=yes
8472 ac_cv_c_bigendian
=no
8474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8478 if test $ac_cv_c_bigendian = unknown
; then
8479 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8487 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8495 if ac_fn_c_try_compile
"$LINENO"; then :
8496 # It does; now see whether it defined to _BIG_ENDIAN or not.
8497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8512 if ac_fn_c_try_compile
"$LINENO"; then :
8513 ac_cv_c_bigendian
=yes
8515 ac_cv_c_bigendian
=no
8517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8521 if test $ac_cv_c_bigendian = unknown
; then
8522 # Compile a test program.
8523 if test "$cross_compiling" = yes; then :
8524 # Try to guess by grepping values from an object file.
8525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h. */
8527 short int ascii_mm[] =
8528 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8529 short int ascii_ii[] =
8530 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8531 int use_ascii (int i) {
8532 return ascii_mm[i] + ascii_ii[i];
8534 short int ebcdic_ii[] =
8535 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8536 short int ebcdic_mm[] =
8537 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8538 int use_ebcdic (int i) {
8539 return ebcdic_mm[i] + ebcdic_ii[i];
8546 return use_ascii (foo) == use_ebcdic (foo);
8551 if ac_fn_c_try_compile
"$LINENO"; then :
8552 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8553 ac_cv_c_bigendian
=yes
8555 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8556 if test "$ac_cv_c_bigendian" = unknown
; then
8557 ac_cv_c_bigendian
=no
8559 # finding both strings is unlikely to happen, but who knows?
8560 ac_cv_c_bigendian
=unknown
8564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568 $ac_includes_default
8573 /* Are we little or big endian? From Harbison&Steele. */
8577 char c[sizeof (long int)];
8580 return u.c[sizeof (long int) - 1] == 1;
8586 if ac_fn_c_try_run
"$LINENO"; then :
8587 ac_cv_c_bigendian
=no
8589 ac_cv_c_bigendian
=yes
8591 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8592 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8598 $as_echo "$ac_cv_c_bigendian" >&6; }
8599 case $ac_cv_c_bigendian in #(
8601 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8607 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8611 as_fn_error
"unknown endianness
8612 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8616 # ----------------------
8617 # Checks for C++ headers
8618 # ----------------------
8621 ac_cpp
='$CXXCPP $CPPFLAGS'
8622 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8623 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8624 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8626 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8627 if test -z "$CXXCPP"; then
8628 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8629 $as_echo_n "(cached) " >&6
8631 # Double quotes because CXXCPP needs to be expanded
8632 for CXXCPP
in "$CXX -E" "/lib/cpp"
8635 for ac_cxx_preproc_warn_flag
in '' yes
8637 # Use a header file that comes with gcc, so configuring glibc
8638 # with a fresh cross-compiler works.
8639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8640 # <limits.h> exists even on freestanding compilers.
8641 # On the NeXT, cc -E runs the code through the compiler's parser,
8642 # not just through cpp. "Syntax error" is here to catch this case.
8643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8646 # include <limits.h>
8648 # include <assert.h>
8652 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8655 # Broken: fails on valid input.
8658 rm -f conftest.err conftest.
$ac_ext
8660 # OK, works on sane cases. Now check whether nonexistent headers
8661 # can be detected and how.
8662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h. */
8664 #include <ac_nonexistent.h>
8666 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8667 # Broken: success on invalid input.
8670 # Passes both tests.
8674 rm -f conftest.err conftest.
$ac_ext
8677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8678 rm -f conftest.err conftest.
$ac_ext
8679 if $ac_preproc_ok; then :
8684 ac_cv_prog_CXXCPP
=$CXXCPP
8687 CXXCPP
=$ac_cv_prog_CXXCPP
8689 ac_cv_prog_CXXCPP
=$CXXCPP
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8692 $as_echo "$CXXCPP" >&6; }
8694 for ac_cxx_preproc_warn_flag
in '' yes
8696 # Use a header file that comes with gcc, so configuring glibc
8697 # with a fresh cross-compiler works.
8698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8699 # <limits.h> exists even on freestanding compilers.
8700 # On the NeXT, cc -E runs the code through the compiler's parser,
8701 # not just through cpp. "Syntax error" is here to catch this case.
8702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h. */
8705 # include <limits.h>
8707 # include <assert.h>
8711 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8714 # Broken: fails on valid input.
8717 rm -f conftest.err conftest.
$ac_ext
8719 # OK, works on sane cases. Now check whether nonexistent headers
8720 # can be detected and how.
8721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8723 #include <ac_nonexistent.h>
8725 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8726 # Broken: success on invalid input.
8729 # Passes both tests.
8733 rm -f conftest.err conftest.
$ac_ext
8736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8737 rm -f conftest.err conftest.
$ac_ext
8738 if $ac_preproc_ok; then :
8741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8744 See \`config.log' for more details." >&5
8745 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8746 See \`config.log' for more details." >&2;}; }
8750 ac_cpp
='$CPP $CPPFLAGS'
8751 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8752 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8753 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8757 ac_cpp
='$CXXCPP $CPPFLAGS'
8758 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8759 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8760 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8765 for ac_header
in unordered_map
8767 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8768 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8769 cat >>confdefs.h
<<_ACEOF
8770 #define HAVE_UNORDERED_MAP 1
8776 for ac_header
in tr1/unordered_map
8778 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8779 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8780 cat >>confdefs.h
<<_ACEOF
8781 #define HAVE_TR1_UNORDERED_MAP 1
8787 for ac_header
in ext
/hash_map
8789 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8790 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8791 cat >>confdefs.h
<<_ACEOF
8792 #define HAVE_EXT_HASH_MAP 1
8800 ac_cpp
='$CPP $CPPFLAGS'
8801 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8802 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8803 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8811 # These libraries may be used by collect2.
8812 # We may need a special search path to get them linked.
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8814 $as_echo_n "checking for collect2 libraries... " >&6; }
8815 if test "${gcc_cv_collect2_libs+set}" = set; then :
8816 $as_echo_n "(cached) " >&6
8819 for libs
in '' -lld -lmld \
8820 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8821 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8825 /* end confdefs.h. */
8827 /* Override any GCC internal prototype to avoid an error.
8828 Use char because int might match the return type of a GCC
8829 builtin and then its argument prototype would still apply. */
8842 if ac_fn_c_try_link
"$LINENO"; then :
8843 gcc_cv_collect2_libs
="$libs"; break
8845 rm -f core conftest.err conftest.
$ac_objext \
8846 conftest
$ac_exeext conftest.
$ac_ext
8849 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8852 $as_echo "$gcc_cv_collect2_libs" >&6; }
8853 case $gcc_cv_collect2_libs in
8855 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8859 # When building Ada code on Alpha, we need exc_resume which is usually in
8860 # -lexc. So test for it.
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8864 $as_echo_n "checking for library containing exc_resume... " >&6; }
8865 if test "${ac_cv_search_exc_resume+set}" = set; then :
8866 $as_echo_n "(cached) " >&6
8868 ac_func_search_save_LIBS
=$LIBS
8869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8872 /* Override any GCC internal prototype to avoid an error.
8873 Use char because int might match the return type of a GCC
8874 builtin and then its argument prototype would still apply. */
8882 return exc_resume ();
8887 for ac_lib
in '' exc
; do
8888 if test -z "$ac_lib"; then
8889 ac_res
="none required"
8892 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8894 if ac_fn_c_try_link
"$LINENO"; then :
8895 ac_cv_search_exc_resume
=$ac_res
8897 rm -f core conftest.err conftest.
$ac_objext \
8899 if test "${ac_cv_search_exc_resume+set}" = set; then :
8903 if test "${ac_cv_search_exc_resume+set}" = set; then :
8906 ac_cv_search_exc_resume
=no
8909 LIBS
=$ac_func_search_save_LIBS
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8912 $as_echo "$ac_cv_search_exc_resume" >&6; }
8913 ac_res
=$ac_cv_search_exc_resume
8914 if test "$ac_res" != no
; then :
8915 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8923 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8927 $as_echo_n "checking for library containing kstat_open... " >&6; }
8928 if test "${ac_cv_search_kstat_open+set}" = set; then :
8929 $as_echo_n "(cached) " >&6
8931 ac_func_search_save_LIBS
=$LIBS
8932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h. */
8935 /* Override any GCC internal prototype to avoid an error.
8936 Use char because int might match the return type of a GCC
8937 builtin and then its argument prototype would still apply. */
8945 return kstat_open ();
8950 for ac_lib
in '' kstat
; do
8951 if test -z "$ac_lib"; then
8952 ac_res
="none required"
8955 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8957 if ac_fn_c_try_link
"$LINENO"; then :
8958 ac_cv_search_kstat_open
=$ac_res
8960 rm -f core conftest.err conftest.
$ac_objext \
8962 if test "${ac_cv_search_kstat_open+set}" = set; then :
8966 if test "${ac_cv_search_kstat_open+set}" = set; then :
8969 ac_cv_search_kstat_open
=no
8972 LIBS
=$ac_func_search_save_LIBS
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8975 $as_echo "$ac_cv_search_kstat_open" >&6; }
8976 ac_res
=$ac_cv_search_kstat_open
8977 if test "$ac_res" != no
; then :
8978 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8982 EXTRA_GCC_LIBS
="$LIBS"
8986 # Some systems put ldexp and frexp in libm instead of libc; assume
8987 # they're both in the same place. jcf-dump needs them.
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8991 $as_echo_n "checking for library containing ldexp... " >&6; }
8992 if test "${ac_cv_search_ldexp+set}" = set; then :
8993 $as_echo_n "(cached) " >&6
8995 ac_func_search_save_LIBS
=$LIBS
8996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8999 /* Override any GCC internal prototype to avoid an error.
9000 Use char because int might match the return type of a GCC
9001 builtin and then its argument prototype would still apply. */
9014 for ac_lib
in '' m
; do
9015 if test -z "$ac_lib"; then
9016 ac_res
="none required"
9019 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9021 if ac_fn_c_try_link
"$LINENO"; then :
9022 ac_cv_search_ldexp
=$ac_res
9024 rm -f core conftest.err conftest.
$ac_objext \
9026 if test "${ac_cv_search_ldexp+set}" = set; then :
9030 if test "${ac_cv_search_ldexp+set}" = set; then :
9033 ac_cv_search_ldexp
=no
9036 LIBS
=$ac_func_search_save_LIBS
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9039 $as_echo "$ac_cv_search_ldexp" >&6; }
9040 ac_res
=$ac_cv_search_ldexp
9041 if test "$ac_res" != no
; then :
9042 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9050 # Use <inttypes.h> only if it exists,
9051 # doesn't clash with <sys/types.h>, and declares intmax_t.
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9053 $as_echo_n "checking for inttypes.h... " >&6; }
9054 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9055 $as_echo_n "(cached) " >&6
9057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9058 /* end confdefs.h. */
9059 #include <sys/types.h>
9060 #include <inttypes.h>
9069 if ac_fn_c_try_compile
"$LINENO"; then :
9070 gcc_cv_header_inttypes_h
=yes
9072 gcc_cv_header_inttypes_h
=no
9074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9078 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9079 if test $gcc_cv_header_inttypes_h = yes; then
9081 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9087 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9088 sysconf strsignal getrusage nl_langinfo \
9089 gettimeofday mbstowcs wcswidth mmap setlocale \
9090 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
9092 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9093 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9094 eval as_val
=\$
$as_ac_var
9095 if test "x$as_val" = x
""yes; then :
9096 cat >>confdefs.h
<<_ACEOF
9097 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9104 if test x
$ac_cv_func_mbstowcs = xyes
; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9106 $as_echo_n "checking whether mbstowcs works... " >&6; }
9107 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9110 if test "$cross_compiling" = yes; then :
9111 gcc_cv_func_mbstowcs_works
=yes
9113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9122 if ac_fn_c_try_run
"$LINENO"; then :
9123 gcc_cv_func_mbstowcs_works
=yes
9125 gcc_cv_func_mbstowcs_works
=no
9127 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9128 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9133 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9134 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9136 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9141 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9142 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9146 cat >>confdefs.h
<<_ACEOF
9152 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9153 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9157 cat >>confdefs.h
<<_ACEOF
9158 #define caddr_t char *
9165 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9166 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9167 gcc_header_sys_mman_h
=yes
9169 gcc_header_sys_mman_h
=no
9172 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9173 if test "x$ac_cv_func_mmap" = x
""yes; then :
9179 if test "$gcc_header_sys_mman_h" != yes \
9180 ||
test "$gcc_func_mmap" != yes; then
9181 gcc_cv_func_mmap_file
=no
9182 gcc_cv_func_mmap_dev_zero
=no
9183 gcc_cv_func_mmap_anon
=no
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9186 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9187 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9188 $as_echo_n "(cached) " >&6
9190 # Add a system to this blacklist if
9191 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9192 # memory area containing the same data that you'd get if you applied
9193 # read() to the same fd. The only system known to have a problem here
9194 # is VMS, where text files have record structure.
9197 gcc_cv_func_mmap_file
=no
;;
9199 gcc_cv_func_mmap_file
=yes;;
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9203 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9205 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9206 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9207 $as_echo_n "(cached) " >&6
9209 # Add a system to this blacklist if it has mmap() but /dev/zero
9210 # does not exist, or if mmapping /dev/zero does not give anonymous
9211 # zeroed pages with both the following properties:
9212 # 1. If you map N consecutive pages in with one call, and then
9213 # unmap any subset of those pages, the pages that were not
9214 # explicitly unmapped remain accessible.
9215 # 2. If you map two adjacent blocks of memory and then unmap them
9216 # both at once, they must both go away.
9217 # Systems known to be in this category are Windows (all variants),
9220 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9221 gcc_cv_func_mmap_dev_zero
=no
;;
9223 gcc_cv_func_mmap_dev_zero
=yes;;
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9227 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9229 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9231 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9232 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9233 $as_echo_n "(cached) " >&6
9235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9236 /* end confdefs.h. */
9237 #include <sys/types.h>
9238 #include <sys/mman.h>
9241 #ifndef MAP_ANONYMOUS
9242 #define MAP_ANONYMOUS MAP_ANON
9248 int n = MAP_ANONYMOUS;
9253 if ac_fn_c_try_compile
"$LINENO"; then :
9254 gcc_cv_decl_map_anon
=yes
9256 gcc_cv_decl_map_anon
=no
9258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9261 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9263 if test $gcc_cv_decl_map_anon = no
; then
9264 gcc_cv_func_mmap_anon
=no
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9267 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9268 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9269 $as_echo_n "(cached) " >&6
9271 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9272 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9273 # doesn't give anonymous zeroed pages with the same properties listed
9274 # above for use of /dev/zero.
9275 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9277 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9278 gcc_cv_func_mmap_anon
=no
;;
9280 gcc_cv_func_mmap_anon
=yes;;
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9284 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9288 if test $gcc_cv_func_mmap_file = yes; then
9290 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9293 if test $gcc_cv_func_mmap_dev_zero = yes; then
9295 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9298 if test $gcc_cv_func_mmap_anon = yes; then
9300 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9307 # Under VMS, vfork works very differently than on Unix. The standard test
9308 # won't work, and it isn't easily adaptable. It makes more sense to
9310 ac_cv_func_vfork_works
=yes
9313 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9314 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9318 cat >>confdefs.h
<<_ACEOF
9324 for ac_header
in vfork.h
9326 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9327 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9328 cat >>confdefs.h
<<_ACEOF
9329 #define HAVE_VFORK_H 1
9335 for ac_func
in fork vfork
9337 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9338 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9339 eval as_val
=\$
$as_ac_var
9340 if test "x$as_val" = x
""yes; then :
9341 cat >>confdefs.h
<<_ACEOF
9342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9348 if test "x$ac_cv_func_fork" = xyes
; then
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9350 $as_echo_n "checking for working fork... " >&6; }
9351 if test "${ac_cv_func_fork_works+set}" = set; then :
9352 $as_echo_n "(cached) " >&6
9354 if test "$cross_compiling" = yes; then :
9355 ac_cv_func_fork_works
=cross
9357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9359 $ac_includes_default
9364 /* By Ruediger Kuhlmann. */
9371 if ac_fn_c_try_run
"$LINENO"; then :
9372 ac_cv_func_fork_works
=yes
9374 ac_cv_func_fork_works
=no
9376 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9377 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9382 $as_echo "$ac_cv_func_fork_works" >&6; }
9385 ac_cv_func_fork_works
=$ac_cv_func_fork
9387 if test "x$ac_cv_func_fork_works" = xcross
; then
9389 *-*-amigaos* |
*-*-msdosdjgpp*)
9390 # Override, as these systems have only a dummy fork() stub
9391 ac_cv_func_fork_works
=no
9394 ac_cv_func_fork_works
=yes
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9398 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9400 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9401 if test "x$ac_cv_func_vfork" = xyes
; then
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9403 $as_echo_n "checking for working vfork... " >&6; }
9404 if test "${ac_cv_func_vfork_works+set}" = set; then :
9405 $as_echo_n "(cached) " >&6
9407 if test "$cross_compiling" = yes; then :
9408 ac_cv_func_vfork_works
=cross
9410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9412 /* Thanks to Paul Eggert for this test. */
9413 $ac_includes_default
9414 #include <sys/wait.h>
9418 /* On some sparc systems, changes by the child to local and incoming
9419 argument registers are propagated back to the parent. The compiler
9420 is told about this with #include <vfork.h>, but some compilers
9421 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9422 static variable whose address is put into a register that is
9423 clobbered by the vfork. */
9426 sparc_address_test (int arg)
9428 sparc_address_test (arg) int arg;
9449 pid_t parent = getpid ();
9452 sparc_address_test (0);
9457 /* Here is another test for sparc vfork register problems. This
9458 test uses lots of local variables, at least as many local
9459 variables as main has allocated so far including compiler
9460 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9461 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9462 reuse the register of parent for one of the local variables,
9463 since it will think that parent can't possibly be used any more
9464 in this routine. Assigning to the local variable will thus
9465 munge parent in the parent process. */
9467 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9468 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9469 /* Convince the compiler that p..p7 are live; otherwise, it might
9470 use the same hardware register for all 8 local variables. */
9471 if (p != p1 || p != p2 || p != p3 || p != p4
9472 || p != p5 || p != p6 || p != p7)
9475 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9476 from child file descriptors. If the child closes a descriptor
9477 before it execs or exits, this munges the parent's descriptor
9478 as well. Test for this by closing stdout in the child. */
9479 _exit(close(fileno(stdout)) != 0);
9484 while (wait(&status) != child)
9487 /* Was there some problem with vforking? */
9490 /* Did the child fail? (This shouldn't happen.) */
9493 /* Did the vfork/compiler bug occur? */
9494 || parent != getpid()
9496 /* Did the file descriptor bug occur? */
9497 || fstat(fileno(stdout), &st) != 0
9502 if ac_fn_c_try_run
"$LINENO"; then :
9503 ac_cv_func_vfork_works
=yes
9505 ac_cv_func_vfork_works
=no
9507 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9508 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9513 $as_echo "$ac_cv_func_vfork_works" >&6; }
9516 if test "x$ac_cv_func_fork_works" = xcross
; then
9517 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9519 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9522 if test "x$ac_cv_func_vfork_works" = xyes
; then
9524 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9528 $as_echo "#define vfork fork" >>confdefs.h
9531 if test "x$ac_cv_func_fork_works" = xyes
; then
9533 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9538 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9539 # iconv() prototype.
9541 ac_cpp
='$CXXCPP $CPPFLAGS'
9542 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9543 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9544 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9547 if test "X$prefix" = "XNONE"; then
9548 acl_final_prefix
="$ac_default_prefix"
9550 acl_final_prefix
="$prefix"
9552 if test "X$exec_prefix" = "XNONE"; then
9553 acl_final_exec_prefix
='${prefix}'
9555 acl_final_exec_prefix
="$exec_prefix"
9557 acl_save_prefix
="$prefix"
9558 prefix
="$acl_final_prefix"
9559 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9560 prefix
="$acl_save_prefix"
9563 # Check whether --with-gnu-ld was given.
9564 if test "${with_gnu_ld+set}" = set; then :
9565 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9570 # Prepare PATH_SEPARATOR.
9571 # The user is always right.
9572 if test "${PATH_SEPARATOR+set}" != set; then
9573 echo "#! /bin/sh" >conf$$.sh
9574 echo "exit 0" >>conf$$.sh
9576 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9584 if test "$GCC" = yes; then
9585 # Check if gcc -print-prog-name=ld gives a path.
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9587 $as_echo_n "checking for ld used by GCC... " >&6; }
9590 # gcc leaves a trailing carriage return which upsets mingw
9591 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9593 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9596 # Accept absolute paths.
9597 [\\/]* |
[A-Za-z
]:[\\/]*)
9598 re_direlt
='/[^/][^/]*/\.\./'
9599 # Canonicalize the path of ld
9600 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9601 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9602 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9604 test -z "$LD" && LD
="$ac_prog"
9607 # If it fails, then pretend we aren't using GCC.
9611 # If it is relative, then search for the first ld in PATH.
9615 elif test "$with_gnu_ld" = yes; then
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9617 $as_echo_n "checking for GNU ld... " >&6; }
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9620 $as_echo_n "checking for non-GNU ld... " >&6; }
9622 if test "${acl_cv_path_LD+set}" = set; then :
9623 $as_echo_n "(cached) " >&6
9625 if test -z "$LD"; then
9626 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9627 for ac_dir
in $PATH; do
9628 test -z "$ac_dir" && ac_dir
=.
9629 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9630 acl_cv_path_LD
="$ac_dir/$ac_prog"
9631 # Check to see if the program is GNU ld. I'd rather use --version,
9632 # but apparently some GNU ld's only accept -v.
9633 # Break only if it was the GNU/non-GNU ld that we prefer.
9634 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9635 test "$with_gnu_ld" != no
&& break
9637 test "$with_gnu_ld" != yes && break
9643 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9647 LD
="$acl_cv_path_LD"
9648 if test -n "$LD"; then
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9650 $as_echo "$LD" >&6; }
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9653 $as_echo "no" >&6; }
9655 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9657 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9658 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
9661 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9662 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9663 acl_cv_prog_gnu_ld
=yes
9665 acl_cv_prog_gnu_ld
=no
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9669 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9670 with_gnu_ld
=$acl_cv_prog_gnu_ld
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9675 $as_echo_n "checking for shared library run path origin... " >&6; }
9676 if test "${acl_cv_rpath+set}" = set; then :
9677 $as_echo_n "(cached) " >&6
9680 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9681 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9688 $as_echo "$acl_cv_rpath" >&6; }
9690 libext
="$acl_cv_libext"
9691 shlibext
="$acl_cv_shlibext"
9692 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9693 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9694 hardcode_direct
="$acl_cv_hardcode_direct"
9695 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9696 # Check whether --enable-rpath was given.
9697 if test "${enable_rpath+set}" = set; then :
9698 enableval
=$enable_rpath; :
9712 acl_save_prefix
="$prefix"
9713 prefix
="$acl_final_prefix"
9714 acl_save_exec_prefix
="$exec_prefix"
9715 exec_prefix
="$acl_final_exec_prefix"
9717 eval additional_includedir
=\"$includedir\"
9718 eval additional_libdir
=\"$libdir\"
9720 exec_prefix
="$acl_save_exec_prefix"
9721 prefix
="$acl_save_prefix"
9724 # Check whether --with-libiconv-prefix was given.
9725 if test "${with_libiconv_prefix+set}" = set; then :
9726 withval
=$with_libiconv_prefix;
9727 if test "X$withval" = "Xno"; then
9730 if test "X$withval" = "X"; then
9732 acl_save_prefix
="$prefix"
9733 prefix
="$acl_final_prefix"
9734 acl_save_exec_prefix
="$exec_prefix"
9735 exec_prefix
="$acl_final_exec_prefix"
9737 eval additional_includedir
=\"$includedir\"
9738 eval additional_libdir
=\"$libdir\"
9740 exec_prefix
="$acl_save_exec_prefix"
9741 prefix
="$acl_save_prefix"
9744 additional_includedir
="$withval/include"
9745 additional_libdir
="$withval/lib"
9756 names_already_handled
=
9757 names_next_round
='iconv '
9758 while test -n "$names_next_round"; do
9759 names_this_round
="$names_next_round"
9761 for name
in $names_this_round; do
9763 for n
in $names_already_handled; do
9764 if test "$n" = "$name"; then
9769 if test -z "$already_handled"; then
9770 names_already_handled
="$names_already_handled $name"
9771 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9772 eval value
=\"\
$HAVE_LIB$uppername\"
9773 if test -n "$value"; then
9774 if test "$value" = yes; then
9775 eval value
=\"\
$LIB$uppername\"
9776 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9777 eval value
=\"\
$LTLIB$uppername\"
9778 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9787 if test $use_additional = yes; then
9788 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9789 found_dir
="$additional_libdir"
9790 found_so
="$additional_libdir/lib$name.$shlibext"
9791 if test -f "$additional_libdir/lib$name.la"; then
9792 found_la
="$additional_libdir/lib$name.la"
9795 if test -f "$additional_libdir/lib$name.$libext"; then
9796 found_dir
="$additional_libdir"
9797 found_a
="$additional_libdir/lib$name.$libext"
9798 if test -f "$additional_libdir/lib$name.la"; then
9799 found_la
="$additional_libdir/lib$name.la"
9804 if test "X$found_dir" = "X"; then
9805 for x
in $LDFLAGS $LTLIBICONV; do
9807 acl_save_prefix
="$prefix"
9808 prefix
="$acl_final_prefix"
9809 acl_save_exec_prefix
="$exec_prefix"
9810 exec_prefix
="$acl_final_exec_prefix"
9812 exec_prefix
="$acl_save_exec_prefix"
9813 prefix
="$acl_save_prefix"
9817 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9818 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9820 found_so
="$dir/lib$name.$shlibext"
9821 if test -f "$dir/lib$name.la"; then
9822 found_la
="$dir/lib$name.la"
9825 if test -f "$dir/lib$name.$libext"; then
9827 found_a
="$dir/lib$name.$libext"
9828 if test -f "$dir/lib$name.la"; then
9829 found_la
="$dir/lib$name.la"
9835 if test "X$found_dir" != "X"; then
9840 if test "X$found_dir" != "X"; then
9841 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9842 if test "X$found_so" != "X"; then
9843 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9844 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9847 for x
in $ltrpathdirs; do
9848 if test "X$x" = "X$found_dir"; then
9853 if test -z "$haveit"; then
9854 ltrpathdirs
="$ltrpathdirs $found_dir"
9856 if test "$hardcode_direct" = yes; then
9857 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9859 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9860 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9862 for x
in $rpathdirs; do
9863 if test "X$x" = "X$found_dir"; then
9868 if test -z "$haveit"; then
9869 rpathdirs
="$rpathdirs $found_dir"
9873 for x
in $LDFLAGS $LIBICONV; do
9875 acl_save_prefix
="$prefix"
9876 prefix
="$acl_final_prefix"
9877 acl_save_exec_prefix
="$exec_prefix"
9878 exec_prefix
="$acl_final_exec_prefix"
9880 exec_prefix
="$acl_save_exec_prefix"
9881 prefix
="$acl_save_prefix"
9883 if test "X$x" = "X-L$found_dir"; then
9888 if test -z "$haveit"; then
9889 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9891 if test "$hardcode_minus_L" != no
; then
9892 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9894 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9900 if test "X$found_a" != "X"; then
9901 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9903 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9906 additional_includedir
=
9907 case "$found_dir" in
9909 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9910 additional_includedir
="$basedir/include"
9913 if test "X$additional_includedir" != "X"; then
9914 if test "X$additional_includedir" != "X/usr/include"; then
9916 if test "X$additional_includedir" = "X/usr/local/include"; then
9917 if test -n "$GCC"; then
9919 linux
*) haveit
=yes;;
9923 if test -z "$haveit"; then
9924 for x
in $CPPFLAGS $INCICONV; do
9926 acl_save_prefix
="$prefix"
9927 prefix
="$acl_final_prefix"
9928 acl_save_exec_prefix
="$exec_prefix"
9929 exec_prefix
="$acl_final_exec_prefix"
9931 exec_prefix
="$acl_save_exec_prefix"
9932 prefix
="$acl_save_prefix"
9934 if test "X$x" = "X-I$additional_includedir"; then
9939 if test -z "$haveit"; then
9940 if test -d "$additional_includedir"; then
9941 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9947 if test -n "$found_la"; then
9948 save_libdir
="$libdir"
9950 */* |
*\\*) .
"$found_la" ;;
9951 *) .
"./$found_la" ;;
9953 libdir
="$save_libdir"
9954 for dep
in $dependency_libs; do
9957 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9958 if test "X$additional_libdir" != "X/usr/lib"; then
9960 if test "X$additional_libdir" = "X/usr/local/lib"; then
9961 if test -n "$GCC"; then
9963 linux
*) haveit
=yes;;
9967 if test -z "$haveit"; then
9969 for x
in $LDFLAGS $LIBICONV; do
9971 acl_save_prefix
="$prefix"
9972 prefix
="$acl_final_prefix"
9973 acl_save_exec_prefix
="$exec_prefix"
9974 exec_prefix
="$acl_final_exec_prefix"
9976 exec_prefix
="$acl_save_exec_prefix"
9977 prefix
="$acl_save_prefix"
9979 if test "X$x" = "X-L$additional_libdir"; then
9984 if test -z "$haveit"; then
9985 if test -d "$additional_libdir"; then
9986 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9990 for x
in $LDFLAGS $LTLIBICONV; do
9992 acl_save_prefix
="$prefix"
9993 prefix
="$acl_final_prefix"
9994 acl_save_exec_prefix
="$exec_prefix"
9995 exec_prefix
="$acl_final_exec_prefix"
9997 exec_prefix
="$acl_save_exec_prefix"
9998 prefix
="$acl_save_prefix"
10000 if test "X$x" = "X-L$additional_libdir"; then
10005 if test -z "$haveit"; then
10006 if test -d "$additional_libdir"; then
10007 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10014 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10015 if test "$enable_rpath" != no
; then
10017 for x
in $rpathdirs; do
10018 if test "X$x" = "X$dir"; then
10023 if test -z "$haveit"; then
10024 rpathdirs
="$rpathdirs $dir"
10027 for x
in $ltrpathdirs; do
10028 if test "X$x" = "X$dir"; then
10033 if test -z "$haveit"; then
10034 ltrpathdirs
="$ltrpathdirs $dir"
10039 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10042 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10045 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10046 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10052 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10053 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10059 if test "X$rpathdirs" != "X"; then
10060 if test -n "$hardcode_libdir_separator"; then
10062 for found_dir
in $rpathdirs; do
10063 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10065 acl_save_libdir
="$libdir"
10067 eval flag
=\"$hardcode_libdir_flag_spec\"
10068 libdir
="$acl_save_libdir"
10069 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10071 for found_dir
in $rpathdirs; do
10072 acl_save_libdir
="$libdir"
10073 libdir
="$found_dir"
10074 eval flag
=\"$hardcode_libdir_flag_spec\"
10075 libdir
="$acl_save_libdir"
10076 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10080 if test "X$ltrpathdirs" != "X"; then
10081 for found_dir
in $ltrpathdirs; do
10082 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10092 am_save_CPPFLAGS
="$CPPFLAGS"
10094 for element
in $INCICONV; do
10096 for x
in $CPPFLAGS; do
10098 acl_save_prefix
="$prefix"
10099 prefix
="$acl_final_prefix"
10100 acl_save_exec_prefix
="$exec_prefix"
10101 exec_prefix
="$acl_final_exec_prefix"
10103 exec_prefix
="$acl_save_exec_prefix"
10104 prefix
="$acl_save_prefix"
10106 if test "X$x" = "X$element"; then
10111 if test -z "$haveit"; then
10112 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10118 $as_echo_n "checking for iconv... " >&6; }
10119 if test "${am_cv_func_iconv+set}" = set; then :
10120 $as_echo_n "(cached) " >&6
10123 am_cv_func_iconv
="no, consider installing GNU libiconv"
10125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h. */
10127 #include <stdlib.h>
10132 iconv_t cd = iconv_open("","");
10133 iconv(cd,NULL,NULL,NULL,NULL);
10139 if ac_fn_cxx_try_link
"$LINENO"; then :
10140 am_cv_func_iconv
=yes
10142 rm -f core conftest.err conftest.
$ac_objext \
10143 conftest
$ac_exeext conftest.
$ac_ext
10144 if test "$am_cv_func_iconv" != yes; then
10145 am_save_LIBS
="$LIBS"
10146 LIBS
="$LIBS $LIBICONV"
10147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10148 /* end confdefs.h. */
10149 #include <stdlib.h>
10154 iconv_t cd = iconv_open("","");
10155 iconv(cd,NULL,NULL,NULL,NULL);
10161 if ac_fn_cxx_try_link
"$LINENO"; then :
10162 am_cv_lib_iconv
=yes
10163 am_cv_func_iconv
=yes
10165 rm -f core conftest.err conftest.
$ac_objext \
10166 conftest
$ac_exeext conftest.
$ac_ext
10167 LIBS
="$am_save_LIBS"
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10172 $as_echo "$am_cv_func_iconv" >&6; }
10173 if test "$am_cv_func_iconv" = yes; then
10175 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10178 if test "$am_cv_lib_iconv" = yes; then
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10180 $as_echo_n "checking how to link with libiconv... " >&6; }
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10182 $as_echo "$LIBICONV" >&6; }
10184 CPPFLAGS
="$am_save_CPPFLAGS"
10191 if test "$am_cv_func_iconv" = yes; then
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10193 $as_echo_n "checking for iconv declaration... " >&6; }
10194 if test "${am_cv_proto_iconv+set}" = set; then :
10195 $as_echo_n "(cached) " >&6
10198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h. */
10201 #include <stdlib.h>
10207 #if defined(__STDC__) || defined(__cplusplus)
10208 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10221 if ac_fn_cxx_try_compile
"$LINENO"; then :
10222 am_cv_proto_iconv_arg1
=""
10224 am_cv_proto_iconv_arg1
="const"
10226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10227 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);"
10230 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10232 }$am_cv_proto_iconv" >&5
10234 }$am_cv_proto_iconv" >&6; }
10236 cat >>confdefs.h
<<_ACEOF
10237 #define ICONV_CONST $am_cv_proto_iconv_arg1
10243 ac_cpp
='$CPP $CPPFLAGS'
10244 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10245 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10246 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10249 # Until we have in-tree GNU iconv:
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10255 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10256 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10257 $as_echo_n "(cached) " >&6
10259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10260 /* end confdefs.h. */
10261 #include <locale.h>
10270 if ac_fn_c_try_link
"$LINENO"; then :
10271 am_cv_val_LC_MESSAGES
=yes
10273 am_cv_val_LC_MESSAGES
=no
10275 rm -f core conftest.err conftest.
$ac_objext \
10276 conftest
$ac_exeext conftest.
$ac_ext
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10279 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10280 if test $am_cv_val_LC_MESSAGES = yes; then
10282 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10289 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10290 if test "${am_cv_langinfo_codeset+set}" = set; then :
10291 $as_echo_n "(cached) " >&6
10293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10294 /* end confdefs.h. */
10295 #include <langinfo.h>
10299 char* cs = nl_langinfo(CODESET);
10304 if ac_fn_c_try_link
"$LINENO"; then :
10305 am_cv_langinfo_codeset
=yes
10307 am_cv_langinfo_codeset
=no
10309 rm -f core conftest.err conftest.
$ac_objext \
10310 conftest
$ac_exeext conftest.
$ac_ext
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10314 $as_echo "$am_cv_langinfo_codeset" >&6; }
10315 if test $am_cv_langinfo_codeset = yes; then
10317 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10322 # We will need to find libiberty.h and ansidecl.h
10323 saved_CFLAGS
="$CFLAGS"
10324 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10325 saved_CXXFLAGS
="$CXXFLAGS"
10326 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10327 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10328 strsignal strstr stpcpy strverscmp \
10329 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10330 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
10332 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10334 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10335 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10336 $as_echo_n "(cached) " >&6
10338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10339 /* end confdefs.h. */
10341 #define $ac_tr_decl 1
10343 #include "ansidecl.h"
10344 #include "system.h"
10350 char *(*pfn) = (char *(*)) $ac_func ;
10356 if ac_fn_c_try_compile
"$LINENO"; then :
10357 eval "gcc_cv_have_decl_$ac_func=yes"
10359 eval "gcc_cv_have_decl_$ac_func=no"
10361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10364 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10366 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10367 #define $ac_tr_decl 1
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10372 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10373 #define $ac_tr_decl 0
10381 for ac_func
in getrlimit setrlimit getrusage
10383 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10385 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10386 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10387 $as_echo_n "(cached) " >&6
10389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10390 /* end confdefs.h. */
10392 #define $ac_tr_decl 1
10394 #include "ansidecl.h"
10395 #include "system.h"
10396 #ifdef HAVE_SYS_RESOURCE_H
10397 #include <sys/resource.h>
10405 char *(*pfn) = (char *(*)) $ac_func ;
10411 if ac_fn_c_try_compile
"$LINENO"; then :
10412 eval "gcc_cv_have_decl_$ac_func=yes"
10414 eval "gcc_cv_have_decl_$ac_func=no"
10416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10419 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10421 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10422 #define $ac_tr_decl 1
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10427 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10428 #define $ac_tr_decl 0
10436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10437 /* end confdefs.h. */
10439 #include "ansidecl.h"
10440 #include "system.h"
10441 #ifdef HAVE_SYS_RESOURCE_H
10442 #include <sys/resource.h>
10453 if ac_fn_c_try_compile
"$LINENO"; then :
10457 $as_echo "#define rlim_t long" >>confdefs.h
10460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10462 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10463 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10464 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10465 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10466 for ac_func
in ldgetname
10468 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10470 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10471 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10472 $as_echo_n "(cached) " >&6
10474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10477 #define $ac_tr_decl 1
10479 #include "ansidecl.h"
10480 #include "system.h"
10481 #ifdef HAVE_LDFCN_H
10492 char *(*pfn) = (char *(*)) $ac_func ;
10498 if ac_fn_c_try_compile
"$LINENO"; then :
10499 eval "gcc_cv_have_decl_$ac_func=yes"
10501 eval "gcc_cv_have_decl_$ac_func=no"
10503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10506 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10508 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10509 #define $ac_tr_decl 1
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10515 #define $ac_tr_decl 0
10523 for ac_func
in times
10525 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10527 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10528 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10529 $as_echo_n "(cached) " >&6
10531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10532 /* end confdefs.h. */
10534 #define $ac_tr_decl 1
10536 #include "ansidecl.h"
10537 #include "system.h"
10538 #ifdef HAVE_SYS_TIMES_H
10539 #include <sys/times.h>
10547 char *(*pfn) = (char *(*)) $ac_func ;
10553 if ac_fn_c_try_compile
"$LINENO"; then :
10554 eval "gcc_cv_have_decl_$ac_func=yes"
10556 eval "gcc_cv_have_decl_$ac_func=no"
10558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10561 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10563 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10564 #define $ac_tr_decl 1
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10569 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10570 #define $ac_tr_decl 0
10578 for ac_func
in sigaltstack
10580 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10582 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10583 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10584 $as_echo_n "(cached) " >&6
10586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h. */
10589 #define $ac_tr_decl 1
10591 #include "ansidecl.h"
10592 #include "system.h"
10593 #include <signal.h>
10600 char *(*pfn) = (char *(*)) $ac_func ;
10606 if ac_fn_c_try_compile
"$LINENO"; then :
10607 eval "gcc_cv_have_decl_$ac_func=yes"
10609 eval "gcc_cv_have_decl_$ac_func=no"
10611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10614 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10616 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10617 #define $ac_tr_decl 1
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10623 #define $ac_tr_decl 0
10631 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10634 ac_cpp
='$CXXCPP $CPPFLAGS'
10635 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10636 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10637 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10639 for ac_func
in madvise
10641 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10643 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10644 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10645 $as_echo_n "(cached) " >&6
10647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10650 #define $ac_tr_decl 1
10652 #include "ansidecl.h"
10653 #include "system.h"
10660 char *(*pfn) = (char *(*)) $ac_func ;
10666 if ac_fn_cxx_try_compile
"$LINENO"; then :
10667 eval "gcc_cv_have_decl_$ac_func=yes"
10669 eval "gcc_cv_have_decl_$ac_func=no"
10671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10674 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10676 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10677 #define $ac_tr_decl 1
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10683 #define $ac_tr_decl 0
10691 ac_cpp
='$CPP $CPPFLAGS'
10692 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10693 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10694 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10697 # More time-related stuff.
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10699 $as_echo_n "checking for struct tms... " >&6; }
10700 if test "${ac_cv_struct_tms+set}" = set; then :
10701 $as_echo_n "(cached) " >&6
10704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h. */
10707 #include "ansidecl.h"
10708 #include "system.h"
10709 #ifdef HAVE_SYS_TIMES_H
10710 #include <sys/times.h>
10721 if ac_fn_c_try_compile
"$LINENO"; then :
10722 ac_cv_struct_tms
=yes
10724 ac_cv_struct_tms
=no
10726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10729 $as_echo "$ac_cv_struct_tms" >&6; }
10730 if test $ac_cv_struct_tms = yes; then
10732 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10736 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10737 # revisit after autoconf 2.50.
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10739 $as_echo_n "checking for clock_t... " >&6; }
10740 if test "${gcc_cv_type_clock_t+set}" = set; then :
10741 $as_echo_n "(cached) " >&6
10744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10747 #include "ansidecl.h"
10748 #include "system.h"
10758 if ac_fn_c_try_compile
"$LINENO"; then :
10759 gcc_cv_type_clock_t
=yes
10761 gcc_cv_type_clock_t
=no
10763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10766 $as_echo "$gcc_cv_type_clock_t" >&6; }
10767 if test $gcc_cv_type_clock_t = yes; then
10769 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10773 # Check if F_SETLKW is supported by fcntl.
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10775 $as_echo_n "checking for F_SETLKW... " >&6; }
10776 if test "${ac_cv_f_setlkw+set}" = set; then :
10777 $as_echo_n "(cached) " >&6
10780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10781 /* end confdefs.h. */
10793 return fcntl (1, F_SETLKW, &fl);
10798 if ac_fn_c_try_compile
"$LINENO"; then :
10803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10806 $as_echo "$ac_cv_f_setlkw" >&6; }
10807 if test $ac_cv_f_setlkw = yes; then
10809 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10813 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10814 CFLAGS
="$saved_CFLAGS"
10815 CXXFLAGS
="$saved_CXXFLAGS"
10817 # mkdir takes a single argument on some systems.
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10819 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10820 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10821 $as_echo_n "(cached) " >&6
10823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h. */
10826 #include <sys/types.h>
10827 #ifdef HAVE_SYS_STAT_H
10828 # include <sys/stat.h>
10830 #ifdef HAVE_UNISTD_H
10831 # include <unistd.h>
10833 #ifdef HAVE_DIRECT_H
10834 # include <direct.h>
10844 if ac_fn_c_try_compile
"$LINENO"; then :
10845 gcc_cv_mkdir_takes_one_arg
=no
10847 gcc_cv_mkdir_takes_one_arg
=yes
10849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10852 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10853 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10855 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10866 # With Setjmp/Longjmp based exception handling.
10867 # Check whether --enable-sjlj-exceptions was given.
10868 if test "${enable_sjlj_exceptions+set}" = set; then :
10869 enableval
=$enable_sjlj_exceptions; case $target in
10871 if test $enableval != yes; then
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10873 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10878 force_sjlj_exceptions
=yes
10882 force_sjlj_exceptions
=yes
10886 force_sjlj_exceptions
=no
10891 if test $force_sjlj_exceptions = yes; then
10892 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10894 cat >>confdefs.h
<<_ACEOF
10895 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10900 # --------------------------------------------------------
10901 # Build, host, and target specific configuration fragments
10902 # --------------------------------------------------------
10904 # Collect build-machine-specific information.
10905 .
${srcdir}/config.build
10907 # Collect host-machine-specific information.
10908 .
${srcdir}/config.
host
10912 # Collect target-machine-specific information.
10913 .
${srcdir}/config.gcc
10915 extra_objs
="${host_extra_objs} ${extra_objs}"
10916 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10918 # Default the target-machine variables that were not explicitly set.
10919 if test x
"$tm_file" = x
10920 then tm_file
=$cpu_type/$cpu_type.h
; fi
10922 if test x
"$extra_headers" = x
10923 then extra_headers
=; fi
10925 if test x
$md_file = x
10926 then md_file
=$cpu_type/$cpu_type.md
; fi
10928 if test x
$out_file = x
10929 then out_file
=$cpu_type/$cpu_type.c
; fi
10931 if test x
"$tmake_file" = x
10932 then tmake_file
=$cpu_type/t-
$cpu_type
10935 # Support --enable-initfini-array.
10936 if test x
$enable_initfini_array != xno
; then
10937 tm_file
="${tm_file} initfini-array.h"
10940 if test x
"$dwarf2" = xyes
10941 then tm_file
="$tm_file tm-dwarf2.h"
10944 # Say what files are being used for the output code and MD file.
10945 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10946 echo "Using \`$srcdir/config/$md_file' as machine description file."
10948 # If any of the xm_file variables contain nonexistent files, warn
10949 # about them and drop them.
10952 for x
in $build_xm_file; do
10953 if test -f $srcdir/config
/$x
10955 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10956 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10959 build_xm_file
="$bx"
10962 for x
in $host_xm_file; do
10963 if test -f $srcdir/config
/$x
10965 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10966 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10972 for x
in $xm_file; do
10973 if test -f $srcdir/config
/$x
10975 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10976 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10982 for f
in $tm_file; do
10985 if test $count = ax
; then
10986 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10988 echo "Using the following target machine macro files:"
10989 for f
in $tm_file; do
10990 echo " $srcdir/config/$f"
10994 if test x
$need_64bit_hwint = xyes
; then
10996 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11000 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11002 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11006 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11008 cat >>confdefs.h
<<_ACEOF
11009 #define HAVE_GNU_LD $gnu_ld_bool
11013 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11015 cat >>confdefs.h
<<_ACEOF
11016 #define HAVE_GNU_AS $gnu_as_bool
11021 for f
in $host_xm_file; do
11024 if test $count = a
; then
11026 elif test $count = ax
; then
11027 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11029 echo "Using the following host machine macro files:"
11030 for f
in $host_xm_file; do
11031 echo " $srcdir/config/$f"
11034 echo "Using ${out_host_hook_obj} for host machine hooks."
11036 if test "$host_xm_file" != "$build_xm_file"; then
11038 for f
in $build_xm_file; do
11041 if test $count = a
; then
11043 elif test $count = ax
; then
11044 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11046 echo "Using the following build machine macro files:"
11047 for f
in $build_xm_file; do
11048 echo " $srcdir/config/$f"
11053 if test -n "$configured_native_system_header_dir"; then
11054 native_system_header_dir
=$configured_native_system_header_dir
11056 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11060 powerpc
*-*-darwin*)
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11062 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11063 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11064 $as_echo_n "(cached) " >&6
11066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11067 /* end confdefs.h. */
11069 #include <sys/cdefs.h>
11070 #include <sys/signal.h>
11071 #include <ucontext.h>
11072 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11075 if ac_fn_c_try_compile
"$LINENO"; then :
11076 gcc_cv_mcontext_underscores
=no
11078 gcc_cv_mcontext_underscores
=yes
11080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11083 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11084 if test $gcc_cv_mcontext_underscores = yes; then
11086 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11096 # Check if a valid thread package
11097 case ${enable_threads} in
11100 target_thread_file
='single'
11104 target_thread_file
='single'
11106 aix | dce | lynx | mipssde | posix | rtems | \
11107 single | tpf | vxworks | win32
)
11108 target_thread_file
=${enable_threads}
11111 echo "${enable_threads} is an unknown thread package" 1>&2
11116 if test x
${thread_file} = x
; then
11117 # No thread file set by target-specific clauses in config.gcc,
11118 # so use file chosen by default logic above
11119 thread_file
=${target_thread_file}
11127 if test x
$enable___cxa_atexit = xyes || \
11128 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11129 if test x
$host = x
$target; then
11131 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11132 # keyed to flag_use_cxa_atexit
11137 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11138 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11141 echo "__cxa_atexit can't be enabled on this target"
11147 # We can't check for __cxa_atexit when building a cross, so assume
11151 if test x
$use_cxa_atexit = xyes
; then
11153 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11158 # Look for a file containing extra machine modes.
11159 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11160 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11163 cat >>confdefs.h
<<_ACEOF
11164 #define EXTRA_MODES_FILE "config/$extra_modes"
11169 # Convert extra_options into a form suitable for Makefile use.
11172 for f
in $extra_options; do
11173 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11174 all_opt_files
="$all_opt_files $srcdir/config/$f"
11178 # auto-host.h is the file containing items generated by autoconf and is
11179 # the first file included by config.h.
11180 # If host=build, it is correct to have bconfig include auto-host.h
11181 # as well. If host!=build, we are in error and need to do more
11182 # work to find out the build config parameters.
11183 if test x
$host = x
$build
11185 build_auto
=auto-host.h
11187 # We create a subdir, then run autoconf in the subdir.
11188 # To prevent recursion we set host and build for the new
11189 # invocation of configure to the build for this invocation
11196 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11197 *) realsrcdir
=..
/${srcdir};;
11199 saved_CFLAGS
="${CFLAGS}"
11200 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11201 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11202 ${realsrcdir}/configure \
11203 --enable-languages=${enable_languages-all} \
11204 --target=$target_alias --host=$build_alias --build=$build_alias
11205 CFLAGS
="${saved_CFLAGS}"
11207 # We just finished tests for the build machine, so rename
11208 # the file auto-build.h in the gcc directory.
11209 mv auto-host.h ..
/auto-build.h
11212 build_auto
=auto-build.h
11216 tm_file
="${tm_file} defaults.h"
11217 tm_p_file
="${tm_p_file} tm-preds.h"
11218 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11219 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11220 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11221 # put this back in temporarily.
11222 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11228 # Compile in configure arguments.
11229 if test -f configargs.h
; then
11230 # Being re-configured.
11231 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11232 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11234 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11237 # Double all backslashes and backslash all quotes to turn
11238 # gcc_config_arguments into a C string.
11239 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11240 $gcc_config_arguments
11242 gcc_config_arguments_str
=`cat conftest.out`
11245 cat > configargs.h
<<EOF
11246 /* Generated automatically. */
11247 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11248 static const char thread_model[] = "$thread_file";
11250 static const struct {
11251 const char *name, *value;
11252 } configure_default_options[] = $configure_default_options;
11255 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11256 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11257 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11258 if test -f $srcdir/REVISION
; then
11259 gcc_REVISION
=`cat $srcdir/REVISION`
11263 cat > plugin-version.h
<<EOF
11264 #include "configargs.h"
11266 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11267 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11268 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11269 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11271 static char basever[] = "$gcc_BASEVER";
11272 static char datestamp[] = "$gcc_DATESTAMP";
11273 static char devphase[] = "$gcc_DEVPHASE";
11274 static char revision[] = "$gcc_REVISION";
11276 /* FIXME plugins: We should make the version information more precise.
11277 One way to do is to add a checksum. */
11279 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11280 devphase, revision,
11281 configuration_arguments};
11284 # Internationalization
11285 # If we haven't got the data from the intl directory,
11286 # assume NLS is disabled.
11295 if test -f ..
/intl
/config.intl
; then
11296 . ..
/intl
/config.intl
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11299 $as_echo_n "checking whether NLS is requested... " >&6; }
11300 if test x
"$USE_NLS" != xyes
; then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11302 $as_echo "no" >&6; }
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11305 $as_echo "yes" >&6; }
11307 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11311 $as_echo_n "checking for catalogs to be installed... " >&6; }
11312 # Look for .po and .gmo files in the source directory.
11315 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11316 # If there aren't any .gmo files the shell will give us the
11317 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11319 case "$cat" in *\
**)
11322 # The quadruple backslash is collapsed to a double backslash
11323 # by the backticks, then collapsed again by the double quotes,
11324 # leaving us with one backslash in the sed expression (right
11325 # before the dot that mustn't act as a wildcard).
11326 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11327 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11328 # The user is allowed to set LINGUAS to a list of languages to
11329 # install catalogs for. If it's empty that means "all of them."
11330 if test "x$LINGUAS" = x
; then
11331 CATALOGS
="$CATALOGS $cat"
11332 XLINGUAS
="$XLINGUAS $lang"
11334 case "$LINGUAS" in *$lang*)
11335 CATALOGS
="$CATALOGS $cat"
11336 XLINGUAS
="$XLINGUAS $lang"
11341 LINGUAS
="$XLINGUAS"
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11343 $as_echo "$LINGUAS" >&6; }
11356 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11357 # -liconv on the link line twice.
11358 case "$LIBINTL" in *$LIBICONV*)
11362 # Check whether --enable-secureplt was given.
11363 if test "${enable_secureplt+set}" = set; then :
11364 enableval
=$enable_secureplt;
11368 # Check whether --enable-leading-mingw64-underscores was given.
11369 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11370 enableval
=$enable_leading_mingw64_underscores;
11373 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11375 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11379 # Check whether --enable-cld was given.
11380 if test "${enable_cld+set}" = set; then :
11381 enableval
=$enable_cld;
11387 # Check whether --enable-frame-pointer was given.
11388 if test "${enable_frame_pointer+set}" = set; then :
11389 enableval
=$enable_frame_pointer;
11393 linux
* | darwin
[8912]*)
11394 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11396 enable_frame_pointer
=no
11399 enable_frame_pointer
=yes
11406 # Windows32 Registry support for specifying GCC installation paths.
11407 # Check whether --enable-win32-registry was given.
11408 if test "${enable_win32_registry+set}" = set; then :
11409 enableval
=$enable_win32_registry;
11414 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11415 if test "x$enable_win32_registry" != xno
; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11417 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11418 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11419 $as_echo_n "(cached) " >&6
11421 ac_func_search_save_LIBS
=$LIBS
11422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11425 /* Override any GCC internal prototype to avoid an error.
11426 Use char because int might match the return type of a GCC
11427 builtin and then its argument prototype would still apply. */
11431 char RegOpenKeyExA ();
11435 return RegOpenKeyExA ();
11440 for ac_lib
in '' advapi32
; do
11441 if test -z "$ac_lib"; then
11442 ac_res
="none required"
11445 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11447 if ac_fn_c_try_link
"$LINENO"; then :
11448 ac_cv_search_RegOpenKeyExA
=$ac_res
11450 rm -f core conftest.err conftest.
$ac_objext \
11452 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11456 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11459 ac_cv_search_RegOpenKeyExA
=no
11461 rm conftest.
$ac_ext
11462 LIBS
=$ac_func_search_save_LIBS
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11465 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11466 ac_res
=$ac_cv_search_RegOpenKeyExA
11467 if test "$ac_res" != no
; then :
11468 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11471 enable_win32_registry
=no
11476 if test "x$enable_win32_registry" != xno
; then
11478 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11481 if test "x$enable_win32_registry" != xyes \
11482 && test "x$enable_win32_registry" != x
; then
11484 cat >>confdefs.h
<<_ACEOF
11485 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11493 # Get an absolute path to the GCC top-level source directory
11494 holddir
=`${PWDCMD-pwd}`
11496 topdir
=`${PWDCMD-pwd}`
11499 # Conditionalize the makefile for this host machine.
11501 for f
in ${host_xmake_file}
11503 if test -f ${srcdir}/config
/$f
11505 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11509 # Conditionalize the makefile for this target machine.
11511 for f
in ${tmake_file}
11513 if test -f ${srcdir}/config
/$f
11515 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11518 tmake_file
="${tmake_file_}"
11520 out_object_file
=`basename $out_file .c`.o
11521 common_out_object_file
=`basename $common_out_file .c`.o
11523 tm_file_list
="options.h"
11524 tm_include_list
="options.h insn-constants.h"
11525 for f
in $tm_file; do
11528 f
=`echo $f | sed 's/^..//'`
11529 tm_file_list
="${tm_file_list} $f"
11530 tm_include_list
="${tm_include_list} $f"
11533 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11534 tm_include_list
="${tm_include_list} $f"
11537 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11538 tm_include_list
="${tm_include_list} config/$f"
11545 for f
in $tm_p_file; do
11548 tm_p_file_list
="${tm_p_file_list} $f"
11549 tm_p_include_list
="${tm_p_include_list} $f"
11552 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11553 tm_p_include_list
="${tm_p_include_list} config/$f"
11559 for f
in $xm_file; do
11562 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11563 xm_include_list
="${xm_include_list} $f"
11566 xm_file_list
="${xm_file_list} $f"
11567 xm_include_list
="${xm_include_list} $f"
11570 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11571 xm_include_list
="${xm_include_list} config/$f"
11577 host_xm_include_list
=
11578 for f
in $host_xm_file; do
11581 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11582 host_xm_include_list
="${host_xm_include_list} $f"
11585 host_xm_file_list
="${host_xm_file_list} $f"
11586 host_xm_include_list
="${host_xm_include_list} $f"
11589 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11590 host_xm_include_list
="${host_xm_include_list} config/$f"
11595 build_xm_file_list
=
11596 for f
in $build_xm_file; do
11599 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11600 build_xm_include_list
="${build_xm_include_list} $f"
11602 auto-build.h | auto-host.h
)
11603 build_xm_file_list
="${build_xm_file_list} $f"
11604 build_xm_include_list
="${build_xm_include_list} $f"
11607 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11608 build_xm_include_list
="${build_xm_include_list} config/$f"
11613 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11614 # cross-compiler which does not use the native headers and libraries.
11615 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11618 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11620 if test "x$with_build_sysroot" != x
; then
11621 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11623 # This value is used, even on a native system, because
11624 # CROSS_SYSTEM_HEADER_DIR is just
11625 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11626 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11629 if test x
$host != x
$target
11631 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11633 SYSTEM_HEADER_DIR
=$build_system_header_dir
11634 case "$host","$target" in
11635 # Darwin crosses can use the host system's libraries and headers,
11636 # because of the fat library support. Of course, it must be the
11637 # same version of Darwin on both sides. Allow the user to
11638 # just say --target=foo-darwin without a version number to mean
11639 # "the version on this system".
11640 *-*-darwin*,*-*-darwin*)
11641 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11642 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11643 if test $hostos = $targetos -o $targetos = darwin
; then
11645 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11650 i?
86-*-*,x86_64-
*-* \
11651 | powerpc
*-*-*,powerpc64
*-*-*)
11652 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11657 if test "x$with_headers" = x
; then
11664 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11665 SYSTEM_HEADER_DIR
=$build_system_header_dir
11668 # If this is a cross-compiler that does not
11669 # have its own set of headers then define
11672 # If this is using newlib, without having the headers available now,
11673 # then define inhibit_libc in LIBGCC2_CFLAGS.
11674 # This prevents libgcc2 from containing any code which requires libc
11676 : ${inhibit_libc=false}
11677 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11678 test x
$with_newlib = xyes
; } &&
11679 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11684 # When building gcc with a cross-compiler, we need to adjust things so
11685 # that the generator programs are still built with the native compiler.
11686 # Also, we cannot run fixincludes.
11688 # These are the normal (build=host) settings:
11689 CC_FOR_BUILD
='$(CC)'
11690 CXX_FOR_BUILD
='$(CXX)'
11691 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11692 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11693 BUILD_LDFLAGS
='$(LDFLAGS)'
11694 STMP_FIXINC
=stmp-fixinc
11696 # And these apply if build != host, or we are generating coverage data
11697 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11699 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11700 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11703 # Expand extra_headers to include complete path.
11704 # This substitutes for lots of t-* files.
11705 extra_headers_list
=
11706 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11707 for file in ${extra_headers} ; do
11708 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11711 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11712 if test x
"$use_gcc_tgmath" = xyes
11713 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11716 # Define collect2 in Makefile.
11717 case $host_can_use_collect2 in
11719 *) collect2
='collect2$(exeext)' ;;
11723 # Add a definition of USE_COLLECT2 if system wants one.
11724 case $use_collect2 in
11725 no
) use_collect2
= ;;
11728 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11729 xm_defines
="${xm_defines} USE_COLLECT2"
11730 case $host_can_use_collect2 in
11732 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11739 cat >>confdefs.h
<<_ACEOF
11740 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11744 # ---------------------------
11745 # Assembler & linker features
11746 # ---------------------------
11748 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11749 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11750 # However when ld-new is first executed from the build tree, libtool will
11751 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11752 # to the build tree. While doing this we need to use the previous-stage
11753 # linker, or we have an infinite loop. The presence of a shell script as
11754 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11755 # the gcc/collect-ld script. So we need to know how libtool works, or
11756 # exec-tool will fail.
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11762 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11767 macro_version
='2.2.7a'
11768 macro_revision
='1.3134'
11782 ltmain
="$ac_aux_dir/ltmain.sh"
11784 # Backslashify metacharacters that are still active within
11785 # double-quoted strings.
11786 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11788 # Same as above, but do not quote variable references.
11789 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11791 # Sed substitution to delay expansion of an escaped shell variable in a
11792 # double_quote_subst'ed string.
11793 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11795 # Sed substitution to delay expansion of an escaped single quote.
11796 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11798 # Sed substitution to avoid accidental globbing in evaled expressions
11799 no_glob_subst
='s/\*/\\\*/g'
11801 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11802 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11803 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11806 $as_echo_n "checking how to print strings... " >&6; }
11807 # Test print first, because it will be a builtin if present.
11808 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11809 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11811 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11814 # Use this function as a fallback that always works.
11815 func_fallback_echo ()
11817 eval 'cat <<_LTECHO_EOF
11821 ECHO='func_fallback_echo
'
11824 # func_echo_all arg...
11825 # Invoke $ECHO with all args, space-separated.
11832 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11833 $as_echo "printf" >&6; } ;;
11834 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11835 $as_echo "print -r" >&6; } ;;
11836 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11837 $as_echo "cat" >&6; } ;;
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11854 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11855 if test "${ac_cv_path_SED+set}" = set; then :
11856 $as_echo_n "(cached) " >&6
11858 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11859 for ac_i in 1 2 3 4 5 6 7; do
11860 ac_script="$ac_script$as_nl$ac_script"
11862 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11863 { ac_script=; unset ac_script;}
11864 if test -z "$SED"; then
11865 ac_path_SED_found=false
11866 # Loop through the user's path and
test for each of PROGNAME-LIST
11867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11868 for as_dir
in $PATH
11871 test -z "$as_dir" && as_dir
=.
11872 for ac_prog
in sed gsed
; do
11873 for ac_exec_ext
in '' $ac_executable_extensions; do
11874 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11875 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11876 # Check for GNU ac_path_SED and select it if it is found.
11877 # Check for GNU $ac_path_SED
11878 case `"$ac_path_SED" --version 2>&1` in
11880 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11883 $as_echo_n 0123456789 >"conftest.in"
11886 cat "conftest.in" "conftest.in" >"conftest.tmp"
11887 mv "conftest.tmp" "conftest.in"
11888 cp "conftest.in" "conftest.nl"
11889 $as_echo '' >> "conftest.nl"
11890 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11891 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11892 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11893 if test $ac_count -gt ${ac_path_SED_max-0}; then
11894 # Best one so far, save it but keep looking for a better one
11895 ac_cv_path_SED
="$ac_path_SED"
11896 ac_path_SED_max
=$ac_count
11898 # 10*(2^10) chars as input seems more than enough
11899 test $ac_count -gt 10 && break
11901 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11904 $ac_path_SED_found && break 3
11909 if test -z "$ac_cv_path_SED"; then
11910 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11913 ac_cv_path_SED
=$SED
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11918 $as_echo "$ac_cv_path_SED" >&6; }
11919 SED
="$ac_cv_path_SED"
11922 test -z "$SED" && SED
=sed
11923 Xsed
="$SED -e 1s/^X//"
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11936 $as_echo_n "checking for fgrep... " >&6; }
11937 if test "${ac_cv_path_FGREP+set}" = set; then :
11938 $as_echo_n "(cached) " >&6
11940 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11941 then ac_cv_path_FGREP
="$GREP -F"
11943 if test -z "$FGREP"; then
11944 ac_path_FGREP_found
=false
11945 # Loop through the user's path and test for each of PROGNAME-LIST
11946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11947 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11950 test -z "$as_dir" && as_dir
=.
11951 for ac_prog
in fgrep
; do
11952 for ac_exec_ext
in '' $ac_executable_extensions; do
11953 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11954 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11955 # Check for GNU ac_path_FGREP and select it if it is found.
11956 # Check for GNU $ac_path_FGREP
11957 case `"$ac_path_FGREP" --version 2>&1` in
11959 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
11962 $as_echo_n 0123456789 >"conftest.in"
11965 cat "conftest.in" "conftest.in" >"conftest.tmp"
11966 mv "conftest.tmp" "conftest.in"
11967 cp "conftest.in" "conftest.nl"
11968 $as_echo 'FGREP' >> "conftest.nl"
11969 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11970 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11971 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11972 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11973 # Best one so far, save it but keep looking for a better one
11974 ac_cv_path_FGREP
="$ac_path_FGREP"
11975 ac_path_FGREP_max
=$ac_count
11977 # 10*(2^10) chars as input seems more than enough
11978 test $ac_count -gt 10 && break
11980 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11983 $ac_path_FGREP_found && break 3
11988 if test -z "$ac_cv_path_FGREP"; then
11989 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11992 ac_cv_path_FGREP
=$FGREP
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11998 $as_echo "$ac_cv_path_FGREP" >&6; }
11999 FGREP
="$ac_cv_path_FGREP"
12002 test -z "$GREP" && GREP
=grep
12022 # Check whether --with-gnu-ld was given.
12023 if test "${with_gnu_ld+set}" = set; then :
12024 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12030 if test "$GCC" = yes; then
12031 # Check if gcc -print-prog-name=ld gives a path.
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12033 $as_echo_n "checking for ld used by $CC... " >&6; }
12036 # gcc leaves a trailing carriage return which upsets mingw
12037 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12039 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12042 # Accept absolute paths.
12044 re_direlt
='/[^/][^/]*/\.\./'
12045 # Canonicalize the pathname of ld
12046 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12047 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12048 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12050 test -z "$LD" && LD
="$ac_prog"
12053 # If it fails, then pretend we aren't using GCC.
12057 # If it is relative, then search for the first ld in PATH.
12058 with_gnu_ld
=unknown
12061 elif test "$with_gnu_ld" = yes; then
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12063 $as_echo_n "checking for GNU ld... " >&6; }
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12066 $as_echo_n "checking for non-GNU ld... " >&6; }
12068 if test "${lt_cv_path_LD+set}" = set; then :
12069 $as_echo_n "(cached) " >&6
12071 if test -z "$LD"; then
12072 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12073 for ac_dir
in $PATH; do
12075 test -z "$ac_dir" && ac_dir
=.
12076 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12077 lt_cv_path_LD
="$ac_dir/$ac_prog"
12078 # Check to see if the program is GNU ld. I'd rather use --version,
12079 # but apparently some variants of GNU ld only accept -v.
12080 # Break only if it was the GNU/non-GNU ld that we prefer.
12081 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12082 *GNU
* |
*'with BFD'*)
12083 test "$with_gnu_ld" != no
&& break
12086 test "$with_gnu_ld" != yes && break
12093 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12097 LD
="$lt_cv_path_LD"
12098 if test -n "$LD"; then
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12100 $as_echo "$LD" >&6; }
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103 $as_echo "no" >&6; }
12105 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12107 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12108 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12109 $as_echo_n "(cached) " >&6
12111 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12112 case `$LD -v 2>&1 </dev/null` in
12113 *GNU
* |
*'with BFD'*)
12114 lt_cv_prog_gnu_ld
=yes
12117 lt_cv_prog_gnu_ld
=no
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12122 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12123 with_gnu_ld
=$lt_cv_prog_gnu_ld
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12134 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12135 if test "${lt_cv_path_NM+set}" = set; then :
12136 $as_echo_n "(cached) " >&6
12138 if test -n "$NM"; then
12139 # Let the user override the test.
12140 lt_cv_path_NM
="$NM"
12142 lt_nm_to_check
="${ac_tool_prefix}nm"
12143 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12144 lt_nm_to_check
="$lt_nm_to_check nm"
12146 for lt_tmp_nm
in $lt_nm_to_check; do
12147 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12148 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12150 test -z "$ac_dir" && ac_dir
=.
12151 tmp_nm
="$ac_dir/$lt_tmp_nm"
12152 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12153 # Check to see if the nm accepts a BSD-compat flag.
12154 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12155 # nm: unknown option "B" ignored
12156 # Tru64's nm complains that /dev/null is an invalid object file
12157 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12158 */dev
/null
* |
*'Invalid file or object type'*)
12159 lt_cv_path_NM
="$tmp_nm -B"
12163 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12165 lt_cv_path_NM
="$tmp_nm -p"
12169 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12170 continue # so that we can try to find one that supports BSD flags
12179 : ${lt_cv_path_NM=no}
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12183 $as_echo "$lt_cv_path_NM" >&6; }
12184 if test "$lt_cv_path_NM" != "no"; then
12185 NM
="$lt_cv_path_NM"
12187 # Didn't find any BSD compatible name lister, look for dumpbin.
12188 if test -n "$DUMPBIN"; then :
12189 # Let the user override the test.
12191 if test -n "$ac_tool_prefix"; then
12192 for ac_prog
in dumpbin
"link -dump"
12194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12195 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12197 $as_echo_n "checking for $ac_word... " >&6; }
12198 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12199 $as_echo_n "(cached) " >&6
12201 if test -n "$DUMPBIN"; then
12202 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12205 for as_dir
in $PATH
12208 test -z "$as_dir" && as_dir
=.
12209 for ac_exec_ext
in '' $ac_executable_extensions; do
12210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12211 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 DUMPBIN
=$ac_cv_prog_DUMPBIN
12222 if test -n "$DUMPBIN"; then
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12224 $as_echo "$DUMPBIN" >&6; }
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12231 test -n "$DUMPBIN" && break
12234 if test -z "$DUMPBIN"; then
12235 ac_ct_DUMPBIN
=$DUMPBIN
12236 for ac_prog
in dumpbin
"link -dump"
12238 # Extract the first word of "$ac_prog", so it can be a program name with args.
12239 set dummy
$ac_prog; ac_word
=$2
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12241 $as_echo_n "checking for $ac_word... " >&6; }
12242 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12243 $as_echo_n "(cached) " >&6
12245 if test -n "$ac_ct_DUMPBIN"; then
12246 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12249 for as_dir
in $PATH
12252 test -z "$as_dir" && as_dir
=.
12253 for ac_exec_ext
in '' $ac_executable_extensions; do
12254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12255 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12265 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12266 if test -n "$ac_ct_DUMPBIN"; then
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12268 $as_echo "$ac_ct_DUMPBIN" >&6; }
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271 $as_echo "no" >&6; }
12275 test -n "$ac_ct_DUMPBIN" && break
12278 if test "x$ac_ct_DUMPBIN" = x
; then
12281 case $cross_compiling:$ac_tool_warned in
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12285 ac_tool_warned
=yes ;;
12287 DUMPBIN
=$ac_ct_DUMPBIN
12291 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12293 DUMPBIN
="$DUMPBIN -symbols"
12301 if test "$DUMPBIN" != ":"; then
12305 test -z "$NM" && NM
=nm
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12313 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12314 if test "${lt_cv_nm_interface+set}" = set; then :
12315 $as_echo_n "(cached) " >&6
12317 lt_cv_nm_interface
="BSD nm"
12318 echo "int some_variable = 0;" > conftest.
$ac_ext
12319 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12320 (eval "$ac_compile" 2>conftest.err
)
12321 cat conftest.err
>&5
12322 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12323 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12324 cat conftest.err
>&5
12325 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12326 cat conftest.out
>&5
12327 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12328 lt_cv_nm_interface
="MS dumpbin"
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12333 $as_echo "$lt_cv_nm_interface" >&6; }
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12336 $as_echo_n "checking whether ln -s works... " >&6; }
12338 if test "$LN_S" = "ln -s"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12340 $as_echo "yes" >&6; }
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12343 $as_echo "no, using $LN_S" >&6; }
12346 # find the maximum length of command line arguments
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12348 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12349 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12350 $as_echo_n "(cached) " >&6
12357 # On DJGPP, this test can blow up pretty badly due to problems in libc
12358 # (any single argument exceeding 2000 bytes causes a buffer overrun
12359 # during glob expansion). Even if it were fixed, the result of this
12360 # check would be larger than it should be.
12361 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12365 # Under GNU Hurd, this test is not required because there is
12366 # no limit to the length of command line arguments.
12367 # Libtool will interpret -1 as no limit whatsoever
12368 lt_cv_sys_max_cmd_len
=-1;
12371 cygwin
* | mingw
* | cegcc
*)
12372 # On Win9x/ME, this test blows up -- it succeeds, but takes
12373 # about 5 minutes as the teststring grows exponentially.
12374 # Worse, since 9x/ME are not pre-emptively multitasking,
12375 # you end up with a "frozen" computer, even though with patience
12376 # the test eventually succeeds (with a max line length of 256k).
12377 # Instead, let's just punt: use the minimum linelength reported by
12378 # all of the supported platforms: 8192 (on NT/2K/XP).
12379 lt_cv_sys_max_cmd_len
=8192;
12383 # On MiNT this can take a long time and run out of memory.
12384 lt_cv_sys_max_cmd_len
=8192;
12388 # On AmigaOS with pdksh, this test takes hours, literally.
12389 # So we just punt and use a minimum line length of 8192.
12390 lt_cv_sys_max_cmd_len
=8192;
12393 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12394 # This has been around since 386BSD, at least. Likely further.
12395 if test -x /sbin
/sysctl
; then
12396 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12397 elif test -x /usr
/sbin
/sysctl
; then
12398 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12400 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12402 # And add a safety zone
12403 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12404 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12408 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12409 lt_cv_sys_max_cmd_len
=196608
12413 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12414 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12415 # nice to cause kernel panics so lets avoid the loop below.
12416 # First set a reasonable default.
12417 lt_cv_sys_max_cmd_len
=16384
12419 if test -x /sbin
/sysconfig
; then
12420 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12421 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12426 lt_cv_sys_max_cmd_len
=102400
12428 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12429 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12430 if test -n "$kargmax"; then
12431 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12433 lt_cv_sys_max_cmd_len
=32768
12437 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12438 if test -n "$lt_cv_sys_max_cmd_len"; then
12439 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12440 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12442 # Make teststring a little bigger before we do anything with it.
12443 # a 1K string should be a reasonable start.
12444 for i
in 1 2 3 4 5 6 7 8 ; do
12445 teststring
=$teststring$teststring
12447 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12448 # If test is not a shell built-in, we'll probably end up computing a
12449 # maximum length that is only half of the actual maximum length, but
12451 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12452 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12453 test $i != 17 # 1/2 MB should be enough
12456 teststring
=$teststring$teststring
12458 # Only check the string length outside the loop.
12459 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12461 # Add a significant safety factor because C++ compilers can tack on
12462 # massive amounts of additional arguments before passing them to the
12463 # linker. It appears as though 1/2 is a usable value.
12464 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12471 if test -n $lt_cv_sys_max_cmd_len ; then
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12473 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12476 $as_echo "none" >&6; }
12478 max_cmd_len
=$lt_cv_sys_max_cmd_len
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12490 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12491 # Try some XSI features
12493 ( _lt_dummy
="a/b/c"
12494 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12496 && eval 'test $(( 1 + 1 )) -eq 2 \
12497 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12500 $as_echo "$xsi_shell" >&6; }
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12504 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12506 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12508 && lt_shell_append=yes
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12510 $as_echo "$lt_shell_append" >&6; }
12513 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12523 # test EBCDIC or ASCII
12524 case `echo X|tr X '\101'` in
12525 A) # ASCII based system
12526 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12527 lt_SP2NL='tr \040 \012'
12528 lt_NL2SP='tr \015\012 \040\040'
12530 *) # EBCDIC based system
12531 lt_SP2NL='tr \100 \n'
12532 lt_NL2SP='tr \r\n \100\100'
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12545 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12546 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12547 $as_echo_n "(cached
) " >&6
12549 lt_cv_ld_reload_flag='-r'
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12552 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12553 reload_flag=$lt_cv_ld_reload_flag
12554 case $reload_flag in
12556 *) reload_flag=" $reload_flag" ;;
12558 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12561 if test "$GCC" = yes; then
12562 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12564 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12577 if test -n "$ac_tool_prefix"; then
12578 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12579 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12581 $as_echo_n "checking
for $ac_word...
" >&6; }
12582 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12583 $as_echo_n "(cached
) " >&6
12585 if test -n "$OBJDUMP"; then
12586 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12589 for as_dir in $PATH
12592 test -z "$as_dir" && as_dir=.
12593 for ac_exec_ext in '' $ac_executable_extensions; do
12594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12595 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12596 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12605 OBJDUMP=$ac_cv_prog_OBJDUMP
12606 if test -n "$OBJDUMP"; then
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12608 $as_echo "$OBJDUMP" >&6; }
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12611 $as_echo "no
" >&6; }
12616 if test -z "$ac_cv_prog_OBJDUMP"; then
12617 ac_ct_OBJDUMP=$OBJDUMP
12618 # Extract the first word of "objdump
", so it can be a program name with args.
12619 set dummy objdump; ac_word=$2
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12621 $as_echo_n "checking
for $ac_word...
" >&6; }
12622 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12623 $as_echo_n "(cached
) " >&6
12625 if test -n "$ac_ct_OBJDUMP"; then
12626 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629 for as_dir in $PATH
12632 test -z "$as_dir" && as_dir=.
12633 for ac_exec_ext in '' $ac_executable_extensions; do
12634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12635 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12636 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12645 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12646 if test -n "$ac_ct_OBJDUMP"; then
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12648 $as_echo "$ac_ct_OBJDUMP" >&6; }
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12651 $as_echo "no
" >&6; }
12654 if test "x
$ac_ct_OBJDUMP" = x; then
12657 case $cross_compiling:$ac_tool_warned in
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12660 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12661 ac_tool_warned=yes ;;
12663 OBJDUMP=$ac_ct_OBJDUMP
12666 OBJDUMP="$ac_cv_prog_OBJDUMP"
12669 test -z "$OBJDUMP" && OBJDUMP=objdump
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12680 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12681 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12682 $as_echo_n "(cached
) " >&6
12684 lt_cv_file_magic_cmd='$MAGIC_CMD'
12685 lt_cv_file_magic_test_file=
12686 lt_cv_deplibs_check_method='unknown'
12687 # Need to set the preceding variable on all platforms that support
12688 # interlibrary dependencies.
12689 # 'none' -- dependencies not supported.
12690 # `unknown' -- same as none, but documents that we really don't know.
12691 # 'pass_all' -- all dependencies passed with no checks.
12692 # 'test_compile' -- check by making test program.
12693 # 'file_magic [[regex]]' -- check by looking for files in library path
12694 # which responds to the $file_magic_cmd with a given extended regex.
12695 # If you have `file' or equivalent on your system and you're not sure
12696 # whether `pass_all' will *always* work, you probably want this one.
12700 lt_cv_deplibs_check_method=pass_all
12704 lt_cv_deplibs_check_method=pass_all
12708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12709 lt_cv_file_magic_cmd='/usr/bin/file -L'
12710 lt_cv_file_magic_test_file=/shlib/libc.so
12714 # func_win32_libid is a shell function defined in ltmain.sh
12715 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12716 lt_cv_file_magic_cmd='func_win32_libid'
12720 # Base MSYS/MinGW do not provide the 'file' command needed by
12721 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12722 # unless we find 'file', for example because we are cross-compiling.
12723 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12724 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12725 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12726 lt_cv_file_magic_cmd='func_win32_libid'
12728 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12729 lt_cv_file_magic_cmd='$OBJDUMP -f'
12734 # use the weaker test based on 'objdump'. See mingw*.
12735 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12736 lt_cv_file_magic_cmd='$OBJDUMP -f'
12739 darwin* | rhapsody*)
12740 lt_cv_deplibs_check_method=pass_all
12743 freebsd* | dragonfly*)
12744 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12747 # Not sure whether the presence of OpenBSD here was a mistake.
12748 # Let's accept both of them until this is cleared up.
12749 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12750 lt_cv_file_magic_cmd=/usr/bin/file
12751 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12755 lt_cv_deplibs_check_method=pass_all
12760 lt_cv_deplibs_check_method=pass_all
12764 lt_cv_deplibs_check_method=pass_all
12767 hpux10.20* | hpux11*)
12768 lt_cv_file_magic_cmd=/usr/bin/file
12771 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12772 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12775 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]'
12776 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12779 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12780 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12786 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12790 irix5* | irix6* | nonstopux*)
12792 *-32|*"-32 ") libmagic=32-bit;;
12793 *-n32|*"-n32 ") libmagic=N32;;
12794 *-64|*"-64 ") libmagic=64-bit;;
12795 *) libmagic=never-match;;
12797 lt_cv_deplibs_check_method=pass_all
12800 # This must be Linux ELF.
12801 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12802 lt_cv_deplibs_check_method=pass_all
12806 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12807 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12809 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12814 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12815 lt_cv_file_magic_cmd=/usr/bin/file
12816 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12820 lt_cv_deplibs_check_method=pass_all
12824 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12825 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12831 osf3* | osf4* | osf5*)
12832 lt_cv_deplibs_check_method=pass_all
12836 lt_cv_deplibs_check_method=pass_all
12840 lt_cv_deplibs_check_method=pass_all
12843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12844 lt_cv_deplibs_check_method=pass_all
12848 case $host_vendor in
12850 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]'
12851 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12854 lt_cv_deplibs_check_method=pass_all
12857 lt_cv_file_magic_cmd='/bin/file'
12858 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12861 lt_cv_file_magic_cmd='/bin/file'
12862 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12863 lt_cv_file_magic_test_file=/lib/libc.so
12866 lt_cv_deplibs_check_method=pass_all
12869 lt_cv_deplibs_check_method=pass_all
12875 lt_cv_deplibs_check_method=pass_all
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12881 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12882 file_magic_cmd=$lt_cv_file_magic_cmd
12883 deplibs_check_method=$lt_cv_deplibs_check_method
12884 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12897 if test -n "$ac_tool_prefix"; then
12898 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12899 set dummy ${ac_tool_prefix}ar; ac_word=$2
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12901 $as_echo_n "checking
for $ac_word...
" >&6; }
12902 if test "${ac_cv_prog_AR+set}" = set; then :
12903 $as_echo_n "(cached
) " >&6
12905 if test -n "$AR"; then
12906 ac_cv_prog_AR="$AR" # Let the user override the test.
12908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in $PATH
12912 test -z "$as_dir" && as_dir=.
12913 for ac_exec_ext in '' $ac_executable_extensions; do
12914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12915 ac_cv_prog_AR="${ac_tool_prefix}ar"
12916 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12926 if test -n "$AR"; then
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12928 $as_echo "$AR" >&6; }
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12931 $as_echo "no
" >&6; }
12936 if test -z "$ac_cv_prog_AR"; then
12938 # Extract the first word of "ar", so it can be a program name with args.
12939 set dummy ar; ac_word=$2
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12941 $as_echo_n "checking
for $ac_word...
" >&6; }
12942 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12943 $as_echo_n "(cached
) " >&6
12945 if test -n "$ac_ct_AR"; then
12946 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12952 test -z "$as_dir" && as_dir=.
12953 for ac_exec_ext in '' $ac_executable_extensions; do
12954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12955 ac_cv_prog_ac_ct_AR="ar"
12956 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12965 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12966 if test -n "$ac_ct_AR"; then
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12968 $as_echo "$ac_ct_AR" >&6; }
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12971 $as_echo "no
" >&6; }
12974 if test "x
$ac_ct_AR" = x; then
12977 case $cross_compiling:$ac_tool_warned in
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12980 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12981 ac_tool_warned=yes ;;
12986 AR="$ac_cv_prog_AR"
12989 test -z "$AR" && AR=ar
12990 test -z "$AR_FLAGS" && AR_FLAGS=cru
13002 if test -n "$ac_tool_prefix"; then
13003 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13004 set dummy ${ac_tool_prefix}strip; ac_word=$2
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13006 $as_echo_n "checking
for $ac_word...
" >&6; }
13007 if test "${ac_cv_prog_STRIP+set}" = set; then :
13008 $as_echo_n "(cached
) " >&6
13010 if test -n "$STRIP"; then
13011 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13014 for as_dir in $PATH
13017 test -z "$as_dir" && as_dir=.
13018 for ac_exec_ext in '' $ac_executable_extensions; do
13019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13020 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13021 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13030 STRIP=$ac_cv_prog_STRIP
13031 if test -n "$STRIP"; then
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13033 $as_echo "$STRIP" >&6; }
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13036 $as_echo "no
" >&6; }
13041 if test -z "$ac_cv_prog_STRIP"; then
13043 # Extract the first word of "strip
", so it can be a program name with args.
13044 set dummy strip; ac_word=$2
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13046 $as_echo_n "checking
for $ac_word...
" >&6; }
13047 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13048 $as_echo_n "(cached
) " >&6
13050 if test -n "$ac_ct_STRIP"; then
13051 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054 for as_dir in $PATH
13057 test -z "$as_dir" && as_dir=.
13058 for ac_exec_ext in '' $ac_executable_extensions; do
13059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13060 ac_cv_prog_ac_ct_STRIP="strip
"
13061 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13070 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13071 if test -n "$ac_ct_STRIP"; then
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13073 $as_echo "$ac_ct_STRIP" >&6; }
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13076 $as_echo "no
" >&6; }
13079 if test "x
$ac_ct_STRIP" = x; then
13082 case $cross_compiling:$ac_tool_warned in
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13085 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13086 ac_tool_warned=yes ;;
13091 STRIP="$ac_cv_prog_STRIP"
13094 test -z "$STRIP" && STRIP=:
13101 if test -n "$ac_tool_prefix"; then
13102 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13103 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13105 $as_echo_n "checking
for $ac_word...
" >&6; }
13106 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13107 $as_echo_n "(cached
) " >&6
13109 if test -n "$RANLIB"; then
13110 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13113 for as_dir in $PATH
13116 test -z "$as_dir" && as_dir=.
13117 for ac_exec_ext in '' $ac_executable_extensions; do
13118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13119 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13120 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13129 RANLIB=$ac_cv_prog_RANLIB
13130 if test -n "$RANLIB"; then
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13132 $as_echo "$RANLIB" >&6; }
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13135 $as_echo "no
" >&6; }
13140 if test -z "$ac_cv_prog_RANLIB"; then
13141 ac_ct_RANLIB=$RANLIB
13142 # Extract the first word of "ranlib
", so it can be a program name with args.
13143 set dummy ranlib; ac_word=$2
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13145 $as_echo_n "checking
for $ac_word...
" >&6; }
13146 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13147 $as_echo_n "(cached
) " >&6
13149 if test -n "$ac_ct_RANLIB"; then
13150 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153 for as_dir in $PATH
13156 test -z "$as_dir" && as_dir=.
13157 for ac_exec_ext in '' $ac_executable_extensions; do
13158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13159 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13160 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13169 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13170 if test -n "$ac_ct_RANLIB"; then
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13172 $as_echo "$ac_ct_RANLIB" >&6; }
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13175 $as_echo "no
" >&6; }
13178 if test "x
$ac_ct_RANLIB" = x; then
13181 case $cross_compiling:$ac_tool_warned in
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13184 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13185 ac_tool_warned=yes ;;
13187 RANLIB=$ac_ct_RANLIB
13190 RANLIB="$ac_cv_prog_RANLIB"
13193 test -z "$RANLIB" && RANLIB=:
13200 # Determine commands to create old-style static archives.
13201 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13202 old_postinstall_cmds='chmod 644 $oldlib'
13203 old_postuninstall_cmds=
13205 if test -n "$RANLIB"; then
13208 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13211 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13214 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13219 lock_old_archive_extraction=yes ;;
13221 lock_old_archive_extraction=no ;;
13262 # If no C compiler was specified, use CC.
13265 # If no C compiler flags were specified, use CFLAGS.
13266 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13268 # Allow CC to be a program name with arguments.
13272 # Check for command to grab the raw symbol name followed by C symbol from nm.
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13274 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13275 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13276 $as_echo_n "(cached
) " >&6
13279 # These are sane defaults that work on at least a few old systems.
13280 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13282 # Character class describing NM global symbol codes.
13283 symcode='[BCDEGRST]'
13285 # Regexp to match symbols that can be accessed directly from C.
13286 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13288 # Define system-specific variables.
13293 cygwin* | mingw* | pw32* | cegcc*)
13294 symcode='[ABCDGISTW]'
13297 if test "$host_cpu" = ia64; then
13298 symcode='[ABCDEGRST]'
13301 irix* | nonstopux*)
13302 symcode='[BCDEGRST]'
13305 symcode='[BCDEGQRST]'
13316 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13324 # If we're using GNU nm, then use its standard symbol codes.
13325 case `$NM -V 2>&1` in
13326 *GNU* | *'with BFD'*)
13327 symcode='[ABCDGIRSTW]' ;;
13330 # Transform an extracted symbol line into a proper C declaration.
13331 # Some systems (esp. on ia64) link data and code symbols differently,
13332 # so use this general approach.
13333 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13335 # Transform an extracted symbol line into symbol name and symbol address
13336 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13337 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'"
13339 # Handle CRLF in mingw tool chain
13343 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13347 # Try without a prefix underscore, then with it.
13348 for ac_symprfx in "" "_
"; do
13350 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13351 symxfrm="\\1 $ac_symprfx\\2 \\2"
13353 # Write the raw and C identifiers.
13354 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13355 # Fake it for dumpbin and say T for any non-static function
13356 # and D for any global variable.
13357 # Also find C++ and __fastcall symbols from MSVC++,
13358 # which start with @ or ?.
13359 lt_cv_sys_global_symbol_pipe="$AWK '"\
13360 " {last_section=section; section=\$ 3};"\
13361 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13362 " \$ 0!~/External *\|/{next};"\
13363 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13364 " {if(hide[section]) next};"\
13365 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13366 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13367 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13368 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13369 " ' prfx
=^
$ac_symprfx"
13371 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13374 # Check to see that the pipe works correctly.
13378 cat > conftest.$ac_ext <<_LT_EOF
13383 void nm_test_func(void);
13384 void nm_test_func(void){}
13388 int main(){nm_test_var='a';nm_test_func();return(0);}
13391 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13392 (eval $ac_compile) 2>&5
13394 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13395 test $ac_status = 0; }; then
13396 # Now try to grab the symbols.
13398 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13399 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13401 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13402 test $ac_status = 0; } && test -s "$nlist"; then
13403 # Try sorting and uniquifying the output.
13404 if sort "$nlist" | uniq > "$nlist"T; then
13405 mv -f "$nlist"T "$nlist"
13410 # Make sure that we snagged all the symbols we need.
13411 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13412 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13413 cat <<_LT_EOF > conftest.$ac_ext
13419 # Now generate the symbol file.
13420 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13422 cat <<_LT_EOF >> conftest.$ac_ext
13424 /* The mapping between symbol names and symbols. */
13429 lt__PROGRAM__LTX_preloaded_symbols[] =
13431 { "@PROGRAM@
", (void *) 0 },
13433 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13434 cat <<\_LT_EOF >> conftest.$ac_ext
13438 /* This works around a problem in FreeBSD linker */
13439 #ifdef FREEBSD_WORKAROUND
13440 static const void *lt_preloaded_setup() {
13441 return lt__PROGRAM__LTX_preloaded_symbols;
13449 # Now try linking the two files.
13450 mv conftest.$ac_objext conftstm.$ac_objext
13451 lt_save_LIBS="$LIBS"
13452 lt_save_CFLAGS="$CFLAGS"
13453 LIBS="conftstm.
$ac_objext"
13454 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13455 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13456 (eval $ac_link) 2>&5
13458 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13459 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13462 LIBS="$lt_save_LIBS"
13463 CFLAGS="$lt_save_CFLAGS"
13465 echo "cannot
find nm_test_func
in $nlist" >&5
13468 echo "cannot
find nm_test_var
in $nlist" >&5
13471 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13474 echo "$progname: failed program was
:" >&5
13475 cat conftest.$ac_ext >&5
13477 rm -rf conftest* conftst*
13479 # Do not use the global_symbol_pipe unless it works.
13480 if test "$pipe_works" = yes; then
13483 lt_cv_sys_global_symbol_pipe=
13489 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13490 lt_cv_sys_global_symbol_to_cdecl=
13492 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13494 $as_echo "failed
" >&6; }
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13497 $as_echo "ok
" >&6; }
13521 # Check whether --enable-libtool-lock was given.
13522 if test "${enable_libtool_lock+set}" = set; then :
13523 enableval=$enable_libtool_lock;
13526 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13528 # Some flags need to be propagated to the compiler or linker for good
13532 # Find out which ABI we are using.
13533 echo 'int i;' > conftest.$ac_ext
13534 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13535 (eval $ac_compile) 2>&5
13537 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13538 test $ac_status = 0; }; then
13539 case `/usr/bin/file conftest.$ac_objext` in
13541 HPUX_IA64_MODE="32"
13544 HPUX_IA64_MODE="64"
13551 # Find out which ABI we are using.
13552 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13553 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13554 (eval $ac_compile) 2>&5
13556 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13557 test $ac_status = 0; }; then
13558 if test "$lt_cv_prog_gnu_ld" = yes; then
13559 case `/usr/bin/file conftest.$ac_objext` in
13561 LD="${LD-ld} -melf32bsmip"
13564 LD="${LD-ld} -melf32bmipn32"
13567 LD="${LD-ld} -melf64bmip"
13571 case `/usr/bin/file conftest.$ac_objext` in
13587 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13588 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13589 # Find out which ABI we are using.
13590 echo 'int i;' > conftest.$ac_ext
13591 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13592 (eval $ac_compile) 2>&5
13594 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13595 test $ac_status = 0; }; then
13596 case `/usr/bin/file conftest.o` in
13599 x86_64-*kfreebsd*-gnu)
13600 LD="${LD-ld} -m elf_i386_fbsd
"
13603 case `/usr/bin/file conftest.o` in
13605 LD="${LD-ld} -m elf32_x86_64
"
13608 LD="${LD-ld} -m elf_i386
"
13612 ppc64-*linux*|powerpc64-*linux*)
13613 LD="${LD-ld} -m elf32ppclinux
"
13616 LD="${LD-ld} -m elf_s390
"
13619 LD="${LD-ld} -m elf32_sparc
"
13625 x86_64-*kfreebsd*-gnu)
13626 LD="${LD-ld} -m elf_x86_64_fbsd
"
13629 LD="${LD-ld} -m elf_x86_64
"
13631 ppc*-*linux*|powerpc*-*linux*)
13632 LD="${LD-ld} -m elf64ppc
"
13634 s390*-*linux*|s390*-*tpf*)
13635 LD="${LD-ld} -m elf64_s390
"
13638 LD="${LD-ld} -m elf64_sparc
"
13648 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13649 SAVE_CFLAGS="$CFLAGS"
13650 CFLAGS="$CFLAGS -belf"
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13652 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13653 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13654 $as_echo_n "(cached
) " >&6
13657 ac_cpp='$CPP $CPPFLAGS'
13658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663 /* end confdefs.h. */
13673 if ac_fn_c_try_link "$LINENO"; then :
13674 lt_cv_cc_needs_belf=yes
13676 lt_cv_cc_needs_belf=no
13678 rm -f core conftest.err conftest.$ac_objext \
13679 conftest$ac_exeext conftest.$ac_ext
13681 ac_cpp='$CPP $CPPFLAGS'
13682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13688 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13689 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13690 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13691 CFLAGS="$SAVE_CFLAGS"
13695 # Find out which ABI we are using.
13696 echo 'int i;' > conftest.$ac_ext
13697 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13698 (eval $ac_compile) 2>&5
13700 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13701 test $ac_status = 0; }; then
13702 case `/usr/bin/file conftest.o` in
13704 case $lt_cv_prog_gnu_ld in
13705 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13707 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13719 need_locks="$enable_libtool_lock"
13723 rhapsody* | darwin*)
13724 if test -n "$ac_tool_prefix"; then
13725 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13726 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13728 $as_echo_n "checking
for $ac_word...
" >&6; }
13729 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13730 $as_echo_n "(cached
) " >&6
13732 if test -n "$DSYMUTIL"; then
13733 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13736 for as_dir in $PATH
13739 test -z "$as_dir" && as_dir=.
13740 for ac_exec_ext in '' $ac_executable_extensions; do
13741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13742 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13743 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13752 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13753 if test -n "$DSYMUTIL"; then
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13755 $as_echo "$DSYMUTIL" >&6; }
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13758 $as_echo "no
" >&6; }
13763 if test -z "$ac_cv_prog_DSYMUTIL"; then
13764 ac_ct_DSYMUTIL=$DSYMUTIL
13765 # Extract the first word of "dsymutil
", so it can be a program name with args.
13766 set dummy dsymutil; ac_word=$2
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13768 $as_echo_n "checking
for $ac_word...
" >&6; }
13769 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13770 $as_echo_n "(cached
) " >&6
13772 if test -n "$ac_ct_DSYMUTIL"; then
13773 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13776 for as_dir in $PATH
13779 test -z "$as_dir" && as_dir=.
13780 for ac_exec_ext in '' $ac_executable_extensions; do
13781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13782 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13783 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13792 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13793 if test -n "$ac_ct_DSYMUTIL"; then
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13795 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13798 $as_echo "no
" >&6; }
13801 if test "x
$ac_ct_DSYMUTIL" = x; then
13804 case $cross_compiling:$ac_tool_warned in
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13807 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13808 ac_tool_warned=yes ;;
13810 DSYMUTIL=$ac_ct_DSYMUTIL
13813 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13816 if test -n "$ac_tool_prefix"; then
13817 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13818 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13820 $as_echo_n "checking
for $ac_word...
" >&6; }
13821 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13822 $as_echo_n "(cached
) " >&6
13824 if test -n "$NMEDIT"; then
13825 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13828 for as_dir in $PATH
13831 test -z "$as_dir" && as_dir=.
13832 for ac_exec_ext in '' $ac_executable_extensions; do
13833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13834 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13835 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13844 NMEDIT=$ac_cv_prog_NMEDIT
13845 if test -n "$NMEDIT"; then
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13847 $as_echo "$NMEDIT" >&6; }
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13850 $as_echo "no
" >&6; }
13855 if test -z "$ac_cv_prog_NMEDIT"; then
13856 ac_ct_NMEDIT=$NMEDIT
13857 # Extract the first word of "nmedit
", so it can be a program name with args.
13858 set dummy nmedit; ac_word=$2
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13860 $as_echo_n "checking
for $ac_word...
" >&6; }
13861 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13862 $as_echo_n "(cached
) " >&6
13864 if test -n "$ac_ct_NMEDIT"; then
13865 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13868 for as_dir in $PATH
13871 test -z "$as_dir" && as_dir=.
13872 for ac_exec_ext in '' $ac_executable_extensions; do
13873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13874 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13875 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13884 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13885 if test -n "$ac_ct_NMEDIT"; then
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13887 $as_echo "$ac_ct_NMEDIT" >&6; }
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13890 $as_echo "no
" >&6; }
13893 if test "x
$ac_ct_NMEDIT" = x; then
13896 case $cross_compiling:$ac_tool_warned in
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13899 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13900 ac_tool_warned=yes ;;
13902 NMEDIT=$ac_ct_NMEDIT
13905 NMEDIT="$ac_cv_prog_NMEDIT"
13908 if test -n "$ac_tool_prefix"; then
13909 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13910 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13912 $as_echo_n "checking
for $ac_word...
" >&6; }
13913 if test "${ac_cv_prog_LIPO+set}" = set; then :
13914 $as_echo_n "(cached
) " >&6
13916 if test -n "$LIPO"; then
13917 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13920 for as_dir in $PATH
13923 test -z "$as_dir" && as_dir=.
13924 for ac_exec_ext in '' $ac_executable_extensions; do
13925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13926 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13927 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13936 LIPO=$ac_cv_prog_LIPO
13937 if test -n "$LIPO"; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13939 $as_echo "$LIPO" >&6; }
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13942 $as_echo "no
" >&6; }
13947 if test -z "$ac_cv_prog_LIPO"; then
13949 # Extract the first word of "lipo
", so it can be a program name with args.
13950 set dummy lipo; ac_word=$2
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13952 $as_echo_n "checking
for $ac_word...
" >&6; }
13953 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13954 $as_echo_n "(cached
) " >&6
13956 if test -n "$ac_ct_LIPO"; then
13957 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13960 for as_dir in $PATH
13963 test -z "$as_dir" && as_dir=.
13964 for ac_exec_ext in '' $ac_executable_extensions; do
13965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13966 ac_cv_prog_ac_ct_LIPO="lipo
"
13967 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13976 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13977 if test -n "$ac_ct_LIPO"; then
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
13979 $as_echo "$ac_ct_LIPO" >&6; }
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13982 $as_echo "no
" >&6; }
13985 if test "x
$ac_ct_LIPO" = x; then
13988 case $cross_compiling:$ac_tool_warned in
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13991 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13992 ac_tool_warned=yes ;;
13997 LIPO="$ac_cv_prog_LIPO"
14000 if test -n "$ac_tool_prefix"; then
14001 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14002 set dummy ${ac_tool_prefix}otool; ac_word=$2
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14004 $as_echo_n "checking
for $ac_word...
" >&6; }
14005 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14006 $as_echo_n "(cached
) " >&6
14008 if test -n "$OTOOL"; then
14009 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14012 for as_dir in $PATH
14015 test -z "$as_dir" && as_dir=.
14016 for ac_exec_ext in '' $ac_executable_extensions; do
14017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14018 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14019 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14028 OTOOL=$ac_cv_prog_OTOOL
14029 if test -n "$OTOOL"; then
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14031 $as_echo "$OTOOL" >&6; }
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14034 $as_echo "no
" >&6; }
14039 if test -z "$ac_cv_prog_OTOOL"; then
14041 # Extract the first word of "otool
", so it can be a program name with args.
14042 set dummy otool; ac_word=$2
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14044 $as_echo_n "checking
for $ac_word...
" >&6; }
14045 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14046 $as_echo_n "(cached
) " >&6
14048 if test -n "$ac_ct_OTOOL"; then
14049 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14052 for as_dir in $PATH
14055 test -z "$as_dir" && as_dir=.
14056 for ac_exec_ext in '' $ac_executable_extensions; do
14057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14058 ac_cv_prog_ac_ct_OTOOL="otool
"
14059 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14068 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14069 if test -n "$ac_ct_OTOOL"; then
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14071 $as_echo "$ac_ct_OTOOL" >&6; }
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14074 $as_echo "no
" >&6; }
14077 if test "x
$ac_ct_OTOOL" = x; then
14080 case $cross_compiling:$ac_tool_warned in
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14083 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14084 ac_tool_warned=yes ;;
14089 OTOOL="$ac_cv_prog_OTOOL"
14092 if test -n "$ac_tool_prefix"; then
14093 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14094 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14096 $as_echo_n "checking
for $ac_word...
" >&6; }
14097 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14098 $as_echo_n "(cached
) " >&6
14100 if test -n "$OTOOL64"; then
14101 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14104 for as_dir in $PATH
14107 test -z "$as_dir" && as_dir=.
14108 for ac_exec_ext in '' $ac_executable_extensions; do
14109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14110 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14111 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14120 OTOOL64=$ac_cv_prog_OTOOL64
14121 if test -n "$OTOOL64"; then
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14123 $as_echo "$OTOOL64" >&6; }
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14126 $as_echo "no
" >&6; }
14131 if test -z "$ac_cv_prog_OTOOL64"; then
14132 ac_ct_OTOOL64=$OTOOL64
14133 # Extract the first word of "otool64
", so it can be a program name with args.
14134 set dummy otool64; ac_word=$2
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14136 $as_echo_n "checking
for $ac_word...
" >&6; }
14137 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14138 $as_echo_n "(cached
) " >&6
14140 if test -n "$ac_ct_OTOOL64"; then
14141 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14144 for as_dir in $PATH
14147 test -z "$as_dir" && as_dir=.
14148 for ac_exec_ext in '' $ac_executable_extensions; do
14149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14150 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14151 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14160 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14161 if test -n "$ac_ct_OTOOL64"; then
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14163 $as_echo "$ac_ct_OTOOL64" >&6; }
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14166 $as_echo "no
" >&6; }
14169 if test "x
$ac_ct_OTOOL64" = x; then
14172 case $cross_compiling:$ac_tool_warned in
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14175 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14176 ac_tool_warned=yes ;;
14178 OTOOL64=$ac_ct_OTOOL64
14181 OTOOL64="$ac_cv_prog_OTOOL64"
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14211 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14212 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14213 $as_echo_n "(cached
) " >&6
14215 lt_cv_apple_cc_single_mod=no
14216 if test -z "${LT_MULTI_MODULE}"; then
14217 # By default we will add the -single_module flag. You can override
14218 # by either setting the environment variable LT_MULTI_MODULE
14219 # non-empty at configure time, or by adding -multi_module to the
14221 rm -rf libconftest.dylib*
14222 echo "int foo
(void
){return 1;}" > conftest.c
14223 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14224 -dynamiclib -Wl,-single_module conftest.c
" >&5
14225 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14226 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14228 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14229 lt_cv_apple_cc_single_mod=yes
14231 cat conftest.err >&5
14233 rm -rf libconftest.dylib*
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14238 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14240 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14241 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14242 $as_echo_n "(cached
) " >&6
14244 lt_cv_ld_exported_symbols_list=no
14245 save_LDFLAGS=$LDFLAGS
14246 echo "_main
" > conftest.sym
14247 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14259 if ac_fn_c_try_link "$LINENO"; then :
14260 lt_cv_ld_exported_symbols_list=yes
14262 lt_cv_ld_exported_symbols_list=no
14264 rm -f core conftest.err conftest.$ac_objext \
14265 conftest$ac_exeext conftest.$ac_ext
14266 LDFLAGS="$save_LDFLAGS"
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14270 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14272 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14273 if test "${lt_cv_ld_force_load+set}" = set; then :
14274 $as_echo_n "(cached
) " >&6
14276 lt_cv_ld_force_load=no
14277 cat > conftest.c << _LT_EOF
14278 int forced_loaded() { return 2;}
14280 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14281 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14282 echo "$AR cru libconftest.a conftest.o
" >&5
14283 $AR cru libconftest.a conftest.o 2>&5
14284 cat > conftest.c << _LT_EOF
14285 int main() { return 0;}
14287 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14288 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14290 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14291 lt_cv_ld_force_load=yes
14293 cat conftest.err >&5
14295 rm -f conftest.err libconftest.a conftest conftest.c
14296 rm -rf conftest.dSYM
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14300 $as_echo "$lt_cv_ld_force_load" >&6; }
14302 rhapsody* | darwin1.[012])
14303 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14305 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14306 darwin*) # darwin 5.x on
14307 # if running on 10.5 or later, the deployment target defaults
14308 # to the OS version, if on x86, and 10.4, the deployment
14309 # target defaults to 10.4. Don't you love it?
14310 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14311 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14312 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14314 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14316 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14320 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14321 _lt_dar_single_mod='$single_module'
14323 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14324 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14326 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14328 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14329 _lt_dsymutil='~$DSYMUTIL $lib || :'
14336 for ac_header in dlfcn.h
14338 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14339 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14340 cat >>confdefs.h <<_ACEOF
14341 #define HAVE_DLFCN_H 1
14358 enable_win32_dll=no
14361 # Check whether --enable-shared was given.
14362 if test "${enable_shared+set}" = set; then :
14363 enableval=$enable_shared; p=${PACKAGE-default}
14365 yes) enable_shared=yes ;;
14366 no) enable_shared=no ;;
14369 # Look at the argument we got. We use all the common list separators.
14370 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14371 for pkg in $enableval; do
14373 if test "X
$pkg" = "X
$p"; then
14392 # Check whether --enable-static was given.
14393 if test "${enable_static+set}" = set; then :
14394 enableval=$enable_static; p=${PACKAGE-default}
14396 yes) enable_static=yes ;;
14397 no) enable_static=no ;;
14400 # Look at the argument we got. We use all the common list separators.
14401 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14402 for pkg in $enableval; do
14404 if test "X
$pkg" = "X
$p"; then
14424 # Check whether --with-pic was given.
14425 if test "${with_pic+set}" = set; then :
14426 withval=$with_pic; pic_mode="$withval"
14432 test -z "$pic_mode" && pic_mode=default
14440 # Check whether --enable-fast-install was given.
14441 if test "${enable_fast_install+set}" = set; then :
14442 enableval=$enable_fast_install; p=${PACKAGE-default}
14444 yes) enable_fast_install=yes ;;
14445 no) enable_fast_install=no ;;
14447 enable_fast_install=no
14448 # Look at the argument we got. We use all the common list separators.
14449 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14450 for pkg in $enableval; do
14452 if test "X
$pkg" = "X
$p"; then
14453 enable_fast_install=yes
14460 enable_fast_install=yes
14473 # This can be used to rebuild libtool when needed
14474 LIBTOOL_DEPS="$ltmain"
14476 # Always use our own libtool.
14477 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14504 test -z "$LN_S" && LN_S="ln -s"
14519 if test -n "${ZSH_VERSION+set}" ; then
14520 setopt NO_GLOB_SUBST
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14524 $as_echo_n "checking
for objdir...
" >&6; }
14525 if test "${lt_cv_objdir+set}" = set; then :
14526 $as_echo_n "(cached
) " >&6
14528 rm -f .libs 2>/dev/null
14529 mkdir .libs 2>/dev/null
14530 if test -d .libs; then
14533 # MS-DOS does not allow filenames that begin with a dot.
14536 rmdir .libs 2>/dev/null
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14539 $as_echo "$lt_cv_objdir" >&6; }
14540 objdir=$lt_cv_objdir
14546 cat >>confdefs.h <<_ACEOF
14547 #define LT_OBJDIR "$lt_cv_objdir/"
14555 # AIX sometimes has problems with the GCC collect2 program. For some
14556 # reason, if we set the COLLECT_NAMES environment variable, the problems
14557 # vanish in a puff of smoke.
14558 if test "X
${COLLECT_NAMES+set}" != Xset; then
14560 export COLLECT_NAMES
14565 # Global variables:
14567 can_build_shared=yes
14569 # All known linkers require a `.a' archive for static linking (except MSVC,
14570 # which needs '.lib').
14573 with_gnu_ld="$lt_cv_prog_gnu_ld"
14576 old_CFLAGS="$CFLAGS"
14578 # Set sane defaults for various variables
14579 test -z "$CC" && CC=cc
14580 test -z "$LTCC" && LTCC=$CC
14581 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14582 test -z "$LD" && LD=ld
14583 test -z "$ac_objext" && ac_objext=o
14585 for cc_temp in $compiler""; do
14587 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14588 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14593 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14596 # Only perform the check for file, if the check method requires it
14597 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14598 case $deplibs_check_method in
14600 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14602 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14603 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14604 $as_echo_n "(cached
) " >&6
14608 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14611 lt_save_MAGIC_CMD="$MAGIC_CMD"
14612 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14613 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14614 for ac_dir in $ac_dummy; do
14616 test -z "$ac_dir" && ac_dir=.
14617 if test -f $ac_dir/${ac_tool_prefix}file; then
14618 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14619 if test -n "$file_magic_test_file"; then
14620 case $deplibs_check_method in
14622 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14623 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14624 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14625 $EGREP "$file_magic_regex" > /dev/null; then
14630 *** Warning: the command libtool uses to detect shared libraries,
14631 *** $file_magic_cmd, produces output that libtool cannot recognize.
14632 *** The result is that libtool may fail to recognize shared libraries
14633 *** as such. This will affect the creation of libtool libraries that
14634 *** depend on shared libraries, but programs linked with such libtool
14635 *** libraries will work regardless of this problem. Nevertheless, you
14636 *** may want to report the problem to your system manager and/or to
14637 *** bug-libtool@gnu.org
14647 MAGIC_CMD="$lt_save_MAGIC_CMD"
14652 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14653 if test -n "$MAGIC_CMD"; then
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14655 $as_echo "$MAGIC_CMD" >&6; }
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14658 $as_echo "no
" >&6; }
14665 if test -z "$lt_cv_path_MAGIC_CMD"; then
14666 if test -n "$ac_tool_prefix"; then
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14668 $as_echo_n "checking
for file...
" >&6; }
14669 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14670 $as_echo_n "(cached
) " >&6
14674 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14677 lt_save_MAGIC_CMD="$MAGIC_CMD"
14678 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14679 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14680 for ac_dir in $ac_dummy; do
14682 test -z "$ac_dir" && ac_dir=.
14683 if test -f $ac_dir/file; then
14684 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14685 if test -n "$file_magic_test_file"; then
14686 case $deplibs_check_method in
14688 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14689 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14690 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14691 $EGREP "$file_magic_regex" > /dev/null; then
14696 *** Warning: the command libtool uses to detect shared libraries,
14697 *** $file_magic_cmd, produces output that libtool cannot recognize.
14698 *** The result is that libtool may fail to recognize shared libraries
14699 *** as such. This will affect the creation of libtool libraries that
14700 *** depend on shared libraries, but programs linked with such libtool
14701 *** libraries will work regardless of this problem. Nevertheless, you
14702 *** may want to report the problem to your system manager and/or to
14703 *** bug-libtool@gnu.org
14713 MAGIC_CMD="$lt_save_MAGIC_CMD"
14718 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14719 if test -n "$MAGIC_CMD"; then
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14721 $as_echo "$MAGIC_CMD" >&6; }
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14724 $as_echo "no
" >&6; }
14737 # Use C for the default configuration in the libtool script
14741 ac_cpp='$CPP $CPPFLAGS'
14742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14747 # Source file extension for C test sources.
14750 # Object file extension for compiled C test sources.
14754 # Code to be used in simple compile tests
14755 lt_simple_compile_test_code="int some_variable
= 0;"
14757 # Code to be used in simple link tests
14758 lt_simple_link_test_code='int main(){return(0);}'
14766 # If no C compiler was specified, use CC.
14769 # If no C compiler flags were specified, use CFLAGS.
14770 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14772 # Allow CC to be a program name with arguments.
14775 # Save the default compiler, since it gets overwritten when the other
14776 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14777 compiler_DEFAULT=$CC
14779 # save warnings/boilerplate of simple test code
14780 ac_outfile=conftest.$ac_objext
14781 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14782 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14783 _lt_compiler_boilerplate=`cat conftest.err`
14786 ac_outfile=conftest.$ac_objext
14787 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14788 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14789 _lt_linker_boilerplate=`cat conftest.err`
14794 ## There is no encapsulation within the following macros, do not change
14795 ## the running order or otherwise move them around unless you know exactly
14796 ## what you are doing...
14797 if test -n "$compiler"; then
14799 lt_prog_compiler_no_builtin_flag=
14801 if test "$GCC" = yes; then
14802 case $cc_basename in
14804 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14806 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14810 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14811 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14812 $as_echo_n "(cached
) " >&6
14814 lt_cv_prog_compiler_rtti_exceptions=no
14815 ac_outfile=conftest.$ac_objext
14816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14817 lt_compiler_flag="-fno-rtti -fno-exceptions"
14818 # Insert the option either (1) after the last *FLAGS variable, or
14819 # (2) before a word containing "conftest.
", or (3) at the end.
14820 # Note that $ac_compile itself does not contain backslashes and begins
14821 # with a dollar sign (not a hyphen), so the echo should work correctly.
14822 # The option is referenced via a variable to avoid confusing sed.
14823 lt_compile=`echo "$ac_compile" | $SED \
14824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14826 -e 's:$: $lt_compiler_flag:'`
14827 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14828 (eval "$lt_compile" 2>conftest.err)
14830 cat conftest.err >&5
14831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14832 if (exit $ac_status) && test -s "$ac_outfile"; then
14833 # The compiler can only warn and ignore the option if not recognized
14834 # So say no if there are warnings other than the usual output.
14835 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14836 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14837 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14838 lt_cv_prog_compiler_rtti_exceptions=yes
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14845 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14847 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14848 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14860 lt_prog_compiler_wl=
14861 lt_prog_compiler_pic=
14862 lt_prog_compiler_static=
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14865 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14867 if test "$GCC" = yes; then
14868 lt_prog_compiler_wl='-Wl,'
14869 lt_prog_compiler_static='-static'
14873 # All AIX code is PIC.
14874 if test "$host_cpu" = ia64; then
14875 # AIX 5 now supports IA64 processor
14876 lt_prog_compiler_static='-Bstatic'
14878 lt_prog_compiler_pic='-fPIC'
14884 # see comment about AmigaOS4 .so support
14885 lt_prog_compiler_pic='-fPIC'
14888 # FIXME: we need at least 68020 code to build shared libraries, but
14889 # adding the `-m68020' flag to GCC prevents building anything better,
14891 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14896 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14897 # PIC is the default for these OSes.
14900 mingw* | cygwin* | pw32* | os2* | cegcc*)
14901 # This hack is so that the source file can tell whether it is being
14902 # built for inclusion in a dll (and should export symbols for example).
14903 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14904 # (--disable-auto-import) libraries
14905 lt_prog_compiler_pic='-DDLL_EXPORT'
14908 darwin* | rhapsody*)
14909 # PIC is the default on this platform
14910 # Common symbols not allowed in MH_DYLIB files
14911 lt_prog_compiler_pic='-fno-common'
14915 # PIC is the default for Haiku.
14916 # The "-static" flag exists, but is broken.
14917 lt_prog_compiler_static=
14921 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14922 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14923 # sets the default TLS model and affects inlining.
14929 lt_prog_compiler_pic='-fPIC'
14935 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14936 # Instead, we relocate shared libraries at runtime.
14940 # Just because we use GCC doesn't mean we suddenly get shared libraries
14941 # on systems that don't support them.
14942 lt_prog_compiler_can_build_shared=no
14947 # QNX uses GNU C++, but need to define -shared option too, otherwise
14948 # it will coredump.
14949 lt_prog_compiler_pic='-fPIC -shared'
14953 if test -d /usr/nec; then
14954 lt_prog_compiler_pic=-Kconform_pic
14959 lt_prog_compiler_pic='-fPIC'
14963 case $cc_basename in
14964 nvcc*) # Cuda Compiler Driver 2.2
14965 lt_prog_compiler_wl='-Xlinker '
14966 lt_prog_compiler_pic='-Xcompiler -fPIC'
14970 # PORTME Check for flag to pass linker flags through the system compiler.
14973 lt_prog_compiler_wl='-Wl,'
14974 if test "$host_cpu" = ia64; then
14975 # AIX 5 now supports IA64 processor
14976 lt_prog_compiler_static='-Bstatic'
14978 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14982 mingw* | cygwin* | pw32* | os2* | cegcc*)
14983 # This hack is so that the source file can tell whether it is being
14984 # built for inclusion in a dll (and should export symbols for example).
14985 lt_prog_compiler_pic='-DDLL_EXPORT'
14988 hpux9* | hpux10* | hpux11*)
14989 lt_prog_compiler_wl='-Wl,'
14990 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14991 # not for PA HP-UX.
14997 lt_prog_compiler_pic='+Z'
15000 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15001 lt_prog_compiler_static='${wl}-a ${wl}archive'
15004 irix5* | irix6* | nonstopux*)
15005 lt_prog_compiler_wl='-Wl,'
15006 # PIC (with -KPIC) is the default.
15007 lt_prog_compiler_static='-non_shared'
15010 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15011 case $cc_basename in
15012 # old Intel for x86_64 which still supported -KPIC.
15014 lt_prog_compiler_wl='-Wl,'
15015 lt_prog_compiler_pic='-KPIC'
15016 lt_prog_compiler_static='-static'
15018 # icc used to be incompatible with GCC.
15019 # ICC 10 doesn't accept -KPIC any more.
15021 lt_prog_compiler_wl='-Wl,'
15022 lt_prog_compiler_pic='-fPIC'
15023 lt_prog_compiler_static='-static'
15025 # Lahey Fortran 8.1.
15027 lt_prog_compiler_wl='-Wl,'
15028 lt_prog_compiler_pic='--shared'
15029 lt_prog_compiler_static='--static'
15031 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15032 # Portland Group compilers (*not* the Pentium gcc compiler,
15033 # which looks to be a dead project)
15034 lt_prog_compiler_wl='-Wl,'
15035 lt_prog_compiler_pic='-fpic'
15036 lt_prog_compiler_static='-Bstatic'
15039 lt_prog_compiler_wl='-Wl,'
15040 # All Alpha code is PIC.
15041 lt_prog_compiler_static='-non_shared'
15043 xl* | bgxl* | bgf* | mpixl*)
15044 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15045 lt_prog_compiler_wl='-Wl,'
15046 lt_prog_compiler_pic='-qpic'
15047 lt_prog_compiler_static='-qstaticlink'
15050 case `$CC -V 2>&1 | sed 5q` in
15051 *Sun\ F* | *Sun*Fortran*)
15052 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15053 lt_prog_compiler_pic='-KPIC'
15054 lt_prog_compiler_static='-Bstatic'
15055 lt_prog_compiler_wl=''
15059 lt_prog_compiler_pic='-KPIC'
15060 lt_prog_compiler_static='-Bstatic'
15061 lt_prog_compiler_wl='-Wl,'
15069 lt_prog_compiler_pic='-KPIC'
15070 lt_prog_compiler_static='-Bstatic'
15074 # QNX uses GNU C++, but need to define -shared option too, otherwise
15075 # it will coredump.
15076 lt_prog_compiler_pic='-fPIC -shared'
15079 osf3* | osf4* | osf5*)
15080 lt_prog_compiler_wl='-Wl,'
15081 # All OSF/1 code is PIC.
15082 lt_prog_compiler_static='-non_shared'
15086 lt_prog_compiler_static='-non_shared'
15090 lt_prog_compiler_pic='-KPIC'
15091 lt_prog_compiler_static='-Bstatic'
15092 case $cc_basename in
15093 f77* | f90* | f95*)
15094 lt_prog_compiler_wl='-Qoption ld ';;
15096 lt_prog_compiler_wl='-Wl,';;
15101 lt_prog_compiler_wl='-Qoption ld '
15102 lt_prog_compiler_pic='-PIC'
15103 lt_prog_compiler_static='-Bstatic'
15106 sysv4 | sysv4.2uw2* | sysv4.3*)
15107 lt_prog_compiler_wl='-Wl,'
15108 lt_prog_compiler_pic='-KPIC'
15109 lt_prog_compiler_static='-Bstatic'
15113 if test -d /usr/nec ;then
15114 lt_prog_compiler_pic='-Kconform_pic'
15115 lt_prog_compiler_static='-Bstatic'
15119 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15120 lt_prog_compiler_wl='-Wl,'
15121 lt_prog_compiler_pic='-KPIC'
15122 lt_prog_compiler_static='-Bstatic'
15126 lt_prog_compiler_wl='-Wl,'
15127 lt_prog_compiler_can_build_shared=no
15131 lt_prog_compiler_pic='-pic'
15132 lt_prog_compiler_static='-Bstatic'
15136 lt_prog_compiler_can_build_shared=no
15142 # For platforms which do not support PIC, -DPIC is meaningless:
15144 lt_prog_compiler_pic=
15147 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15151 $as_echo "$lt_prog_compiler_pic" >&6; }
15159 # Check to make sure the PIC flag actually works.
15161 if test -n "$lt_prog_compiler_pic"; then
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15163 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15164 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15165 $as_echo_n "(cached
) " >&6
15167 lt_cv_prog_compiler_pic_works=no
15168 ac_outfile=conftest.$ac_objext
15169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15170 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15171 # Insert the option either (1) after the last *FLAGS variable, or
15172 # (2) before a word containing "conftest.
", or (3) at the end.
15173 # Note that $ac_compile itself does not contain backslashes and begins
15174 # with a dollar sign (not a hyphen), so the echo should work correctly.
15175 # The option is referenced via a variable to avoid confusing sed.
15176 lt_compile=`echo "$ac_compile" | $SED \
15177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15179 -e 's:$: $lt_compiler_flag:'`
15180 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15181 (eval "$lt_compile" 2>conftest.err)
15183 cat conftest.err >&5
15184 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15185 if (exit $ac_status) && test -s "$ac_outfile"; then
15186 # The compiler can only warn and ignore the option if not recognized
15187 # So say no if there are warnings other than the usual output.
15188 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15189 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15190 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15191 lt_cv_prog_compiler_pic_works=yes
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15198 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15200 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15201 case $lt_prog_compiler_pic in
15203 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15206 lt_prog_compiler_pic=
15207 lt_prog_compiler_can_build_shared=no
15218 # Check to make sure the static flag actually works.
15220 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15222 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15223 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15224 $as_echo_n "(cached
) " >&6
15226 lt_cv_prog_compiler_static_works=no
15227 save_LDFLAGS="$LDFLAGS"
15228 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15229 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15230 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15231 # The linker can only warn and ignore the option if not recognized
15232 # So say no if there are warnings
15233 if test -s conftest.err; then
15234 # Append any errors to the config.log.
15235 cat conftest.err 1>&5
15236 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15237 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15238 if diff conftest.exp conftest.er2 >/dev/null; then
15239 lt_cv_prog_compiler_static_works=yes
15242 lt_cv_prog_compiler_static_works=yes
15246 LDFLAGS="$save_LDFLAGS"
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15250 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15252 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15255 lt_prog_compiler_static=
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15265 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15266 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15267 $as_echo_n "(cached
) " >&6
15269 lt_cv_prog_compiler_c_o=no
15270 $RM -r conftest 2>/dev/null
15274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15276 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15277 # Insert the option either (1) after the last *FLAGS variable, or
15278 # (2) before a word containing "conftest.
", or (3) at the end.
15279 # Note that $ac_compile itself does not contain backslashes and begins
15280 # with a dollar sign (not a hyphen), so the echo should work correctly.
15281 lt_compile=`echo "$ac_compile" | $SED \
15282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15284 -e 's:$: $lt_compiler_flag:'`
15285 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15286 (eval "$lt_compile" 2>out/conftest.err)
15288 cat out/conftest.err >&5
15289 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15290 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15292 # The compiler can only warn and ignore the option if not recognized
15293 # So say no if there are warnings
15294 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15295 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15296 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15297 lt_cv_prog_compiler_c_o=yes
15302 # SGI C++ compiler will create directory out/ii_files/ for
15303 # template instantiation
15304 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15305 $RM out/* && rmdir out
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15312 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15320 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15321 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15322 $as_echo_n "(cached
) " >&6
15324 lt_cv_prog_compiler_c_o=no
15325 $RM -r conftest 2>/dev/null
15329 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15331 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15332 # Insert the option either (1) after the last *FLAGS variable, or
15333 # (2) before a word containing "conftest.
", or (3) at the end.
15334 # Note that $ac_compile itself does not contain backslashes and begins
15335 # with a dollar sign (not a hyphen), so the echo should work correctly.
15336 lt_compile=`echo "$ac_compile" | $SED \
15337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15339 -e 's:$: $lt_compiler_flag:'`
15340 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15341 (eval "$lt_compile" 2>out/conftest.err)
15343 cat out/conftest.err >&5
15344 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15345 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15347 # The compiler can only warn and ignore the option if not recognized
15348 # So say no if there are warnings
15349 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15350 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15351 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15352 lt_cv_prog_compiler_c_o=yes
15357 # SGI C++ compiler will create directory out/ii_files/ for
15358 # template instantiation
15359 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15360 $RM out/* && rmdir out
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15367 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15372 hard_links="nottested
"
15373 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15374 # do not overwrite the value of need_locks provided by the user
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15376 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15379 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15381 ln conftest.a conftest.b 2>&5 || hard_links=no
15382 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15384 $as_echo "$hard_links" >&6; }
15385 if test "$hard_links" = no; then
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15387 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15400 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15403 allow_undefined_flag=
15404 always_export_symbols=no
15406 archive_expsym_cmds=
15407 compiler_needs_object=no
15408 enable_shared_with_static_runtimes=no
15409 export_dynamic_flag_spec=
15410 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15411 hardcode_automatic=no
15413 hardcode_direct_absolute=no
15414 hardcode_libdir_flag_spec=
15415 hardcode_libdir_flag_spec_ld=
15416 hardcode_libdir_separator=
15417 hardcode_minus_L=no
15418 hardcode_shlibpath_var=unsupported
15420 link_all_deplibs=unknown
15422 module_expsym_cmds=
15423 old_archive_from_new_cmds=
15424 old_archive_from_expsyms_cmds=
15425 thread_safe_flag_spec=
15426 whole_archive_flag_spec=
15427 # include_expsyms should be a list of space-separated symbols to be *always*
15428 # included in the symbol list
15430 # exclude_expsyms can be an extended regexp of symbols to exclude
15431 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15432 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15433 # as well as any symbol that contains `d'.
15434 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15435 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15436 # platforms (ab)use it in PIC code, but their linkers get confused if
15437 # the symbol is explicitly referenced. Since portable code cannot
15438 # rely on this symbol name, it's probably fine to never include it in
15439 # preloaded symbol tables.
15440 # Exclude shared library initialization/finalization symbols.
15441 extract_expsyms_cmds=
15444 cygwin* | mingw* | pw32* | cegcc*)
15445 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15446 # When not using gcc, we currently assume that we are using
15447 # Microsoft Visual C++.
15448 if test "$GCC" != yes; then
15453 # we just hope/assume this is gcc and not c89 (= MSVC++)
15463 # On some targets, GNU ld is compatible enough with the native linker
15464 # that we're better off using the native interface for both.
15465 lt_use_gnu_ld_interface=no
15466 if test "$with_gnu_ld" = yes; then
15469 # The AIX port of GNU ld has always aspired to compatibility
15470 # with the native linker. However, as the warning in the GNU ld
15471 # block says, versions before 2.19.5* couldn't really create working
15472 # shared libraries, regardless of the interface used.
15473 case `$LD -v 2>&1` in
15474 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15475 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15476 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15478 lt_use_gnu_ld_interface=yes
15483 lt_use_gnu_ld_interface=yes
15488 if test "$lt_use_gnu_ld_interface" = yes; then
15489 # If archive_cmds runs LD, not CC, wlarc should be empty
15492 # Set some defaults for GNU ld with shared library support. These
15493 # are reset later if shared libraries are not supported. Putting them
15494 # here allows them to be overridden if necessary.
15495 runpath_var=LD_RUN_PATH
15496 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15497 export_dynamic_flag_spec='${wl}--export-dynamic'
15498 # ancient GNU ld didn't support --whole-archive et. al.
15499 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15500 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15502 whole_archive_flag_spec=
15504 supports_anon_versioning=no
15505 case `$LD -v 2>&1` in
15506 *GNU\ gold*) supports_anon_versioning=yes ;;
15507 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15508 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15509 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15510 *\ 2.11.*) ;; # other 2.11 versions
15511 *) supports_anon_versioning=yes ;;
15514 # See if GNU ld supports shared libraries.
15517 # On AIX/PPC, the GNU linker is very broken
15518 if test "$host_cpu" != ia64; then
15522 *** Warning: the GNU linker, at least up to release 2.19, is reported
15523 *** to be unable to reliably create shared libraries on AIX.
15524 *** Therefore, libtool is disabling shared libraries support. If you
15525 *** really care for shared libraries, you may want to install binutils
15526 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15527 *** You will then need to restart the configuration process.
15536 # see comment about AmigaOS4 .so support
15537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15538 archive_expsym_cmds=''
15541 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)'
15542 hardcode_libdir_flag_spec
='-L$libdir'
15543 hardcode_minus_L
=yes
15549 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15550 allow_undefined_flag
=unsupported
15551 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15552 # support --undefined. This deserves some investigation. FIXME
15553 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15559 cygwin
* | mingw
* | pw32
* | cegcc
*)
15560 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15561 # as there is no search path for DLLs.
15562 hardcode_libdir_flag_spec
='-L$libdir'
15563 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15564 allow_undefined_flag
=unsupported
15565 always_export_symbols
=no
15566 enable_shared_with_static_runtimes
=yes
15567 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15569 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15570 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15571 # If the export-symbols file already is a .def file (1st line
15572 # is EXPORTS), use it as is; otherwise, prepend...
15573 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15574 cp $export_symbols $output_objdir/$soname.def;
15576 echo EXPORTS > $output_objdir/$soname.def;
15577 cat $export_symbols >> $output_objdir/$soname.def;
15579 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15586 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15587 link_all_deplibs
=yes
15592 hardcode_shlibpath_var
=no
15593 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15594 export_dynamic_flag_spec
='${wl}-E'
15595 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15596 # Instead, shared libraries are loaded at an image base (0x10000000 by
15597 # default) and relocated if they conflict, which is a slow very memory
15598 # consuming and fragmenting process. To avoid this, we pick a random,
15599 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15600 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15601 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15602 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'
15605 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15607 if test "$host_os" = linux-dietlibc
; then
15608 case $cc_basename in
15609 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15612 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15613 && test "$tmp_diet" = no
15616 tmp_sharedflag
='-shared'
15617 case $cc_basename,$host_cpu in
15618 pgcc
*) # Portland Group C compiler
15619 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'
15620 tmp_addflag
=' $pic_flag'
15622 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15623 # Portland Group f77 and f90 compilers
15624 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'
15625 tmp_addflag
=' $pic_flag -Mnomain' ;;
15626 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15627 tmp_addflag
=' -i_dynamic' ;;
15628 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15629 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15630 ifc
* | ifort
*) # Intel Fortran compiler
15631 tmp_addflag
=' -nofor_main' ;;
15632 lf95
*) # Lahey Fortran 8.1
15633 whole_archive_flag_spec
=
15634 tmp_sharedflag
='--shared' ;;
15635 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15636 tmp_sharedflag
='-qmkshrobj'
15638 nvcc
*) # Cuda Compiler Driver 2.2
15639 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'
15640 compiler_needs_object
=yes
15643 case `$CC -V 2>&1 | sed 5q` in
15644 *Sun\ C
*) # Sun C 5.9
15645 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'
15646 compiler_needs_object
=yes
15647 tmp_sharedflag
='-G' ;;
15648 *Sun\ F
*) # Sun Fortran 8.3
15649 tmp_sharedflag
='-G' ;;
15651 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15653 if test "x$supports_anon_versioning" = xyes
; then
15654 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15655 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15656 echo "local: *; };" >> $output_objdir/$libname.ver~
15657 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15660 case $cc_basename in
15661 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15662 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15663 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15664 hardcode_libdir_flag_spec
=
15665 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15666 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15667 if test "x$supports_anon_versioning" = xyes
; then
15668 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15669 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15670 echo "local: *; };" >> $output_objdir/$libname.ver~
15671 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15681 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15682 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15685 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15686 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15691 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15695 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15696 *** create shared libraries on Solaris systems. Therefore, libtool
15697 *** is disabling shared libraries support. We urge you to upgrade GNU
15698 *** binutils to release 2.9.1 or newer. Another option is to modify
15699 *** your PATH or compiler configuration so that the native linker is
15700 *** used, and then restart.
15703 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15704 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15705 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15711 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15712 case `$LD -v 2>&1` in
15713 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15717 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15718 *** reliably create shared libraries on SCO systems. Therefore, libtool
15719 *** is disabling shared libraries support. We urge you to upgrade GNU
15720 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15721 *** your PATH or compiler configuration so that the native linker is
15722 *** used, and then restart.
15727 # For security reasons, it is highly recommended that you always
15728 # use absolute paths for naming shared libraries, and exclude the
15729 # DT_RUNPATH tag from executables and libraries. But doing so
15730 # requires that you compile everything twice, which is a pain.
15731 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15732 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15733 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15734 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15743 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15745 hardcode_direct
=yes
15746 hardcode_shlibpath_var
=no
15750 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15751 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15752 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15759 if test "$ld_shlibs" = no
; then
15761 hardcode_libdir_flag_spec
=
15762 export_dynamic_flag_spec
=
15763 whole_archive_flag_spec
=
15766 # PORTME fill in a description of your system's linker (not GNU ld)
15769 allow_undefined_flag
=unsupported
15770 always_export_symbols
=yes
15771 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'
15772 # Note: this linker hardcodes the directories in LIBPATH if there
15773 # are no directories specified by -L.
15774 hardcode_minus_L
=yes
15775 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15776 # Neither direct hardcoding nor static linking is supported with a
15778 hardcode_direct
=unsupported
15783 if test "$host_cpu" = ia64
; then
15784 # On IA64, the linker does run time linking by default, so we don't
15785 # have to do anything special.
15786 aix_use_runtimelinking
=no
15787 exp_sym_flag
='-Bexport'
15790 # If we're using GNU nm, then we don't want the "-C" option.
15791 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15792 # Also, AIX nm treats weak defined symbols like other global
15793 # defined symbols, whereas GNU nm marks them as "W".
15794 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15795 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'
15797 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'
15799 aix_use_runtimelinking
=no
15801 # Test if we are trying to use run time linking or normal
15802 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15803 # need to do runtime linking.
15804 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15805 for ld_flag
in $LDFLAGS; do
15806 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15807 aix_use_runtimelinking
=yes
15814 exp_sym_flag
='-bexport'
15815 no_entry_flag
='-bnoentry'
15818 # When large executables or shared objects are built, AIX ld can
15819 # have problems creating the table of contents. If linking a library
15820 # or program results in "error TOC overflow" add -mminimal-toc to
15821 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15822 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15825 hardcode_direct
=yes
15826 hardcode_direct_absolute
=yes
15827 hardcode_libdir_separator
=':'
15828 link_all_deplibs
=yes
15829 file_list_spec
='${wl}-f,'
15831 if test "$GCC" = yes; then
15832 case $host_os in aix4.
[012]|aix4.
[012].
*)
15833 # We only want to do this on AIX 4.2 and lower, the check
15834 # below for broken collect2 doesn't work under 4.3+
15835 collect2name
=`${CC} -print-prog-name=collect2`
15836 if test -f "$collect2name" &&
15837 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15839 # We have reworked collect2
15842 # We have old collect2
15843 hardcode_direct
=unsupported
15844 # It fails to find uninstalled libraries when the uninstalled
15845 # path is not listed in the libpath. Setting hardcode_minus_L
15846 # to unsupported forces relinking
15847 hardcode_minus_L
=yes
15848 hardcode_libdir_flag_spec
='-L$libdir'
15849 hardcode_libdir_separator
=
15853 shared_flag
='-shared'
15854 if test "$aix_use_runtimelinking" = yes; then
15855 shared_flag
="$shared_flag "'${wl}-G'
15859 if test "$host_cpu" = ia64
; then
15860 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15861 # chokes on -Wl,-G. The following line is correct:
15864 if test "$aix_use_runtimelinking" = yes; then
15865 shared_flag
='${wl}-G'
15867 shared_flag
='${wl}-bM:SRE'
15872 export_dynamic_flag_spec
='${wl}-bexpall'
15873 # It seems that -bexpall does not export symbols beginning with
15874 # underscore (_), so it is better to generate a list of symbols to export.
15875 always_export_symbols
=yes
15876 if test "$aix_use_runtimelinking" = yes; then
15877 # Warning - without using the other runtime loading flags (-brtl),
15878 # -berok will link without error, but may produce a broken library.
15879 allow_undefined_flag
='-berok'
15880 # Determine the default libpath from the value encoded in an
15881 # empty executable.
15882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15883 /* end confdefs.h. */
15893 if ac_fn_c_try_link
"$LINENO"; then :
15895 lt_aix_libpath_sed
='
15896 /Import File Strings/,/^$/ {
15902 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15903 # Check for a 64-bit object if we didn't find anything.
15904 if test -z "$aix_libpath"; then
15905 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15908 rm -f core conftest.err conftest.
$ac_objext \
15909 conftest
$ac_exeext conftest.
$ac_ext
15910 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15912 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15913 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"
15915 if test "$host_cpu" = ia64
; then
15916 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15917 allow_undefined_flag
="-z nodefs"
15918 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"
15920 # Determine the default libpath from the value encoded in an
15921 # empty executable.
15922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15923 /* end confdefs.h. */
15933 if ac_fn_c_try_link
"$LINENO"; then :
15935 lt_aix_libpath_sed
='
15936 /Import File Strings/,/^$/ {
15942 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15943 # Check for a 64-bit object if we didn't find anything.
15944 if test -z "$aix_libpath"; then
15945 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15948 rm -f core conftest.err conftest.
$ac_objext \
15949 conftest
$ac_exeext conftest.
$ac_ext
15950 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15952 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15953 # Warning - without using the other run time loading flags,
15954 # -berok will link without error, but may produce a broken library.
15955 no_undefined_flag
=' ${wl}-bernotok'
15956 allow_undefined_flag
=' ${wl}-berok'
15957 if test "$with_gnu_ld" = yes; then
15958 # We only use this code for GNU lds that support --whole-archive.
15959 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15961 # Exported symbols can be pulled into shared objects from archives
15962 whole_archive_flag_spec
='$convenience'
15964 archive_cmds_need_lc
=yes
15965 # This is similar to how AIX traditionally builds its shared libraries.
15966 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'
15974 # see comment about AmigaOS4 .so support
15975 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15976 archive_expsym_cmds
=''
15979 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)'
15980 hardcode_libdir_flag_spec
='-L$libdir'
15981 hardcode_minus_L
=yes
15987 export_dynamic_flag_spec
=-rdynamic
15990 cygwin
* | mingw
* | pw32
* | cegcc
*)
15991 # When not using gcc, we currently assume that we are using
15992 # Microsoft Visual C++.
15993 # hardcode_libdir_flag_spec is actually meaningless, as there is
15994 # no search path for DLLs.
15995 hardcode_libdir_flag_spec
=' '
15996 allow_undefined_flag
=unsupported
15997 # Tell ltmain to make .lib files, not .a files.
15999 # Tell ltmain to make .dll files, not .so files.
16001 # FIXME: Setting linknames here is a bad hack.
16002 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16003 # The linker will automatically build a .lib file if we build a DLL.
16004 old_archive_from_new_cmds
='true'
16005 # FIXME: Should let the user specify the lib program.
16006 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16007 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16008 enable_shared_with_static_runtimes
=yes
16011 darwin
* | rhapsody
*)
16014 archive_cmds_need_lc
=no
16016 hardcode_automatic
=yes
16017 hardcode_shlibpath_var
=unsupported
16018 if test "$lt_cv_ld_force_load" = "yes"; then
16019 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\"`'
16021 whole_archive_flag_spec
=''
16023 link_all_deplibs
=yes
16024 allow_undefined_flag
="$_lt_dar_allow_undefined"
16025 case $cc_basename in
16026 ifort
*) _lt_dar_can_shared
=yes ;;
16027 *) _lt_dar_can_shared
=$GCC ;;
16029 if test "$_lt_dar_can_shared" = "yes"; then
16030 output_verbose_link_cmd
=func_echo_all
16031 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16032 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16033 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}"
16034 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}"
16043 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16044 hardcode_libdir_flag_spec
='-L$libdir'
16045 hardcode_shlibpath_var
=no
16048 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16049 # support. Future versions do this automatically, but an explicit c++rt0.o
16050 # does not break anything, and helps significantly (at the cost of a little
16053 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16054 hardcode_libdir_flag_spec
='-R$libdir'
16055 hardcode_direct
=yes
16056 hardcode_shlibpath_var
=no
16059 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16061 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16062 hardcode_direct
=yes
16063 hardcode_minus_L
=yes
16064 hardcode_shlibpath_var
=no
16067 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16068 freebsd
* | dragonfly
*)
16069 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16070 hardcode_libdir_flag_spec
='-R$libdir'
16071 hardcode_direct
=yes
16072 hardcode_shlibpath_var
=no
16076 if test "$GCC" = yes; then
16077 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'
16079 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'
16081 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16082 hardcode_libdir_separator
=:
16083 hardcode_direct
=yes
16085 # hardcode_minus_L: Not really in the search PATH,
16086 # but as the default location of the library.
16087 hardcode_minus_L
=yes
16088 export_dynamic_flag_spec
='${wl}-E'
16092 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16093 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16095 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16097 if test "$with_gnu_ld" = no
; then
16098 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16099 hardcode_libdir_flag_spec_ld
='+b $libdir'
16100 hardcode_libdir_separator
=:
16101 hardcode_direct
=yes
16102 hardcode_direct_absolute
=yes
16103 export_dynamic_flag_spec
='${wl}-E'
16104 # hardcode_minus_L: Not really in the search PATH,
16105 # but as the default location of the library.
16106 hardcode_minus_L
=yes
16111 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16114 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16117 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16120 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16126 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16129 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16133 # Older versions of the 11.00 compiler do not understand -b yet
16134 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16136 $as_echo_n "checking if $CC understands -b... " >&6; }
16137 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16138 $as_echo_n "(cached) " >&6
16140 lt_cv_prog_compiler__b
=no
16141 save_LDFLAGS
="$LDFLAGS"
16142 LDFLAGS
="$LDFLAGS -b"
16143 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16144 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16145 # The linker can only warn and ignore the option if not recognized
16146 # So say no if there are warnings
16147 if test -s conftest.err
; then
16148 # Append any errors to the config.log.
16149 cat conftest.err
1>&5
16150 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16151 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16152 if diff conftest.exp conftest.er2
>/dev
/null
; then
16153 lt_cv_prog_compiler__b
=yes
16156 lt_cv_prog_compiler__b
=yes
16160 LDFLAGS
="$save_LDFLAGS"
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16164 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16166 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16167 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16169 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16175 if test "$with_gnu_ld" = no
; then
16176 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16177 hardcode_libdir_separator
=:
16182 hardcode_shlibpath_var
=no
16185 hardcode_direct
=yes
16186 hardcode_direct_absolute
=yes
16187 export_dynamic_flag_spec
='${wl}-E'
16189 # hardcode_minus_L: Not really in the search PATH,
16190 # but as the default location of the library.
16191 hardcode_minus_L
=yes
16197 irix5
* | irix6
* | nonstopux
*)
16198 if test "$GCC" = yes; then
16199 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'
16200 # Try to use the -exported_symbol ld option, if it does not
16201 # work, assume that -exports_file does not work either and
16202 # implicitly export all symbols.
16203 save_LDFLAGS
="$LDFLAGS"
16204 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16206 /* end confdefs.h. */
16209 if ac_fn_c_try_link
"$LINENO"; then :
16210 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'
16213 rm -f core conftest.err conftest.
$ac_objext \
16214 conftest
$ac_exeext conftest.
$ac_ext
16215 LDFLAGS
="$save_LDFLAGS"
16217 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'
16218 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'
16220 archive_cmds_need_lc
='no'
16221 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16222 hardcode_libdir_separator
=:
16224 link_all_deplibs
=yes
16228 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16229 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16231 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16233 hardcode_libdir_flag_spec
='-R$libdir'
16234 hardcode_direct
=yes
16235 hardcode_shlibpath_var
=no
16239 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16240 hardcode_direct
=yes
16241 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16242 hardcode_libdir_separator
=:
16243 hardcode_shlibpath_var
=no
16250 if test -f /usr
/libexec
/ld.so
; then
16251 hardcode_direct
=yes
16252 hardcode_shlibpath_var
=no
16253 hardcode_direct_absolute
=yes
16254 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16255 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16256 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16257 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16258 export_dynamic_flag_spec
='${wl}-E'
16261 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16262 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16263 hardcode_libdir_flag_spec
='-R$libdir'
16266 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16267 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16277 hardcode_libdir_flag_spec
='-L$libdir'
16278 hardcode_minus_L
=yes
16279 allow_undefined_flag
=unsupported
16280 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'
16281 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16285 if test "$GCC" = yes; then
16286 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16287 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'
16289 allow_undefined_flag
=' -expect_unresolved \*'
16290 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'
16292 archive_cmds_need_lc
='no'
16293 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16294 hardcode_libdir_separator
=:
16297 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16298 if test "$GCC" = yes; then
16299 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16300 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'
16301 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16303 allow_undefined_flag
=' -expect_unresolved \*'
16304 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'
16305 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~
16306 $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'
16308 # Both c and cxx compiler support -rpath directly
16309 hardcode_libdir_flag_spec
='-rpath $libdir'
16311 archive_cmds_need_lc
='no'
16312 hardcode_libdir_separator
=:
16316 no_undefined_flag
=' -z defs'
16317 if test "$GCC" = yes; then
16319 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16320 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16321 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16323 case `$CC -V 2>&1` in
16326 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16327 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16328 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16332 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16333 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16334 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16338 hardcode_libdir_flag_spec
='-R$libdir'
16339 hardcode_shlibpath_var
=no
16341 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16343 # The compiler driver will combine and reorder linker options,
16344 # but understands `-z linker_flag'. GCC discards it without `$wl',
16345 # but is careful enough not to reorder.
16346 # Supported since Solaris 2.6 (maybe 2.5.1?)
16347 if test "$GCC" = yes; then
16348 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16350 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16354 link_all_deplibs
=yes
16358 if test "x$host_vendor" = xsequent
; then
16359 # Use $CC to link under sequent, because it throws in some extra .o
16360 # files that make .init and .fini sections work.
16361 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16363 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16365 hardcode_libdir_flag_spec
='-L$libdir'
16366 hardcode_direct
=yes
16367 hardcode_minus_L
=yes
16368 hardcode_shlibpath_var
=no
16372 case $host_vendor in
16374 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16375 hardcode_direct
=yes # is this really true???
16378 ## LD is ld it makes a PLAMLIB
16379 ## CC just makes a GrossModule.
16380 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16381 reload_cmds
='$CC -r -o $output$reload_objs'
16385 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16386 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16389 runpath_var
='LD_RUN_PATH'
16390 hardcode_shlibpath_var
=no
16394 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16395 hardcode_shlibpath_var
=no
16396 export_dynamic_flag_spec
='-Bexport'
16400 if test -d /usr
/nec
; then
16401 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16402 hardcode_shlibpath_var
=no
16403 runpath_var
=LD_RUN_PATH
16404 hardcode_runpath_var
=yes
16409 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16410 no_undefined_flag
='${wl}-z,text'
16411 archive_cmds_need_lc
=no
16412 hardcode_shlibpath_var
=no
16413 runpath_var
='LD_RUN_PATH'
16415 if test "$GCC" = yes; then
16416 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16417 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16419 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16420 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16424 sysv5
* | sco3.2v5
* | sco5v6
*)
16425 # Note: We can NOT use -z defs as we might desire, because we do not
16426 # link with -lc, and that would cause any symbols used from libc to
16427 # always be unresolved, which means just about no library would
16428 # ever link correctly. If we're not using GNU ld we use -z text
16429 # though, which does catch some bad symbols but isn't as heavy-handed
16431 no_undefined_flag
='${wl}-z,text'
16432 allow_undefined_flag
='${wl}-z,nodefs'
16433 archive_cmds_need_lc
=no
16434 hardcode_shlibpath_var
=no
16435 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16436 hardcode_libdir_separator
=':'
16437 link_all_deplibs
=yes
16438 export_dynamic_flag_spec
='${wl}-Bexport'
16439 runpath_var
='LD_RUN_PATH'
16441 if test "$GCC" = yes; then
16442 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16443 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16445 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16446 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16451 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16452 hardcode_libdir_flag_spec
='-L$libdir'
16453 hardcode_shlibpath_var
=no
16461 if test x
$host_vendor = xsni
; then
16463 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16464 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16471 $as_echo "$ld_shlibs" >&6; }
16472 test "$ld_shlibs" = no
&& can_build_shared
=no
16474 with_gnu_ld
=$with_gnu_ld
16491 # Do we need to explicitly link libc?
16493 case "x$archive_cmds_need_lc" in
16495 # Assume -lc should be added
16496 archive_cmds_need_lc
=yes
16498 if test "$enable_shared" = yes && test "$GCC" = yes; then
16499 case $archive_cmds in
16501 # FIXME: we may have to deal with multi-command sequences.
16504 # Test whether the compiler implicitly links with -lc since on some
16505 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16506 # to ld, don't add -lc before -lgcc.
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16508 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16509 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16510 $as_echo_n "(cached) " >&6
16513 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16516 (eval $ac_compile) 2>&5
16518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16519 test $ac_status = 0; } 2>conftest.err
; then
16522 libobjs
=conftest.
$ac_objext
16524 wl
=$lt_prog_compiler_wl
16525 pic_flag
=$lt_prog_compiler_pic
16531 lt_save_allow_undefined_flag
=$allow_undefined_flag
16532 allow_undefined_flag
=
16533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16534 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16537 test $ac_status = 0; }
16539 lt_cv_archive_cmds_need_lc
=no
16541 lt_cv_archive_cmds_need_lc
=yes
16543 allow_undefined_flag
=$lt_save_allow_undefined_flag
16545 cat conftest.err
1>&5
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16551 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16552 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16716 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16718 if test "$GCC" = yes; then
16720 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16721 *) lt_awk_arg
="/^libraries:/" ;;
16724 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16725 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16727 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16728 case $lt_search_path_spec in
16730 # if the path contains ";" then we assume it to be the separator
16731 # otherwise default to the standard path separator (i.e. ":") - it is
16732 # assumed that no part of a normal pathname contains ";" but that should
16733 # okay in the real world where ";" in dirpaths is itself problematic.
16734 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16737 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16740 # Ok, now we have the path, separated by spaces, we can step through it
16741 # and add multilib dir if necessary.
16742 lt_tmp_lt_search_path_spec
=
16743 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16744 for lt_sys_path
in $lt_search_path_spec; do
16745 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16746 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16748 test -d "$lt_sys_path" && \
16749 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16752 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16753 BEGIN {RS=" "; FS="/|\n";} {
16756 for (lt_i = NF; lt_i > 0; lt_i--) {
16757 if ($lt_i != "" && $lt_i != ".") {
16758 if ($lt_i == "..") {
16761 if (lt_count == 0) {
16762 lt_foo="/" $lt_i lt_foo;
16769 if (lt_foo != "") { lt_freq[lt_foo]++; }
16770 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16772 # AWK program above erroneously prepends '/' to C:/dos/paths
16775 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16776 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16778 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16780 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16782 library_names_spec
=
16783 libname_spec
='lib$name'
16787 postuninstall_cmds
=
16791 shlibpath_overrides_runpath
=unknown
16793 dynamic_linker
="$host_os ld.so"
16794 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16795 need_lib_prefix
=unknown
16796 hardcode_into_libs
=no
16798 # when you set need_version to no, make sure it does not cause -set_version
16799 # flags to be left without arguments
16800 need_version
=unknown
16805 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16806 shlibpath_var
=LIBPATH
16808 # AIX 3 has no versioning support, so we append a major version to the name.
16809 soname_spec
='${libname}${release}${shared_ext}$major'
16816 hardcode_into_libs
=yes
16817 if test "$host_cpu" = ia64
; then
16818 # AIX 5 supports IA64
16819 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16820 shlibpath_var
=LD_LIBRARY_PATH
16822 # With GCC up to 2.95.x, collect2 would create an import file
16823 # for dependence libraries. The import file would start with
16824 # the line `#! .'. This would cause the generated library to
16825 # depend on `.', always an invalid library. This was fixed in
16826 # development snapshots of GCC prior to 3.0.
16828 aix4 | aix4.
[01] | aix4.
[01].
*)
16829 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16831 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16834 can_build_shared
=no
16838 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16839 # soname into executable. Probably we can add versioning support to
16840 # collect2, so additional links can be useful in future.
16841 if test "$aix_use_runtimelinking" = yes; then
16842 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16843 # instead of lib<name>.a to let people know that these are not
16844 # typical AIX shared libraries.
16845 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16847 # We preserve .a as extension for shared libraries through AIX4.2
16848 # and later when we are not doing run time linking.
16849 library_names_spec
='${libname}${release}.a $libname.a'
16850 soname_spec
='${libname}${release}${shared_ext}$major'
16852 shlibpath_var
=LIBPATH
16859 # Since July 2007 AmigaOS4 officially supports .so libraries.
16860 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16861 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16864 library_names_spec
='$libname.ixlibrary $libname.a'
16865 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16866 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'
16872 library_names_spec
='${libname}${shared_ext}'
16873 dynamic_linker
="$host_os ld.so"
16874 shlibpath_var
=LIBRARY_PATH
16880 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16881 soname_spec
='${libname}${release}${shared_ext}$major'
16882 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16883 shlibpath_var
=LD_LIBRARY_PATH
16884 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16885 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16886 # the default ld.so.conf also contains /usr/contrib/lib and
16887 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16888 # libtool to hard-code these into programs
16891 cygwin
* | mingw
* | pw32
* | cegcc
*)
16892 version_type
=windows
16897 case $GCC,$host_os in
16898 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16899 library_names_spec
='$libname.dll.a'
16900 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16901 postinstall_cmds
='base_file=`basename \${file}`~
16902 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16903 dldir=$destdir/`dirname \$dlpath`~
16904 test -d \$dldir || mkdir -p \$dldir~
16905 $install_prog $dir/$dlname \$dldir/$dlname~
16906 chmod a+x \$dldir/$dlname~
16907 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16908 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16910 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16911 dlpath=$dir/\$dldll~
16913 shlibpath_overrides_runpath
=yes
16917 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16918 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16920 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16923 # MinGW DLLs use traditional 'lib' prefix
16924 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16927 # pw32 DLLs use 'pw' prefix rather than 'lib'
16928 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16934 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16937 dynamic_linker
='Win32 ld.exe'
16938 # FIXME: first we should search . and the directory the executable is in
16942 darwin
* | rhapsody
*)
16943 dynamic_linker
="$host_os dyld"
16944 version_type
=darwin
16947 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16948 soname_spec
='${libname}${release}${major}$shared_ext'
16949 shlibpath_overrides_runpath
=yes
16950 shlibpath_var
=DYLD_LIBRARY_PATH
16951 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16953 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
16954 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16961 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16962 soname_spec
='${libname}${release}${shared_ext}$major'
16963 shlibpath_var
=LD_LIBRARY_PATH
16966 freebsd
* | dragonfly
*)
16967 # DragonFly does not have aout. When/if they implement a new
16968 # versioning mechanism, adjust this.
16969 if test -x /usr
/bin
/objformat
; then
16970 objformat
=`/usr/bin/objformat`
16973 freebsd
[23].
*) objformat
=aout
;;
16974 *) objformat
=elf
;;
16977 version_type
=freebsd-
$objformat
16978 case $version_type in
16980 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16985 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16989 shlibpath_var
=LD_LIBRARY_PATH
16992 shlibpath_overrides_runpath
=yes
16994 freebsd3.
[01]* | freebsdelf3.
[01]*)
16995 shlibpath_overrides_runpath
=yes
16996 hardcode_into_libs
=yes
16998 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16999 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17000 shlibpath_overrides_runpath
=no
17001 hardcode_into_libs
=yes
17003 *) # from 4.6 on, and DragonFly
17004 shlibpath_overrides_runpath
=yes
17005 hardcode_into_libs
=yes
17014 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17015 soname_spec
='${libname}${release}${shared_ext}$major'
17016 shlibpath_var
=LD_LIBRARY_PATH
17017 hardcode_into_libs
=yes
17024 dynamic_linker
="$host_os runtime_loader"
17025 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17026 soname_spec
='${libname}${release}${shared_ext}$major'
17027 shlibpath_var
=LIBRARY_PATH
17028 shlibpath_overrides_runpath
=yes
17029 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17030 hardcode_into_libs
=yes
17033 hpux9
* | hpux10
* | hpux11
*)
17034 # Give a soname corresponding to the major version so that dld.sl refuses to
17035 # link against other versions.
17042 hardcode_into_libs
=yes
17043 dynamic_linker
="$host_os dld.so"
17044 shlibpath_var
=LD_LIBRARY_PATH
17045 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17046 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17047 soname_spec
='${libname}${release}${shared_ext}$major'
17048 if test "X$HPUX_IA64_MODE" = X32
; then
17049 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17051 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17053 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17057 hardcode_into_libs
=yes
17058 dynamic_linker
="$host_os dld.sl"
17059 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17060 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17061 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17062 soname_spec
='${libname}${release}${shared_ext}$major'
17063 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17064 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17068 dynamic_linker
="$host_os dld.sl"
17069 shlibpath_var
=SHLIB_PATH
17070 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17071 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17072 soname_spec
='${libname}${release}${shared_ext}$major'
17075 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17076 postinstall_cmds
='chmod 555 $lib'
17077 # or fails outright, so override atomically:
17078 install_override_mode
=555
17085 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17086 soname_spec
='${libname}${release}${shared_ext}$major'
17087 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17088 shlibpath_var
=LD_LIBRARY_PATH
17089 shlibpath_overrides_runpath
=no
17090 hardcode_into_libs
=yes
17093 irix5
* | irix6
* | nonstopux
*)
17095 nonstopux
*) version_type
=nonstopux
;;
17097 if test "$lt_cv_prog_gnu_ld" = yes; then
17105 soname_spec
='${libname}${release}${shared_ext}$major'
17106 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17108 irix5
* | nonstopux
*)
17109 libsuff
= shlibsuff
=
17112 case $LD in # libtool.m4 will add one of these switches to LD
17113 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17114 libsuff
= shlibsuff
= libmagic
=32-bit;;
17115 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17116 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17117 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17118 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17119 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17123 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17124 shlibpath_overrides_runpath
=no
17125 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17126 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17127 hardcode_into_libs
=yes
17130 # No shared lib support for Linux oldld, aout, or coff.
17131 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17135 # This must be Linux ELF.
17136 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
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 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17143 shlibpath_var
=LD_LIBRARY_PATH
17144 shlibpath_overrides_runpath
=no
17146 # Some binutils ld are patched to set DT_RUNPATH
17147 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17148 $as_echo_n "(cached) " >&6
17150 lt_cv_shlibpath_overrides_runpath
=no
17151 save_LDFLAGS
=$LDFLAGS
17152 save_libdir
=$libdir
17153 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17154 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17156 /* end confdefs.h. */
17166 if ac_fn_c_try_link
"$LINENO"; then :
17167 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17168 lt_cv_shlibpath_overrides_runpath
=yes
17171 rm -f core conftest.err conftest.
$ac_objext \
17172 conftest
$ac_exeext conftest.
$ac_ext
17173 LDFLAGS
=$save_LDFLAGS
17174 libdir
=$save_libdir
17178 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17180 # This implies no fast_install, which is unacceptable.
17181 # Some rework will be needed to allow for fast_install
17182 # before this can be enabled.
17183 hardcode_into_libs
=yes
17185 # Append ld.so.conf contents to the search path
17186 if test -f /etc
/ld.so.conf
; then
17187 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' ' '`
17188 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17191 # We used to test for /lib/ld.so.1 and disable shared libraries on
17192 # powerpc, because MkLinux only supported shared libraries with the
17193 # GNU dynamic linker. Since this was broken with cross compilers,
17194 # most powerpc-linux boxes support dynamic linking these days and
17195 # people can always --disable-shared, the test was removed, and we
17196 # assume the GNU/Linux dynamic linker is in use.
17197 dynamic_linker
='GNU/Linux ld.so'
17204 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17205 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17206 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17207 dynamic_linker
='NetBSD (a.out) ld.so'
17209 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17210 soname_spec
='${libname}${release}${shared_ext}$major'
17211 dynamic_linker
='NetBSD ld.elf_so'
17213 shlibpath_var
=LD_LIBRARY_PATH
17214 shlibpath_overrides_runpath
=yes
17215 hardcode_into_libs
=yes
17220 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221 shlibpath_var
=LD_LIBRARY_PATH
17222 shlibpath_overrides_runpath
=yes
17229 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17230 soname_spec
='${libname}${release}${shared_ext}$major'
17231 shlibpath_var
=LD_LIBRARY_PATH
17232 shlibpath_overrides_runpath
=no
17233 hardcode_into_libs
=yes
17234 dynamic_linker
='ldqnx.so'
17239 sys_lib_dlsearch_path_spec
="/usr/lib"
17241 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17243 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17244 *) need_version
=no
;;
17246 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17247 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17248 shlibpath_var
=LD_LIBRARY_PATH
17249 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17251 openbsd2.
[89] | openbsd2.
[89].
*)
17252 shlibpath_overrides_runpath
=no
17255 shlibpath_overrides_runpath
=yes
17259 shlibpath_overrides_runpath
=yes
17264 libname_spec
='$name'
17267 library_names_spec
='$libname${shared_ext} $libname.a'
17268 dynamic_linker
='OS/2 ld.exe'
17269 shlibpath_var
=LIBPATH
17272 osf3
* | osf4
* | osf5
*)
17276 soname_spec
='${libname}${release}${shared_ext}$major'
17277 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278 shlibpath_var
=LD_LIBRARY_PATH
17279 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17280 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17291 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17292 soname_spec
='${libname}${release}${shared_ext}$major'
17293 shlibpath_var
=LD_LIBRARY_PATH
17294 shlibpath_overrides_runpath
=yes
17295 hardcode_into_libs
=yes
17296 # ldd complains unless libraries are executable
17297 postinstall_cmds
='chmod +x $lib'
17302 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17303 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17304 shlibpath_var
=LD_LIBRARY_PATH
17305 shlibpath_overrides_runpath
=yes
17306 if test "$with_gnu_ld" = yes; then
17314 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17315 soname_spec
='${libname}${release}${shared_ext}$major'
17316 shlibpath_var
=LD_LIBRARY_PATH
17317 case $host_vendor in
17319 shlibpath_overrides_runpath
=no
17321 runpath_var
=LD_RUN_PATH
17329 shlibpath_overrides_runpath
=no
17330 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17336 if test -d /usr
/nec
;then
17338 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17339 soname_spec
='$libname${shared_ext}.$major'
17340 shlibpath_var
=LD_LIBRARY_PATH
17344 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17345 version_type
=freebsd-elf
17348 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17349 soname_spec
='${libname}${release}${shared_ext}$major'
17350 shlibpath_var
=LD_LIBRARY_PATH
17351 shlibpath_overrides_runpath
=yes
17352 hardcode_into_libs
=yes
17353 if test "$with_gnu_ld" = yes; then
17354 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17356 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17359 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17363 sys_lib_dlsearch_path_spec
='/usr/lib'
17367 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17371 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372 shlibpath_var
=LD_LIBRARY_PATH
17373 shlibpath_overrides_runpath
=no
17374 hardcode_into_libs
=yes
17379 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17380 soname_spec
='${libname}${release}${shared_ext}$major'
17381 shlibpath_var
=LD_LIBRARY_PATH
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17389 $as_echo "$dynamic_linker" >&6; }
17390 test "$dynamic_linker" = no
&& can_build_shared
=no
17392 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17393 if test "$GCC" = yes; then
17394 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17397 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17398 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17400 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17401 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17496 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17498 if test -n "$hardcode_libdir_flag_spec" ||
17499 test -n "$runpath_var" ||
17500 test "X$hardcode_automatic" = "Xyes" ; then
17502 # We can hardcode non-existent directories.
17503 if test "$hardcode_direct" != no
&&
17504 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17505 # have to relink, otherwise we might link with an installed library
17506 # when we should be linking with a yet-to-be-installed one
17507 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17508 test "$hardcode_minus_L" != no
; then
17509 # Linking always hardcodes the temporary library directory.
17510 hardcode_action
=relink
17512 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17513 hardcode_action
=immediate
17516 # We cannot hardcode anything, or else we can only hardcode existing
17518 hardcode_action
=unsupported
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17521 $as_echo "$hardcode_action" >&6; }
17523 if test "$hardcode_action" = relink ||
17524 test "$inherit_rpath" = yes; then
17525 # Fast installation is not supported
17526 enable_fast_install
=no
17527 elif test "$shlibpath_overrides_runpath" = yes ||
17528 test "$enable_shared" = no
; then
17529 # Fast installation is not necessary
17530 enable_fast_install
=needless
17538 if test "x$enable_dlopen" != xyes
; then
17539 enable_dlopen
=unknown
17540 enable_dlopen_self
=unknown
17541 enable_dlopen_self_static
=unknown
17548 lt_cv_dlopen
="load_add_on"
17550 lt_cv_dlopen_self
=yes
17553 mingw
* | pw32
* | cegcc
*)
17554 lt_cv_dlopen
="LoadLibrary"
17559 lt_cv_dlopen
="dlopen"
17564 # if libdl is installed we need to link against it
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17566 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17567 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17568 $as_echo_n "(cached) " >&6
17570 ac_check_lib_save_LIBS
=$LIBS
17572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17573 /* end confdefs.h. */
17575 /* Override any GCC internal prototype to avoid an error.
17576 Use char because int might match the return type of a GCC
17577 builtin and then its argument prototype would still apply. */
17590 if ac_fn_c_try_link
"$LINENO"; then :
17591 ac_cv_lib_dl_dlopen
=yes
17593 ac_cv_lib_dl_dlopen
=no
17595 rm -f core conftest.err conftest.
$ac_objext \
17596 conftest
$ac_exeext conftest.
$ac_ext
17597 LIBS
=$ac_check_lib_save_LIBS
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17600 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17601 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17602 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17605 lt_cv_dlopen
="dyld"
17607 lt_cv_dlopen_self
=yes
17614 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17615 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17616 lt_cv_dlopen
="shl_load"
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17619 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17620 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17621 $as_echo_n "(cached) " >&6
17623 ac_check_lib_save_LIBS
=$LIBS
17625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17626 /* end confdefs.h. */
17628 /* Override any GCC internal prototype to avoid an error.
17629 Use char because int might match the return type of a GCC
17630 builtin and then its argument prototype would still apply. */
17638 return shl_load ();
17643 if ac_fn_c_try_link
"$LINENO"; then :
17644 ac_cv_lib_dld_shl_load
=yes
17646 ac_cv_lib_dld_shl_load
=no
17648 rm -f core conftest.err conftest.
$ac_objext \
17649 conftest
$ac_exeext conftest.
$ac_ext
17650 LIBS
=$ac_check_lib_save_LIBS
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17653 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17654 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17655 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17657 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17658 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17659 lt_cv_dlopen
="dlopen"
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17662 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17663 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17664 $as_echo_n "(cached) " >&6
17666 ac_check_lib_save_LIBS
=$LIBS
17668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17669 /* end confdefs.h. */
17671 /* Override any GCC internal prototype to avoid an error.
17672 Use char because int might match the return type of a GCC
17673 builtin and then its argument prototype would still apply. */
17686 if ac_fn_c_try_link
"$LINENO"; then :
17687 ac_cv_lib_dl_dlopen
=yes
17689 ac_cv_lib_dl_dlopen
=no
17691 rm -f core conftest.err conftest.
$ac_objext \
17692 conftest
$ac_exeext conftest.
$ac_ext
17693 LIBS
=$ac_check_lib_save_LIBS
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17696 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17697 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17698 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17701 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17702 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17703 $as_echo_n "(cached) " >&6
17705 ac_check_lib_save_LIBS
=$LIBS
17706 LIBS
="-lsvld $LIBS"
17707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17708 /* end confdefs.h. */
17710 /* Override any GCC internal prototype to avoid an error.
17711 Use char because int might match the return type of a GCC
17712 builtin and then its argument prototype would still apply. */
17725 if ac_fn_c_try_link
"$LINENO"; then :
17726 ac_cv_lib_svld_dlopen
=yes
17728 ac_cv_lib_svld_dlopen
=no
17730 rm -f core conftest.err conftest.
$ac_objext \
17731 conftest
$ac_exeext conftest.
$ac_ext
17732 LIBS
=$ac_check_lib_save_LIBS
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17735 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17736 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17737 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17740 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17741 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17742 $as_echo_n "(cached) " >&6
17744 ac_check_lib_save_LIBS
=$LIBS
17746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17747 /* end confdefs.h. */
17749 /* Override any GCC internal prototype to avoid an error.
17750 Use char because int might match the return type of a GCC
17751 builtin and then its argument prototype would still apply. */
17759 return dld_link ();
17764 if ac_fn_c_try_link
"$LINENO"; then :
17765 ac_cv_lib_dld_dld_link
=yes
17767 ac_cv_lib_dld_dld_link
=no
17769 rm -f core conftest.err conftest.
$ac_objext \
17770 conftest
$ac_exeext conftest.
$ac_ext
17771 LIBS
=$ac_check_lib_save_LIBS
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17774 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17775 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17776 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17797 if test "x$lt_cv_dlopen" != xno
; then
17803 case $lt_cv_dlopen in
17805 save_CPPFLAGS
="$CPPFLAGS"
17806 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17808 save_LDFLAGS
="$LDFLAGS"
17809 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17812 LIBS
="$lt_cv_dlopen_libs $LIBS"
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17815 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17816 if test "${lt_cv_dlopen_self+set}" = set; then :
17817 $as_echo_n "(cached) " >&6
17819 if test "$cross_compiling" = yes; then :
17820 lt_cv_dlopen_self
=cross
17822 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17823 lt_status
=$lt_dlunknown
17824 cat > conftest.
$ac_ext <<_LT_EOF
17825 #line 17825 "configure"
17826 #include "confdefs.h"
17835 # define LT_DLGLOBAL RTLD_GLOBAL
17838 # define LT_DLGLOBAL DL_GLOBAL
17840 # define LT_DLGLOBAL 0
17844 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17845 find out it does not work in some platform. */
17846 #ifndef LT_DLLAZY_OR_NOW
17848 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17851 # define LT_DLLAZY_OR_NOW DL_LAZY
17854 # define LT_DLLAZY_OR_NOW RTLD_NOW
17857 # define LT_DLLAZY_OR_NOW DL_NOW
17859 # define LT_DLLAZY_OR_NOW 0
17866 /* When -fvisbility=hidden is used, assume the code has been annotated
17867 correspondingly for the symbols needed. */
17868 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17869 void fnord () __attribute__((visibility("default")));
17872 void fnord () { int i=42; }
17875 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17876 int status = $lt_dlunknown;
17880 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17883 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17884 else puts (dlerror ());
17886 /* dlclose (self); */
17894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17895 (eval $ac_link) 2>&5
17897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17898 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17899 (.
/conftest
; exit; ) >&5 2>/dev
/null
17901 case x
$lt_status in
17902 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17903 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17904 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17907 # compilation failed
17908 lt_cv_dlopen_self
=no
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17916 $as_echo "$lt_cv_dlopen_self" >&6; }
17918 if test "x$lt_cv_dlopen_self" = xyes
; then
17919 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17921 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17922 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17923 $as_echo_n "(cached) " >&6
17925 if test "$cross_compiling" = yes; then :
17926 lt_cv_dlopen_self_static
=cross
17928 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17929 lt_status
=$lt_dlunknown
17930 cat > conftest.
$ac_ext <<_LT_EOF
17931 #line 17931 "configure"
17932 #include "confdefs.h"
17941 # define LT_DLGLOBAL RTLD_GLOBAL
17944 # define LT_DLGLOBAL DL_GLOBAL
17946 # define LT_DLGLOBAL 0
17950 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17951 find out it does not work in some platform. */
17952 #ifndef LT_DLLAZY_OR_NOW
17954 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17957 # define LT_DLLAZY_OR_NOW DL_LAZY
17960 # define LT_DLLAZY_OR_NOW RTLD_NOW
17963 # define LT_DLLAZY_OR_NOW DL_NOW
17965 # define LT_DLLAZY_OR_NOW 0
17972 /* When -fvisbility=hidden is used, assume the code has been annotated
17973 correspondingly for the symbols needed. */
17974 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17975 void fnord () __attribute__((visibility("default")));
17978 void fnord () { int i=42; }
17981 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17982 int status = $lt_dlunknown;
17986 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17989 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17990 else puts (dlerror ());
17992 /* dlclose (self); */
18000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18001 (eval $ac_link) 2>&5
18003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18004 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18005 (.
/conftest
; exit; ) >&5 2>/dev
/null
18007 case x
$lt_status in
18008 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18009 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18010 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18013 # compilation failed
18014 lt_cv_dlopen_self_static
=no
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18022 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18025 CPPFLAGS
="$save_CPPFLAGS"
18026 LDFLAGS
="$save_LDFLAGS"
18031 case $lt_cv_dlopen_self in
18032 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18033 *) enable_dlopen_self
=unknown
;;
18036 case $lt_cv_dlopen_self_static in
18037 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18038 *) enable_dlopen_self_static
=unknown
;;
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18061 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18062 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18063 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18064 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18066 $as_echo "yes" >&6; }
18068 # FIXME - insert some real tests, host_os isn't really good enough
18071 if test -n "$STRIP" ; then
18072 striplib
="$STRIP -x"
18073 old_striplib
="$STRIP -S"
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18075 $as_echo "yes" >&6; }
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18078 $as_echo "no" >&6; }
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18083 $as_echo "no" >&6; }
18099 # Report which library types will actually be built
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18101 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18103 $as_echo "$can_build_shared" >&6; }
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18106 $as_echo_n "checking whether to build shared libraries... " >&6; }
18107 test "$can_build_shared" = "no" && enable_shared
=no
18109 # On AIX, shared libraries and static libraries use the same namespace, and
18110 # are all built from PIC.
18113 test "$enable_shared" = yes && enable_static
=no
18114 if test -n "$RANLIB"; then
18115 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18116 postinstall_cmds
='$RANLIB $lib'
18121 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18122 test "$enable_shared" = yes && enable_static
=no
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18127 $as_echo "$enable_shared" >&6; }
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18130 $as_echo_n "checking whether to build static libraries... " >&6; }
18131 # Make sure either enable_shared or enable_static is yes.
18132 test "$enable_shared" = yes || enable_static
=yes
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18134 $as_echo "$enable_static" >&6; }
18141 ac_cpp
='$CPP $CPPFLAGS'
18142 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18143 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18144 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18148 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18149 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18150 (test "X$CXX" != "Xg++"))) ; then
18152 ac_cpp
='$CXXCPP $CPPFLAGS'
18153 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18154 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18155 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18157 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18158 if test -z "$CXXCPP"; then
18159 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18160 $as_echo_n "(cached) " >&6
18162 # Double quotes because CXXCPP needs to be expanded
18163 for CXXCPP
in "$CXX -E" "/lib/cpp"
18165 ac_preproc_ok
=false
18166 for ac_cxx_preproc_warn_flag
in '' yes
18168 # Use a header file that comes with gcc, so configuring glibc
18169 # with a fresh cross-compiler works.
18170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18171 # <limits.h> exists even on freestanding compilers.
18172 # On the NeXT, cc -E runs the code through the compiler's parser,
18173 # not just through cpp. "Syntax error" is here to catch this case.
18174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18175 /* end confdefs.h. */
18177 # include <limits.h>
18179 # include <assert.h>
18183 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18186 # Broken: fails on valid input.
18189 rm -f conftest.err conftest.
$ac_ext
18191 # OK, works on sane cases. Now check whether nonexistent headers
18192 # can be detected and how.
18193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18194 /* end confdefs.h. */
18195 #include <ac_nonexistent.h>
18197 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18198 # Broken: success on invalid input.
18201 # Passes both tests.
18205 rm -f conftest.err conftest.
$ac_ext
18208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18209 rm -f conftest.err conftest.
$ac_ext
18210 if $ac_preproc_ok; then :
18215 ac_cv_prog_CXXCPP
=$CXXCPP
18218 CXXCPP
=$ac_cv_prog_CXXCPP
18220 ac_cv_prog_CXXCPP
=$CXXCPP
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18223 $as_echo "$CXXCPP" >&6; }
18224 ac_preproc_ok
=false
18225 for ac_cxx_preproc_warn_flag
in '' yes
18227 # Use a header file that comes with gcc, so configuring glibc
18228 # with a fresh cross-compiler works.
18229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18230 # <limits.h> exists even on freestanding compilers.
18231 # On the NeXT, cc -E runs the code through the compiler's parser,
18232 # not just through cpp. "Syntax error" is here to catch this case.
18233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18234 /* end confdefs.h. */
18236 # include <limits.h>
18238 # include <assert.h>
18242 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18245 # Broken: fails on valid input.
18248 rm -f conftest.err conftest.
$ac_ext
18250 # OK, works on sane cases. Now check whether nonexistent headers
18251 # can be detected and how.
18252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18253 /* end confdefs.h. */
18254 #include <ac_nonexistent.h>
18256 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18257 # Broken: success on invalid input.
18260 # Passes both tests.
18264 rm -f conftest.err conftest.
$ac_ext
18267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18268 rm -f conftest.err conftest.
$ac_ext
18269 if $ac_preproc_ok; then :
18272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18274 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18275 See \`config.log' for more details." "$LINENO" 5; }
18279 ac_cpp
='$CPP $CPPFLAGS'
18280 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18281 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18282 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18285 _lt_caught_CXX_error
=yes
18289 ac_cpp
='$CXXCPP $CPPFLAGS'
18290 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18291 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18292 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18294 archive_cmds_need_lc_CXX
=no
18295 allow_undefined_flag_CXX
=
18296 always_export_symbols_CXX
=no
18297 archive_expsym_cmds_CXX
=
18298 compiler_needs_object_CXX
=no
18299 export_dynamic_flag_spec_CXX
=
18300 hardcode_direct_CXX
=no
18301 hardcode_direct_absolute_CXX
=no
18302 hardcode_libdir_flag_spec_CXX
=
18303 hardcode_libdir_flag_spec_ld_CXX
=
18304 hardcode_libdir_separator_CXX
=
18305 hardcode_minus_L_CXX
=no
18306 hardcode_shlibpath_var_CXX
=unsupported
18307 hardcode_automatic_CXX
=no
18308 inherit_rpath_CXX
=no
18310 module_expsym_cmds_CXX
=
18311 link_all_deplibs_CXX
=unknown
18312 old_archive_cmds_CXX
=$old_archive_cmds
18313 reload_flag_CXX
=$reload_flag
18314 reload_cmds_CXX
=$reload_cmds
18315 no_undefined_flag_CXX
=
18316 whole_archive_flag_spec_CXX
=
18317 enable_shared_with_static_runtimes_CXX
=no
18319 # Source file extension for C++ test sources.
18322 # Object file extension for compiled C++ test sources.
18326 # No sense in running all these tests if we already determined that
18327 # the CXX compiler isn't working. Some variables (like enable_shared)
18328 # are currently assumed to apply to all compilers on this platform,
18329 # and will be corrupted by setting them based on a non-working compiler.
18330 if test "$_lt_caught_CXX_error" != yes; then
18331 # Code to be used in simple compile tests
18332 lt_simple_compile_test_code
="int some_variable = 0;"
18334 # Code to be used in simple link tests
18335 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18337 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18344 # If no C compiler was specified, use CC.
18347 # If no C compiler flags were specified, use CFLAGS.
18348 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18350 # Allow CC to be a program name with arguments.
18354 # save warnings/boilerplate of simple test code
18355 ac_outfile
=conftest.
$ac_objext
18356 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18357 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18358 _lt_compiler_boilerplate
=`cat conftest.err`
18361 ac_outfile
=conftest.
$ac_objext
18362 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18363 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18364 _lt_linker_boilerplate
=`cat conftest.err`
18368 # Allow CC to be a program name with arguments.
18373 lt_save_with_gnu_ld
=$with_gnu_ld
18374 lt_save_path_LD
=$lt_cv_path_LD
18375 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18376 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18378 $as_unset lt_cv_prog_gnu_ld
18380 if test -n "${lt_cv_path_LDCXX+set}"; then
18381 lt_cv_path_LD
=$lt_cv_path_LDCXX
18383 $as_unset lt_cv_path_LD
18385 test -z "${LDCXX+set}" || LD
=$LDCXX
18389 for cc_temp
in $compiler""; do
18391 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18392 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18397 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18400 if test -n "$compiler"; then
18401 # We don't want -fno-exception when compiling C++ code, so set the
18402 # no_builtin_flag separately
18403 if test "$GXX" = yes; then
18404 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18406 lt_prog_compiler_no_builtin_flag_CXX
=
18409 if test "$GXX" = yes; then
18410 # Set up default GNU C++ configuration
18414 # Check whether --with-gnu-ld was given.
18415 if test "${with_gnu_ld+set}" = set; then :
18416 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18422 if test "$GCC" = yes; then
18423 # Check if gcc -print-prog-name=ld gives a path.
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18425 $as_echo_n "checking for ld used by $CC... " >&6; }
18428 # gcc leaves a trailing carriage return which upsets mingw
18429 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18431 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18434 # Accept absolute paths.
18436 re_direlt
='/[^/][^/]*/\.\./'
18437 # Canonicalize the pathname of ld
18438 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18439 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18440 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18442 test -z "$LD" && LD
="$ac_prog"
18445 # If it fails, then pretend we aren't using GCC.
18449 # If it is relative, then search for the first ld in PATH.
18450 with_gnu_ld
=unknown
18453 elif test "$with_gnu_ld" = yes; then
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18455 $as_echo_n "checking for GNU ld... " >&6; }
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18458 $as_echo_n "checking for non-GNU ld... " >&6; }
18460 if test "${lt_cv_path_LD+set}" = set; then :
18461 $as_echo_n "(cached) " >&6
18463 if test -z "$LD"; then
18464 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18465 for ac_dir
in $PATH; do
18467 test -z "$ac_dir" && ac_dir
=.
18468 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18469 lt_cv_path_LD
="$ac_dir/$ac_prog"
18470 # Check to see if the program is GNU ld. I'd rather use --version,
18471 # but apparently some variants of GNU ld only accept -v.
18472 # Break only if it was the GNU/non-GNU ld that we prefer.
18473 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18474 *GNU
* |
*'with BFD'*)
18475 test "$with_gnu_ld" != no
&& break
18478 test "$with_gnu_ld" != yes && break
18485 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18489 LD
="$lt_cv_path_LD"
18490 if test -n "$LD"; then
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18492 $as_echo "$LD" >&6; }
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18495 $as_echo "no" >&6; }
18497 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18499 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18500 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18501 $as_echo_n "(cached) " >&6
18503 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18504 case `$LD -v 2>&1 </dev/null` in
18505 *GNU
* |
*'with BFD'*)
18506 lt_cv_prog_gnu_ld
=yes
18509 lt_cv_prog_gnu_ld
=no
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18514 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18515 with_gnu_ld
=$lt_cv_prog_gnu_ld
18523 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18524 # archiving commands below assume that GNU ld is being used.
18525 if test "$with_gnu_ld" = yes; then
18526 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18527 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'
18529 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18530 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18532 # If archive_cmds runs LD, not CC, wlarc should be empty
18533 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18534 # investigate it a little bit more. (MM)
18537 # ancient GNU ld didn't support --whole-archive et. al.
18538 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18539 $GREP 'no-whole-archive' > /dev
/null
; then
18540 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18542 whole_archive_flag_spec_CXX
=
18548 # A generic and very simple default shared library creation
18549 # command for GNU C++ for the case where it uses the native
18550 # linker, instead of GNU ld. If possible, this setting should
18551 # overridden to take advantage of the native linker features on
18552 # the platform it is being used on.
18553 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18556 # Commands to make compiler produce verbose output that lists
18557 # what "hidden" libraries, object files and flags are used when
18558 # linking a shared library.
18559 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18567 # PORTME: fill in a description of your system's C++ link characteristics
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18569 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18573 # FIXME: insert proper C++ library support
18577 if test "$host_cpu" = ia64
; then
18578 # On IA64, the linker does run time linking by default, so we don't
18579 # have to do anything special.
18580 aix_use_runtimelinking
=no
18581 exp_sym_flag
='-Bexport'
18584 aix_use_runtimelinking
=no
18586 # Test if we are trying to use run time linking or normal
18587 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18588 # need to do runtime linking.
18589 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18590 for ld_flag
in $LDFLAGS; do
18593 aix_use_runtimelinking
=yes
18601 exp_sym_flag
='-bexport'
18602 no_entry_flag
='-bnoentry'
18605 # When large executables or shared objects are built, AIX ld can
18606 # have problems creating the table of contents. If linking a library
18607 # or program results in "error TOC overflow" add -mminimal-toc to
18608 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18609 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18611 archive_cmds_CXX
=''
18612 hardcode_direct_CXX
=yes
18613 hardcode_direct_absolute_CXX
=yes
18614 hardcode_libdir_separator_CXX
=':'
18615 link_all_deplibs_CXX
=yes
18616 file_list_spec_CXX
='${wl}-f,'
18618 if test "$GXX" = yes; then
18619 case $host_os in aix4.
[012]|aix4.
[012].
*)
18620 # We only want to do this on AIX 4.2 and lower, the check
18621 # below for broken collect2 doesn't work under 4.3+
18622 collect2name
=`${CC} -print-prog-name=collect2`
18623 if test -f "$collect2name" &&
18624 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18626 # We have reworked collect2
18629 # We have old collect2
18630 hardcode_direct_CXX
=unsupported
18631 # It fails to find uninstalled libraries when the uninstalled
18632 # path is not listed in the libpath. Setting hardcode_minus_L
18633 # to unsupported forces relinking
18634 hardcode_minus_L_CXX
=yes
18635 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18636 hardcode_libdir_separator_CXX
=
18639 shared_flag
='-shared'
18640 if test "$aix_use_runtimelinking" = yes; then
18641 shared_flag
="$shared_flag "'${wl}-G'
18645 if test "$host_cpu" = ia64
; then
18646 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18647 # chokes on -Wl,-G. The following line is correct:
18650 if test "$aix_use_runtimelinking" = yes; then
18651 shared_flag
='${wl}-G'
18653 shared_flag
='${wl}-bM:SRE'
18658 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18659 # It seems that -bexpall does not export symbols beginning with
18660 # underscore (_), so it is better to generate a list of symbols to
18662 always_export_symbols_CXX
=yes
18663 if test "$aix_use_runtimelinking" = yes; then
18664 # Warning - without using the other runtime loading flags (-brtl),
18665 # -berok will link without error, but may produce a broken library.
18666 allow_undefined_flag_CXX
='-berok'
18667 # Determine the default libpath from the value encoded in an empty
18669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18670 /* end confdefs.h. */
18680 if ac_fn_cxx_try_link
"$LINENO"; then :
18682 lt_aix_libpath_sed
='
18683 /Import File Strings/,/^$/ {
18689 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18690 # Check for a 64-bit object if we didn't find anything.
18691 if test -z "$aix_libpath"; then
18692 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18695 rm -f core conftest.err conftest.
$ac_objext \
18696 conftest
$ac_exeext conftest.
$ac_ext
18697 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18699 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18701 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"
18703 if test "$host_cpu" = ia64
; then
18704 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18705 allow_undefined_flag_CXX
="-z nodefs"
18706 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"
18708 # Determine the default libpath from the value encoded in an
18709 # empty executable.
18710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18711 /* end confdefs.h. */
18721 if ac_fn_cxx_try_link
"$LINENO"; then :
18723 lt_aix_libpath_sed
='
18724 /Import File Strings/,/^$/ {
18730 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18731 # Check for a 64-bit object if we didn't find anything.
18732 if test -z "$aix_libpath"; then
18733 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18736 rm -f core conftest.err conftest.
$ac_objext \
18737 conftest
$ac_exeext conftest.
$ac_ext
18738 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18740 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18741 # Warning - without using the other run time loading flags,
18742 # -berok will link without error, but may produce a broken library.
18743 no_undefined_flag_CXX
=' ${wl}-bernotok'
18744 allow_undefined_flag_CXX
=' ${wl}-berok'
18745 if test "$with_gnu_ld" = yes; then
18746 # We only use this code for GNU lds that support --whole-archive.
18747 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18749 # Exported symbols can be pulled into shared objects from archives
18750 whole_archive_flag_spec_CXX
='$convenience'
18752 archive_cmds_need_lc_CXX
=yes
18753 # This is similar to how AIX traditionally builds its shared
18755 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'
18761 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18762 allow_undefined_flag_CXX
=unsupported
18763 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18764 # support --undefined. This deserves some investigation. FIXME
18765 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18772 case $cc_basename in
18774 # FIXME: insert proper C++ library support
18780 cygwin
* | mingw
* | pw32
* | cegcc
*)
18781 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18782 # as there is no search path for DLLs.
18783 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18784 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18785 allow_undefined_flag_CXX
=unsupported
18786 always_export_symbols_CXX
=no
18787 enable_shared_with_static_runtimes_CXX
=yes
18789 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18790 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'
18791 # If the export-symbols file already is a .def file (1st line
18792 # is EXPORTS), use it as is; otherwise, prepend...
18793 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18794 cp $export_symbols $output_objdir/$soname.def;
18796 echo EXPORTS > $output_objdir/$soname.def;
18797 cat $export_symbols >> $output_objdir/$soname.def;
18799 $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'
18804 darwin
* | rhapsody
*)
18807 archive_cmds_need_lc_CXX
=no
18808 hardcode_direct_CXX
=no
18809 hardcode_automatic_CXX
=yes
18810 hardcode_shlibpath_var_CXX
=unsupported
18811 if test "$lt_cv_ld_force_load" = "yes"; then
18812 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\"`'
18814 whole_archive_flag_spec_CXX
=''
18816 link_all_deplibs_CXX
=yes
18817 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18818 case $cc_basename in
18819 ifort
*) _lt_dar_can_shared
=yes ;;
18820 *) _lt_dar_can_shared
=$GCC ;;
18822 if test "$_lt_dar_can_shared" = "yes"; then
18823 output_verbose_link_cmd
=func_echo_all
18824 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}"
18825 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18826 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}"
18827 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}"
18828 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18829 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}"
18830 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}"
18840 case $cc_basename in
18842 # FIXME: insert proper C++ library support
18846 # Green Hills C++ Compiler
18847 # FIXME: insert proper C++ library support
18851 # FIXME: insert proper C++ library support
18858 # C++ shared libraries reported to be fairly broken before
18864 archive_cmds_need_lc_CXX
=no
18867 freebsd
* | dragonfly
*)
18868 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18877 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18878 link_all_deplibs_CXX
=yes
18882 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18883 hardcode_libdir_separator_CXX
=:
18884 export_dynamic_flag_spec_CXX
='${wl}-E'
18885 hardcode_direct_CXX
=yes
18886 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18887 # but as the default
18888 # location of the library.
18890 case $cc_basename in
18892 # FIXME: insert proper C++ library support
18896 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'
18897 # Commands to make compiler produce verbose output that lists
18898 # what "hidden" libraries, object files and flags are used when
18899 # linking a shared library.
18901 # There doesn't appear to be a way to prevent this compiler from
18902 # explicitly linking system object files so we need to strip them
18903 # from the output so that they don't get included in the library
18905 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"'
18908 if test "$GXX" = yes; then
18909 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'
18911 # FIXME: insert proper C++ library support
18919 if test $with_gnu_ld = no
; then
18920 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18921 hardcode_libdir_separator_CXX
=:
18927 export_dynamic_flag_spec_CXX
='${wl}-E'
18933 hardcode_direct_CXX
=no
18934 hardcode_shlibpath_var_CXX
=no
18937 hardcode_direct_CXX
=yes
18938 hardcode_direct_absolute_CXX
=yes
18939 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18940 # but as the default
18941 # location of the library.
18945 case $cc_basename in
18947 # FIXME: insert proper C++ library support
18953 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18956 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18959 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18962 # Commands to make compiler produce verbose output that lists
18963 # what "hidden" libraries, object files and flags are used when
18964 # linking a shared library.
18966 # There doesn't appear to be a way to prevent this compiler from
18967 # explicitly linking system object files so we need to strip them
18968 # from the output so that they don't get included in the library
18970 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"'
18973 if test "$GXX" = yes; then
18974 if test $with_gnu_ld = no
; then
18977 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18980 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18983 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'
18988 # FIXME: insert proper C++ library support
18996 hardcode_direct_CXX
=no
18997 hardcode_shlibpath_var_CXX
=no
18998 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18999 export_dynamic_flag_spec_CXX
='${wl}-E'
19000 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19001 # Instead, shared libraries are loaded at an image base (0x10000000 by
19002 # default) and relocated if they conflict, which is a slow very memory
19003 # consuming and fragmenting process. To avoid this, we pick a random,
19004 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19005 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19006 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'
19007 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'
19010 case $cc_basename in
19013 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'
19015 # Archives containing C++ object files must be created using
19016 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19017 # necessary to make sure instantiated templates are included
19019 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19022 if test "$GXX" = yes; then
19023 if test "$with_gnu_ld" = no
; then
19024 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'
19026 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'
19029 link_all_deplibs_CXX
=yes
19032 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19033 hardcode_libdir_separator_CXX
=:
19034 inherit_rpath_CXX
=yes
19037 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19038 case $cc_basename in
19040 # Kuck and Associates, Inc. (KAI) C++ Compiler
19042 # KCC will only create a shared library if the output file
19043 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19044 # to its proper name (with version) after linking.
19045 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'
19046 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'
19047 # Commands to make compiler produce verbose output that lists
19048 # what "hidden" libraries, object files and flags are used when
19049 # linking a shared library.
19051 # There doesn't appear to be a way to prevent this compiler from
19052 # explicitly linking system object files so we need to strip them
19053 # from the output so that they don't get included in the library
19055 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"'
19057 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19058 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19060 # Archives containing C++ object files must be created using
19061 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19062 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19067 # version 8.0 and above of icpc choke on multiply defined symbols
19068 # if we add $predep_objects and $postdep_objects, however 7.1 and
19069 # earlier do not add the objects themselves.
19070 case `$CC -V 2>&1` in
19072 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19073 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'
19075 *) # Version 8.0 or newer
19078 ia64
*) tmp_idyn
=' -i_dynamic';;
19080 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19081 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'
19084 archive_cmds_need_lc_CXX
=no
19085 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19086 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19087 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19090 # Portland Group C++ compiler
19092 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19093 prelink_cmds_CXX
='tpldir=Template.dir~
19095 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19096 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19097 old_archive_cmds_CXX
='tpldir=Template.dir~
19099 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19100 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19102 archive_cmds_CXX
='tpldir=Template.dir~
19104 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19105 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19106 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19108 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19109 $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'
19111 *) # Version 6 and above use weak symbols
19112 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19113 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'
19117 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19118 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19119 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'
19123 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19124 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'
19126 runpath_var
=LD_RUN_PATH
19127 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19128 hardcode_libdir_separator_CXX
=:
19130 # Commands to make compiler produce verbose output that lists
19131 # what "hidden" libraries, object files and flags are used when
19132 # linking a shared library.
19134 # There doesn't appear to be a way to prevent this compiler from
19135 # explicitly linking system object files so we need to strip them
19136 # from the output so that they don't get included in the library
19138 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'
19140 xl
* | mpixl
* | bgxl
*)
19141 # IBM XL 8.0 on PPC, with GNU ld
19142 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19143 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19144 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19145 if test "x$supports_anon_versioning" = xyes
; then
19146 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19147 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19148 echo "local: *; };" >> $output_objdir/$libname.ver~
19149 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19153 case `$CC -V 2>&1 | sed 5q` in
19156 no_undefined_flag_CXX
=' -zdefs'
19157 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19158 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'
19159 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19160 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'
19161 compiler_needs_object_CXX
=yes
19163 # Not sure whether something based on
19164 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19166 output_verbose_link_cmd
='func_echo_all'
19168 # Archives containing C++ object files must be created using
19169 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19170 # necessary to make sure instantiated templates are included
19172 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19180 # FIXME: insert proper C++ library support
19185 # FIXME: insert proper C++ library support
19190 case $cc_basename in
19192 # FIXME: insert proper C++ library support
19196 # FIXME: insert proper C++ library support
19203 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19204 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19206 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19207 hardcode_direct_CXX
=yes
19208 hardcode_shlibpath_var_CXX
=no
19210 # Workaround some broken pre-1.5 toolchains
19211 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19219 # C++ shared libraries are fairly broken
19224 if test -f /usr
/libexec
/ld.so
; then
19225 hardcode_direct_CXX
=yes
19226 hardcode_shlibpath_var_CXX
=no
19227 hardcode_direct_absolute_CXX
=yes
19228 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19229 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19230 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19231 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19232 export_dynamic_flag_spec_CXX
='${wl}-E'
19233 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19235 output_verbose_link_cmd
=func_echo_all
19241 osf3
* | osf4
* | osf5
*)
19242 case $cc_basename in
19244 # Kuck and Associates, Inc. (KAI) C++ Compiler
19246 # KCC will only create a shared library if the output file
19247 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19248 # to its proper name (with version) after linking.
19249 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'
19251 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19252 hardcode_libdir_separator_CXX
=:
19254 # Archives containing C++ object files must be created using
19255 # the KAI C++ compiler.
19257 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19258 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19262 # Rational C++ 2.4.1
19263 # FIXME: insert proper C++ library support
19269 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19270 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'
19271 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19274 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19275 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'
19276 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19277 echo "-hidden">> $lib.exp~
19278 $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~
19280 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19284 hardcode_libdir_separator_CXX
=:
19286 # Commands to make compiler produce verbose output that lists
19287 # what "hidden" libraries, object files and flags are used when
19288 # linking a shared library.
19290 # There doesn't appear to be a way to prevent this compiler from
19291 # explicitly linking system object files so we need to strip them
19292 # from the output so that they don't get included in the library
19294 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"'
19297 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19298 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19301 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'
19304 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'
19308 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19309 hardcode_libdir_separator_CXX
=:
19311 # Commands to make compiler produce verbose output that lists
19312 # what "hidden" libraries, object files and flags are used when
19313 # linking a shared library.
19314 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19317 # FIXME: insert proper C++ library support
19325 # FIXME: insert proper C++ library support
19330 case $cc_basename in
19333 # FIXME: insert proper C++ library support
19338 # FIXME: insert proper C++ library support
19342 # FIXME: insert proper C++ library support
19349 case $cc_basename in
19351 # Sun C++ 4.2, 5.x and Centerline C++
19352 archive_cmds_need_lc_CXX
=yes
19353 no_undefined_flag_CXX
=' -zdefs'
19354 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19355 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19356 $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'
19358 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19359 hardcode_shlibpath_var_CXX
=no
19361 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19363 # The compiler driver will combine and reorder linker options,
19364 # but understands `-z linker_flag'.
19365 # Supported since Solaris 2.6 (maybe 2.5.1?)
19366 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19369 link_all_deplibs_CXX
=yes
19371 output_verbose_link_cmd
='func_echo_all'
19373 # Archives containing C++ object files must be created using
19374 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19375 # necessary to make sure instantiated templates are included
19377 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19380 # Green Hills C++ Compiler
19381 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19383 # The C++ compiler must be used to create the archive.
19384 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19387 # GNU C++ compiler with Solaris linker
19388 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19389 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19390 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19391 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19392 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19393 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19395 # Commands to make compiler produce verbose output that lists
19396 # what "hidden" libraries, object files and flags are used when
19397 # linking a shared library.
19398 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19400 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19402 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19403 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19404 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19406 # Commands to make compiler produce verbose output that lists
19407 # what "hidden" libraries, object files and flags are used when
19408 # linking a shared library.
19409 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19412 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19414 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19416 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19424 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19425 no_undefined_flag_CXX
='${wl}-z,text'
19426 archive_cmds_need_lc_CXX
=no
19427 hardcode_shlibpath_var_CXX
=no
19428 runpath_var
='LD_RUN_PATH'
19430 case $cc_basename in
19432 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19433 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19436 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19437 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19442 sysv5
* | sco3.2v5
* | sco5v6
*)
19443 # Note: We can NOT use -z defs as we might desire, because we do not
19444 # link with -lc, and that would cause any symbols used from libc to
19445 # always be unresolved, which means just about no library would
19446 # ever link correctly. If we're not using GNU ld we use -z text
19447 # though, which does catch some bad symbols but isn't as heavy-handed
19449 no_undefined_flag_CXX
='${wl}-z,text'
19450 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19451 archive_cmds_need_lc_CXX
=no
19452 hardcode_shlibpath_var_CXX
=no
19453 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19454 hardcode_libdir_separator_CXX
=':'
19455 link_all_deplibs_CXX
=yes
19456 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19457 runpath_var
='LD_RUN_PATH'
19459 case $cc_basename in
19461 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19462 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19463 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19464 '"$old_archive_cmds_CXX"
19465 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19466 '"$reload_cmds_CXX"
19469 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19470 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19476 case $cc_basename in
19478 # NonStop-UX NCC 3.20
19479 # FIXME: insert proper C++ library support
19483 # FIXME: insert proper C++ library support
19490 # FIXME: insert proper C++ library support
19495 # FIXME: insert proper C++ library support
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19501 $as_echo "$ld_shlibs_CXX" >&6; }
19502 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19508 ## There is no encapsulation within the following macros, do not change
19509 ## the running order or otherwise move them around unless you know exactly
19510 ## what you are doing...
19511 # Dependencies to place before and after the object being linked:
19512 predep_objects_CXX
=
19513 postdep_objects_CXX
=
19516 compiler_lib_search_path_CXX
=
19518 cat > conftest.
$ac_ext <<_LT_EOF
19522 Foo (void) { a = 0; }
19528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19529 (eval $ac_compile) 2>&5
19531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19532 test $ac_status = 0; }; then
19533 # Parse the compiler output and extract the necessary
19534 # objects, libraries and library flags.
19536 # Sentinel used to keep track of whether or not we are before
19537 # the conftest object file.
19538 pre_test_object_deps_done
=no
19540 for p
in `eval "$output_verbose_link_cmd"`; do
19544 # Some compilers place space between "-{L,R}" and the path.
19545 # Remove the space.
19546 if test $p = "-L" ||
19547 test $p = "-R"; then
19554 if test "$pre_test_object_deps_done" = no
; then
19557 # Internal compiler library paths should come after those
19558 # provided the user. The postdeps already come after the
19559 # user supplied libs so there is no need to process them.
19560 if test -z "$compiler_lib_search_path_CXX"; then
19561 compiler_lib_search_path_CXX
="${prev}${p}"
19563 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19566 # The "-l" case would never come before the object being
19567 # linked, so don't bother handling this case.
19570 if test -z "$postdeps_CXX"; then
19571 postdeps_CXX
="${prev}${p}"
19573 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19579 # This assumes that the test object file only shows up
19580 # once in the compiler output.
19581 if test "$p" = "conftest.$objext"; then
19582 pre_test_object_deps_done
=yes
19586 if test "$pre_test_object_deps_done" = no
; then
19587 if test -z "$predep_objects_CXX"; then
19588 predep_objects_CXX
="$p"
19590 predep_objects_CXX
="$predep_objects_CXX $p"
19593 if test -z "$postdep_objects_CXX"; then
19594 postdep_objects_CXX
="$p"
19596 postdep_objects_CXX
="$postdep_objects_CXX $p"
19601 *) ;; # Ignore the rest.
19609 echo "libtool.m4: error: problem compiling CXX test program"
19612 $RM -f confest.
$objext
19614 # PORTME: override above test on systems where it is broken
19617 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19618 # hack all around it, let's just trust "g++" to DTRT.
19619 predep_objects_CXX
=
19620 postdep_objects_CXX
=
19625 case `$CC -V 2>&1 | sed 5q` in
19629 # The more standards-conforming stlport4 library is
19630 # incompatible with the Cstd library. Avoid specifying
19631 # it if it's in CXXFLAGS. Ignore libCrun as
19632 # -library=stlport4 depends on it.
19633 case " $CXX $CXXFLAGS " in
19634 *" -library=stlport4 "*)
19635 solaris_use_stlport4
=yes
19639 if test "$solaris_use_stlport4" != yes; then
19640 postdeps_CXX
='-library=Cstd -library=Crun'
19647 case $cc_basename in
19649 # The more standards-conforming stlport4 library is
19650 # incompatible with the Cstd library. Avoid specifying
19651 # it if it's in CXXFLAGS. Ignore libCrun as
19652 # -library=stlport4 depends on it.
19653 case " $CXX $CXXFLAGS " in
19654 *" -library=stlport4 "*)
19655 solaris_use_stlport4
=yes
19659 # Adding this requires a known-good setup of shared libraries for
19660 # Sun compiler versions before 5.6, else PIC objects from an old
19661 # archive will be linked into the output, leading to subtle bugs.
19662 if test "$solaris_use_stlport4" != yes; then
19663 postdeps_CXX
='-library=Cstd -library=Crun'
19671 case " $postdeps_CXX " in
19672 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19674 compiler_lib_search_dirs_CXX
=
19675 if test -n "${compiler_lib_search_path_CXX}"; then
19676 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19709 lt_prog_compiler_wl_CXX
=
19710 lt_prog_compiler_pic_CXX
=
19711 lt_prog_compiler_static_CXX
=
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19714 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19716 # C++ specific cases for pic, static, wl, etc.
19717 if test "$GXX" = yes; then
19718 lt_prog_compiler_wl_CXX
='-Wl,'
19719 lt_prog_compiler_static_CXX
='-static'
19723 # All AIX code is PIC.
19724 if test "$host_cpu" = ia64
; then
19725 # AIX 5 now supports IA64 processor
19726 lt_prog_compiler_static_CXX
='-Bstatic'
19728 lt_prog_compiler_pic_CXX
='-fPIC'
19734 # see comment about AmigaOS4 .so support
19735 lt_prog_compiler_pic_CXX
='-fPIC'
19738 # FIXME: we need at least 68020 code to build shared libraries, but
19739 # adding the `-m68020' flag to GCC prevents building anything better,
19741 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19746 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19747 # PIC is the default for these OSes.
19749 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19750 # This hack is so that the source file can tell whether it is being
19751 # built for inclusion in a dll (and should export symbols for example).
19752 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19753 # (--disable-auto-import) libraries
19754 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19756 darwin
* | rhapsody
*)
19757 # PIC is the default on this platform
19758 # Common symbols not allowed in MH_DYLIB files
19759 lt_prog_compiler_pic_CXX
='-fno-common'
19762 # DJGPP does not support shared libraries at all
19763 lt_prog_compiler_pic_CXX
=
19766 # PIC is the default for Haiku.
19767 # The "-static" flag exists, but is broken.
19768 lt_prog_compiler_static_CXX
=
19771 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19772 # Instead, we relocate shared libraries at runtime.
19775 if test -d /usr
/nec
; then
19776 lt_prog_compiler_pic_CXX
=-Kconform_pic
19780 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19781 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19782 # sets the default TLS model and affects inlining.
19787 lt_prog_compiler_pic_CXX
='-fPIC'
19792 # QNX uses GNU C++, but need to define -shared option too, otherwise
19793 # it will coredump.
19794 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19797 lt_prog_compiler_pic_CXX
='-fPIC'
19803 # All AIX code is PIC.
19804 if test "$host_cpu" = ia64
; then
19805 # AIX 5 now supports IA64 processor
19806 lt_prog_compiler_static_CXX
='-Bstatic'
19808 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19812 case $cc_basename in
19814 # Green Hills C++ Compiler
19815 # _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"
19820 case $cc_basename in
19822 lt_prog_compiler_pic_CXX
='-KPIC'
19825 # Green Hills C++ Compiler
19826 lt_prog_compiler_pic_CXX
='-pic'
19832 freebsd
* | dragonfly
*)
19833 # FreeBSD uses GNU C++
19835 hpux9
* | hpux10
* | hpux11
*)
19836 case $cc_basename in
19838 lt_prog_compiler_wl_CXX
='-Wl,'
19839 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19840 if test "$host_cpu" != ia64
; then
19841 lt_prog_compiler_pic_CXX
='+Z'
19845 lt_prog_compiler_wl_CXX
='-Wl,'
19846 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19852 lt_prog_compiler_pic_CXX
='+Z'
19861 # This is c89, which is MS Visual C++ (no shared libs)
19862 # Anyone wants to do a port?
19864 irix5
* | irix6
* | nonstopux
*)
19865 case $cc_basename in
19867 lt_prog_compiler_wl_CXX
='-Wl,'
19868 lt_prog_compiler_static_CXX
='-non_shared'
19869 # CC pic flag -KPIC is the default.
19875 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19876 case $cc_basename in
19879 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19880 lt_prog_compiler_pic_CXX
='-fPIC'
19883 # old Intel C++ for x86_64 which still supported -KPIC.
19884 lt_prog_compiler_wl_CXX
='-Wl,'
19885 lt_prog_compiler_pic_CXX
='-KPIC'
19886 lt_prog_compiler_static_CXX
='-static'
19889 # Intel C++, used to be incompatible with GCC.
19890 # ICC 10 doesn't accept -KPIC any more.
19891 lt_prog_compiler_wl_CXX
='-Wl,'
19892 lt_prog_compiler_pic_CXX
='-fPIC'
19893 lt_prog_compiler_static_CXX
='-static'
19896 # Portland Group C++ compiler
19897 lt_prog_compiler_wl_CXX
='-Wl,'
19898 lt_prog_compiler_pic_CXX
='-fpic'
19899 lt_prog_compiler_static_CXX
='-Bstatic'
19903 # Make sure the PIC flag is empty. It appears that all Alpha
19904 # Linux and Compaq Tru64 Unix objects are PIC.
19905 lt_prog_compiler_pic_CXX
=
19906 lt_prog_compiler_static_CXX
='-non_shared'
19908 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19909 # IBM XL 8.0, 9.0 on PPC and BlueGene
19910 lt_prog_compiler_wl_CXX
='-Wl,'
19911 lt_prog_compiler_pic_CXX
='-qpic'
19912 lt_prog_compiler_static_CXX
='-qstaticlink'
19915 case `$CC -V 2>&1 | sed 5q` in
19918 lt_prog_compiler_pic_CXX
='-KPIC'
19919 lt_prog_compiler_static_CXX
='-Bstatic'
19920 lt_prog_compiler_wl_CXX
='-Qoption ld '
19931 case $cc_basename in
19933 lt_prog_compiler_pic_CXX
='-W c,exportall'
19942 # QNX uses GNU C++, but need to define -shared option too, otherwise
19943 # it will coredump.
19944 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19946 osf3
* | osf4
* | osf5
*)
19947 case $cc_basename in
19949 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19952 # Rational C++ 2.4.1
19953 lt_prog_compiler_pic_CXX
='-pic'
19956 # Digital/Compaq C++
19957 lt_prog_compiler_wl_CXX
='-Wl,'
19958 # Make sure the PIC flag is empty. It appears that all Alpha
19959 # Linux and Compaq Tru64 Unix objects are PIC.
19960 lt_prog_compiler_pic_CXX
=
19961 lt_prog_compiler_static_CXX
='-non_shared'
19970 case $cc_basename in
19972 # Sun C++ 4.2, 5.x and Centerline C++
19973 lt_prog_compiler_pic_CXX
='-KPIC'
19974 lt_prog_compiler_static_CXX
='-Bstatic'
19975 lt_prog_compiler_wl_CXX
='-Qoption ld '
19978 # Green Hills C++ Compiler
19979 lt_prog_compiler_pic_CXX
='-PIC'
19986 case $cc_basename in
19989 lt_prog_compiler_pic_CXX
='-pic'
19990 lt_prog_compiler_static_CXX
='-Bstatic'
19994 lt_prog_compiler_pic_CXX
='-pic'
20000 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20001 case $cc_basename in
20003 lt_prog_compiler_wl_CXX
='-Wl,'
20004 lt_prog_compiler_pic_CXX
='-KPIC'
20005 lt_prog_compiler_static_CXX
='-Bstatic'
20010 case $cc_basename in
20012 # NonStop-UX NCC 3.20
20013 lt_prog_compiler_pic_CXX
='-KPIC'
20022 lt_prog_compiler_can_build_shared_CXX
=no
20028 # For platforms which do not support PIC, -DPIC is meaningless:
20030 lt_prog_compiler_pic_CXX
=
20033 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20037 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20042 # Check to make sure the PIC flag actually works.
20044 if test -n "$lt_prog_compiler_pic_CXX"; then
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20046 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20047 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20048 $as_echo_n "(cached) " >&6
20050 lt_cv_prog_compiler_pic_works_CXX
=no
20051 ac_outfile
=conftest.
$ac_objext
20052 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20053 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20054 # Insert the option either (1) after the last *FLAGS variable, or
20055 # (2) before a word containing "conftest.", or (3) at the end.
20056 # Note that $ac_compile itself does not contain backslashes and begins
20057 # with a dollar sign (not a hyphen), so the echo should work correctly.
20058 # The option is referenced via a variable to avoid confusing sed.
20059 lt_compile
=`echo "$ac_compile" | $SED \
20060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20062 -e 's:$: $lt_compiler_flag:'`
20063 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20064 (eval "$lt_compile" 2>conftest.err
)
20066 cat conftest.err
>&5
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 if (exit $ac_status) && test -s "$ac_outfile"; then
20069 # The compiler can only warn and ignore the option if not recognized
20070 # So say no if there are warnings other than the usual output.
20071 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20072 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20073 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20074 lt_cv_prog_compiler_pic_works_CXX
=yes
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20081 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20083 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20084 case $lt_prog_compiler_pic_CXX in
20086 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20089 lt_prog_compiler_pic_CXX
=
20090 lt_prog_compiler_can_build_shared_CXX
=no
20098 # Check to make sure the static flag actually works.
20100 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20102 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20103 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20104 $as_echo_n "(cached) " >&6
20106 lt_cv_prog_compiler_static_works_CXX
=no
20107 save_LDFLAGS
="$LDFLAGS"
20108 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20109 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20110 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20111 # The linker can only warn and ignore the option if not recognized
20112 # So say no if there are warnings
20113 if test -s conftest.err
; then
20114 # Append any errors to the config.log.
20115 cat conftest.err
1>&5
20116 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20117 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20118 if diff conftest.exp conftest.er2
>/dev
/null
; then
20119 lt_cv_prog_compiler_static_works_CXX
=yes
20122 lt_cv_prog_compiler_static_works_CXX
=yes
20126 LDFLAGS
="$save_LDFLAGS"
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20130 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20132 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20135 lt_prog_compiler_static_CXX
=
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20142 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20143 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20144 $as_echo_n "(cached) " >&6
20146 lt_cv_prog_compiler_c_o_CXX
=no
20147 $RM -r conftest
2>/dev
/null
20151 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20153 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20154 # Insert the option either (1) after the last *FLAGS variable, or
20155 # (2) before a word containing "conftest.", or (3) at the end.
20156 # Note that $ac_compile itself does not contain backslashes and begins
20157 # with a dollar sign (not a hyphen), so the echo should work correctly.
20158 lt_compile
=`echo "$ac_compile" | $SED \
20159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20161 -e 's:$: $lt_compiler_flag:'`
20162 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20163 (eval "$lt_compile" 2>out
/conftest.err
)
20165 cat out
/conftest.err
>&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20169 # The compiler can only warn and ignore the option if not recognized
20170 # So say no if there are warnings
20171 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20172 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20173 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20174 lt_cv_prog_compiler_c_o_CXX
=yes
20179 # SGI C++ compiler will create directory out/ii_files/ for
20180 # template instantiation
20181 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20182 $RM out
/* && rmdir out
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20189 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20194 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20195 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20196 $as_echo_n "(cached) " >&6
20198 lt_cv_prog_compiler_c_o_CXX
=no
20199 $RM -r conftest
2>/dev
/null
20203 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20205 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20206 # Insert the option either (1) after the last *FLAGS variable, or
20207 # (2) before a word containing "conftest.", or (3) at the end.
20208 # Note that $ac_compile itself does not contain backslashes and begins
20209 # with a dollar sign (not a hyphen), so the echo should work correctly.
20210 lt_compile
=`echo "$ac_compile" | $SED \
20211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20213 -e 's:$: $lt_compiler_flag:'`
20214 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20215 (eval "$lt_compile" 2>out
/conftest.err
)
20217 cat out
/conftest.err
>&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20221 # The compiler can only warn and ignore the option if not recognized
20222 # So say no if there are warnings
20223 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20224 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20225 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20226 lt_cv_prog_compiler_c_o_CXX
=yes
20231 # SGI C++ compiler will create directory out/ii_files/ for
20232 # template instantiation
20233 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20234 $RM out
/* && rmdir out
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20241 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20246 hard_links
="nottested"
20247 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20248 # do not overwrite the value of need_locks provided by the user
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20250 $as_echo_n "checking if we can lock with hard links... " >&6; }
20253 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20255 ln conftest.a conftest.b
2>&5 || hard_links
=no
20256 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20258 $as_echo "$hard_links" >&6; }
20259 if test "$hard_links" = no
; then
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20261 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20271 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20273 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20276 # If we're using GNU nm, then we don't want the "-C" option.
20277 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20278 # Also, AIX nm treats weak defined symbols like other global defined
20279 # symbols, whereas GNU nm marks them as "W".
20280 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20281 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'
20283 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'
20287 export_symbols_cmds_CXX
="$ltdll_cmds"
20289 cygwin
* | mingw
* | cegcc
*)
20290 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'
20293 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20296 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20299 $as_echo "$ld_shlibs_CXX" >&6; }
20300 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20302 with_gnu_ld_CXX
=$with_gnu_ld
20310 # Do we need to explicitly link libc?
20312 case "x$archive_cmds_need_lc_CXX" in
20314 # Assume -lc should be added
20315 archive_cmds_need_lc_CXX
=yes
20317 if test "$enable_shared" = yes && test "$GCC" = yes; then
20318 case $archive_cmds_CXX in
20320 # FIXME: we may have to deal with multi-command sequences.
20323 # Test whether the compiler implicitly links with -lc since on some
20324 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20325 # to ld, don't add -lc before -lgcc.
20326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20327 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20328 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20329 $as_echo_n "(cached) " >&6
20332 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20335 (eval $ac_compile) 2>&5
20337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20338 test $ac_status = 0; } 2>conftest.err
; then
20341 libobjs
=conftest.
$ac_objext
20343 wl
=$lt_prog_compiler_wl_CXX
20344 pic_flag
=$lt_prog_compiler_pic_CXX
20350 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20351 allow_undefined_flag_CXX
=
20352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20353 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20356 test $ac_status = 0; }
20358 lt_cv_archive_cmds_need_lc_CXX
=no
20360 lt_cv_archive_cmds_need_lc_CXX
=yes
20362 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20364 cat conftest.err
1>&5
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20370 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20371 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20442 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20444 library_names_spec
=
20445 libname_spec
='lib$name'
20449 postuninstall_cmds
=
20453 shlibpath_overrides_runpath
=unknown
20455 dynamic_linker
="$host_os ld.so"
20456 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20457 need_lib_prefix
=unknown
20458 hardcode_into_libs
=no
20460 # when you set need_version to no, make sure it does not cause -set_version
20461 # flags to be left without arguments
20462 need_version
=unknown
20467 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20468 shlibpath_var
=LIBPATH
20470 # AIX 3 has no versioning support, so we append a major version to the name.
20471 soname_spec
='${libname}${release}${shared_ext}$major'
20478 hardcode_into_libs
=yes
20479 if test "$host_cpu" = ia64
; then
20480 # AIX 5 supports IA64
20481 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20482 shlibpath_var
=LD_LIBRARY_PATH
20484 # With GCC up to 2.95.x, collect2 would create an import file
20485 # for dependence libraries. The import file would start with
20486 # the line `#! .'. This would cause the generated library to
20487 # depend on `.', always an invalid library. This was fixed in
20488 # development snapshots of GCC prior to 3.0.
20490 aix4 | aix4.
[01] | aix4.
[01].
*)
20491 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20493 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20496 can_build_shared
=no
20500 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20501 # soname into executable. Probably we can add versioning support to
20502 # collect2, so additional links can be useful in future.
20503 if test "$aix_use_runtimelinking" = yes; then
20504 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20505 # instead of lib<name>.a to let people know that these are not
20506 # typical AIX shared libraries.
20507 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20509 # We preserve .a as extension for shared libraries through AIX4.2
20510 # and later when we are not doing run time linking.
20511 library_names_spec
='${libname}${release}.a $libname.a'
20512 soname_spec
='${libname}${release}${shared_ext}$major'
20514 shlibpath_var
=LIBPATH
20521 # Since July 2007 AmigaOS4 officially supports .so libraries.
20522 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20523 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20526 library_names_spec
='$libname.ixlibrary $libname.a'
20527 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20528 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'
20534 library_names_spec
='${libname}${shared_ext}'
20535 dynamic_linker
="$host_os ld.so"
20536 shlibpath_var
=LIBRARY_PATH
20542 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20543 soname_spec
='${libname}${release}${shared_ext}$major'
20544 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20545 shlibpath_var
=LD_LIBRARY_PATH
20546 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20547 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20548 # the default ld.so.conf also contains /usr/contrib/lib and
20549 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20550 # libtool to hard-code these into programs
20553 cygwin
* | mingw
* | pw32
* | cegcc
*)
20554 version_type
=windows
20559 case $GCC,$host_os in
20560 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20561 library_names_spec
='$libname.dll.a'
20562 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20563 postinstall_cmds
='base_file=`basename \${file}`~
20564 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20565 dldir=$destdir/`dirname \$dlpath`~
20566 test -d \$dldir || mkdir -p \$dldir~
20567 $install_prog $dir/$dlname \$dldir/$dlname~
20568 chmod a+x \$dldir/$dlname~
20569 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20570 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20572 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20573 dlpath=$dir/\$dldll~
20575 shlibpath_overrides_runpath
=yes
20579 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20580 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20584 # MinGW DLLs use traditional 'lib' prefix
20585 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20588 # pw32 DLLs use 'pw' prefix rather than 'lib'
20589 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20595 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20598 dynamic_linker
='Win32 ld.exe'
20599 # FIXME: first we should search . and the directory the executable is in
20603 darwin
* | rhapsody
*)
20604 dynamic_linker
="$host_os dyld"
20605 version_type
=darwin
20608 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20609 soname_spec
='${libname}${release}${major}$shared_ext'
20610 shlibpath_overrides_runpath
=yes
20611 shlibpath_var
=DYLD_LIBRARY_PATH
20612 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20614 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20621 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20622 soname_spec
='${libname}${release}${shared_ext}$major'
20623 shlibpath_var
=LD_LIBRARY_PATH
20626 freebsd
* | dragonfly
*)
20627 # DragonFly does not have aout. When/if they implement a new
20628 # versioning mechanism, adjust this.
20629 if test -x /usr
/bin
/objformat
; then
20630 objformat
=`/usr/bin/objformat`
20633 freebsd
[23].
*) objformat
=aout
;;
20634 *) objformat
=elf
;;
20637 version_type
=freebsd-
$objformat
20638 case $version_type in
20640 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20645 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20649 shlibpath_var
=LD_LIBRARY_PATH
20652 shlibpath_overrides_runpath
=yes
20654 freebsd3.
[01]* | freebsdelf3.
[01]*)
20655 shlibpath_overrides_runpath
=yes
20656 hardcode_into_libs
=yes
20658 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20659 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20660 shlibpath_overrides_runpath
=no
20661 hardcode_into_libs
=yes
20663 *) # from 4.6 on, and DragonFly
20664 shlibpath_overrides_runpath
=yes
20665 hardcode_into_libs
=yes
20674 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20675 soname_spec
='${libname}${release}${shared_ext}$major'
20676 shlibpath_var
=LD_LIBRARY_PATH
20677 hardcode_into_libs
=yes
20684 dynamic_linker
="$host_os runtime_loader"
20685 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20686 soname_spec
='${libname}${release}${shared_ext}$major'
20687 shlibpath_var
=LIBRARY_PATH
20688 shlibpath_overrides_runpath
=yes
20689 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20690 hardcode_into_libs
=yes
20693 hpux9
* | hpux10
* | hpux11
*)
20694 # Give a soname corresponding to the major version so that dld.sl refuses to
20695 # link against other versions.
20702 hardcode_into_libs
=yes
20703 dynamic_linker
="$host_os dld.so"
20704 shlibpath_var
=LD_LIBRARY_PATH
20705 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20706 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20707 soname_spec
='${libname}${release}${shared_ext}$major'
20708 if test "X$HPUX_IA64_MODE" = X32
; then
20709 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20711 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20713 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20717 hardcode_into_libs
=yes
20718 dynamic_linker
="$host_os dld.sl"
20719 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20720 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20721 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20722 soname_spec
='${libname}${release}${shared_ext}$major'
20723 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20724 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20728 dynamic_linker
="$host_os dld.sl"
20729 shlibpath_var
=SHLIB_PATH
20730 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20731 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20732 soname_spec
='${libname}${release}${shared_ext}$major'
20735 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20736 postinstall_cmds
='chmod 555 $lib'
20737 # or fails outright, so override atomically:
20738 install_override_mode
=555
20745 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20746 soname_spec
='${libname}${release}${shared_ext}$major'
20747 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20748 shlibpath_var
=LD_LIBRARY_PATH
20749 shlibpath_overrides_runpath
=no
20750 hardcode_into_libs
=yes
20753 irix5
* | irix6
* | nonstopux
*)
20755 nonstopux
*) version_type
=nonstopux
;;
20757 if test "$lt_cv_prog_gnu_ld" = yes; then
20765 soname_spec
='${libname}${release}${shared_ext}$major'
20766 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20768 irix5
* | nonstopux
*)
20769 libsuff
= shlibsuff
=
20772 case $LD in # libtool.m4 will add one of these switches to LD
20773 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20774 libsuff
= shlibsuff
= libmagic
=32-bit;;
20775 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20776 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20777 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20778 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20779 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20783 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20784 shlibpath_overrides_runpath
=no
20785 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20786 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20787 hardcode_into_libs
=yes
20790 # No shared lib support for Linux oldld, aout, or coff.
20791 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20795 # This must be Linux ELF.
20796 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
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 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20803 shlibpath_var
=LD_LIBRARY_PATH
20804 shlibpath_overrides_runpath
=no
20806 # Some binutils ld are patched to set DT_RUNPATH
20807 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20808 $as_echo_n "(cached) " >&6
20810 lt_cv_shlibpath_overrides_runpath
=no
20811 save_LDFLAGS
=$LDFLAGS
20812 save_libdir
=$libdir
20813 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20814 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20816 /* end confdefs.h. */
20826 if ac_fn_cxx_try_link
"$LINENO"; then :
20827 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20828 lt_cv_shlibpath_overrides_runpath
=yes
20831 rm -f core conftest.err conftest.
$ac_objext \
20832 conftest
$ac_exeext conftest.
$ac_ext
20833 LDFLAGS
=$save_LDFLAGS
20834 libdir
=$save_libdir
20838 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20840 # This implies no fast_install, which is unacceptable.
20841 # Some rework will be needed to allow for fast_install
20842 # before this can be enabled.
20843 hardcode_into_libs
=yes
20845 # Append ld.so.conf contents to the search path
20846 if test -f /etc
/ld.so.conf
; then
20847 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' ' '`
20848 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20851 # We used to test for /lib/ld.so.1 and disable shared libraries on
20852 # powerpc, because MkLinux only supported shared libraries with the
20853 # GNU dynamic linker. Since this was broken with cross compilers,
20854 # most powerpc-linux boxes support dynamic linking these days and
20855 # people can always --disable-shared, the test was removed, and we
20856 # assume the GNU/Linux dynamic linker is in use.
20857 dynamic_linker
='GNU/Linux ld.so'
20864 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20865 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20866 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20867 dynamic_linker
='NetBSD (a.out) ld.so'
20869 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20870 soname_spec
='${libname}${release}${shared_ext}$major'
20871 dynamic_linker
='NetBSD ld.elf_so'
20873 shlibpath_var
=LD_LIBRARY_PATH
20874 shlibpath_overrides_runpath
=yes
20875 hardcode_into_libs
=yes
20880 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20881 shlibpath_var
=LD_LIBRARY_PATH
20882 shlibpath_overrides_runpath
=yes
20889 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20890 soname_spec
='${libname}${release}${shared_ext}$major'
20891 shlibpath_var
=LD_LIBRARY_PATH
20892 shlibpath_overrides_runpath
=no
20893 hardcode_into_libs
=yes
20894 dynamic_linker
='ldqnx.so'
20899 sys_lib_dlsearch_path_spec
="/usr/lib"
20901 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20903 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20904 *) need_version
=no
;;
20906 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20907 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20908 shlibpath_var
=LD_LIBRARY_PATH
20909 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20911 openbsd2.
[89] | openbsd2.
[89].
*)
20912 shlibpath_overrides_runpath
=no
20915 shlibpath_overrides_runpath
=yes
20919 shlibpath_overrides_runpath
=yes
20924 libname_spec
='$name'
20927 library_names_spec
='$libname${shared_ext} $libname.a'
20928 dynamic_linker
='OS/2 ld.exe'
20929 shlibpath_var
=LIBPATH
20932 osf3
* | osf4
* | osf5
*)
20936 soname_spec
='${libname}${release}${shared_ext}$major'
20937 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20938 shlibpath_var
=LD_LIBRARY_PATH
20939 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20940 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20951 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20952 soname_spec
='${libname}${release}${shared_ext}$major'
20953 shlibpath_var
=LD_LIBRARY_PATH
20954 shlibpath_overrides_runpath
=yes
20955 hardcode_into_libs
=yes
20956 # ldd complains unless libraries are executable
20957 postinstall_cmds
='chmod +x $lib'
20962 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20963 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20964 shlibpath_var
=LD_LIBRARY_PATH
20965 shlibpath_overrides_runpath
=yes
20966 if test "$with_gnu_ld" = yes; then
20974 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20975 soname_spec
='${libname}${release}${shared_ext}$major'
20976 shlibpath_var
=LD_LIBRARY_PATH
20977 case $host_vendor in
20979 shlibpath_overrides_runpath
=no
20981 runpath_var
=LD_RUN_PATH
20989 shlibpath_overrides_runpath
=no
20990 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20996 if test -d /usr
/nec
;then
20998 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20999 soname_spec
='$libname${shared_ext}.$major'
21000 shlibpath_var
=LD_LIBRARY_PATH
21004 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21005 version_type
=freebsd-elf
21008 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21009 soname_spec
='${libname}${release}${shared_ext}$major'
21010 shlibpath_var
=LD_LIBRARY_PATH
21011 shlibpath_overrides_runpath
=yes
21012 hardcode_into_libs
=yes
21013 if test "$with_gnu_ld" = yes; then
21014 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21016 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21019 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21023 sys_lib_dlsearch_path_spec
='/usr/lib'
21027 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21031 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21032 shlibpath_var
=LD_LIBRARY_PATH
21033 shlibpath_overrides_runpath
=no
21034 hardcode_into_libs
=yes
21039 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21040 soname_spec
='${libname}${release}${shared_ext}$major'
21041 shlibpath_var
=LD_LIBRARY_PATH
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21049 $as_echo "$dynamic_linker" >&6; }
21050 test "$dynamic_linker" = no
&& can_build_shared
=no
21052 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21053 if test "$GCC" = yes; then
21054 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21057 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21058 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21060 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21061 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21102 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21103 hardcode_action_CXX
=
21104 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21105 test -n "$runpath_var_CXX" ||
21106 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21108 # We can hardcode non-existent directories.
21109 if test "$hardcode_direct_CXX" != no
&&
21110 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21111 # have to relink, otherwise we might link with an installed library
21112 # when we should be linking with a yet-to-be-installed one
21113 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21114 test "$hardcode_minus_L_CXX" != no
; then
21115 # Linking always hardcodes the temporary library directory.
21116 hardcode_action_CXX
=relink
21118 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21119 hardcode_action_CXX
=immediate
21122 # We cannot hardcode anything, or else we can only hardcode existing
21124 hardcode_action_CXX
=unsupported
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21127 $as_echo "$hardcode_action_CXX" >&6; }
21129 if test "$hardcode_action_CXX" = relink ||
21130 test "$inherit_rpath_CXX" = yes; then
21131 # Fast installation is not supported
21132 enable_fast_install
=no
21133 elif test "$shlibpath_overrides_runpath" = yes ||
21134 test "$enable_shared" = no
; then
21135 # Fast installation is not necessary
21136 enable_fast_install
=needless
21145 fi # test -n "$compiler"
21151 with_gnu_ld
=$lt_save_with_gnu_ld
21152 lt_cv_path_LDCXX
=$lt_cv_path_LD
21153 lt_cv_path_LD
=$lt_save_path_LD
21154 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21155 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21156 fi # test "$_lt_caught_CXX_error" != yes
21159 ac_cpp
='$CPP $CPPFLAGS'
21160 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21161 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21162 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21179 # Only expand once:
21185 # Identify the assembler which will work hand-in-glove with the newly
21186 # built GCC, so that we can examine its features. This is the assembler
21187 # which will be driven by the driver program.
21189 # If build != host, and we aren't building gas in-tree, we identify a
21190 # build->target assembler and hope that it will have the same features
21191 # as the host->target assembler we'll be using.
21192 gcc_cv_gas_major_version
=
21193 gcc_cv_gas_minor_version
=
21194 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21196 if test "${gcc_cv_as+set}" = set; then :
21200 if test -x "$DEFAULT_ASSEMBLER"; then
21201 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21202 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21203 && test -f ..
/gas
/Makefile \
21204 && test x
$build = x
$host; then
21205 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21206 elif test -x as
$build_exeext; then
21207 # Build using assembler in the current directory.
21208 gcc_cv_as
=.
/as
$build_exeext
21209 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21210 gcc_cv_as
="$AS_FOR_TARGET"
21212 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21213 set dummy
$AS_FOR_TARGET; ac_word
=$2
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21215 $as_echo_n "checking for $ac_word... " >&6; }
21216 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21217 $as_echo_n "(cached) " >&6
21221 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21225 for as_dir
in $PATH
21228 test -z "$as_dir" && as_dir
=.
21229 for ac_exec_ext
in '' $ac_executable_extensions; do
21230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21231 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21242 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21243 if test -n "$gcc_cv_as"; then
21244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21245 $as_echo "$gcc_cv_as" >&6; }
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21248 $as_echo "no" >&6; }
21255 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21257 case "$ORIGINAL_AS_FOR_TARGET" in
21258 .
/as | .
/as
$build_exeext) ;;
21259 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21264 $as_echo_n "checking what assembler to use... " >&6; }
21265 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21266 # Single tree build which includes gas. We want to prefer it
21267 # over whatever linker top-level may have detected, since
21268 # we'll use what we're building after installation anyway.
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21270 $as_echo "newly built gas" >&6; }
21272 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21273 for f
in $gcc_cv_as_bfd_srcdir/configure \
21274 $gcc_cv_as_gas_srcdir/configure \
21275 $gcc_cv_as_gas_srcdir/configure.
in \
21276 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21277 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21278 if test x
$gcc_cv_gas_version != x
; then
21282 case $gcc_cv_gas_version in
21284 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21286 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21287 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21288 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21289 case $gcc_cv_gas_patch_version in
21290 "") gcc_cv_gas_patch_version
="0" ;;
21292 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21293 + $gcc_cv_gas_minor_version \) \* 1000 \
21294 + $gcc_cv_gas_patch_version`
21296 in_tree_gas_is_elf
=no
21297 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21298 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21299 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21301 in_tree_gas_is_elf
=yes
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21305 $as_echo "$gcc_cv_as" >&6; }
21309 # Identify the linker which will work hand-in-glove with the newly
21310 # built GCC, so that we can examine its features. This is the linker
21311 # which will be driven by the driver program.
21313 # If build != host, and we aren't building gas in-tree, we identify a
21314 # build->target linker and hope that it will have the same features
21315 # as the host->target linker we'll be using.
21316 gcc_cv_gld_major_version
=
21317 gcc_cv_gld_minor_version
=
21318 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21319 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21321 if test "${gcc_cv_ld+set}" = set; then :
21325 if test -x "$DEFAULT_LINKER"; then
21326 gcc_cv_ld
="$DEFAULT_LINKER"
21327 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21328 && test -f ..
/ld
/Makefile \
21329 && test x
$build = x
$host; then
21330 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21331 elif test -x collect-ld
$build_exeext; then
21332 # Build using linker in the current directory.
21333 gcc_cv_ld
=.
/collect-ld
$build_exeext
21334 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21335 gcc_cv_ld
="$LD_FOR_TARGET"
21337 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21338 set dummy
$LD_FOR_TARGET; ac_word
=$2
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21340 $as_echo_n "checking for $ac_word... " >&6; }
21341 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21342 $as_echo_n "(cached) " >&6
21346 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21350 for as_dir
in $PATH
21353 test -z "$as_dir" && as_dir
=.
21354 for ac_exec_ext
in '' $ac_executable_extensions; do
21355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21356 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21367 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21368 if test -n "$gcc_cv_ld"; then
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21370 $as_echo "$gcc_cv_ld" >&6; }
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21373 $as_echo "no" >&6; }
21380 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21381 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21382 # if the PLUGIN_LD is set ld-new, just have it as ld
21383 # as that is the installed named.
21384 if test x
$PLUGIN_LD_SUFFIX == xld-new \
21385 ||
test x
$PLUGIN_LD_SUFFIX == xcollect-ld
; then
21386 PLUGIN_LD_SUFFIX
=ld
21389 # Check whether --with-plugin-ld was given.
21390 if test "${with_plugin_ld+set}" = set; then :
21391 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21392 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21393 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21399 cat >>confdefs.h
<<_ACEOF
21400 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21404 # Check to see if we are using gold instead of ld
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21406 $as_echo_n "checking whether we are using gold... " >&6; }
21408 if test x
$gcc_cv_ld != x
; then
21409 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21410 |
grep "GNU gold" > /dev
/null
; then
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21415 $as_echo "$ld_is_gold" >&6; }
21417 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21419 case "$ORIGINAL_LD_FOR_TARGET" in
21420 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21421 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21426 $as_echo_n "checking what linker to use... " >&6; }
21427 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21428 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21429 # Single tree build which includes ld. We want to prefer it
21430 # over whatever linker top-level may have detected, since
21431 # we'll use what we're building after installation anyway.
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21433 $as_echo "newly built ld" >&6; }
21435 in_tree_ld_is_elf
=no
21436 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21437 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21438 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21439 in_tree_ld_is_elf
=yes
21440 elif test "$ld_is_gold" = yes; then
21441 in_tree_ld_is_elf
=yes
21443 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
21445 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21446 if test x
$gcc_cv_gld_version != x
; then
21450 case $gcc_cv_gld_version in
21452 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21454 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21455 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21458 $as_echo "$gcc_cv_ld" >&6; }
21462 # Figure out what nm we will be using.
21463 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21464 if test "${gcc_cv_nm+set}" = set; then :
21468 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21469 && test -f ..
/binutils
/Makefile \
21470 && test x
$build = x
$host; then
21471 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21472 elif test -x nm
$build_exeext; then
21473 gcc_cv_nm
=.
/nm
$build_exeext
21474 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21475 gcc_cv_nm
="$NM_FOR_TARGET"
21477 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21478 set dummy
$NM_FOR_TARGET; ac_word
=$2
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21480 $as_echo_n "checking for $ac_word... " >&6; }
21481 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21482 $as_echo_n "(cached) " >&6
21486 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21490 for as_dir
in $PATH
21493 test -z "$as_dir" && as_dir
=.
21494 for ac_exec_ext
in '' $ac_executable_extensions; do
21495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21496 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21507 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21508 if test -n "$gcc_cv_nm"; then
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21510 $as_echo "$gcc_cv_nm" >&6; }
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21513 $as_echo "no" >&6; }
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21521 $as_echo_n "checking what nm to use... " >&6; }
21522 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21523 # Single tree build which includes binutils.
21524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21525 $as_echo "newly built nm" >&6; }
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21529 $as_echo "$gcc_cv_nm" >&6; }
21533 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21535 case "$ORIGINAL_NM_FOR_TARGET" in
21536 .
/nm | .
/nm
$build_exeext) ;;
21537 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21542 # Figure out what objdump we will be using.
21543 if test "${gcc_cv_objdump+set}" = set; then :
21547 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21548 && test -f ..
/binutils
/Makefile \
21549 && test x
$build = x
$host; then
21550 # Single tree build which includes binutils.
21551 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21552 elif test -x objdump
$build_exeext; then
21553 gcc_cv_objdump
=.
/objdump
$build_exeext
21554 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21555 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21557 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21558 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21560 $as_echo_n "checking for $ac_word... " >&6; }
21561 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21562 $as_echo_n "(cached) " >&6
21564 case $gcc_cv_objdump in
21566 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21570 for as_dir
in $PATH
21573 test -z "$as_dir" && as_dir
=.
21574 for ac_exec_ext
in '' $ac_executable_extensions; do
21575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21576 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21587 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21588 if test -n "$gcc_cv_objdump"; then
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21590 $as_echo "$gcc_cv_objdump" >&6; }
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21593 $as_echo "no" >&6; }
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21601 $as_echo_n "checking what objdump to use... " >&6; }
21602 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21603 # Single tree build which includes binutils.
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21605 $as_echo "newly built objdump" >&6; }
21606 elif test x
$gcc_cv_objdump = x
; then
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21608 $as_echo "not found" >&6; }
21610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21611 $as_echo "$gcc_cv_objdump" >&6; }
21614 # Figure out what readelf we will be using.
21615 if test "${gcc_cv_readelf+set}" = set; then :
21619 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21620 && test -f ..
/binutils
/Makefile \
21621 && test x
$build = x
$host; then
21622 # Single tree build which includes binutils.
21623 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21624 elif test -x readelf
$build_exeext; then
21625 gcc_cv_readelf
=.
/readelf
$build_exeext
21627 # Extract the first word of "readelf", so it can be a program name with args.
21628 set dummy readelf
; ac_word
=$2
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21630 $as_echo_n "checking for $ac_word... " >&6; }
21631 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21632 $as_echo_n "(cached) " >&6
21634 case $gcc_cv_readelf in
21636 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21640 for as_dir
in $PATH
21643 test -z "$as_dir" && as_dir
=.
21644 for ac_exec_ext
in '' $ac_executable_extensions; do
21645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21646 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21657 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21658 if test -n "$gcc_cv_readelf"; then
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21660 $as_echo "$gcc_cv_readelf" >&6; }
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21663 $as_echo "no" >&6; }
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21671 $as_echo_n "checking what readelf to use... " >&6; }
21672 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21673 # Single tree build which includes binutils.
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21675 $as_echo "newly built readelf" >&6; }
21676 elif test x
$gcc_cv_readelf = x
; then
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21678 $as_echo "not found" >&6; }
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21681 $as_echo "$gcc_cv_readelf" >&6; }
21684 # Figure out what assembler alignment features are present.
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21686 $as_echo_n "checking assembler flags... " >&6; }
21687 if test "${gcc_cv_as_flags+set}" = set; then :
21688 $as_echo_n "(cached) " >&6
21691 i
[34567]86-*-linux*)
21692 gcc_cv_as_flags
="--32"
21694 powerpc
*-*-darwin*)
21695 gcc_cv_as_flags
="-arch ppc"
21698 gcc_cv_as_flags
=" "
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21703 $as_echo "$gcc_cv_as_flags" >&6; }
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21706 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21707 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21708 $as_echo_n "(cached) " >&6
21710 gcc_cv_as_balign_and_p2align
=no
21711 if test $in_tree_gas = yes; then
21712 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21713 then gcc_cv_as_balign_and_p2align
=yes
21715 elif test x
$gcc_cv_as != x
; then
21716 $as_echo '.balign 4
21717 .p2align 2' > conftest.s
21718 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21720 (eval $ac_try) 2>&5
21722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21723 test $ac_status = 0; }; }
21725 gcc_cv_as_balign_and_p2align
=yes
21727 echo "configure: failed program was" >&5
21730 rm -f conftest.o conftest.s
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21734 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21735 if test $gcc_cv_as_balign_and_p2align = yes; then
21737 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21742 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21743 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21744 $as_echo_n "(cached) " >&6
21746 gcc_cv_as_max_skip_p2align
=no
21747 if test $in_tree_gas = yes; then
21748 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21749 then gcc_cv_as_max_skip_p2align
=yes
21751 elif test x
$gcc_cv_as != x
; then
21752 $as_echo '.p2align 4,,7' > conftest.s
21753 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21755 (eval $ac_try) 2>&5
21757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21758 test $ac_status = 0; }; }
21760 gcc_cv_as_max_skip_p2align
=yes
21762 echo "configure: failed program was" >&5
21765 rm -f conftest.o conftest.s
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21769 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21770 if test $gcc_cv_as_max_skip_p2align = yes; then
21772 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21777 $as_echo_n "checking assembler for .literal16... " >&6; }
21778 if test "${gcc_cv_as_literal16+set}" = set; then :
21779 $as_echo_n "(cached) " >&6
21781 gcc_cv_as_literal16
=no
21782 if test $in_tree_gas = yes; then
21783 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21784 then gcc_cv_as_literal16
=yes
21786 elif test x
$gcc_cv_as != x
; then
21787 $as_echo '.literal16' > conftest.s
21788 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21790 (eval $ac_try) 2>&5
21792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21793 test $ac_status = 0; }; }
21795 gcc_cv_as_literal16
=yes
21797 echo "configure: failed program was" >&5
21800 rm -f conftest.o conftest.s
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21804 $as_echo "$gcc_cv_as_literal16" >&6; }
21805 if test $gcc_cv_as_literal16 = yes; then
21807 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21812 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21813 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21814 $as_echo_n "(cached) " >&6
21816 gcc_cv_as_subsection_m1
=no
21817 if test $in_tree_gas = yes; then
21818 if test $in_tree_gas_is_elf = yes \
21819 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21820 then gcc_cv_as_subsection_m1
=yes
21822 elif test x
$gcc_cv_as != x
; then
21823 $as_echo 'conftest_label1: .word 0
21825 conftest_label2: .word 0
21826 .previous' > conftest.s
21827 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21829 (eval $ac_try) 2>&5
21831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21832 test $ac_status = 0; }; }
21834 if test x
$gcc_cv_nm != x
; then
21835 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21836 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21837 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21839 else gcc_cv_as_subsection_m1
=yes
21841 rm -f conftest.nm1 conftest.nm2
21844 echo "configure: failed program was" >&5
21847 rm -f conftest.o conftest.s
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21851 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21852 if test $gcc_cv_as_subsection_m1 = yes; then
21854 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21859 $as_echo_n "checking assembler for .weak... " >&6; }
21860 if test "${gcc_cv_as_weak+set}" = set; then :
21861 $as_echo_n "(cached) " >&6
21864 if test $in_tree_gas = yes; then
21865 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21866 then gcc_cv_as_weak
=yes
21868 elif test x
$gcc_cv_as != x
; then
21869 $as_echo ' .weak foobar' > conftest.s
21870 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21872 (eval $ac_try) 2>&5
21874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21875 test $ac_status = 0; }; }
21879 echo "configure: failed program was" >&5
21882 rm -f conftest.o conftest.s
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21886 $as_echo "$gcc_cv_as_weak" >&6; }
21887 if test $gcc_cv_as_weak = yes; then
21889 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21894 $as_echo_n "checking assembler for .weakref... " >&6; }
21895 if test "${gcc_cv_as_weakref+set}" = set; then :
21896 $as_echo_n "(cached) " >&6
21898 gcc_cv_as_weakref
=no
21899 if test $in_tree_gas = yes; then
21900 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21901 then gcc_cv_as_weakref
=yes
21903 elif test x
$gcc_cv_as != x
; then
21904 $as_echo ' .weakref foobar, barfnot' > conftest.s
21905 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21907 (eval $ac_try) 2>&5
21909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21910 test $ac_status = 0; }; }
21912 gcc_cv_as_weakref
=yes
21914 echo "configure: failed program was" >&5
21917 rm -f conftest.o conftest.s
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21921 $as_echo "$gcc_cv_as_weakref" >&6; }
21922 if test $gcc_cv_as_weakref = yes; then
21924 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21929 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21930 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21931 $as_echo_n "(cached) " >&6
21933 gcc_cv_as_nsubspa_comdat
=no
21934 if test $in_tree_gas = yes; then
21935 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21936 then gcc_cv_as_nsubspa_comdat
=yes
21938 elif test x
$gcc_cv_as != x
; then
21939 $as_echo ' .SPACE $TEXT$
21940 .NSUBSPA $CODE$,COMDAT' > conftest.s
21941 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21943 (eval $ac_try) 2>&5
21945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21946 test $ac_status = 0; }; }
21948 gcc_cv_as_nsubspa_comdat
=yes
21950 echo "configure: failed program was" >&5
21953 rm -f conftest.o conftest.s
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21957 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21958 if test $gcc_cv_as_nsubspa_comdat = yes; then
21960 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21964 # .hidden needs to be supported in both the assembler and the linker,
21965 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21966 # This is irritatingly difficult to feature test for; we have to check the
21967 # date string after the version number. If we've got an in-tree
21968 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21970 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21972 $as_echo_n "checking assembler for .hidden... " >&6; }
21973 if test "${gcc_cv_as_hidden+set}" = set; then :
21974 $as_echo_n "(cached) " >&6
21976 gcc_cv_as_hidden
=no
21977 if test $in_tree_gas = yes; then
21978 if test $in_tree_gas_is_elf = yes \
21979 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21980 then gcc_cv_as_hidden
=yes
21982 elif test x
$gcc_cv_as != x
; then
21983 $as_echo ' .hidden foobar
21984 foobar:' > conftest.s
21985 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21987 (eval $ac_try) 2>&5
21989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21990 test $ac_status = 0; }; }
21993 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21994 # STV_HIDDEN, so disable .hidden support if so.
21995 case "${target}" in
21996 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
21997 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
21998 cat > conftest.s
<<EOF
22003 .set default,hidden
22005 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22006 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22007 grep '\.hidden default' > /dev
/null
; then
22008 gcc_cv_as_hidden
=no
22010 gcc_cv_as_hidden
=yes
22013 # Assume bug is present if objdump is missing.
22014 gcc_cv_as_hidden
=no
22018 gcc_cv_as_hidden
=yes
22022 echo "configure: failed program was" >&5
22025 rm -f conftest.o conftest.s
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22029 $as_echo "$gcc_cv_as_hidden" >&6; }
22031 case "${target}" in
22033 # Darwin as has some visibility support, though with a different syntax.
22034 gcc_cv_as_hidden
=yes
22038 # gnu_indirect_function type is an extension proposed at
22039 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22040 # selection of function implementation
22041 # Check whether --enable-gnu-indirect-function was given.
22042 if test "${enable_gnu_indirect_function+set}" = set; then :
22043 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22045 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22046 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22049 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22052 if test x
$enable_gnu_indirect_function = xyes
; then
22054 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22058 if test $in_tree_ld != yes ; then
22059 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22060 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22061 if test x
"$ld_is_gold" = xyes
; then
22062 # GNU gold --version looks like this:
22064 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22066 # We extract the binutils version which is more familiar and specific
22067 # than the gold version.
22068 ld_vers
=`echo $ld_ver | sed -n \
22069 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22071 # GNU ld --version looks like this:
22073 # GNU ld (GNU Binutils) 2.21.51.20110225
22074 ld_vers
=`echo $ld_ver | sed -n \
22075 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22077 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'`
22078 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22079 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22080 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22082 case "${target}" in
22084 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22087 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22088 # /usr/ccs/bin/ld has been configured.
22089 ld_ver
=`$gcc_cv_ld -V 2>&1`
22090 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22091 ld_vers
=`echo $ld_ver | sed -n \
22092 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22093 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22094 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22102 $as_echo_n "checking linker for .hidden support... " >&6; }
22103 if test "${gcc_cv_ld_hidden+set}" = set; then :
22104 $as_echo_n "(cached) " >&6
22106 if test $in_tree_ld = yes ; then
22107 gcc_cv_ld_hidden
=no
22108 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 \
22109 && test $in_tree_ld_is_elf = yes; then
22110 gcc_cv_ld_hidden
=yes
22113 gcc_cv_ld_hidden
=yes
22114 if test x
"$ld_is_gold" = xyes
; then
22116 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22117 case "${target}" in
22118 mmix-knuth-mmixware
)
22119 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22120 gcc_cv_ld_hidden
=no
22123 if test 0"$ld_date" -lt 20020404; then
22124 if test -n "$ld_date"; then
22125 # If there was date string, but was earlier than 2002-04-04, fail
22126 gcc_cv_ld_hidden
=no
22127 elif test -z "$ld_vers"; then
22128 # If there was no date string nor ld version number, something is wrong
22129 gcc_cv_ld_hidden
=no
22131 test -z "$ld_vers_patch" && ld_vers_patch
=0
22132 if test "$ld_vers_major" -lt 2; then
22133 gcc_cv_ld_hidden
=no
22134 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22135 gcc_cv_ld_hidden
="no"
22136 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22137 gcc_cv_ld_hidden
=no
22142 case "${target}" in
22144 # Darwin ld has some visibility support.
22145 gcc_cv_ld_hidden
=yes
22147 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22148 gcc_cv_ld_hidden
=yes
22150 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22151 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22152 # .symbolic was only added in Solaris 9 12/02.
22153 gcc_cv_ld_hidden
=yes
22156 gcc_cv_ld_hidden
=no
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22163 $as_echo "$gcc_cv_ld_hidden" >&6; }
22164 libgcc_visibility
=no
22167 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22168 libgcc_visibility
=yes
22170 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22175 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22176 gcc_cv_ld_ro_rw_mix
=unknown
22177 if test $in_tree_ld = yes ; then
22178 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 \
22179 && test $in_tree_ld_is_elf = yes; then
22180 gcc_cv_ld_ro_rw_mix
=read-write
22182 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22183 echo '.section myfoosect, "a"' > conftest1.s
22184 echo '.section myfoosect, "aw"' > conftest2.s
22185 echo '.byte 1' >> conftest2.s
22186 echo '.section myfoosect, "a"' > conftest3.s
22187 echo '.byte 0' >> conftest3.s
22188 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22189 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22190 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22191 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22192 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22193 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22194 | sed -e '/myfoosect/!d' -e N`
22195 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22196 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22197 gcc_cv_ld_ro_rw_mix
=read-only
22199 gcc_cv_ld_ro_rw_mix
=read-write
22203 rm -f conftest.
* conftest
[123].
*
22205 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22207 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22211 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22213 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22214 case "${target}" in
22217 # Solaris 2 ld -V output looks like this for a regular version:
22219 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22221 # but test versions add stuff at the end:
22223 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22225 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22226 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22227 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22228 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22229 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22230 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22236 # Check whether --enable-initfini-array was given.
22237 if test "${enable_initfini_array+set}" = set; then :
22238 enableval
=$enable_initfini_array;
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22242 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22243 if test "${gcc_cv_initfini_array+set}" = set; then :
22244 $as_echo_n "(cached) " >&6
22246 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22247 case "${target}" in
22249 if test "$cross_compiling" = yes; then :
22250 gcc_cv_initfini_array
=no
22252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22253 /* end confdefs.h. */
22256 #error Not an ELF OS
22258 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22259 if it can be used. */
22261 int main (void) { return x; }
22262 int foo (void) { x = 0; }
22263 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22266 if ac_fn_c_try_run
"$LINENO"; then :
22267 gcc_cv_initfini_array
=yes
22269 gcc_cv_initfini_array
=no
22271 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22272 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22276 gcc_cv_initfini_array
=no
22277 if test $in_tree_ld = yes ; then
22278 if test "$gcc_cv_gld_major_version" -eq 2 \
22279 -a "$gcc_cv_gld_minor_version" -ge 22 \
22280 -o "$gcc_cv_gld_major_version" -gt 2 \
22281 && test $in_tree_ld_is_elf = yes; then
22282 gcc_cv_initfini_array
=yes
22284 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22285 cat > conftest.s
<<\EOF
22286 .section .dtors
,"a",%progbits
22288 .byte
'A', 'A', 'A', 'A'
22289 .section .ctors
,"a",%progbits
22291 .byte
'B', 'B', 'B', 'B'
22292 .section .fini_array
.65530,"a",%progbits
22294 .byte
'C', 'C', 'C', 'C'
22295 .section .init_array
.65530,"a",%progbits
22297 .byte
'D', 'D', 'D', 'D'
22298 .section .dtors
.64528,"a",%progbits
22300 .byte
'E', 'E', 'E', 'E'
22301 .section .ctors
.64528,"a",%progbits
22303 .byte
'F', 'F', 'F', 'F'
22304 .section .fini_array
.01005,"a",%progbits
22306 .byte
'G', 'G', 'G', 'G'
22307 .section .init_array
.01005,"a",%progbits
22309 .byte
'H', 'H', 'H', 'H'
22314 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22315 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22316 && $gcc_cv_objdump -s -j .init_array conftest \
22317 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22318 && $gcc_cv_objdump -s -j .fini_array conftest \
22319 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22320 gcc_cv_initfini_array
=yes
22322 rm -f conftest conftest.
*
22324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22325 /* end confdefs.h. */
22328 # error Not an ELF OS
22330 #include <stdlib.h>
22331 #if defined __GLIBC_PREREQ
22332 # if __GLIBC_PREREQ (2, 4)
22334 # error GLIBC 2.4 required
22337 # if defined __sun__ && defined __svr4__
22338 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22340 # error The C library not known to support .init_array/.fini_array
22345 if ac_fn_c_try_cpp
"$LINENO"; then :
22348 gcc_cv_initfini_array
=no
22350 rm -f conftest.err conftest.
$ac_ext;;
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22354 $as_echo_n "checking cross compile... guessing... " >&6; }
22355 gcc_cv_initfini_array
=no
22358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22359 $as_echo "$gcc_cv_initfini_array" >&6; }
22360 enable_initfini_array
=$gcc_cv_initfini_array
22364 if test $enable_initfini_array = yes; then
22366 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22370 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22372 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22373 if test "${gcc_cv_as_leb128+set}" = set; then :
22374 $as_echo_n "(cached) " >&6
22376 gcc_cv_as_leb128
=no
22377 if test $in_tree_gas = yes; then
22378 if test $in_tree_gas_is_elf = yes \
22379 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22380 then gcc_cv_as_leb128
=yes
22382 elif test x
$gcc_cv_as != x
; then
22389 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22391 (eval $ac_try) 2>&5
22393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22394 test $ac_status = 0; }; }
22396 # GAS versions before 2.11 do not support uleb128,
22397 # despite appearing to.
22398 # ??? There exists an elf-specific test that will crash
22399 # the assembler. Perhaps it's better to figure out whether
22400 # arbitrary sections are supported and try the test.
22401 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22402 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22403 as_vers
=`echo $as_ver | sed -n \
22404 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22405 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22406 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22407 if test $as_major -eq 2 && test $as_minor -lt 11
22409 else gcc_cv_as_leb128
=yes
22413 echo "configure: failed program was" >&5
22416 rm -f conftest.o conftest.s
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22420 $as_echo "$gcc_cv_as_leb128" >&6; }
22421 if test $gcc_cv_as_leb128 = yes; then
22423 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22427 # Check if we have assembler support for unwind directives.
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22429 $as_echo_n "checking assembler for cfi directives... " >&6; }
22430 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22431 $as_echo_n "(cached) " >&6
22433 gcc_cv_as_cfi_directive
=no
22434 if test x
$gcc_cv_as != x
; then
22440 .cfi_escape 1, 2, 3, 4, 5
22441 .cfi_endproc' > conftest.s
22442 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22444 (eval $ac_try) 2>&5
22446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22447 test $ac_status = 0; }; }
22451 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22452 # read-only and read-write sections, we need to make sure that the
22453 # assembler used emits read-write .eh_frame sections.
22454 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22455 if test "x$gcc_cv_objdump" != x
; then
22456 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22457 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22458 gcc_cv_as_cfi_directive
=no
22461 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22462 # On Solaris/x86, make sure that GCC and gas agree on using
22463 # read-only .eh_frame sections for 64-bit.
22464 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22465 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22466 sed -e /.eh_frame
/!d
-e N | \
22467 grep READONLY
> /dev
/null
; then
22468 gcc_cv_as_cfi_directive
=yes
22470 gcc_cv_as_cfi_directive
=no
22474 gcc_cv_as_cfi_directive
=yes
22479 # no objdump, err on the side of caution
22480 gcc_cv_as_cfi_directive
=no
22483 gcc_cv_as_cfi_directive
=yes
22487 gcc_cv_as_cfi_directive
=yes
22491 echo "configure: failed program was" >&5
22494 rm -f conftest.o conftest.s
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22498 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22500 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22502 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22503 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22504 $as_echo_n "(cached) " >&6
22506 gcc_cv_as_cfi_advance_working
=no
22507 if test x
$gcc_cv_as != x
; then
22510 .cfi_adjust_cfa_offset 64
22512 .cfi_adjust_cfa_offset 128
22513 .cfi_endproc' > conftest.s
22514 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22516 (eval $ac_try) 2>&5
22518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22519 test $ac_status = 0; }; }
22522 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22523 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22524 gcc_cv_as_cfi_advance_working
=yes
22528 echo "configure: failed program was" >&5
22531 rm -f conftest.o conftest.s
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22535 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22538 # no objdump, err on the side of caution
22539 gcc_cv_as_cfi_advance_working
=no
22543 cat >>confdefs.h
<<_ACEOF
22544 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22545 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22551 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22552 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22553 $as_echo_n "(cached) " >&6
22555 gcc_cv_as_cfi_personality_directive
=no
22556 if test x
$gcc_cv_as != x
; then
22559 .cfi_personality 0, symbol
22560 .cfi_endproc' > conftest.s
22561 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22563 (eval $ac_try) 2>&5
22565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22566 test $ac_status = 0; }; }
22568 gcc_cv_as_cfi_personality_directive
=yes
22570 echo "configure: failed program was" >&5
22573 rm -f conftest.o conftest.s
22576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22577 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22580 cat >>confdefs.h
<<_ACEOF
22581 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22582 then echo 1; else echo 0; fi`
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22587 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22588 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22589 $as_echo_n "(cached) " >&6
22591 gcc_cv_as_cfi_sections_directive
=no
22592 if test x
$gcc_cv_as != x
; then
22594 .cfi_sections .debug_frame, .eh_frame
22596 .cfi_endproc' > conftest.s
22597 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22599 (eval $ac_try) 2>&5
22601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22602 test $ac_status = 0; }; }
22605 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22606 # Need to check that we generated the correct relocation for the
22607 # .debug_frame section. This was fixed for binutils 2.21.
22608 gcc_cv_as_cfi_sections_directive
=no
22609 if test "x$gcc_cv_objdump" != x
; then
22610 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22611 grep secrel
> /dev
/null
; then
22612 gcc_cv_as_cfi_sections_directive
=yes
22617 gcc_cv_as_cfi_sections_directive
=yes
22621 echo "configure: failed program was" >&5
22624 rm -f conftest.o conftest.s
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22628 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22632 cat >>confdefs.h
<<_ACEOF
22633 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22634 then echo 1; else echo 0; fi`
22638 # GAS versions up to and including 2.11.0 may mis-optimize
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22641 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22642 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22643 $as_echo_n "(cached) " >&6
22645 gcc_cv_as_eh_frame
=no
22646 if test $in_tree_gas = yes; then
22647 if test $in_tree_gas_is_elf = yes \
22648 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22649 then gcc_cv_as_eh_frame
=yes
22651 elif test x
$gcc_cv_as != x
; then
22658 .section .eh_frame,"aw",@progbits
22660 .4byte .LECIE1-.LSCIE1
22674 .4byte .LEFDE1-.LASFDE1
22676 .4byte .LASFDE1-__FRAME_BEGIN__
22683 .LEFDE1:' > conftest.s
22684 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22686 (eval $ac_try) 2>&5
22688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22689 test $ac_status = 0; }; }
22691 cat > conftest.lit
<<EOF
22692 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22693 0010 01000000 12000000 18000000 00000000 ................
22694 0020 08000000 04080000 0044 .........D
22696 cat > conftest.big
<<EOF
22697 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22698 0010 00000001 00000012 00000018 00000000 ................
22699 0020 00000008 04000000 0844 .........D
22701 # If the assembler didn't choke, and we can objdump,
22702 # and we got the correct data, then succeed.
22703 # The text in the here-document typically retains its unix-style line
22704 # endings, while the output of objdump will use host line endings.
22705 # Therefore, use diff -b for the comparisons.
22706 if test x
$gcc_cv_objdump != x \
22707 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22708 |
tail -3 > conftest.got \
22709 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22710 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22712 gcc_cv_as_eh_frame
=yes
22713 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22715 (eval $ac_try) 2>&5
22717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22718 test $ac_status = 0; }; }; then
22719 gcc_cv_as_eh_frame
=buggy
22721 # Uh oh, what do we do now?
22722 gcc_cv_as_eh_frame
=no
22725 echo "configure: failed program was" >&5
22728 rm -f conftest.o conftest.s
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22732 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22735 if test $gcc_cv_as_eh_frame = buggy
; then
22737 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22742 $as_echo_n "checking assembler for section merging support... " >&6; }
22743 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22744 $as_echo_n "(cached) " >&6
22746 gcc_cv_as_shf_merge
=no
22747 if test $in_tree_gas = yes; then
22748 if test $in_tree_gas_is_elf = yes \
22749 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22750 then gcc_cv_as_shf_merge
=yes
22752 elif test x
$gcc_cv_as != x
; then
22753 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22754 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22756 (eval $ac_try) 2>&5
22758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22759 test $ac_status = 0; }; }
22761 gcc_cv_as_shf_merge
=yes
22763 echo "configure: failed program was" >&5
22766 rm -f conftest.o conftest.s
22769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22770 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22772 if test $gcc_cv_as_shf_merge = no
; then
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22774 $as_echo_n "checking assembler for section merging support... " >&6; }
22775 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22776 $as_echo_n "(cached) " >&6
22778 gcc_cv_as_shf_merge
=no
22779 if test $in_tree_gas = yes; then
22780 if test $in_tree_gas_is_elf = yes \
22781 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22782 then gcc_cv_as_shf_merge
=yes
22784 elif test x
$gcc_cv_as != x
; then
22785 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22786 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22788 (eval $ac_try) 2>&5
22790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22791 test $ac_status = 0; }; }
22793 gcc_cv_as_shf_merge
=yes
22795 echo "configure: failed program was" >&5
22798 rm -f conftest.o conftest.s
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22802 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22806 cat >>confdefs.h
<<_ACEOF
22807 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22812 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22813 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22814 $as_echo_n "(cached) " >&6
22816 gcc_cv_as_comdat_group
=no
22817 if test $in_tree_gas = yes; then
22818 if test $in_tree_gas_is_elf = yes \
22819 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22820 then gcc_cv_as_comdat_group
=yes
22822 elif test x
$gcc_cv_as != x
; then
22823 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22824 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22826 (eval $ac_try) 2>&5
22828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22829 test $ac_status = 0; }; }
22831 gcc_cv_as_comdat_group
=yes
22833 echo "configure: failed program was" >&5
22836 rm -f conftest.o conftest.s
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22840 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22842 if test $gcc_cv_as_comdat_group = yes; then
22843 gcc_cv_as_comdat_group_percent
=no
22844 gcc_cv_as_comdat_group_group
=no
22846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22847 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22848 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22849 $as_echo_n "(cached) " >&6
22851 gcc_cv_as_comdat_group_percent
=no
22852 if test $in_tree_gas = yes; then
22853 if test $in_tree_gas_is_elf = yes \
22854 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22855 then gcc_cv_as_comdat_group_percent
=yes
22857 elif test x
$gcc_cv_as != x
; then
22858 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22859 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22861 (eval $ac_try) 2>&5
22863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22864 test $ac_status = 0; }; }
22866 gcc_cv_as_comdat_group_percent
=yes
22868 echo "configure: failed program was" >&5
22871 rm -f conftest.o conftest.s
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22875 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22877 if test $gcc_cv_as_comdat_group_percent = yes; then
22878 gcc_cv_as_comdat_group_group
=no
22880 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22881 gcc_cv_as_comdat_group_group
=no
22883 case "${target}" in
22884 # Sun as uses a completely different syntax.
22886 case "${target}" in
22887 sparc
*-*-solaris2*)
22889 .group foo,".text%foo",#comdat
22890 .section ".text%foo", #alloc,#execinstr,#progbits
22895 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22897 .group foo,.text%foo,#comdat
22898 .section .text%foo, "ax", @progbits
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22905 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22906 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22907 $as_echo_n "(cached) " >&6
22909 gcc_cv_as_comdat_group_group
=no
22910 if test x
$gcc_cv_as != x
; then
22911 $as_echo "$conftest_s" > conftest.s
22912 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22914 (eval $ac_try) 2>&5
22916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22917 test $ac_status = 0; }; }
22919 gcc_cv_as_comdat_group_group
=yes
22921 echo "configure: failed program was" >&5
22924 rm -f conftest.o conftest.s
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22928 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22934 if test x
"$ld_is_gold" = xyes
; then
22936 elif test $in_tree_ld = yes ; then
22938 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 \
22939 && test $in_tree_ld_is_elf = yes; then
22942 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22944 if test 0"$ld_date" -lt 20050308; then
22945 if test -n "$ld_date"; then
22946 # If there was date string, but was earlier than 2005-03-08, fail
22948 elif test "$ld_vers_major" -lt 2; then
22950 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22955 case "${target}" in
22956 *-*-solaris2.1
[1-9]*)
22958 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22959 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22962 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22963 # least ld version 1.2267.
22964 if test "$ld_vers_major" -gt 1; then
22966 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
22968 elif test "$ld_vers_minor" -ge 2267; then
22973 # Assume linkers other than GNU ld don't support COMDAT group.
22978 # Allow overriding the automatic COMDAT group tests above.
22979 # Check whether --enable-comdat was given.
22980 if test "${enable_comdat+set}" = set; then :
22981 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
22984 if test $comdat_group = no
; then
22985 gcc_cv_as_comdat_group
=no
22986 gcc_cv_as_comdat_group_percent
=no
22987 gcc_cv_as_comdat_group_group
=no
22990 cat >>confdefs.h
<<_ACEOF
22991 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22992 || test $gcc_cv_as_comdat_group_percent = yes \
22993 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22998 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22999 if test "${gcc_cv_as_discriminator+set}" = set; then :
23000 $as_echo_n "(cached) " >&6
23002 gcc_cv_as_discriminator
=no
23003 if test $in_tree_gas = yes; then
23004 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23005 then gcc_cv_as_discriminator
=yes
23007 elif test x
$gcc_cv_as != x
; then
23010 .loc 1 1 0 discriminator 1' > conftest.s
23011 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23013 (eval $ac_try) 2>&5
23015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23016 test $ac_status = 0; }; }
23018 gcc_cv_as_discriminator
=yes
23020 echo "configure: failed program was" >&5
23023 rm -f conftest.o conftest.s
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23027 $as_echo "$gcc_cv_as_discriminator" >&6; }
23028 if test $gcc_cv_as_discriminator = yes; then
23030 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23034 # Thread-local storage - the check is heavily parameterized.
23042 .section ".tdata","awT",@progbits
23045 ldq $27,__tls_get_addr($29) !literal!1
23046 lda $16,foo($29) !tlsgd!1
23047 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23048 ldq $27,__tls_get_addr($29) !literal!2
23049 lda $16,foo($29) !tlsldm!2
23050 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23051 ldq $1,foo($29) !gotdtprel
23052 ldah $2,foo($29) !dtprelhi
23053 lda $3,foo($2) !dtprello
23054 lda $4,foo($29) !dtprel
23055 ldq $1,foo($29) !gottprel
23056 ldah $2,foo($29) !tprelhi
23057 lda $3,foo($2) !tprello
23058 lda $4,foo($29) !tprel'
23061 tls_as_opt
=--fatal-warnings
23063 cris-
*-*|crisv32-
*-*)
23065 .section ".tdata","awT",@progbits
23072 tls_as_opt
=--fatal-warnings
23076 .section ".tdata","awT",@progbits
23079 call #gettlsoff(x)'
23088 .section ".tdata","awT",@progbits
23092 addil LT%foo-$tls_gdidx$,gp
23093 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23096 addil LT%foo-$tls_ldidx$,gp
23098 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23099 addil LR%foo-$tls_dtpoff$,%ret0
23100 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23102 addil LT%foo-$tls_ieoff$,gp
23103 ldw RT%foo-$tls_ieoff$(%r1),%t2
23106 addil LR%foo-$tls_leoff$,%t1
23107 ldo RR%foo-$tls_leoff$(%r1),%t2'
23110 tls_as_opt
=--fatal-warnings
23114 .section ".tdata","awT",%progbits
23117 .word foo(gottpoff)
23125 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23127 i
[34567]86-*-solaris2.
*)
23129 tga_func
=___tls_get_addr
23131 x86_64-
*-solaris2.1
[0-9]*)
23133 tga_func
=__tls_get_addr
23139 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23141 .section .tdata,"awt",@progbits'
23145 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23149 .section ".tdata","awT",@progbits'
23152 tls_as_opt
="--fatal-warnings"
23154 conftest_s
="$conftest_s
23158 leal foo@tlsgd(,%ebx,1), %eax
23159 leal foo@tlsldm(%ebx), %eax
23160 leal foo@dtpoff(%eax), %edx
23161 movl foo@gottpoff(%ebx), %eax
23162 subl foo@gottpoff(%ebx), %eax
23163 addl foo@gotntpoff(%ebx), %eax
23164 movl foo@indntpoff, %eax
23165 movl \$foo@tpoff, %eax
23166 subl \$foo@tpoff, %eax
23167 leal foo@ntpoff(%ecx), %eax"
23171 .section ".tdata","awT",@progbits
23175 leaq foo@TLSGD(%rip), %rdi
23176 leaq foo@TLSLD(%rip), %rdi
23177 leaq foo@DTPOFF(%rax), %rdx
23178 movq foo@GOTTPOFF(%rip), %rax
23179 movq $foo@TPOFF, %rax'
23182 tls_as_opt
=--fatal-warnings
23186 .section ".tdata","awT",@progbits
23189 addl r16 = @ltoff(@dtpmod(foo#)), gp
23190 addl r17 = @ltoff(@dtprel(foo#)), gp
23191 addl r18 = @ltoff(@tprel(foo#)), gp
23192 addl r19 = @dtprel(foo#), gp
23193 adds r21 = @dtprel(foo#), r13
23194 movl r23 = @dtprel(foo#)
23195 addl r20 = @tprel(foo#), gp
23196 adds r22 = @tprel(foo#), r13
23197 movl r24 = @tprel(foo#)'
23200 tls_as_opt
=--fatal-warnings
23204 .section .tdata,"awT",@progbits
23208 addiu $4, $28, %tlsgd(x)
23209 addiu $4, $28, %tlsldm(x)
23210 lui $4, %dtprel_hi(x)
23211 addiu $4, $4, %dtprel_lo(x)
23212 lw $4, %gottprel(x)($28)
23213 lui $4, %tprel_hi(x)
23214 addiu $4, $4, %tprel_lo(x)'
23217 tls_as_opt
='-32 --fatal-warnings'
23221 .section .tdata,"awT",@progbits
23226 move.l x@TLSGD(%a5),%a0
23227 move.l x@TLSLDM(%a5),%a0
23228 move.l x@TLSLDO(%a5),%a0
23229 move.l x@TLSIE(%a5),%a0
23230 move.l x@TLSLE(%a5),%a0'
23233 tls_as_opt
='--fatal-warnings'
23237 .section ".tdata","awT",%progbits
23241 add x0, x0, #:tlsgd_lo12:x
23246 tls_as_opt
='--fatal-warnings'
23250 .section ".tdata","awT",@progbits
23258 addi 3,31,ld0@got@tlsgd
23260 addi 3,31,x1@got@tlsld
23263 addis 9,3,x2@dtprel@ha
23264 addi 9,9,x2@dtprel@l
23265 lwz 9,x3@got@tprel(31)
23268 addis 9,2,x2@tprel@ha
23269 addi 9,9,x2@tprel@l'
23272 tls_as_opt
="-a32 --fatal-warnings"
23276 .section ".tdata","awT",@progbits
23284 addi 3,2,ld0@got@tlsgd
23290 addi 3,2,x1@got@tlsld
23296 addis 9,3,x2@dtprel@ha
23297 addi 9,9,x2@dtprel@l
23300 ld 9,x3@got@dtprel(2)
23306 tls_as_opt
="-a64 --fatal-warnings"
23310 .section ".tdata","awT",@progbits
23317 .long foo@GOTNTPOFF
23318 .long foo@INDNTPOFF
23319 l %r1,foo@GOTNTPOFF(%r12)
23320 l %r1,0(%r1):tls_load:foo
23321 bas %r14,0(%r1,%r13):tls_gdcall:foo
23322 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23325 tls_as_opt
="-m31 --fatal-warnings"
23329 .section ".tdata","awT",@progbits
23336 .quad foo@GOTNTPOFF
23337 lg %r1,foo@GOTNTPOFF(%r12)
23338 larl %r1,foo@INDNTPOFF
23339 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23340 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23343 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23345 sh-
*-* | sh
[34]-*-*)
23347 .section ".tdata","awT",@progbits
23357 tls_as_opt
=--fatal-warnings
23361 sparc
*-sun-solaris2.
*)
23363 tga_func
=__tls_get_addr
23369 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23371 .section ".tdata",#alloc,#write,#tls'
23376 .section ".tdata","awT",@progbits'
23379 tls_as_opt
="-32 --fatal-warnings"
23381 conftest_s
="$conftest_s
23384 sethi %tgd_hi22(foo), %o0
23385 add %o0, %tgd_lo10(foo), %o1
23386 add %l7, %o1, %o0, %tgd_add(foo)
23387 call __tls_get_addr, %tgd_call(foo)
23388 sethi %tldm_hi22(foo), %l1
23389 add %l1, %tldm_lo10(foo), %l2
23390 add %l7, %l2, %o0, %tldm_add(foo)
23391 call __tls_get_addr, %tldm_call(foo)
23392 sethi %tldo_hix22(foo), %l3
23393 xor %l3, %tldo_lox10(foo), %l4
23394 add %o0, %l4, %l5, %tldo_add(foo)
23395 sethi %tie_hi22(foo), %o3
23396 add %o3, %tie_lo10(foo), %o3
23397 ld [%l7 + %o3], %o2, %tie_ld(foo)
23398 add %g7, %o2, %o4, %tie_add(foo)
23399 sethi %tle_hix22(foo), %l1
23400 xor %l1, %tle_lox10(foo), %o5
23401 ld [%g7 + %o5], %o1"
23405 .section ".tdata","awT",@progbits
23408 addli r0, zero, tls_gd(foo)
23409 auli r0, zero, tls_gd_ha16(foo)
23410 addli r0, r0, tls_gd_lo16(foo)
23412 addli r0, zero, tls_ie(foo)
23413 auli r0, r0, tls_ie_ha16(foo)
23414 addli r0, r0, tls_ie_lo16(foo)'
23417 tls_as_opt
="--fatal-warnings"
23421 .section ".tdata","awT",@progbits
23424 shl16insli r0, zero, hw0_last_tls_gd(foo)
23425 shl16insli r0, zero, hw1_last_tls_gd(foo)
23426 shl16insli r0, r0, hw0_tls_gd(foo)
23428 shl16insli r0, zero, hw1_last_tls_ie(foo)
23429 shl16insli r0, r0, hw0_tls_ie(foo)'
23432 tls_as_opt
="--fatal-warnings"
23436 .section ".tdata","awT",@progbits
23439 movi a8, foo@TLSFUNC
23440 movi a10, foo@TLSARG
23441 callx8.tls a8, foo@TLSCALL'
23447 if test "x$enable_tls" = xno
; then
23448 : # TLS explicitly disabled.
23449 elif test "x$enable_tls" = xyes
; then
23450 set_have_as_tls
=yes # TLS explicitly enabled.
23451 elif test -z "$tls_first_major"; then
23452 : # If we don't have a check, assume no support.
23454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23455 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23456 if test "${gcc_cv_as_tls+set}" = set; then :
23457 $as_echo_n "(cached) " >&6
23460 if test $in_tree_gas = yes; then
23461 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23462 then gcc_cv_as_tls
=yes
23464 elif test x
$gcc_cv_as != x
; then
23465 $as_echo "$conftest_s" > conftest.s
23466 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23468 (eval $ac_try) 2>&5
23470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23471 test $ac_status = 0; }; }
23475 echo "configure: failed program was" >&5
23478 rm -f conftest.o conftest.s
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23482 $as_echo "$gcc_cv_as_tls" >&6; }
23483 if test $gcc_cv_as_tls = yes; then
23484 set_have_as_tls
=yes
23488 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23489 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23490 # Sun style that Sun ld and GCC don't support any longer.
23492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23493 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23495 # Check ld and ld.so.1 TLS support.
23496 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23497 # Assume all interesting versions of GNU ld have TLS support.
23498 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23502 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23504 min_tls_ld_vers_minor
=374
23506 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23507 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23508 min_tls_ld_vers_minor
=343
23511 if test "$ld_vers_major" -gt 1 || \
23512 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23519 $as_echo "$ld_tls_support" >&6; }
23522 save_LDFLAGS
="$LDFLAGS"
23526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23527 $as_echo_n "checking library containing $tga_func... " >&6; }
23528 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23529 # (32-bit x86) only lived in libthread, so check for that. Keep
23530 # set_have_as_tls if found, disable if not.
23531 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23533 $as_echo_n "checking for library containing $tga_func... " >&6; }
23534 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23535 $as_echo_n "(cached) " >&6
23537 ac_func_search_save_LIBS
=$LIBS
23538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23539 /* end confdefs.h. */
23541 /* Override any GCC internal prototype to avoid an error.
23542 Use char because int might match the return type of a GCC
23543 builtin and then its argument prototype would still apply. */
23551 return $tga_func ();
23556 for ac_lib
in '' thread
; do
23557 if test -z "$ac_lib"; then
23558 ac_res
="none required"
23561 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23563 if ac_fn_c_try_link
"$LINENO"; then :
23564 eval "$as_ac_Search=\$ac_res"
23566 rm -f core conftest.err conftest.
$ac_objext \
23568 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23572 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23575 eval "$as_ac_Search=no"
23577 rm conftest.
$ac_ext
23578 LIBS
=$ac_func_search_save_LIBS
23580 eval ac_res
=\$
$as_ac_Search
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23582 $as_echo "$ac_res" >&6; }
23583 eval ac_res
=\$
$as_ac_Search
23584 if test "$ac_res" != no
; then :
23585 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23591 # Clear LIBS if we cannot support TLS.
23592 if test $set_have_as_tls = no
; then
23595 # Always define LIB_TLS_SPEC, even without TLS support.
23597 cat >>confdefs.h
<<_ACEOF
23598 #define LIB_TLS_SPEC "$LIBS"
23601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23602 $as_echo "$LIBS" >&6; }
23605 LDFLAGS
="$save_LDFLAGS"
23608 if test $set_have_as_tls = yes ; then
23610 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23614 # Target-specific assembler checks.
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23617 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23618 gcc_cv_ld_static_dynamic
=no
23619 gcc_cv_ld_static_option
='-Bstatic'
23620 gcc_cv_ld_dynamic_option
='-Bdynamic'
23621 if test $in_tree_ld = yes ; then
23622 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
23623 gcc_cv_ld_static_dynamic
=yes
23625 elif test x
$gcc_cv_ld != x
; then
23626 # Check if linker supports -Bstatic/-Bdynamic option
23627 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23628 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23629 gcc_cv_ld_static_dynamic
=yes
23632 # HP-UX ld uses -a flags to select between shared and archive.
23634 if test x
"$gnu_ld" = xno
; then
23635 gcc_cv_ld_static_dynamic
=yes
23636 gcc_cv_ld_static_option
="-aarchive_shared"
23637 gcc_cv_ld_dynamic_option
="-adefault"
23640 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23642 gcc_cv_ld_static_dynamic
=yes
23647 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23649 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23652 cat >>confdefs.h
<<_ACEOF
23653 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23657 cat >>confdefs.h
<<_ACEOF
23658 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23663 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23665 if test x
"$demangler_in_ld" = xyes
; then
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23667 $as_echo_n "checking linker --demangle support... " >&6; }
23668 gcc_cv_ld_demangle
=no
23669 if test $in_tree_ld = yes; then
23670 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 \
23671 gcc_cv_ld_demangle
=yes
23673 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23674 # Check if the GNU linker supports --demangle option
23675 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23676 gcc_cv_ld_demangle
=yes
23679 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23681 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23685 $as_echo "$gcc_cv_ld_demangle" >&6; }
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23689 $as_echo_n "checking linker plugin support... " >&6; }
23690 gcc_cv_lto_plugin
=0
23691 if test -f liblto_plugin.la
; then
23692 save_ld_ver
="$ld_ver"
23693 save_ld_vers_major
="$ld_vers_major"
23694 save_ld_vers_minor
="$ld_vers_minor"
23695 save_ld_is_gold
="$ld_is_gold"
23699 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23701 # FIXME: ld_is_gold?
23702 ld_vers_major
="$gcc_cv_gld_major_version"
23703 ld_vers_minor
="$gcc_cv_gld_minor_version"
23705 # Determine plugin linker version.
23706 # FIXME: Partial duplicate from above, generalize.
23707 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23708 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23709 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23711 ld_vers
=`echo $ld_ver | sed -n \
23712 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23714 ld_vers
=`echo $ld_ver | sed -n \
23715 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23717 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23718 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23722 # Determine plugin support.
23723 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23724 # Require GNU ld or gold 2.21+ for plugin support by default.
23725 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23726 gcc_cv_lto_plugin
=2
23727 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23728 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23729 gcc_cv_lto_plugin
=1
23733 ld_ver
="$save_ld_ver"
23734 ld_vers_major
="$save_ld_vers_major"
23735 ld_vers_minor
="$save_ld_vers_minor"
23736 ld_is_gold
="$save_ld_is_gold"
23739 cat >>confdefs.h
<<_ACEOF
23740 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23744 $as_echo "$gcc_cv_lto_plugin" >&6; }
23747 # All TARGET_ABI_OSF targets.
23748 alpha
*-*-linux* | alpha
*-*-*bsd
*)
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23750 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23751 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23752 $as_echo_n "(cached) " >&6
23754 gcc_cv_as_alpha_explicit_relocs
=no
23755 if test $in_tree_gas = yes; then
23756 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23757 then gcc_cv_as_alpha_explicit_relocs
=yes
23759 elif test x
$gcc_cv_as != x
; then
23760 $as_echo ' .set nomacro
23762 extbl $3, $2, $3 !lituse_bytoff!1
23763 ldq $2, a($29) !literal!1
23764 ldq $4, b($29) !literal!2
23765 ldq_u $3, 0($2) !lituse_base!1
23766 ldq $27, f($29) !literal!5
23767 jsr $26, ($27), f !lituse_jsr!5
23768 ldah $29, 0($26) !gpdisp!3
23769 lda $0, c($29) !gprel
23770 ldah $1, d($29) !gprelhigh
23771 lda $1, d($1) !gprellow
23772 lda $29, 0($29) !gpdisp!3' > conftest.s
23773 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23775 (eval $ac_try) 2>&5
23777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23778 test $ac_status = 0; }; }
23780 gcc_cv_as_alpha_explicit_relocs
=yes
23782 echo "configure: failed program was" >&5
23785 rm -f conftest.o conftest.s
23788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23789 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23790 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23792 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23796 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23797 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23798 $as_echo_n "(cached) " >&6
23800 gcc_cv_as_alpha_jsrdirect_relocs
=no
23801 if test $in_tree_gas = yes; then
23802 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23803 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23805 elif test x
$gcc_cv_as != x
; then
23806 $as_echo ' .set nomacro
23808 ldq $27, a($29) !literal!1
23809 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23810 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23812 (eval $ac_try) 2>&5
23814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23815 test $ac_status = 0; }; }
23817 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23819 echo "configure: failed program was" >&5
23822 rm -f conftest.o conftest.s
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23826 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23827 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23829 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23836 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23837 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23838 $as_echo_n "(cached) " >&6
23840 gcc_cv_as_cris_no_mul_bug
=no
23841 if test $in_tree_gas = yes; then
23842 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23843 then gcc_cv_as_cris_no_mul_bug
=yes
23845 elif test x
$gcc_cv_as != x
; then
23846 $as_echo '.text' > conftest.s
23847 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23849 (eval $ac_try) 2>&5
23851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23852 test $ac_status = 0; }; }
23854 gcc_cv_as_cris_no_mul_bug
=yes
23856 echo "configure: failed program was" >&5
23859 rm -f conftest.o conftest.s
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23863 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23864 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23866 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23873 $as_echo_n "checking assembler for .register... " >&6; }
23874 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23875 $as_echo_n "(cached) " >&6
23877 gcc_cv_as_sparc_register_op
=no
23878 if test x
$gcc_cv_as != x
; then
23879 $as_echo '.register %g2, #scratch' > conftest.s
23880 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23882 (eval $ac_try) 2>&5
23884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23885 test $ac_status = 0; }; }
23887 gcc_cv_as_sparc_register_op
=yes
23889 echo "configure: failed program was" >&5
23892 rm -f conftest.o conftest.s
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23896 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23897 if test $gcc_cv_as_sparc_register_op = yes; then
23899 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23904 $as_echo_n "checking assembler for -relax option... " >&6; }
23905 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23906 $as_echo_n "(cached) " >&6
23908 gcc_cv_as_sparc_relax
=no
23909 if test x
$gcc_cv_as != x
; then
23910 $as_echo '.text' > conftest.s
23911 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23913 (eval $ac_try) 2>&5
23915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23916 test $ac_status = 0; }; }
23918 gcc_cv_as_sparc_relax
=yes
23920 echo "configure: failed program was" >&5
23923 rm -f conftest.o conftest.s
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23927 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23928 if test $gcc_cv_as_sparc_relax = yes; then
23930 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23935 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23936 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23937 $as_echo_n "(cached) " >&6
23939 gcc_cv_as_sparc_gotdata_op
=no
23940 if test x
$gcc_cv_as != x
; then
23946 sethi %gdop_hix22(foo), %g1
23947 xor %g1, %gdop_lox10(foo), %g1
23948 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23949 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23951 (eval $ac_try) 2>&5
23953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23954 test $ac_status = 0; }; }
23956 if test x
$gcc_cv_ld != x \
23957 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23958 if test x
$gcc_cv_objdump != x
; then
23959 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
23960 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
23961 gcc_cv_as_sparc_gotdata_op
=no
23963 gcc_cv_as_sparc_gotdata_op
=yes
23969 echo "configure: failed program was" >&5
23972 rm -f conftest.o conftest.s
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23976 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23977 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23979 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23984 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23985 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23986 $as_echo_n "(cached) " >&6
23988 gcc_cv_as_sparc_ua_pcrel
=no
23989 if test x
$gcc_cv_as != x
; then
23996 .uaword %r_disp32(foo)' > conftest.s
23997 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23999 (eval $ac_try) 2>&5
24001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24002 test $ac_status = 0; }; }
24004 if test x
$gcc_cv_ld != x \
24005 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24006 gcc_cv_as_sparc_ua_pcrel
=yes
24010 echo "configure: failed program was" >&5
24013 rm -f conftest.o conftest.s
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24017 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24018 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24020 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24024 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24025 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24026 $as_echo_n "(cached) " >&6
24028 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24029 if test x
$gcc_cv_as != x
; then
24033 .uaword %r_disp32(foo)
24034 .byte 0x32, 0x33, 0x34
24038 .skip 4' > conftest.s
24039 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24041 (eval $ac_try) 2>&5
24043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24044 test $ac_status = 0; }; }
24046 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24047 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24048 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24049 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24050 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24051 |
grep 'DISP32' > /dev
/null
2>&1; then
24054 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24059 echo "configure: failed program was" >&5
24062 rm -f conftest.o conftest.s
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24066 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24067 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24069 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24073 fi # unaligned pcrel relocs
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24076 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24077 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24078 $as_echo_n "(cached) " >&6
24080 gcc_cv_as_sparc_offsetable_lo10
=no
24081 if test x
$gcc_cv_as != x
; then
24083 or %g1, %lo(ab) + 12, %g1
24084 or %g1, %lo(ab + 12), %g1' > conftest.s
24085 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24087 (eval $ac_try) 2>&5
24089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24090 test $ac_status = 0; }; }
24092 if test x
$gcc_cv_objdump != x \
24093 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24094 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24095 gcc_cv_as_sparc_offsetable_lo10
=yes
24098 echo "configure: failed program was" >&5
24101 rm -f conftest.o conftest.s
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24105 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24106 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24108 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24113 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24114 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24115 $as_echo_n "(cached) " >&6
24117 gcc_cv_as_sparc_fmaf
=no
24118 if test x
$gcc_cv_as != x
; then
24120 .register %g2, #scratch
24121 .register %g3, #scratch
24123 fmaddd %f0, %f2, %f4, %f6
24124 addxccc %g1, %g2, %g3
24125 fsrl32 %f2, %f4, %f8
24126 fnaddd %f10, %f12, %f14' > conftest.s
24127 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24129 (eval $ac_try) 2>&5
24131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24132 test $ac_status = 0; }; }
24134 gcc_cv_as_sparc_fmaf
=yes
24136 echo "configure: failed program was" >&5
24139 rm -f conftest.o conftest.s
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24143 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24144 if test $gcc_cv_as_sparc_fmaf = yes; then
24146 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24151 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24152 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24153 $as_echo_n "(cached) " >&6
24155 gcc_cv_as_sparc_sparc4
=no
24156 if test x
$gcc_cv_as != x
; then
24158 .register %g2, #scratch
24159 .register %g3, #scratch
24162 1: cwbneg %g2, %g3, 1f
24165 aes_kexpand0 %f4, %f6, %f8
24166 des_round %f38, %f40, %f42, %f44
24167 camellia_f %f54, %f56, %f58, %f60
24168 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24169 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24171 (eval $ac_try) 2>&5
24173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24174 test $ac_status = 0; }; }
24176 gcc_cv_as_sparc_sparc4
=yes
24178 echo "configure: failed program was" >&5
24181 rm -f conftest.o conftest.s
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24185 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24186 if test $gcc_cv_as_sparc_sparc4 = yes; then
24188 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24193 i
[34567]86-*-* | x86_64-
*-*)
24196 # Full C++ conformance when using a shared libstdc++-v3 requires some
24197 # support from the Cygwin DLL, which in more recent versions exports
24198 # wrappers to aid in interposing and redirecting operators new, delete,
24199 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24200 # are configuring for a version of Cygwin that exports the wrappers.
24201 if test x
$host = x
$target; then
24202 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24203 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24204 gcc_ac_cygwin_dll_wrappers
=yes
24206 gcc_ac_cygwin_dll_wrappers
=no
24210 # Can't check presence of libc functions during cross-compile, so
24211 # we just have to assume we're building for an up-to-date target.
24212 gcc_ac_cygwin_dll_wrappers
=yes
24215 cat >>confdefs.h
<<_ACEOF
24216 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24221 cygwin
* | pe | mingw32
* | interix
*)
24222 # Recent binutils allows the three-operand form of ".comm" on PE. This
24223 # definition is used unconditionally to initialise the default state of
24224 # the target option variable that governs usage of the feature.
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24226 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24227 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24228 $as_echo_n "(cached) " >&6
24230 gcc_cv_as_comm_has_align
=no
24231 if test $in_tree_gas = yes; then
24232 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24233 then gcc_cv_as_comm_has_align
=yes
24235 elif test x
$gcc_cv_as != x
; then
24236 $as_echo '.comm foo,1,32' > conftest.s
24237 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24239 (eval $ac_try) 2>&5
24241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24242 test $ac_status = 0; }; }
24244 gcc_cv_as_comm_has_align
=yes
24246 echo "configure: failed program was" >&5
24249 rm -f conftest.o conftest.s
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24253 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24256 cat >>confdefs.h
<<_ACEOF
24257 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24260 # Used for DWARF 2 in PE
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24262 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24263 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24264 $as_echo_n "(cached) " >&6
24266 gcc_cv_as_ix86_pe_secrel32
=no
24267 if test $in_tree_gas = yes; then
24268 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24269 then gcc_cv_as_ix86_pe_secrel32
=yes
24271 elif test x
$gcc_cv_as != x
; then
24275 .secrel32 foo' > conftest.s
24276 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24278 (eval $ac_try) 2>&5
24280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24281 test $ac_status = 0; }; }
24283 if test x
$gcc_cv_ld != x \
24284 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24285 gcc_cv_as_ix86_pe_secrel32
=yes
24289 echo "configure: failed program was" >&5
24292 rm -f conftest.o conftest.s
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24296 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24297 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24299 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24302 # Test if the assembler supports the extended form of the .section
24303 # directive that specifies section alignment. LTO support uses this,
24304 # but normally only after installation, so we warn but don't fail the
24305 # configure if LTO is enabled but the assembler does not support it.
24306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24307 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24308 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24309 $as_echo_n "(cached) " >&6
24311 gcc_cv_as_section_has_align
=no
24312 if test $in_tree_gas = yes; then
24313 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24314 then gcc_cv_as_section_has_align
=yes
24316 elif test x
$gcc_cv_as != x
; then
24317 $as_echo '.section lto_test,"dr0"' > conftest.s
24318 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24320 (eval $ac_try) 2>&5
24322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24323 test $ac_status = 0; }; }
24325 gcc_cv_as_section_has_align
=yes
24327 echo "configure: failed program was" >&5
24330 rm -f conftest.o conftest.s
24333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24334 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24336 if test x
$gcc_cv_as_section_has_align != xyes
; then
24337 case ",$enable_languages," in
24339 { $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
24340 $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;}
24344 # Test if the assembler supports the section flag 'e' for specifying
24345 # an excluded section.
24346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24347 $as_echo_n "checking assembler for .section with e... " >&6; }
24348 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24349 $as_echo_n "(cached) " >&6
24351 gcc_cv_as_section_has_e
=no
24352 if test $in_tree_gas = yes; then
24353 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24354 then gcc_cv_as_section_has_e
=yes
24356 elif test x
$gcc_cv_as != x
; then
24357 $as_echo '.section foo1,"e"
24358 .byte 0,0,0,0' > conftest.s
24359 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24361 (eval $ac_try) 2>&5
24363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24364 test $ac_status = 0; }; }
24366 gcc_cv_as_section_has_e
=yes
24368 echo "configure: failed program was" >&5
24371 rm -f conftest.o conftest.s
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24375 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24378 cat >>confdefs.h
<<_ACEOF
24379 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24386 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24387 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24388 $as_echo_n "(cached) " >&6
24390 gcc_cv_as_ix86_filds
=no
24391 if test x
$gcc_cv_as != x
; then
24392 $as_echo 'filds mem; fists mem' > conftest.s
24393 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24395 (eval $ac_try) 2>&5
24397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24398 test $ac_status = 0; }; }
24400 gcc_cv_as_ix86_filds
=yes
24402 echo "configure: failed program was" >&5
24405 rm -f conftest.o conftest.s
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24409 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24410 if test $gcc_cv_as_ix86_filds = yes; then
24412 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24417 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24418 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24419 $as_echo_n "(cached) " >&6
24421 gcc_cv_as_ix86_fildq
=no
24422 if test x
$gcc_cv_as != x
; then
24423 $as_echo 'fildq mem; fistpq mem' > conftest.s
24424 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24426 (eval $ac_try) 2>&5
24428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24429 test $ac_status = 0; }; }
24431 gcc_cv_as_ix86_fildq
=yes
24433 echo "configure: failed program was" >&5
24436 rm -f conftest.o conftest.s
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24440 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24441 if test $gcc_cv_as_ix86_fildq = yes; then
24443 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24448 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24449 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24450 $as_echo_n "(cached) " >&6
24452 gcc_cv_as_ix86_cmov_sun_syntax
=no
24453 if test x
$gcc_cv_as != x
; then
24454 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24455 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24457 (eval $ac_try) 2>&5
24459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24460 test $ac_status = 0; }; }
24462 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24464 echo "configure: failed program was" >&5
24467 rm -f conftest.o conftest.s
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24471 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24472 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24474 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24479 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24480 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24481 $as_echo_n "(cached) " >&6
24483 gcc_cv_as_ix86_ffreep
=no
24484 if test x
$gcc_cv_as != x
; then
24485 $as_echo 'ffreep %st(1)' > conftest.s
24486 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24488 (eval $ac_try) 2>&5
24490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24491 test $ac_status = 0; }; }
24493 gcc_cv_as_ix86_ffreep
=yes
24495 echo "configure: failed program was" >&5
24498 rm -f conftest.o conftest.s
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24502 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24503 if test $gcc_cv_as_ix86_ffreep = yes; then
24505 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24510 $as_echo_n "checking assembler for .quad directive... " >&6; }
24511 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24512 $as_echo_n "(cached) " >&6
24514 gcc_cv_as_ix86_quad
=no
24515 if test x
$gcc_cv_as != x
; then
24516 $as_echo '.quad 0' > conftest.s
24517 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24519 (eval $ac_try) 2>&5
24521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24522 test $ac_status = 0; }; }
24524 gcc_cv_as_ix86_quad
=yes
24526 echo "configure: failed program was" >&5
24529 rm -f conftest.o conftest.s
24532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24533 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24534 if test $gcc_cv_as_ix86_quad = yes; then
24536 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24541 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24542 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24543 $as_echo_n "(cached) " >&6
24545 gcc_cv_as_ix86_sahf
=no
24546 if test x
$gcc_cv_as != x
; then
24549 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24551 (eval $ac_try) 2>&5
24553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24554 test $ac_status = 0; }; }
24556 gcc_cv_as_ix86_sahf
=yes
24558 echo "configure: failed program was" >&5
24561 rm -f conftest.o conftest.s
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24565 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24566 if test $gcc_cv_as_ix86_sahf = yes; then
24568 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24573 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24574 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24575 $as_echo_n "(cached) " >&6
24577 gcc_cv_as_ix86_hle
=no
24578 if test x
$gcc_cv_as != x
; then
24579 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24580 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24582 (eval $ac_try) 2>&5
24584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24585 test $ac_status = 0; }; }
24587 gcc_cv_as_ix86_hle
=yes
24589 echo "configure: failed program was" >&5
24592 rm -f conftest.o conftest.s
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24596 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24597 if test $gcc_cv_as_ix86_hle = yes; then
24599 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24604 $as_echo_n "checking assembler for swap suffix... " >&6; }
24605 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24606 $as_echo_n "(cached) " >&6
24608 gcc_cv_as_ix86_swap
=no
24609 if test x
$gcc_cv_as != x
; then
24610 $as_echo 'movl.s %esp, %ebp' > conftest.s
24611 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24613 (eval $ac_try) 2>&5
24615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24616 test $ac_status = 0; }; }
24618 gcc_cv_as_ix86_swap
=yes
24620 echo "configure: failed program was" >&5
24623 rm -f conftest.o conftest.s
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24627 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24628 if test $gcc_cv_as_ix86_swap = yes; then
24630 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24635 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24636 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24637 $as_echo_n "(cached) " >&6
24639 gcc_cv_as_ix86_diff_sect_delta
=no
24640 if test x
$gcc_cv_as != x
; then
24641 $as_echo '.section .rodata
24647 .L2: nop' > conftest.s
24648 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24650 (eval $ac_try) 2>&5
24652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24653 test $ac_status = 0; }; }
24655 gcc_cv_as_ix86_diff_sect_delta
=yes
24657 echo "configure: failed program was" >&5
24660 rm -f conftest.o conftest.s
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24664 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24665 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24667 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24671 # These two are used unconditionally by i386.[ch]; it is to be defined
24672 # to 1 if the feature is present, 0 otherwise.
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24674 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24675 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24676 $as_echo_n "(cached) " >&6
24678 gcc_cv_as_ix86_gotoff_in_data
=no
24679 if test $in_tree_gas = yes; then
24680 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24681 then gcc_cv_as_ix86_gotoff_in_data
=yes
24683 elif test x
$gcc_cv_as != x
; then
24688 .long .L0@GOTOFF' > conftest.s
24689 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24691 (eval $ac_try) 2>&5
24693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24694 test $ac_status = 0; }; }
24696 gcc_cv_as_ix86_gotoff_in_data
=yes
24698 echo "configure: failed program was" >&5
24701 rm -f conftest.o conftest.s
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24705 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24708 cat >>confdefs.h
<<_ACEOF
24709 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24714 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24715 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24716 $as_echo_n "(cached) " >&6
24718 gcc_cv_as_ix86_rep_lock_prefix
=no
24719 if test x
$gcc_cv_as != x
; then
24720 $as_echo 'rep movsl
24725 lock addl %edi, (%eax,%esi)
24726 lock orl $0, (%esp)' > conftest.s
24727 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24729 (eval $ac_try) 2>&5
24731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24732 test $ac_status = 0; }; }
24734 gcc_cv_as_ix86_rep_lock_prefix
=yes
24736 echo "configure: failed program was" >&5
24739 rm -f conftest.o conftest.s
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24743 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24744 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24746 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24751 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24752 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24753 $as_echo_n "(cached) " >&6
24755 gcc_cv_as_ix86_tlsgdplt
=no
24756 if test x
$gcc_cv_as != x
; then
24757 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24758 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24760 (eval $ac_try) 2>&5
24762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24763 test $ac_status = 0; }; }
24765 if test x
$gcc_cv_ld != x \
24766 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24767 gcc_cv_as_ix86_tlsgdplt
=yes
24771 echo "configure: failed program was" >&5
24774 rm -f conftest.o conftest.s
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24778 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24779 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24781 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24786 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24787 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24788 $as_echo_n "(cached) " >&6
24790 gcc_cv_as_ix86_tlsldmplt
=no
24791 if test x
$gcc_cv_as != x
; then
24793 call tls_ld@tlsldmplt' > conftest.s
24794 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24796 (eval $ac_try) 2>&5
24798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24799 test $ac_status = 0; }; }
24801 if test x
$gcc_cv_ld != x \
24802 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24803 gcc_cv_as_ix86_tlsldmplt
=yes
24807 echo "configure: failed program was" >&5
24810 rm -f conftest.o conftest.s
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24814 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24815 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24817 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24825 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24826 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24827 $as_echo_n "(cached) " >&6
24829 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24830 if test $in_tree_gas = yes; then
24831 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24832 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24834 elif test x
$gcc_cv_as != x
; then
24836 addl r15 = @ltoffx(x#), gp
24838 ld8.mov r16 = [r15], x#' > conftest.s
24839 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24841 (eval $ac_try) 2>&5
24843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24844 test $ac_status = 0; }; }
24846 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24848 echo "configure: failed program was" >&5
24851 rm -f conftest.o conftest.s
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24855 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24856 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24858 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24866 *-*-aix*) conftest_s
=' .machine "pwr5"
24870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24871 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24872 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24873 $as_echo_n "(cached) " >&6
24875 gcc_cv_as_machine_directive
=no
24876 if test x
$gcc_cv_as != x
; then
24877 $as_echo ' .machine ppc7400' > conftest.s
24878 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24880 (eval $ac_try) 2>&5
24882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24883 test $ac_status = 0; }; }
24885 gcc_cv_as_machine_directive
=yes
24887 echo "configure: failed program was" >&5
24890 rm -f conftest.o conftest.s
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24894 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24896 if test x
$gcc_cv_as_machine_directive != xyes
; then
24897 echo "*** This target requires an assembler supporting \".machine\"" >&2
24898 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
24899 test x
$build = x
$target && exit 1
24903 *) conftest_s
=' .machine power4
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24909 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24910 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24911 $as_echo_n "(cached) " >&6
24913 gcc_cv_as_powerpc_mfcrf
=no
24914 if test $in_tree_gas = yes; then
24915 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24916 then gcc_cv_as_powerpc_mfcrf
=yes
24918 elif test x
$gcc_cv_as != x
; then
24919 $as_echo "$conftest_s" > conftest.s
24920 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24922 (eval $ac_try) 2>&5
24924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24925 test $ac_status = 0; }; }
24927 gcc_cv_as_powerpc_mfcrf
=yes
24929 echo "configure: failed program was" >&5
24932 rm -f conftest.o conftest.s
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24936 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24937 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24939 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24944 *-*-aix*) conftest_s
=' .machine "pwr5"
24947 *) conftest_s
=' .machine power5
24952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24953 $as_echo_n "checking assembler for popcntb support... " >&6; }
24954 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24955 $as_echo_n "(cached) " >&6
24957 gcc_cv_as_powerpc_popcntb
=no
24958 if test $in_tree_gas = yes; then
24959 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24960 then gcc_cv_as_powerpc_popcntb
=yes
24962 elif test x
$gcc_cv_as != x
; then
24963 $as_echo "$conftest_s" > conftest.s
24964 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24966 (eval $ac_try) 2>&5
24968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24969 test $ac_status = 0; }; }
24971 gcc_cv_as_powerpc_popcntb
=yes
24973 echo "configure: failed program was" >&5
24976 rm -f conftest.o conftest.s
24979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24980 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24981 if test $gcc_cv_as_powerpc_popcntb = yes; then
24983 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24988 *-*-aix*) conftest_s
=' .machine "pwr5x"
24991 *) conftest_s
=' .machine power5
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24997 $as_echo_n "checking assembler for fp round support... " >&6; }
24998 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24999 $as_echo_n "(cached) " >&6
25001 gcc_cv_as_powerpc_fprnd
=no
25002 if test $in_tree_gas = yes; then
25003 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25004 then gcc_cv_as_powerpc_fprnd
=yes
25006 elif test x
$gcc_cv_as != x
; then
25007 $as_echo "$conftest_s" > conftest.s
25008 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25010 (eval $ac_try) 2>&5
25012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25013 test $ac_status = 0; }; }
25015 gcc_cv_as_powerpc_fprnd
=yes
25017 echo "configure: failed program was" >&5
25020 rm -f conftest.o conftest.s
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25024 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25025 if test $gcc_cv_as_powerpc_fprnd = yes; then
25027 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25032 *-*-aix*) conftest_s
=' .machine "pwr6"
25035 *) conftest_s
=' .machine power6
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25041 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25042 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25043 $as_echo_n "(cached) " >&6
25045 gcc_cv_as_powerpc_mfpgpr
=no
25046 if test $in_tree_gas = yes; then
25047 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25048 then gcc_cv_as_powerpc_mfpgpr
=yes
25050 elif test x
$gcc_cv_as != x
; then
25051 $as_echo "$conftest_s" > conftest.s
25052 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25054 (eval $ac_try) 2>&5
25056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25057 test $ac_status = 0; }; }
25059 gcc_cv_as_powerpc_mfpgpr
=yes
25061 echo "configure: failed program was" >&5
25064 rm -f conftest.o conftest.s
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25068 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25069 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25071 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25076 *-*-aix*) conftest_s
=' .csect .text[PR]
25078 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25082 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25083 *) conftest_s
=' .text
25085 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25089 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25090 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25091 $as_echo_n "(cached) " >&6
25093 gcc_cv_as_powerpc_rel16
=no
25094 if test $in_tree_gas = yes; then
25095 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25096 then gcc_cv_as_powerpc_rel16
=yes
25098 elif test x
$gcc_cv_as != x
; then
25099 $as_echo "$conftest_s" > conftest.s
25100 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25102 (eval $ac_try) 2>&5
25104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25105 test $ac_status = 0; }; }
25107 gcc_cv_as_powerpc_rel16
=yes
25109 echo "configure: failed program was" >&5
25112 rm -f conftest.o conftest.s
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25116 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25117 if test $gcc_cv_as_powerpc_rel16 = yes; then
25119 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25124 *-*-aix*) conftest_s
=' .machine "pwr6"
25127 *) conftest_s
=' .machine power6
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25133 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25134 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25135 $as_echo_n "(cached) " >&6
25137 gcc_cv_as_powerpc_cmpb
=no
25138 if test $in_tree_gas = yes; then
25139 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25140 then gcc_cv_as_powerpc_cmpb
=yes
25142 elif test x
$gcc_cv_as != x
; then
25143 $as_echo "$conftest_s" > conftest.s
25144 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25146 (eval $ac_try) 2>&5
25148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25149 test $ac_status = 0; }; }
25151 gcc_cv_as_powerpc_cmpb
=yes
25153 echo "configure: failed program was" >&5
25156 rm -f conftest.o conftest.s
25159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25160 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25161 if test $gcc_cv_as_powerpc_cmpb = yes; then
25163 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25168 *-*-aix*) conftest_s
=' .machine "pwr6"
25171 *) conftest_s
=' .machine power6
25176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25177 $as_echo_n "checking assembler for decimal float support... " >&6; }
25178 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25179 $as_echo_n "(cached) " >&6
25181 gcc_cv_as_powerpc_dfp
=no
25182 if test $in_tree_gas = yes; then
25183 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25184 then gcc_cv_as_powerpc_dfp
=yes
25186 elif test x
$gcc_cv_as != x
; then
25187 $as_echo "$conftest_s" > conftest.s
25188 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25190 (eval $ac_try) 2>&5
25192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25193 test $ac_status = 0; }; }
25195 gcc_cv_as_powerpc_dfp
=yes
25197 echo "configure: failed program was" >&5
25200 rm -f conftest.o conftest.s
25203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25204 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25205 if test $gcc_cv_as_powerpc_dfp = yes; then
25207 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25212 *-*-aix*) conftest_s
=' .machine "pwr7"
25215 *) conftest_s
=' .machine power7
25220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25221 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25222 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25223 $as_echo_n "(cached) " >&6
25225 gcc_cv_as_powerpc_vsx
=no
25226 if test $in_tree_gas = yes; then
25227 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25228 then gcc_cv_as_powerpc_vsx
=yes
25230 elif test x
$gcc_cv_as != x
; then
25231 $as_echo "$conftest_s" > conftest.s
25232 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25234 (eval $ac_try) 2>&5
25236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25237 test $ac_status = 0; }; }
25239 gcc_cv_as_powerpc_vsx
=yes
25241 echo "configure: failed program was" >&5
25244 rm -f conftest.o conftest.s
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25248 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25249 if test $gcc_cv_as_powerpc_vsx = yes; then
25251 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25256 *-*-aix*) conftest_s
=' .machine "pwr7"
25259 *) conftest_s
=' .machine power7
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25265 $as_echo_n "checking assembler for popcntd support... " >&6; }
25266 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25267 $as_echo_n "(cached) " >&6
25269 gcc_cv_as_powerpc_popcntd
=no
25270 if test $in_tree_gas = yes; then
25271 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25272 then gcc_cv_as_powerpc_popcntd
=yes
25274 elif test x
$gcc_cv_as != x
; then
25275 $as_echo "$conftest_s" > conftest.s
25276 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25278 (eval $ac_try) 2>&5
25280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25281 test $ac_status = 0; }; }
25283 gcc_cv_as_powerpc_popcntd
=yes
25285 echo "configure: failed program was" >&5
25288 rm -f conftest.o conftest.s
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25292 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25293 if test $gcc_cv_as_powerpc_popcntd = yes; then
25295 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25300 *-*-aix*) conftest_s
=' .machine "pwr8"
25301 .csect .text[PR]';;
25302 *) conftest_s
=' .machine power8
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25307 $as_echo_n "checking assembler for power8 support... " >&6; }
25308 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25309 $as_echo_n "(cached) " >&6
25311 gcc_cv_as_powerpc_power8
=no
25312 if test $in_tree_gas = yes; then
25313 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25314 then gcc_cv_as_powerpc_power8
=yes
25316 elif test x
$gcc_cv_as != x
; then
25317 $as_echo "$conftest_s" > conftest.s
25318 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25320 (eval $ac_try) 2>&5
25322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25323 test $ac_status = 0; }; }
25325 gcc_cv_as_powerpc_power8
=yes
25327 echo "configure: failed program was" >&5
25330 rm -f conftest.o conftest.s
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25334 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25335 if test $gcc_cv_as_powerpc_power8 = yes; then
25337 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25342 *-*-aix*) conftest_s
=' .csect .text[PR]
25344 *) conftest_s
=' .text
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25349 $as_echo_n "checking assembler for lwsync support... " >&6; }
25350 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25351 $as_echo_n "(cached) " >&6
25353 gcc_cv_as_powerpc_lwsync
=no
25354 if test $in_tree_gas = yes; then
25355 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25356 then gcc_cv_as_powerpc_lwsync
=yes
25358 elif test x
$gcc_cv_as != x
; then
25359 $as_echo "$conftest_s" > conftest.s
25360 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25362 (eval $ac_try) 2>&5
25364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25365 test $ac_status = 0; }; }
25367 gcc_cv_as_powerpc_lwsync
=yes
25369 echo "configure: failed program was" >&5
25372 rm -f conftest.o conftest.s
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25376 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25377 if test $gcc_cv_as_powerpc_lwsync = yes; then
25379 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25384 *-*-aix*) conftest_s
=' .machine "476"
25387 *) conftest_s
=' .machine "476"
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25393 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25394 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25395 $as_echo_n "(cached) " >&6
25397 gcc_cv_as_powerpc_dci
=no
25398 if test $in_tree_gas = yes; then
25399 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25400 then gcc_cv_as_powerpc_dci
=yes
25402 elif test x
$gcc_cv_as != x
; then
25403 $as_echo "$conftest_s" > conftest.s
25404 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25406 (eval $ac_try) 2>&5
25408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25409 test $ac_status = 0; }; }
25411 gcc_cv_as_powerpc_dci
=yes
25413 echo "configure: failed program was" >&5
25416 rm -f conftest.o conftest.s
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25420 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25421 if test $gcc_cv_as_powerpc_dci = yes; then
25423 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25428 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25429 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25430 $as_echo_n "(cached) " >&6
25432 gcc_cv_as_powerpc_gnu_attribute
=no
25433 if test $in_tree_gas = yes; then
25434 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25435 then gcc_cv_as_powerpc_gnu_attribute
=yes
25437 elif test x
$gcc_cv_as != x
; then
25438 $as_echo '.gnu_attribute 4,1' > conftest.s
25439 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25441 (eval $ac_try) 2>&5
25443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25444 test $ac_status = 0; }; }
25446 gcc_cv_as_powerpc_gnu_attribute
=yes
25448 echo "configure: failed program was" >&5
25451 rm -f conftest.o conftest.s
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25455 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25456 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25458 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25463 $as_echo_n "checking assembler for tls marker support... " >&6; }
25464 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25465 $as_echo_n "(cached) " >&6
25467 gcc_cv_as_powerpc_tls_markers
=no
25468 if test $in_tree_gas = yes; then
25469 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25470 then gcc_cv_as_powerpc_tls_markers
=yes
25472 elif test x
$gcc_cv_as != x
; then
25473 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25474 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25476 (eval $ac_try) 2>&5
25478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25479 test $ac_status = 0; }; }
25481 gcc_cv_as_powerpc_tls_markers
=yes
25483 echo "configure: failed program was" >&5
25486 rm -f conftest.o conftest.s
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25490 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25491 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25493 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25500 $as_echo_n "checking assembler for .ref support... " >&6; }
25501 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25502 $as_echo_n "(cached) " >&6
25504 gcc_cv_as_aix_ref
=no
25505 if test $in_tree_gas = yes; then
25506 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25507 then gcc_cv_as_aix_ref
=yes
25509 elif test x
$gcc_cv_as != x
; then
25510 $as_echo ' .csect stuff[rw]
25516 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25518 (eval $ac_try) 2>&5
25520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25521 test $ac_status = 0; }; }
25523 gcc_cv_as_aix_ref
=yes
25525 echo "configure: failed program was" >&5
25528 rm -f conftest.o conftest.s
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25532 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25533 if test $gcc_cv_as_aix_ref = yes; then
25535 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25544 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25545 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25546 $as_echo_n "(cached) " >&6
25548 gcc_cv_as_mips_explicit_relocs
=no
25549 if test $in_tree_gas = yes; then
25550 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25551 then gcc_cv_as_mips_explicit_relocs
=yes
25553 elif test x
$gcc_cv_as != x
; then
25554 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25555 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25557 (eval $ac_try) 2>&5
25559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25560 test $ac_status = 0; }; }
25562 gcc_cv_as_mips_explicit_relocs
=yes
25564 echo "configure: failed program was" >&5
25567 rm -f conftest.o conftest.s
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25571 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25572 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25573 if test x
$target_cpu_default = x
25574 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25575 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25579 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25580 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25581 $as_echo_n "(cached) " >&6
25583 gcc_cv_as_mips_no_shared
=no
25584 if test $in_tree_gas = yes; then
25585 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25586 then gcc_cv_as_mips_no_shared
=yes
25588 elif test x
$gcc_cv_as != x
; then
25589 $as_echo 'nop' > conftest.s
25590 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25592 (eval $ac_try) 2>&5
25594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25595 test $ac_status = 0; }; }
25597 gcc_cv_as_mips_no_shared
=yes
25599 echo "configure: failed program was" >&5
25602 rm -f conftest.o conftest.s
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25606 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25607 if test $gcc_cv_as_mips_no_shared = yes; then
25609 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25614 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25615 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25616 $as_echo_n "(cached) " >&6
25618 gcc_cv_as_mips_gnu_attribute
=no
25619 if test $in_tree_gas = yes; then
25620 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25621 then gcc_cv_as_mips_gnu_attribute
=yes
25623 elif test x
$gcc_cv_as != x
; then
25624 $as_echo '.gnu_attribute 4,1' > conftest.s
25625 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25627 (eval $ac_try) 2>&5
25629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25630 test $ac_status = 0; }; }
25632 gcc_cv_as_mips_gnu_attribute
=yes
25634 echo "configure: failed program was" >&5
25637 rm -f conftest.o conftest.s
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25641 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25642 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25644 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25649 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25650 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25651 $as_echo_n "(cached) " >&6
25653 gcc_cv_as_mips_dtprelword
=no
25654 if test $in_tree_gas = yes; then
25655 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25656 then gcc_cv_as_mips_dtprelword
=yes
25658 elif test x
$gcc_cv_as != x
; then
25659 $as_echo '.section .tdata,"awT",@progbits
25663 .dtprelword x+0x8000' > conftest.s
25664 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25666 (eval $ac_try) 2>&5
25668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25669 test $ac_status = 0; }; }
25671 gcc_cv_as_mips_dtprelword
=yes
25673 echo "configure: failed program was" >&5
25676 rm -f conftest.o conftest.s
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25680 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25681 if test $gcc_cv_as_mips_dtprelword = yes; then
25683 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25688 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25689 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25690 $as_echo_n "(cached) " >&6
25692 gcc_cv_as_mips_dspr1_mult
=no
25693 if test x
$gcc_cv_as != x
; then
25694 $as_echo ' .set mips32r2
25702 multu $ac3,$4,$5' > conftest.s
25703 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25705 (eval $ac_try) 2>&5
25707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25708 test $ac_status = 0; }; }
25710 gcc_cv_as_mips_dspr1_mult
=yes
25712 echo "configure: failed program was" >&5
25715 rm -f conftest.o conftest.s
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25719 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25720 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25722 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25727 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25728 gcc_cv_as_ld_jalr_reloc
=no
25729 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25730 if test $in_tree_ld = yes ; then
25731 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 \
25732 && test $in_tree_ld_is_elf = yes; then
25733 gcc_cv_as_ld_jalr_reloc
=yes
25735 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25736 echo ' .ent x' > conftest.s
25737 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25738 echo ' ld $25,%call16(y)($28)' >> conftest.s
25739 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25740 echo '1: jalr $25' >> conftest.s
25741 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25742 echo '1: jalr $25' >> conftest.s
25743 echo ' .end x' >> conftest.s
25744 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25745 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25746 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25747 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25748 gcc_cv_as_ld_jalr_reloc
=yes
25754 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25755 if test x
$target_cpu_default = x
; then
25756 target_cpu_default
=MASK_RELAX_PIC_CALLS
25758 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25762 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25765 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25766 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25767 $as_echo_n "(cached) " >&6
25769 gcc_cv_ld_mips_personality_relaxation
=no
25770 if test $in_tree_ld = yes ; then
25771 if test "$gcc_cv_gld_major_version" -eq 2 \
25772 -a "$gcc_cv_gld_minor_version" -ge 21 \
25773 -o "$gcc_cv_gld_major_version" -gt 2; then
25774 gcc_cv_ld_mips_personality_relaxation
=yes
25776 elif test x
$gcc_cv_as != x \
25777 -a x
$gcc_cv_ld != x \
25778 -a x
$gcc_cv_readelf != x
; then
25779 cat > conftest.s
<<EOF
25781 .cfi_personality 0x80,indirect_ptr
25788 .section .data,"aw",@progbits
25792 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25793 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25794 if $gcc_cv_readelf -d conftest
2>&1 \
25795 |
grep TEXTREL
> /dev
/null
2>&1; then
25797 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25798 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25801 gcc_cv_ld_mips_personality_relaxation
=yes
25805 rm -f conftest.s conftest.o conftest
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25808 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25809 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25811 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25817 # Mips and HP-UX need the GNU assembler.
25818 # Linux on IA64 might be able to use the Intel assembler.
25821 mips
*-*-* |
*-*-hpux* )
25822 if test x
$gas_flag = xyes \
25823 ||
test x
"$host" != x
"$build" \
25824 ||
test ! -x "$gcc_cv_as" \
25825 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25828 echo "*** This configuration requires the GNU assembler" >&2
25834 # ??? Not all targets support dwarf2 debug_line, even within a version
25835 # of gas. Moreover, we need to emit a valid instruction to trigger any
25836 # info to the output file. So, as supported targets are added to gas 2.11,
25837 # add some instruction here to (also) show we expect this might work.
25838 # ??? Once 2.11 is released, probably need to add first known working
25839 # version to the per-target configury.
25840 case "$cpu_type" in
25841 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25842 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa
)
25852 if test x
"$insn" != x
; then
25854 .file 1 \"conftest.s\"
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25858 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25859 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25860 $as_echo_n "(cached) " >&6
25862 gcc_cv_as_dwarf2_debug_line
=no
25863 if test $in_tree_gas = yes; then
25864 if test $in_tree_gas_is_elf = yes \
25865 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25866 then gcc_cv_as_dwarf2_debug_line
=yes
25868 elif test x
$gcc_cv_as != x
; then
25869 $as_echo "$conftest_s" > conftest.s
25870 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25872 (eval $ac_try) 2>&5
25874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25875 test $ac_status = 0; }; }
25877 if test x
$gcc_cv_objdump != x \
25878 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
25879 |
grep debug_line
> /dev
/null
2>&1; then
25880 gcc_cv_as_dwarf2_debug_line
=yes
25883 echo "configure: failed program was" >&5
25886 rm -f conftest.o conftest.s
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25890 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25893 # The .debug_line file table must be in the exact order that
25894 # we specified the files, since these indices are also used
25895 # by DW_AT_decl_file. Approximate this test by testing if
25896 # the assembler bitches if the same index is assigned twice.
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25898 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25899 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25900 $as_echo_n "(cached) " >&6
25902 gcc_cv_as_dwarf2_file_buggy
=no
25903 if test x
$gcc_cv_as != x
; then
25904 $as_echo ' .file 1 "foo.s"
25905 .file 1 "bar.s"' > conftest.s
25906 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25908 (eval $ac_try) 2>&5
25910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25911 test $ac_status = 0; }; }
25913 gcc_cv_as_dwarf2_file_buggy
=yes
25915 echo "configure: failed program was" >&5
25918 rm -f conftest.o conftest.s
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25922 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25925 if test $gcc_cv_as_dwarf2_debug_line = yes \
25926 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
25928 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25933 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25934 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25935 $as_echo_n "(cached) " >&6
25937 gcc_cv_as_gdwarf2_flag
=no
25938 if test $in_tree_gas = yes; then
25939 if test $in_tree_gas_is_elf = yes \
25940 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25941 then gcc_cv_as_gdwarf2_flag
=yes
25943 elif test x
$gcc_cv_as != x
; then
25944 $as_echo "$insn" > conftest.s
25945 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25947 (eval $ac_try) 2>&5
25949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25950 test $ac_status = 0; }; }
25952 gcc_cv_as_gdwarf2_flag
=yes
25954 echo "configure: failed program was" >&5
25957 rm -f conftest.o conftest.s
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25961 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25962 if test $gcc_cv_as_gdwarf2_flag = yes; then
25964 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25969 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25970 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25971 $as_echo_n "(cached) " >&6
25973 gcc_cv_as_gstabs_flag
=no
25974 if test $in_tree_gas = yes; then
25975 if test $in_tree_gas_is_elf = yes \
25976 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25977 then gcc_cv_as_gstabs_flag
=yes
25979 elif test x
$gcc_cv_as != x
; then
25980 $as_echo "$insn" > conftest.s
25981 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25983 (eval $ac_try) 2>&5
25985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25986 test $ac_status = 0; }; }
25988 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25989 # and warns about it, but still exits successfully. So check for
25991 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25993 (eval $ac_try) 2>&5
25995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25996 test $ac_status = 0; }; }
25998 else gcc_cv_as_gstabs_flag
=yes
26001 echo "configure: failed program was" >&5
26004 rm -f conftest.o conftest.s
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26008 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26009 if test $gcc_cv_as_gstabs_flag = yes; then
26011 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26016 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26017 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26018 $as_echo_n "(cached) " >&6
26020 gcc_cv_as_debug_prefix_map_flag
=no
26021 if test $in_tree_gas = yes; then
26022 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26023 then gcc_cv_as_debug_prefix_map_flag
=yes
26025 elif test x
$gcc_cv_as != x
; then
26026 $as_echo "$insn" > conftest.s
26027 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26029 (eval $ac_try) 2>&5
26031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26032 test $ac_status = 0; }; }
26034 gcc_cv_as_debug_prefix_map_flag
=yes
26036 echo "configure: failed program was" >&5
26039 rm -f conftest.o conftest.s
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26043 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26044 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26046 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26052 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26053 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26054 $as_echo_n "(cached) " >&6
26056 gcc_cv_as_lcomm_with_alignment
=no
26057 if test x
$gcc_cv_as != x
; then
26058 $as_echo '.lcomm bar,4,16' > conftest.s
26059 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26061 (eval $ac_try) 2>&5
26063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26064 test $ac_status = 0; }; }
26066 gcc_cv_as_lcomm_with_alignment
=yes
26068 echo "configure: failed program was" >&5
26071 rm -f conftest.o conftest.s
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26075 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26076 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26078 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26082 # Check whether --enable-gnu-unique-object was given.
26083 if test "${enable_gnu_unique_object+set}" = set; then :
26084 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26086 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26087 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26091 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26092 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26093 $as_echo_n "(cached) " >&6
26095 gcc_cv_as_gnu_unique_object
=no
26096 if test $in_tree_gas = yes; then
26097 if test $in_tree_gas_is_elf = yes \
26098 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26099 then gcc_cv_as_gnu_unique_object
=yes
26101 elif test x
$gcc_cv_as != x
; then
26102 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26103 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26105 (eval $ac_try) 2>&5
26107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26108 test $ac_status = 0; }; }
26110 gcc_cv_as_gnu_unique_object
=yes
26112 echo "configure: failed program was" >&5
26115 rm -f conftest.o conftest.s
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26119 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26120 if test $gcc_cv_as_gnu_unique_object = yes; then
26121 # We need to unquote above to to use the definition from config.gcc.
26122 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26123 if test x
$host = x
$build -a x
$host = x
$target &&
26124 ldd
--version 2>/dev
/null
&&
26125 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26126 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26127 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26128 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26129 if test "$glibcnum" -ge 2011 ; then
26130 enable_gnu_unique_object
=yes
26136 if test x
$enable_gnu_unique_object = xyes
; then
26138 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26143 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26144 if test "${gcc_cv_as_line_zero+set}" = set; then :
26145 $as_echo_n "(cached) " >&6
26147 gcc_cv_as_line_zero
=no
26148 if test $in_tree_gas = yes; then
26149 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26150 then gcc_cv_as_line_zero
=yes
26152 elif test "x$gcc_cv_as" != x
; then
26153 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26154 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26156 (eval $ac_try) 2>&5
26158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26159 test $ac_status = 0; }; } &&
26160 test "x`cat conftest.out`" = x
26162 gcc_cv_as_line_zero
=yes
26164 echo "configure: failed program was" >&5
26166 echo "configure: error output was" >&5
26167 cat conftest.out
>&5
26169 rm -f conftest.o conftest.s conftest.out
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26173 $as_echo "$gcc_cv_as_line_zero" >&6; }
26174 if test "x$gcc_cv_as_line_zero" = xyes
; then
26176 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26181 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26182 gcc_cv_ld_eh_frame_hdr
=no
26183 if test $in_tree_ld = yes ; then
26184 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 \
26185 && test $in_tree_ld_is_elf = yes; then
26186 gcc_cv_ld_eh_frame_hdr
=yes
26188 elif test x
$gcc_cv_ld != x
; then
26189 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26190 # Check if linker supports --eh-frame-hdr option
26191 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26192 gcc_cv_ld_eh_frame_hdr
=yes
26197 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26198 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26199 gcc_cv_ld_eh_frame_hdr
=yes
26206 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26208 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26212 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26215 $as_echo_n "checking linker position independent executable support... " >&6; }
26217 if test $in_tree_ld = yes ; then
26218 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 \
26219 && test $in_tree_ld_is_elf = yes; then
26222 elif test x
$gcc_cv_ld != x
; then
26223 # Check if linker supports -pie option
26224 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26228 if test x
"$gcc_cv_ld_pie" = xyes
; then
26230 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26234 $as_echo "$gcc_cv_ld_pie" >&6; }
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26237 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26238 gcc_cv_ld_eh_gc_sections
=no
26239 if test $in_tree_ld = yes ; then
26240 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 \
26241 && test $in_tree_ld_is_elf = yes; then
26242 gcc_cv_ld_eh_gc_sections
=yes
26244 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26245 cat > conftest.s
<<EOF
26248 .type _start, @function
26251 .size _start, .-_start
26252 .section .text.foo,"ax",@progbits
26253 .type foo, @function
26257 .section .gcc_except_table.foo,"a",@progbits
26260 .section .eh_frame,"a",@progbits
26263 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26264 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26265 |
grep "gc-sections option ignored" > /dev
/null
; then
26266 gcc_cv_ld_eh_gc_sections
=no
26267 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26268 |
grep gcc_except_table
> /dev
/null
; then
26269 gcc_cv_ld_eh_gc_sections
=yes
26270 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26271 if test x
$gcc_cv_as_comdat_group != xyes
; then
26272 gcc_cv_ld_eh_gc_sections
=no
26273 cat > conftest.s
<<EOF
26276 .type _start, @function
26279 .size _start, .-_start
26280 .section .gnu.linkonce.t.foo,"ax",@progbits
26281 .type foo, @function
26285 .section .gcc_except_table.foo,"a",@progbits
26288 .section .eh_frame,"a",@progbits
26291 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26292 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26293 |
grep "gc-sections option ignored" > /dev
/null
; then
26294 gcc_cv_ld_eh_gc_sections
=no
26295 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26296 |
grep gcc_except_table
> /dev
/null
; then
26297 gcc_cv_ld_eh_gc_sections
=yes
26303 rm -f conftest.s conftest.o conftest
26307 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26308 gcc_cv_ld_eh_gc_sections
=no
26311 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26313 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26317 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26320 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26321 gcc_cv_ld_eh_gc_sections_bug
=no
26322 if test $in_tree_ld = yes ; then
26323 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 \
26324 && test $in_tree_ld_is_elf = yes; then
26325 gcc_cv_ld_eh_gc_sections_bug
=yes
26327 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
26328 gcc_cv_ld_eh_gc_sections_bug
=yes
26329 cat > conftest.s
<<EOF
26332 .type _start, @function
26335 .size _start, .-_start
26336 .section .text.startup.foo,"ax",@progbits
26337 .type foo, @function
26341 .section .gcc_except_table.foo,"a",@progbits
26344 .section .eh_frame,"a",@progbits
26347 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26348 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26349 |
grep "gc-sections option ignored" > /dev
/null
; then
26351 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26352 |
grep gcc_except_table
> /dev
/null
; then
26353 gcc_cv_ld_eh_gc_sections_bug
=no
26356 rm -f conftest.s conftest.o conftest
26358 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26360 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26364 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26371 $as_echo_n "checking linker --as-needed support... " >&6; }
26372 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26373 $as_echo_n "(cached) " >&6
26375 gcc_cv_ld_as_needed
=no
26376 if test $in_tree_ld = yes ; then
26377 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 \
26378 && test $in_tree_ld_is_elf = yes; then
26379 gcc_cv_ld_as_needed
=yes
26381 elif test x
$gcc_cv_ld != x
; then
26382 # Check if linker supports --as-needed and --no-as-needed options
26383 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26384 gcc_cv_ld_as_needed
=yes
26389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26390 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26391 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26393 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26397 case "$target:$tm_file" in
26398 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26401 emul_name
="-melf64ppc"
26404 emul_name
="-melf64ppc_fbsd"
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26408 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26409 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26410 $as_echo_n "(cached) " >&6
26412 gcc_cv_ld_no_dot_syms
=no
26413 if test x
"$ld_is_gold" = xyes
; then
26414 gcc_cv_ld_no_dot_syms
=yes
26415 elif test $in_tree_ld = yes ; then
26416 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
26417 gcc_cv_ld_no_dot_syms
=yes
26419 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26420 cat > conftest1.s
<<EOF
26424 cat > conftest2.s
<<EOF
26425 .section ".opd","aw"
26428 .type foo,@function
26430 .quad .LEfoo,.TOC.@tocbase,0
26436 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26437 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26438 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26439 gcc_cv_ld_no_dot_syms
=yes
26441 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26446 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26447 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26449 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26454 $as_echo_n "checking linker large toc support... " >&6; }
26455 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26456 $as_echo_n "(cached) " >&6
26458 gcc_cv_ld_large_toc
=no
26459 if test x
"$ld_is_gold" = xyes
; then
26460 gcc_cv_ld_large_toc
=yes
26461 elif test $in_tree_ld = yes ; then
26462 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
26463 gcc_cv_ld_large_toc
=yes
26465 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26466 cat > conftest.s
<<EOF
26467 .section ".tbss","awT",@nobits
26473 addis 9,13,ie0@got@tprel@ha
26474 ld 9,ie0@got@tprel@l(9)
26476 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26477 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26478 gcc_cv_ld_large_toc
=yes
26480 rm -f conftest conftest.o conftest.s
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26485 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26486 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26488 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26497 $as_echo_n "checking linker large toc support... " >&6; }
26498 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26499 $as_echo_n "(cached) " >&6
26501 gcc_cv_ld_large_toc
=no
26502 if test x
$gcc_cv_as != x
; then
26503 cat > conftest.s
<<EOF
26513 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
26514 gcc_cv_ld_large_toc
=yes
26516 rm -f conftest conftest.o conftest.s
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26521 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26522 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26524 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26531 $as_echo_n "checking linker --build-id support... " >&6; }
26532 if test "${gcc_cv_ld_buildid+set}" = set; then :
26533 $as_echo_n "(cached) " >&6
26535 gcc_cv_ld_buildid
=no
26536 if test $in_tree_ld = yes ; then
26537 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26538 "$gcc_cv_gld_minor_version" -ge 18 -o \
26539 "$gcc_cv_gld_major_version" -gt 2 \
26540 && test $in_tree_ld_is_elf = yes; then
26541 gcc_cv_ld_buildid
=yes
26543 elif test x
$gcc_cv_ld != x
; then
26544 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26545 gcc_cv_ld_buildid
=yes
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26550 $as_echo "$gcc_cv_ld_buildid" >&6; }
26551 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26553 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26557 # Check whether --enable-linker-build-id was given.
26558 if test "${enable_linker_build_id+set}" = set; then :
26559 enableval
=$enable_linker_build_id;
26561 enable_linker_build_id
=no
26565 if test x
"$enable_linker_build_id" = xyes
; then
26566 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26568 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26572 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26576 # In binutils 2.21, GNU ld gained support for new emulations fully
26577 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26579 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26580 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26581 $as_echo_n "(cached) " >&6
26583 gcc_cv_ld_sol2_emulation
=no
26584 if test $in_tree_ld = yes ; then
26585 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26586 "$gcc_cv_gld_minor_version" -ge 21 -o \
26587 "$gcc_cv_gld_major_version" -gt 2 \
26588 && test $in_tree_ld_is_elf = yes; then
26589 gcc_cv_ld_sol2_emulation
=yes
26591 elif test x
$gcc_cv_ld != x
; then
26592 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26593 grep _sol2
> /dev
/null
; then
26594 gcc_cv_ld_sol2_emulation
=yes
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26599 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26600 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26602 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26607 $as_echo_n "checking linker --sysroot support... " >&6; }
26608 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26609 $as_echo_n "(cached) " >&6
26611 gcc_cv_ld_sysroot
=no
26612 if test $in_tree_ld = yes ; then
26613 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
26614 gcc_cv_ld_sysroot
=yes
26616 elif test x
$gcc_cv_ld != x
; then
26617 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26618 gcc_cv_ld_sysroot
=yes
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26623 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26624 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26626 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26630 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26631 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26632 && test "$prefix" != "NONE"; then
26634 cat >>confdefs.h
<<_ACEOF
26635 #define PREFIX_INCLUDE_DIR "$prefix/include"
26640 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26641 if test "x$with_headers" != x
; then
26642 target_header_dir
=$with_headers
26643 elif test "x$with_sysroot" = x
; then
26644 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
26645 elif test "x$with_build_sysroot" != "x"; then
26646 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26647 elif test "x$with_sysroot" = xyes
; then
26648 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26650 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26653 target_header_dir
=${native_system_header_dir}
26656 # Test for stack protector support in target C library.
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26658 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26659 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26660 $as_echo_n "(cached) " >&6
26662 gcc_cv_libc_provides_ssp
=no
26664 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26665 # glibc 2.4 and later provides __stack_chk_fail and
26666 # either __stack_chk_guard, or TLS access to stack guard canary.
26667 if test -f $target_header_dir/features.h \
26668 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26669 $target_header_dir/features.h
> /dev
/null
; then
26670 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26671 $target_header_dir/features.h
> /dev
/null
; then
26672 gcc_cv_libc_provides_ssp
=yes
26673 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26674 $target_header_dir/features.h
> /dev
/null \
26675 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26676 $target_header_dir/features.h
> /dev
/null
; then
26677 gcc_cv_libc_provides_ssp
=yes
26678 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26679 $target_header_dir/features.h
> /dev
/null
&& \
26680 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26681 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26682 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26683 gcc_cv_libc_provides_ssp
=yes
26685 # all versions of Bionic support stack protector
26686 elif test -f $target_header_dir/sys
/cdefs.h \
26687 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26688 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
26689 gcc_cv_libc_provides_ssp
=yes
26693 # Avoid complicated tests (see
26694 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26695 # simply assert that glibc does provide this, which is true for all
26696 # realistically usable GNU/Hurd configurations.
26697 gcc_cv_libc_provides_ssp
=yes;;
26698 *-*-darwin* |
*-*-freebsd*)
26699 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26700 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26701 gcc_cv_libc_provides_ssp
=yes
26703 echo "no __stack_chk_fail on this target"
26707 *) gcc_cv_libc_provides_ssp
=no
;;
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26711 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26713 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26715 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26719 # Test for <sys/sdt.h> on the target.
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26722 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26724 if test -f $target_header_dir/sys
/sdt.h
; then
26727 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26731 $as_echo "$have_sys_sdt_h" >&6; }
26733 # Check if TFmode long double should be used by default or not.
26734 # Some glibc targets used DFmode long double, but with glibc 2.4
26735 # and later they can use TFmode.
26737 powerpc
*-*-linux* | \
26738 sparc
*-*-linux* | \
26742 # Check whether --with-long-double-128 was given.
26743 if test "${with_long_double_128+set}" = set; then :
26744 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26746 gcc_cv_target_ldbl128
=no
26747 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26748 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26749 && gcc_cv_target_ldbl128
=yes
26755 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26757 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26762 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26763 gcc_cv_target_dl_iterate_phdr
=unknown
26765 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26766 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26767 # libdl there, both complicating its use and breaking compatibility
26768 # between Solaris 10 updates.
26769 *-*-solaris2.1
[1-9]*)
26770 # <link.h> needs both a dl_iterate_phdr declaration and support for
26771 # compilation with largefile support.
26772 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26773 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26774 gcc_cv_target_dl_iterate_phdr
=yes
26776 gcc_cv_target_dl_iterate_phdr
=no
26781 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26783 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26787 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26789 # Find out what GC implementation we want, or may, use.
26791 # Check whether --with-gc was given.
26792 if test "${with_gc+set}" = set; then :
26793 withval
=$with_gc; case "$withval" in
26800 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26804 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
26812 echo "Using $GGC for garbage collection."
26814 # Libraries to use on the host. This will normally be set by the top
26815 # level Makefile. Here we simply capture the value for our Makefile.
26816 if test -z "${HOST_LIBS+set}"; then
26821 # Use the system's zlib library.
26823 zlibinc
="-I\$(srcdir)/../zlib"
26825 # Check whether --with-system-zlib was given.
26826 if test "${with_system_zlib+set}" = set; then :
26827 withval
=$with_system_zlib; zlibdir
=
26836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26837 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26838 # Check whether --enable-maintainer-mode was given.
26839 if test "${enable_maintainer_mode+set}" = set; then :
26840 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26847 $as_echo "$maintainer_mode" >&6; }
26849 if test "$maintainer_mode" = "yes"; then
26859 # Make empty files to contain the specs and options for each language.
26860 # Then add #include lines to for a compiler that has specs and/or options.
26866 # These (without "all_") are set in each config-lang.in.
26867 # `language' must be a single word so is spelled singularly.
26870 all_outputs
='Makefile'
26871 # List of language makefile fragments.
26872 all_lang_makefrags
=
26873 # Additional files for gengtype
26874 all_gtfiles
="$target_gtfiles"
26876 # These are the languages that are set in --enable-languages,
26877 # and are available in the GCC tree.
26878 all_selected_languages
=
26880 # Add the language fragments.
26881 # Languages are added via two mechanisms. Some information must be
26882 # recorded in makefile variables, these are defined in config-lang.in.
26883 # We accumulate them and plug them into the main Makefile.
26884 # The other mechanism is a set of hooks for each of the main targets
26885 # like `clean', `install', etc.
26887 language_hooks
="Make-hooks"
26889 for lang
in ${srcdir}/*/config-lang.
in
26891 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26893 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26894 if test "x$lang_alias" = x
26896 echo "$lang doesn't set \$language." 1>&2
26899 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26900 subdirs
="$subdirs $subdir"
26902 # $gcc_subdir is where the gcc integration files are to be found
26903 # for a language, both for internal compiler purposes (compiler
26904 # sources implementing front-end to GCC tree converters), and for
26905 # build infrastructure purposes (Make-lang.in, etc.)
26907 # This will be <subdir> (relative to $srcdir) if a line like
26908 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26909 # is found in <langdir>/config-lang.in, and will remain <langdir>
26912 # Except for the language alias (fetched above), the regular
26913 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26914 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26915 # only this and the language alias.
26917 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26918 if [ "$gcc_subdir" = "" ]; then
26919 gcc_subdir
="$subdir"
26922 case ",$enable_languages," in
26924 all_selected_languages
="$all_selected_languages $lang_alias"
26925 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
26926 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26937 .
${srcdir}/$gcc_subdir/config-lang.
in
26938 if test "x$language" = x
26940 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26945 case ",$enable_languages," in
26946 *,$lang_alias,*) ;;
26948 for i
in $subdir_requires; do
26949 test -f "${srcdir}/$i/config-lang.in" && continue
26957 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26958 if test -f $srcdir/$gcc_subdir/lang.opt
; then
26959 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26960 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26962 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
26963 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26965 all_languages
="$all_languages $language"
26966 all_compilers
="$all_compilers $compilers"
26967 all_outputs
="$all_outputs $outputs"
26968 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
26969 case ",$enable_languages," in
26972 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26982 for language
in $all_selected_languages
26984 check_languages
="$check_languages check-$language"
26987 # We link each language in with a set of hooks, reached indirectly via
26988 # lang.${target}. Only do so for selected languages.
26992 target_list
="all.cross start.encap rest.encap tags \
26993 install-common install-man install-info install-pdf install-html dvi \
26994 pdf html uninstall info man srcextra srcman srcinfo \
26995 mostlyclean clean distclean maintainer-clean install-plugin"
26997 for t
in $target_list
27000 for lang
in $all_selected_languages
27004 echo "lang.$t: $x" >> Make-hooks
27008 # Option include files
27011 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27012 option_includes
="option-includes.mk"
27021 echo "dir ." > .gdbinit
27022 echo "dir ${srcdir}" >> .gdbinit
27023 if test x
$gdb_needs_out_file_path = xyes
27025 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27027 if test "x$subdirs" != x
; then
27030 echo "dir ${srcdir}/$s" >> .gdbinit
27033 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27035 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27039 # Find a directory in which to install a shared libgcc.
27041 # Check whether --enable-version-specific-runtime-libs was given.
27042 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27043 enableval
=$enable_version_specific_runtime_libs;
27047 # Substitute configuration variables
27111 if test x
${build} = x
${host} ; then
27112 if test x
${host} = x
${target} ; then
27113 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27115 echo "Links are now set up to build a cross-compiler" 1>&2
27116 echo " from ${host} to ${target}." 1>&2
27119 if test x
${host} = x
${target} ; then
27120 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27121 echo " for ${target}." 1>&2
27123 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27124 echo " from ${host} to ${target}." 1>&2
27136 if test "x${CLOOGLIBS}" != "x" ; then
27138 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27142 # Check for plugin support
27143 # Check whether --enable-plugin was given.
27144 if test "${enable_plugin+set}" = set; then :
27145 enableval
=$enable_plugin; enable_plugin
=$enableval
27147 enable_plugin
=yes; default_plugin
=yes
27155 if test x
$build = x
$host; then
27156 export_sym_check
="nm${exeext} -g"
27157 elif test x
$host = x
$target; then
27158 export_sym_check
="$gcc_cv_nm -g"
27164 if test x
$build = x
$host; then
27165 export_sym_check
="objdump${exeext} -T"
27166 elif test x
$host = x
$target; then
27167 export_sym_check
="$gcc_cv_objdump -T"
27174 if test x
"$enable_plugin" = x
"yes"; then
27176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27177 $as_echo_n "checking for exported symbols... " >&6; }
27178 if test "x$export_sym_check" != x
; then
27179 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27180 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27181 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27182 : # No need to use a flag
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27184 $as_echo "yes" >&6; }
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27187 $as_echo "yes" >&6; }
27188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27189 $as_echo_n "checking for -rdynamic... " >&6; }
27190 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27191 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27192 plugin_rdynamic
=yes
27193 pluginlibs
="-rdynamic"
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27199 $as_echo "$plugin_rdynamic" >&6; }
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27203 $as_echo "unable to check" >&6; }
27208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27209 $as_echo_n "checking for library containing dlopen... " >&6; }
27210 if test "${ac_cv_search_dlopen+set}" = set; then :
27211 $as_echo_n "(cached) " >&6
27213 ac_func_search_save_LIBS
=$LIBS
27214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27215 /* end confdefs.h. */
27217 /* Override any GCC internal prototype to avoid an error.
27218 Use char because int might match the return type of a GCC
27219 builtin and then its argument prototype would still apply. */
27232 for ac_lib
in '' dl
; do
27233 if test -z "$ac_lib"; then
27234 ac_res
="none required"
27237 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27239 if ac_fn_c_try_link
"$LINENO"; then :
27240 ac_cv_search_dlopen
=$ac_res
27242 rm -f core conftest.err conftest.
$ac_objext \
27244 if test "${ac_cv_search_dlopen+set}" = set; then :
27248 if test "${ac_cv_search_dlopen+set}" = set; then :
27251 ac_cv_search_dlopen
=no
27253 rm conftest.
$ac_ext
27254 LIBS
=$ac_func_search_save_LIBS
27256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27257 $as_echo "$ac_cv_search_dlopen" >&6; }
27258 ac_res
=$ac_cv_search_dlopen
27259 if test "$ac_res" != no
; then :
27260 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27264 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27265 pluginlibs
="$pluginlibs -ldl"
27269 # Check that we can build shared objects with -fPIC -shared
27270 saved_LDFLAGS
="$LDFLAGS"
27271 saved_CFLAGS
="$CFLAGS"
27274 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27275 CFLAGS
="$CFLAGS -fPIC"
27276 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27279 CFLAGS
="$CFLAGS -fPIC"
27280 LDFLAGS
="$LDFLAGS -fPIC -shared"
27283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27284 $as_echo_n "checking for -fPIC -shared... " >&6; }
27285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27286 /* end confdefs.h. */
27296 if ac_fn_c_try_link
"$LINENO"; then :
27297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27298 $as_echo "yes" >&6; }; have_pic_shared
=yes
27300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27301 $as_echo "no" >&6; }; have_pic_shared
=no
27303 rm -f core conftest.err conftest.
$ac_objext \
27304 conftest
$ac_exeext conftest.
$ac_ext
27305 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27309 LDFLAGS
="$saved_LDFLAGS"
27310 CFLAGS
="$saved_CFLAGS"
27312 # If plugin support had been requested but not available, fail.
27313 if test x
"$enable_plugin" = x
"no" ; then
27314 if test x
"$default_plugin" != x
"yes"; then
27316 Building GCC with plugin support requires a host that supports
27317 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27324 if test x
"$enable_plugin" = x
"yes"; then
27326 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27331 # Check whether --enable-libquadmath-support was given.
27332 if test "${enable_libquadmath_support+set}" = set; then :
27333 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27335 ENABLE_LIBQUADMATH_SUPPORT
=yes
27338 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27340 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27345 # Specify what hash style to use by default.
27347 # Check whether --with-linker-hash-style was given.
27348 if test "${with_linker_hash_style+set}" = set; then :
27349 withval
=$with_linker_hash_style; case x
"$withval" in
27351 LINKER_HASH_STYLE
=sysv
27354 LINKER_HASH_STYLE
=gnu
27357 LINKER_HASH_STYLE
=both
27360 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27364 LINKER_HASH_STYLE
=''
27367 if test x
"${LINKER_HASH_STYLE}" != x
; then
27369 cat >>confdefs.h
<<_ACEOF
27370 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27375 # Configure the subdirectories
27376 # AC_CONFIG_SUBDIRS($subdirs)
27378 # Create the Makefile
27379 # and configure language subdirectories
27380 ac_config_files
="$ac_config_files $all_outputs"
27383 ac_config_commands
="$ac_config_commands default"
27385 cat >confcache
<<\_ACEOF
27386 # This file is a shell script that caches the results of configure
27387 # tests run on this system so they can be shared between configure
27388 # scripts and configure runs, see configure's option --config-cache.
27389 # It is not useful on other systems. If it contains results you don't
27390 # want to keep, you may remove or edit it.
27392 # config.status only pays attention to the cache file if you give it
27393 # the --recheck option to rerun configure.
27395 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27396 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27397 # following values.
27401 # The following way of writing the cache mishandles newlines in values,
27402 # but we know of no workaround that is simple, portable, and efficient.
27403 # So, we kill variables containing newlines.
27404 # Ultrix sh set writes to stderr and can't be redirected directly,
27405 # and sets the high bit in the cache file unless we assign to the vars.
27407 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27408 eval ac_val
=\$
$ac_var
27412 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27413 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27416 _ | IFS | as_nl
) ;; #(
27417 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27418 *) { eval $ac_var=; unset $ac_var;} ;;
27424 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27425 *${as_nl}ac_space
=\
*)
27426 # `set' does not quote correctly, so add quotes: double-quote
27427 # substitution turns \\\\ into \\, and sed turns \\ into \.
27430 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27433 # `set' quotes correctly as required by POSIX, so do not add quotes.
27434 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27443 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27445 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27447 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27448 if test -w "$cache_file"; then
27449 test "x$cache_file" != "x/dev/null" &&
27450 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27451 $as_echo "$as_me: updating cache $cache_file" >&6;}
27452 cat confcache
>$cache_file
27454 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27455 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27460 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27461 # Let make expand exec_prefix.
27462 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27464 DEFS
=-DHAVE_CONFIG_H
27468 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27469 # 1. Remove the extension, and $U if already installed.
27470 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27471 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27472 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27473 # will be set to the directory where LIBOBJS objects are built.
27474 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27475 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27477 LIBOBJS
=$ac_libobjs
27479 LTLIBOBJS
=$ac_ltlibobjs
27484 : ${CONFIG_STATUS=./config.status}
27486 ac_clean_files_save
=$ac_clean_files
27487 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27489 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27491 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27493 # Generated by $as_me.
27494 # Run this file to recreate the current configuration.
27495 # Compiler output produced by configure, useful for debugging
27496 # configure, is in config.log if it exists.
27499 ac_cs_recheck=false
27502 SHELL=\${CONFIG_SHELL-$SHELL}
27505 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27506 ## -------------------- ##
27507 ## M4sh Initialization. ##
27508 ## -------------------- ##
27510 # Be more Bourne compatible
27511 DUALCASE
=1; export DUALCASE
# for MKS sh
27512 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27515 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27516 # is contrary to our usage. Disable this feature.
27517 alias -g '${1+"$@"}'='"$@"'
27518 setopt NO_GLOB_SUBST
27520 case `(set -o) 2>/dev/null` in #(
27532 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27533 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27534 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27535 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27536 # Prefer a ksh shell builtin over an external printf program on Solaris,
27537 # but without wasting forks for bash or zsh.
27538 if test -z "$BASH_VERSION$ZSH_VERSION" \
27539 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27540 as_echo='print
-r --'
27541 as_echo_n='print
-rn --'
27542 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27543 as_echo='printf %s
\n'
27544 as_echo_n='printf %s
'
27546 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27547 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27548 as_echo_n='/usr
/ucb
/echo -n'
27550 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27551 as_echo_n_body='eval
27555 expr "X$arg" : "X\\(.*\\)$as_nl";
27556 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27558 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27560 export as_echo_n_body
27561 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27563 export as_echo_body
27564 as_echo='sh
-c $as_echo_body as_echo
'
27567 # The user is always right.
27568 if test "${PATH_SEPARATOR+set}" != set; then
27570 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27571 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27578 # We need space, tab and new line, in precisely that order. Quoting is
27579 # there to prevent editors from complaining about space-tab.
27580 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27581 # splitting by setting IFS to empty value.)
27584 # Find who we are. Look in the path if we contain no directory separator.
27586 *[\\/]* ) as_myself=$0 ;;
27587 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27588 for as_dir in $PATH
27591 test -z "$as_dir" && as_dir=.
27592 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27598 # We did not find ourselves, most probably we were run as `sh COMMAND'
27599 # in which case we are not to be found in the path.
27600 if test "x$as_myself" = x
; then
27603 if test ! -f "$as_myself"; then
27604 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27608 # Unset variables that we do not need and which cause bugs (e.g. in
27609 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27610 # suppresses any "Segmentation fault" message there. '((' could
27611 # trigger a bug in pdksh 5.2.14.
27612 for as_var
in BASH_ENV ENV MAIL MAILPATH
27613 do eval test x\
${$as_var+set} = xset \
27614 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27627 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27630 # as_fn_error ERROR [LINENO LOG_FD]
27631 # ---------------------------------
27632 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27633 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27634 # script with status $?, using 1 if that was 0.
27637 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27639 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27640 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27642 $as_echo "$as_me: error: $1" >&2
27643 as_fn_exit
$as_status
27647 # as_fn_set_status STATUS
27648 # -----------------------
27649 # Set $? to STATUS, without forking.
27650 as_fn_set_status
()
27653 } # as_fn_set_status
27655 # as_fn_exit STATUS
27656 # -----------------
27657 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27661 as_fn_set_status
$1
27667 # Portably unset VAR.
27670 { eval $1=; unset $1;}
27672 as_unset
=as_fn_unset
27673 # as_fn_append VAR VALUE
27674 # ----------------------
27675 # Append the text in VALUE to the end of the definition contained in VAR. Take
27676 # advantage of any shell optimizations that allow amortized linear growth over
27677 # repeated appends, instead of the typical quadratic growth present in naive
27679 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27680 eval 'as_fn_append ()
27691 # as_fn_arith ARG...
27692 # ------------------
27693 # Perform arithmetic evaluation on the ARGs, and store the result in the
27694 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27695 # must be portable across $(()) and expr.
27696 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27697 eval 'as_fn_arith ()
27704 as_val
=`expr "$@" || test $? -eq 1`
27709 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27710 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27716 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27717 as_basename
=basename
27722 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27728 as_me
=`$as_basename -- "$0" ||
27729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27730 X"$0" : 'X\(//\)$' \| \
27731 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27733 sed '/^.*\/\([^/][^/]*\)\/*$/{
27747 # Avoid depending upon Character Ranges.
27748 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27749 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27750 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27751 as_cr_digits
='0123456789'
27752 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27754 ECHO_C
= ECHO_N
= ECHO_T
=
27755 case `echo -n x` in #(((((
27757 case `echo 'xy\c'` in
27758 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27760 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27767 rm -f conf$$ conf$$.exe conf$$.
file
27768 if test -d conf$$.dir
; then
27769 rm -f conf$$.dir
/conf$$.
file
27772 mkdir conf$$.dir
2>/dev
/null
27774 if (echo >conf$$.
file) 2>/dev
/null
; then
27775 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27777 # ... but there are two gotchas:
27778 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27779 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27780 # In both cases, we have to default to `cp -p'.
27781 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27783 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27791 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27792 rmdir conf$$.dir
2>/dev
/null
27797 # Create "$as_dir" as a directory, including parents if necessary.
27802 -*) as_dir
=.
/$as_dir;;
27804 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27808 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27809 *) as_qdir
=$as_dir;;
27811 as_dirs
="'$as_qdir' $as_dirs"
27812 as_dir
=`$as_dirname -- "$as_dir" ||
27813 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27814 X"$as_dir" : 'X\(//\)[^/]' \| \
27815 X"$as_dir" : 'X\(//\)$' \| \
27816 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27817 $as_echo X"$as_dir" |
27818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27822 /^X\(\/\/\)[^/].*/{
27835 test -d "$as_dir" && break
27837 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27838 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27842 if mkdir
-p .
2>/dev
/null
; then
27843 as_mkdir_p
='mkdir -p "$as_dir"'
27845 test -d .
/-p && rmdir .
/-p
27849 if test -x / >/dev
/null
2>&1; then
27850 as_test_x
='test -x'
27852 if ls -dL / >/dev
/null
2>&1; then
27859 if test -d "$1"; then
27865 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27866 ???[sx]*):;;*)false;;esac;fi
27870 as_executable_p
=$as_test_x
27872 # Sed expression to map a string onto a valid CPP name.
27873 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27875 # Sed expression to map a string onto a valid variable name.
27876 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27880 ## ----------------------------------- ##
27881 ## Main body of $CONFIG_STATUS script. ##
27882 ## ----------------------------------- ##
27884 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27887 # Save the log message, to keep $0 and so on meaningful, and to
27888 # report actual input values of CONFIG_FILES etc. instead of their
27889 # values after options handling.
27891 This file was extended by $as_me, which was
27892 generated by GNU Autoconf 2.64. Invocation command line was
27894 CONFIG_FILES = $CONFIG_FILES
27895 CONFIG_HEADERS = $CONFIG_HEADERS
27896 CONFIG_LINKS = $CONFIG_LINKS
27897 CONFIG_COMMANDS = $CONFIG_COMMANDS
27900 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27905 case $ac_config_files in *"
27906 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27909 case $ac_config_headers in *"
27910 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27915 # Files that config.status was made for.
27916 config_files="$ac_config_files"
27917 config_headers="$ac_config_headers"
27918 config_commands="$ac_config_commands"
27922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27924 \`$as_me' instantiates files and other configuration actions
27925 from templates according to the current configuration. Unless the files
27926 and actions are specified as TAGs, all are instantiated by default.
27928 Usage: $0 [OPTION]... [TAG]...
27930 -h, --help print this help, then exit
27931 -V, --version print version number and configuration settings, then exit
27932 -q, --quiet, --silent
27933 do not print progress messages
27934 -d, --debug don't remove temporary files
27935 --recheck update $as_me by reconfiguring in the same conditions
27936 --file=FILE[:TEMPLATE]
27937 instantiate the configuration file FILE
27938 --header=FILE[:TEMPLATE]
27939 instantiate the configuration header FILE
27941 Configuration files:
27944 Configuration headers:
27947 Configuration commands:
27950 Report bugs to the package provider."
27953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27956 configured by $0, generated by GNU Autoconf 2.64,
27957 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27959 Copyright (C) 2009 Free Software Foundation, Inc.
27960 This config.status script is free software; the Free Software Foundation
27961 gives unlimited permission to copy, distribute and modify it."
27966 test -n "\$AWK" || AWK=awk
27969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27970 # The default lists apply if the user does not specify any file.
27976 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27977 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27988 # Handling of the options.
27989 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27991 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27992 $as_echo "$ac_cs_version"; exit ;;
27993 --debug |
--debu |
--deb |
--de |
--d |
-d )
27995 --file |
--fil |
--fi |
--f )
27998 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28000 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28001 ac_need_defaults
=false
;;
28002 --header |
--heade |
--head |
--hea )
28005 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28007 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28008 ac_need_defaults
=false
;;
28010 # Conflict between --help and --header
28011 as_fn_error
"ambiguous option: \`$1'
28012 Try \`$0 --help' for more information.";;
28013 --help |
--hel |
-h )
28014 $as_echo "$ac_cs_usage"; exit ;;
28015 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28016 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28019 # This is an error.
28020 -*) as_fn_error
"unrecognized option: \`$1'
28021 Try \`$0 --help' for more information." ;;
28023 *) as_fn_append ac_config_targets
" $1"
28024 ac_need_defaults
=false
;;
28030 ac_configure_extra_args
=
28032 if $ac_cs_silent; then
28034 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28039 if \$ac_cs_recheck; then
28040 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28042 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28043 CONFIG_SHELL='$SHELL'
28044 export CONFIG_SHELL
28049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28053 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28054 ## Running $as_me. ##
28060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28070 # Handling of arguments.
28071 for ac_config_target
in $ac_config_targets
28073 case $ac_config_target in
28074 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28075 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28076 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28077 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28078 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28079 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28081 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28086 # If the user did not use the arguments to specify the items to instantiate,
28087 # then the envvar interface is used. Set only those that are not.
28088 # We use the long form for the default assignment because of an extremely
28089 # bizarre bug on SunOS 4.1.3.
28090 if $ac_need_defaults; then
28091 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28092 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28093 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28096 # Have a temporary directory for convenience. Make it in the build tree
28097 # simply because there is no reason against having it here, and in addition,
28098 # creating and moving files from /tmp can sometimes cause problems.
28099 # Hook for its removal unless debugging.
28100 # Note that there is a small window in which the directory will not be cleaned:
28101 # after its creation but before its name has been assigned to `$tmp'.
28105 trap 'exit_status=$?
28106 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28108 trap 'as_fn_exit 1' 1 2 13 15
28110 # Create a (secure) tmp directory for tmp files.
28113 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28114 test -n "$tmp" && test -d "$tmp"
28117 tmp
=.
/conf$$
-$RANDOM
28118 (umask 077 && mkdir
"$tmp")
28119 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28121 # Set up the scripts for CONFIG_FILES section.
28122 # No need to generate them if there are no CONFIG_FILES.
28123 # This happens for instance with `./config.status config.h'.
28124 if test -n "$CONFIG_FILES"; then
28126 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28127 ac_cs_awk_getline
=:
28128 ac_cs_awk_pipe_init
=
28129 ac_cs_awk_read_file
='
28130 while ((getline aline < (F[key])) > 0)
28133 ac_cs_awk_pipe_fini
=
28135 ac_cs_awk_getline
=false
28136 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28137 ac_cs_awk_read_file
='
28139 print "cat " F[key] " &&"
28140 '$ac_cs_awk_pipe_init
28141 # The final `:' finishes the AND list.
28142 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28144 ac_cr
=`echo X | tr X '\015'`
28145 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28146 # But we know of no other shell where ac_cr would be empty at this
28147 # point, so we can use a bashism as a fallback.
28148 if test "x$ac_cr" = x
; then
28149 eval ac_cr
=\$
\'\\r
\'
28151 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28152 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28155 ac_cs_awk_cr
=$ac_cr
28158 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28161 # Create commands to substitute file output variables.
28163 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28164 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28165 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28168 } >conf$
$files.sh
&&
28169 . .
/conf$
$files.sh ||
28170 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28171 rm -f conf$
$files.sh
28174 echo "cat >conf$$subs.awk <<_ACEOF" &&
28175 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28177 } >conf$$subs.sh ||
28178 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28179 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28181 for ac_last_try in false false false false false :; do
28182 . ./conf$$subs.sh ||
28183 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28185 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28186 if test $ac_delim_n = $ac_delim_num; then
28188 elif $ac_last_try; then
28189 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28191 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28194 rm -f conf$$subs.sh
28196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28197 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28201 s/^/S["/; s
/!.
*/"]=/
28211 s/\(.\{148\}\).*/\1/
28213 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28218 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28225 s/\(.\{148\}\).*/\1/
28227 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28231 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28236 ' <conf$$subs.awk | sed '
28241 ' >>$CONFIG_STATUS || ac_write_fail=1
28242 rm -f conf$$subs.awk
28243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28245 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28246 for (key in S) S_is_set[key] = 1
28248 \$ac_cs_awk_pipe_init
28252 nfields = split(line, field, "@
")
28254 len = length(field[1])
28255 for (i = 2; i < nfields; i++) {
28257 keylen = length(key)
28258 if (S_is_set[key]) {
28260 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28261 len += length(value) + length(field[++i])
28266 if (nfields == 3 && !substed) {
28268 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28269 \$ac_cs_awk_read_file
28275 \$ac_cs_awk_pipe_fini
28278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28279 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28280 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28283 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28284 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28287 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28288 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28289 # trailing colons and then remove the whole line if VPATH becomes empty
28290 # (actually we leave an empty line to preserve line numbers).
28291 if test "x
$srcdir" = x.; then
28292 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28293 s/:*\$(srcdir):*/:/
28294 s/:*\${srcdir}:*/:/
28296 s/^\([^=]*=[ ]*\):*/\1/
28302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28303 fi # test -n "$CONFIG_FILES"
28305 # Set up the scripts for CONFIG_HEADERS section.
28306 # No need to generate them if there are no CONFIG_HEADERS.
28307 # This happens for instance with `./config.status Makefile'.
28308 if test -n "$CONFIG_HEADERS"; then
28309 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28313 # Transform confdefs.h into an awk script `defines.awk', embedded as
28314 # here-document in config.status, that substitutes the proper values into
28315 # config.h.in to produce config.h.
28317 # Create a delimiter string that does not exist in confdefs.h, to ease
28318 # handling of long lines.
28320 for ac_last_try in false false :; do
28321 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28322 if test -z "$ac_t"; then
28324 elif $ac_last_try; then
28325 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28327 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28331 # For the awk script, D is an array of macro values keyed by name,
28332 # likewise P contains macro parameters if any. Preserve backslash
28333 # newline sequences.
28335 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28337 s/.\{148\}/&'"$ac_delim"'/g
28340 s/^[ ]*#[ ]*define[ ][ ]*/ /
28347 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28349 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28353 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28354 D["\
1"]=" \
3\\\\\\n
"\\/p
28356 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28361 s/.\{148\}/&'"$ac_delim"'/g
28366 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28369 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28371 ' <confdefs.h | sed '
28372 s/'"$ac_delim"'/"\\\
28373 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28376 for (key in D) D_is_set[key] = 1
28379 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28381 split(line, arg, " ")
28382 if (arg[1] == "#") {
28386 defundef
= substr
(arg
[1], 2)
28389 split(mac1
, mac2
, "(") #)
28391 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28392 if (D_is_set
[macro
]) {
28393 # Preserve the white space surrounding the "#".
28394 print prefix
"define", macro P
[macro
] D
[macro
]
28397 # Replace #undef with comments. This is necessary, for example,
28398 # in the case of _POSIX_SOURCE, which is predefined and required
28399 # on some systems where configure will not decide to define it.
28400 if (defundef
== "undef") {
28401 print
"/*", prefix defundef
, macro
, "*/"
28409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28410 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28411 fi # test -n "$CONFIG_HEADERS"
28414 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28419 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28421 case $ac_mode$ac_tag in
28423 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28424 :[FH
]-) ac_tag
=-:-;;
28425 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28442 -) ac_f
="$tmp/stdin";;
28443 *) # Look for the file first in the build tree, then in the source tree
28444 # (if the path is not absolute). The absolute path cannot be DOS-style,
28445 # because $ac_f cannot contain `:'.
28449 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28451 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28453 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28454 as_fn_append ac_file_inputs
" '$ac_f'"
28457 # Let's still pretend it is `configure' which instantiates (i.e., don't
28458 # use $as_me), people would be surprised to read:
28459 # /* config.h. Generated by config.status. */
28460 configure_input
='Generated from '`
28461 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28463 if test x
"$ac_file" != x-
; then
28464 configure_input
="$ac_file. $configure_input"
28465 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28466 $as_echo "$as_me: creating $ac_file" >&6;}
28468 # Neutralize special characters interpreted by sed in replacement strings.
28469 case $configure_input in #(
28470 *\
&* |
*\|
* |
*\\* )
28471 ac_sed_conf_input
=`$as_echo "$configure_input" |
28472 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28473 *) ac_sed_conf_input
=$configure_input;;
28477 *:-:* |
*:-) cat >"$tmp/stdin" \
28478 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28483 ac_dir
=`$as_dirname -- "$ac_file" ||
28484 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28485 X"$ac_file" : 'X\(//\)[^/]' \| \
28486 X"$ac_file" : 'X\(//\)$' \| \
28487 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28488 $as_echo X"$ac_file" |
28489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28493 /^X\(\/\/\)[^/].*/{
28506 as_dir
="$ac_dir"; as_fn_mkdir_p
28510 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28512 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28513 # A ".." for each directory in $ac_dir_suffix.
28514 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28515 case $ac_top_builddir_sub in
28516 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28517 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28520 ac_abs_top_builddir
=$ac_pwd
28521 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28522 # for backward compatibility:
28523 ac_top_builddir
=$ac_top_build_prefix
28526 .
) # We are building in place.
28528 ac_top_srcdir
=$ac_top_builddir_sub
28529 ac_abs_top_srcdir
=$ac_pwd ;;
28530 [\\/]* | ?
:[\\/]* ) # Absolute name.
28531 ac_srcdir
=$srcdir$ac_dir_suffix;
28532 ac_top_srcdir
=$srcdir
28533 ac_abs_top_srcdir
=$srcdir ;;
28534 *) # Relative name.
28535 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28536 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28537 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28539 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28551 # If the template does not know about datarootdir, expand it.
28552 # FIXME: This hack should be removed a few years after 2.60.
28553 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28564 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28565 *datarootdir
*) ac_datarootdir_seen
=yes;;
28566 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28568 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28571 ac_datarootdir_hack='
28572 s&@datadir@&$datadir&g
28573 s&@docdir@&$docdir&g
28574 s&@infodir@&$infodir&g
28575 s&@localedir@&$localedir&g
28576 s&@mandir@&$mandir&g
28577 s&\\\${datarootdir}&$datarootdir&g' ;;
28581 # Neutralize VPATH when `$srcdir' = `.'.
28582 # Shell code in configure.ac might set extrasub.
28583 # FIXME: do we really want to maintain this feature?
28584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28585 ac_sed_extra="$ac_vpsub
28588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28590 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28591 s|@configure_input@|
$ac_sed_conf_input|
;t t
28592 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28593 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28594 s
&@srcdir@
&$ac_srcdir&;t t
28595 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28596 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28597 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28598 s
&@builddir@
&$ac_builddir&;t t
28599 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28600 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28601 $ac_datarootdir_hack
28603 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28604 if $ac_cs_awk_getline; then
28605 $AWK -f "$tmp/subs.
awk"
28607 $AWK -f "$tmp/subs.
awk" | $SHELL
28609 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28611 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28612 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28613 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28615 which seems to be undefined. Please make sure it is defined." >&5
28616 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28617 which seems to be undefined. Please make sure it is defined." >&2;}
28621 -) cat "$tmp/out" && rm -f "$tmp/out";;
28622 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28624 || as_fn_error "could not create $ac_file" "$LINENO" 5
28630 if test x"$ac_file" != x-; then
28632 $as_echo "/* $configure_input */" \
28633 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28634 } >"$tmp/config.h" \
28635 || as_fn_error "could not create $ac_file" "$LINENO" 5
28636 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28637 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28638 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28641 mv "$tmp/config.h" "$ac_file" \
28642 || as_fn_error "could not create $ac_file" "$LINENO" 5
28645 $as_echo "/* $configure_input */" \
28646 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28647 || as_fn_error "could not create -" "$LINENO" 5
28651 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28652 $as_echo "$as_me: executing $ac_file commands" >&6;}
28657 case $ac_file$ac_mode in
28658 "as":F) chmod +x as ;;
28659 "collect-ld":F) chmod +x collect-ld ;;
28660 "nm":F) chmod +x nm ;;
28662 case ${CONFIG_HEADERS} in
28663 *auto-host.h:config.in*)
28666 # Make sure all the subdirs exist.
28667 for d in $subdirs doc build common c-family
28669 test -d $d || mkdir $d
28679 ac_clean_files=$ac_clean_files_save
28681 test $ac_write_fail = 0 ||
28682 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28685 # configure is writing to config.log, and then calls config.status.
28686 # config.status does its own redirection, appending to config.log.
28687 # Unfortunately, on DOS this fails, as config.log is still kept open
28688 # by configure, so config.status won't be able to
write to it
; its
28689 # output is simply discarded. So we exec the FD to /dev/null,
28690 # effectively closing config.log, so it can be properly (re)opened and
28691 # appended to by config.status. When coming back to configure, we
28692 # need to make the FD available again.
28693 if test "$no_create" != yes; then
28695 ac_config_status_args
=
28696 test "$silent" = yes &&
28697 ac_config_status_args
="$ac_config_status_args --quiet"
28699 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28701 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28702 # would make configure fail if this is the last instruction.
28703 $ac_cs_success || as_fn_exit $?
28705 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28707 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}