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
773 valgrind_path_defines
847 program_transform_name
858 ac_subst_files
='option_includes
861 enable_option_checking
866 enable_generated_files_in_srcdir
876 enable_gather_detailed_mem_stats
888 with_native_system_header_dir
898 enable_sjlj_exceptions
900 enable_leading_mingw64_underscores
903 enable_win32_registry
909 enable_gnu_indirect_function
910 enable_initfini_array
912 enable_gnu_unique_object
913 enable_linker_build_id
917 enable_maintainer_mode
918 enable_version_specific_runtime_libs
920 enable_libquadmath_support
921 with_linker_hash_style
923 ac_precious_vars
='build_alias
944 # Initialize some variables set by options.
946 ac_init_version
=false
947 ac_unrecognized_opts
=
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
958 program_transform_name
=s
,x
,x
,
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir
='${exec_prefix}/bin'
973 sbindir
='${exec_prefix}/sbin'
974 libexecdir
='${exec_prefix}/libexec'
975 datarootdir
='${prefix}/share'
976 datadir
='${datarootdir}'
977 sysconfdir
='${prefix}/etc'
978 sharedstatedir
='${prefix}/com'
979 localstatedir
='${prefix}/var'
980 includedir
='${prefix}/include'
981 oldincludedir
='/usr/include'
982 docdir
='${datarootdir}/doc/${PACKAGE}'
983 infodir
='${datarootdir}/info'
988 libdir
='${exec_prefix}/lib'
989 localedir
='${datarootdir}/locale'
990 mandir
='${datarootdir}/man'
996 # If the previous option needs an argument, assign it.
997 if test -n "$ac_prev"; then
998 eval $ac_prev=\
$ac_option
1004 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 # Accept the important Cygnus configure options, so we can diagnose typos.
1010 case $ac_dashdash$ac_option in
1014 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1016 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1017 bindir
=$ac_optarg ;;
1019 -build |
--build |
--buil |
--bui |
--bu)
1020 ac_prev
=build_alias
;;
1021 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1022 build_alias
=$ac_optarg ;;
1024 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1025 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1026 ac_prev
=cache_file
;;
1027 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1028 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1029 cache_file
=$ac_optarg ;;
1031 --config-cache |
-C)
1032 cache_file
=config.cache
;;
1034 -datadir |
--datadir |
--datadi |
--datad)
1036 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1037 datadir
=$ac_optarg ;;
1039 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1040 |
--dataroo |
--dataro |
--datar)
1041 ac_prev
=datarootdir
;;
1042 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1043 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1044 datarootdir
=$ac_optarg ;;
1046 -disable-* |
--disable-*)
1047 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1050 as_fn_error
"invalid feature name: $ac_useropt"
1051 ac_useropt_orig
=$ac_useropt
1052 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1055 "enable_
$ac_useropt"
1057 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1058 ac_unrecognized_sep
=', ';;
1060 eval enable_
$ac_useropt=no
;;
1062 -docdir |
--docdir |
--docdi |
--doc |
--do)
1064 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1065 docdir
=$ac_optarg ;;
1067 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1069 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1070 dvidir
=$ac_optarg ;;
1072 -enable-* |
--enable-*)
1073 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1076 as_fn_error
"invalid feature name: $ac_useropt"
1077 ac_useropt_orig
=$ac_useropt
1078 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1081 "enable_
$ac_useropt"
1083 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084 ac_unrecognized_sep
=', ';;
1086 eval enable_
$ac_useropt=\
$ac_optarg ;;
1088 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1089 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1090 |
--exec |
--exe |
--ex)
1091 ac_prev
=exec_prefix
;;
1092 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1093 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1094 |
--exec=* |
--exe=* |
--ex=*)
1095 exec_prefix
=$ac_optarg ;;
1097 -gas |
--gas |
--ga |
--g)
1098 # Obsolete; use --with-gas.
1101 -help |
--help |
--hel |
--he |
-h)
1102 ac_init_help
=long
;;
1103 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1104 ac_init_help
=recursive
;;
1105 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1106 ac_init_help
=short
;;
1108 -host |
--host |
--hos |
--ho)
1109 ac_prev
=host_alias
;;
1110 -host=* |
--host=* |
--hos=* |
--ho=*)
1111 host_alias
=$ac_optarg ;;
1113 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1115 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1117 htmldir
=$ac_optarg ;;
1119 -includedir |
--includedir |
--includedi |
--included |
--include \
1120 |
--includ |
--inclu |
--incl |
--inc)
1121 ac_prev
=includedir
;;
1122 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1123 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1124 includedir
=$ac_optarg ;;
1126 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1128 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1129 infodir
=$ac_optarg ;;
1131 -libdir |
--libdir |
--libdi |
--libd)
1133 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1134 libdir
=$ac_optarg ;;
1136 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1137 |
--libexe |
--libex |
--libe)
1138 ac_prev
=libexecdir
;;
1139 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1140 |
--libexe=* |
--libex=* |
--libe=*)
1141 libexecdir
=$ac_optarg ;;
1143 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1144 ac_prev
=localedir
;;
1145 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1146 localedir
=$ac_optarg ;;
1148 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1149 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1150 ac_prev
=localstatedir
;;
1151 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1152 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1153 localstatedir
=$ac_optarg ;;
1155 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1157 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1158 mandir
=$ac_optarg ;;
1160 -nfp |
--nfp |
--nf)
1161 # Obsolete; use --without-fp.
1164 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1165 |
--no-cr |
--no-c |
-n)
1168 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1169 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1172 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1173 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1174 |
--oldin |
--oldi |
--old |
--ol |
--o)
1175 ac_prev
=oldincludedir
;;
1176 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1177 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1178 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1179 oldincludedir
=$ac_optarg ;;
1181 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1183 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1184 prefix
=$ac_optarg ;;
1186 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1187 |
--program-pre |
--program-pr |
--program-p)
1188 ac_prev
=program_prefix
;;
1189 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1190 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1191 program_prefix
=$ac_optarg ;;
1193 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1194 |
--program-suf |
--program-su |
--program-s)
1195 ac_prev
=program_suffix
;;
1196 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1197 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1198 program_suffix
=$ac_optarg ;;
1200 -program-transform-name |
--program-transform-name \
1201 |
--program-transform-nam |
--program-transform-na \
1202 |
--program-transform-n |
--program-transform- \
1203 |
--program-transform |
--program-transfor \
1204 |
--program-transfo |
--program-transf \
1205 |
--program-trans |
--program-tran \
1206 |
--progr-tra |
--program-tr |
--program-t)
1207 ac_prev
=program_transform_name
;;
1208 -program-transform-name=* |
--program-transform-name=* \
1209 |
--program-transform-nam=* |
--program-transform-na=* \
1210 |
--program-transform-n=* |
--program-transform-=* \
1211 |
--program-transform=* |
--program-transfor=* \
1212 |
--program-transfo=* |
--program-transf=* \
1213 |
--program-trans=* |
--program-tran=* \
1214 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1215 program_transform_name
=$ac_optarg ;;
1217 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1219 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1220 pdfdir
=$ac_optarg ;;
1222 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1224 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1227 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1228 |
-silent |
--silent |
--silen |
--sile |
--sil)
1231 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1233 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1235 sbindir
=$ac_optarg ;;
1237 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1238 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1239 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1241 ac_prev
=sharedstatedir
;;
1242 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1243 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1244 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1246 sharedstatedir
=$ac_optarg ;;
1248 -site |
--site |
--sit)
1250 -site=* |
--site=* |
--sit=*)
1253 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1255 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1256 srcdir
=$ac_optarg ;;
1258 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1259 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1260 ac_prev
=sysconfdir
;;
1261 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1262 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1263 sysconfdir
=$ac_optarg ;;
1265 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1266 ac_prev
=target_alias
;;
1267 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1268 target_alias
=$ac_optarg ;;
1270 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1273 -version |
--version |
--versio |
--versi |
--vers |
-V)
1274 ac_init_version
=: ;;
1277 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1280 as_fn_error
"invalid package name: $ac_useropt"
1281 ac_useropt_orig
=$ac_useropt
1282 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1287 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288 ac_unrecognized_sep
=', ';;
1290 eval with_
$ac_useropt=\
$ac_optarg ;;
1292 -without-* |
--without-*)
1293 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1296 as_fn_error
"invalid package name: $ac_useropt"
1297 ac_useropt_orig
=$ac_useropt
1298 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1303 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304 ac_unrecognized_sep
=', ';;
1306 eval with_
$ac_useropt=no
;;
1309 # Obsolete; use --with-x.
1312 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1313 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1314 ac_prev
=x_includes
;;
1315 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1316 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1317 x_includes
=$ac_optarg ;;
1319 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1320 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1321 ac_prev
=x_libraries
;;
1322 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1323 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1324 x_libraries
=$ac_optarg ;;
1326 -*) as_fn_error
"unrecognized option: \`$ac_option'
1327 Try \`$0 --help' for more information."
1331 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 case $ac_envvar in #(
1334 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1335 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1337 eval $ac_envvar=\
$ac_optarg
1338 export $ac_envvar ;;
1341 # FIXME: should be removed in autoconf 3.0.
1342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 if test -n "$ac_prev"; then
1352 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1353 as_fn_error
"missing argument to $ac_option"
1356 if test -n "$ac_unrecognized_opts"; then
1357 case $enable_option_checking in
1359 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1360 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 # Check all directory arguments for consistency.
1365 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366 datadir sysconfdir sharedstatedir localstatedir includedir \
1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368 libdir localedir mandir
1370 eval ac_val
=\$
$ac_var
1371 # Remove trailing slashes.
1374 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375 eval $ac_var=\
$ac_val;;
1377 # Be sure to have absolute directory names.
1379 [\\/$
]* | ?
:[\\/]* ) continue;;
1380 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1382 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1385 # There might be people who depend on the old broken behavior: `$host'
1386 # used to hold the argument of --host etc.
1387 # FIXME: To remove some day.
1390 target
=$target_alias
1392 # FIXME: To remove some day.
1393 if test "x$host_alias" != x
; then
1394 if test "x$build_alias" = x
; then
1395 cross_compiling
=maybe
1396 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1397 If a cross compiler is detected then cross compile mode will be used." >&2
1398 elif test "x$build_alias" != "x$host_alias"; then
1404 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1406 test "$silent" = yes && exec 6>/dev
/null
1409 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di
=`ls -di .` &&
1411 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1412 as_fn_error
"working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 as_fn_error
"pwd does not report name of working directory"
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419 ac_srcdir_defaulted
=yes
1420 # Try the directory containing this script, then the parent directory.
1421 ac_confdir
=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1449 ac_srcdir_defaulted
=no
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1453 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1455 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1467 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 for ac_var
in $ac_precious_vars; do
1470 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1472 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1477 # Report the --help message.
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1483 \`configure' configures this package to adapt to many kinds of systems.
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1490 Defaults for the options are specified in brackets.
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1514 For better control, use the options below.
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
1541 --program-prefix=PREFIX prepend PREFIX to installed program names
1542 --program-suffix=SUFFIX append SUFFIX to installed program names
1543 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1546 --build=BUILD configure
for building on BUILD
[guessed
]
1547 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1548 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1552 if test -n "$ac_init_help"; then
1557 --disable-option-checking ignore unrecognized
--enable/--with options
1558 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1559 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1560 --enable-generated-files-in-srcdir
1561 put copies of generated files
in source dir intended
1562 for creating
source tarballs
for users without
1563 texinfo bison or flex
1564 --disable-largefile omit support
for large files
1565 --enable-werror-always enable -Werror despite compiler version
1566 --enable-checking[=LIST
]
1567 enable expensive run-time checks. With LIST
, enable
1568 only specific categories of checks. Categories are
:
1569 yes,no
,all
,none
,release. Flags are
:
1570 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1571 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1572 --enable-coverage[=LEVEL
]
1573 enable compiler
's code coverage collection. Use to
1574 measure compiler performance and locate unused parts
1575 of the compiler. With LEVEL, specify optimization.
1576 Values are opt, noopt, default is noopt
1577 --enable-gather-detailed-mem-stats
1578 enable detailed memory allocation stats gathering
1579 --enable-multilib enable library support for multiple ABIs
1580 --enable-multiarch enable support for multiarch paths
1581 --enable-__cxa_atexit enable __cxa_atexit for C++
1582 --enable-decimal-float={no,yes,bid,dpd}
1583 enable decimal float extension to C. Selecting 'bid
'
1584 or 'dpd
' choses which decimal floating point format
1586 --enable-fixed-point enable fixed-point arithmetic extension to C
1587 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1589 --enable-tls enable or disable generation of tls code overriding
1590 the assembler check for tls support
1591 --enable-objc-gc enable the use of Boehm's garbage collector with the
1592 GNU Objective-C runtime
1593 --disable-shared don
't provide a shared libgcc
1594 --enable-languages=LIST specify which front-ends to build
1595 --disable-rpath do not hardcode runtime library paths
1596 --enable-sjlj-exceptions
1597 arrange to use setjmp/longjmp exception handling
1598 --enable-secureplt enable -msecure-plt by default for PowerPC
1599 --enable-leading-mingw64-underscores
1600 enable leading underscores on 64 bit mingw targets
1601 --enable-cld enable -mcld by default for 32bit x86
1602 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1604 --disable-win32-registry
1605 disable lookup of installation paths in the Registry
1607 --enable-win32-registry enable registry lookup (default)
1608 --enable-win32-registry=KEY
1609 use KEY instead of GCC version as the last portion
1611 --enable-shared[=PKGS] build shared libraries [default=yes]
1612 --enable-static[=PKGS] build static libraries [default=yes]
1613 --enable-fast-install[=PKGS]
1614 optimize for fast installation [default=yes]
1615 --disable-libtool-lock avoid locking (might break parallel builds)
1616 --enable-gnu-indirect-function
1617 enable the use of the @gnu_indirect_function to
1619 --enable-initfini-array use .init_array/.fini_array sections
1620 --enable-comdat enable COMDAT group support
1621 --enable-gnu-unique-object
1622 enable the use of the @gnu_unique_object ELF
1623 extension on glibc systems
1624 --enable-linker-build-id
1625 compiler will always pass --build-id to linker
1626 --enable-maintainer-mode
1627 enable make rules and dependencies not useful (and
1628 sometimes confusing) to the casual installer
1629 --enable-version-specific-runtime-libs
1630 specify that runtime libraries should be installed
1631 in a compiler-specific directory
1632 --enable-plugin enable plugin support
1633 --disable-libquadmath-support
1634 disable libquadmath support for Fortran
1637 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1638 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1639 --with-build-libsubdir=DIR Directory where to find libraries for build system
1640 --with-local-prefix=DIR specifies directory to put local include
1641 --with-gxx-include-dir=DIR
1642 specifies directory to put g++ header files
1643 --with-cpp-install-dir=DIR
1644 install the user visible C preprocessor in DIR
1645 (relative to PREFIX) as well as PREFIX/bin
1646 --with-gnu-ld arrange to work with GNU ld
1647 --with-ld arrange to use the specified ld (full pathname)
1648 --with-demangler-in-ld try to use demangler in GNU ld
1649 --with-gnu-as arrange to work with GNU as
1650 --with-as arrange to use the specified as (full pathname)
1651 --with-stabs arrange to use stabs instead of host debug format
1652 --with-dwarf2 force the default debug format to be DWARF 2
1653 --with-native-system-header-dir=dir
1654 use dir as the directory to look for standard
1655 system header files in. Defaults to /usr/include.
1656 --with-build-sysroot=sysroot
1657 use sysroot as the system root during the build
1658 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1659 --with-specs=SPECS add SPECS to driver command-line processing
1660 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1661 --with-bugurl=URL Direct users to URL to report a bug
1662 --with-multilib-list select multilibs (SH and x86-64 only)
1663 --with-gnu-ld assume the C compiler uses GNU ld default=no
1664 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1665 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1666 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1668 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1669 --with-plugin-ld=[ARG
] specify the plugin linker
1670 --with-long-double-128 use
128-bit long double by default
1671 --with-gc={page
,zone
} choose the garbage collection mechanism to use with
1673 --with-system-zlib use installed libz
1674 --with-linker-hash-style={sysv
,gnu
,both
}
1675 specify the linker
hash style
1677 Some influential environment variables
:
1678 CC C compiler
command
1679 CFLAGS C compiler flags
1680 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1681 nonstandard directory
<lib dir
>
1682 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1683 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1684 you have headers
in a nonstandard directory
<include dir
>
1685 CXX C
++ compiler
command
1686 CXXFLAGS C
++ compiler flags
1688 CXXCPP C
++ preprocessor
1689 GMPLIBS How to link GMP
1690 GMPINC How to
find GMP include files
1691 ISLLIBS How to link ISL
1692 ISLINC How to
find ISL include files
1693 CLOOGLIBS How to link CLOOG
1694 CLOOGINC How to
find CLOOG include files
1696 Use these variables to override the choices made by
`configure' or to help
1697 it to find libraries and programs with nonstandard names/locations.
1699 Report bugs to the package provider.
1704 if test "$ac_init_help" = "recursive"; then
1705 # If there are subdirs, report their specific --help.
1706 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1707 test -d "$ac_dir" ||
1708 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1713 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1716 # A ".." for each directory in $ac_dir_suffix.
1717 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1718 case $ac_top_builddir_sub in
1719 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1720 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1723 ac_abs_top_builddir=$ac_pwd
1724 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1725 # for backward compatibility:
1726 ac_top_builddir=$ac_top_build_prefix
1729 .) # We are building in place.
1731 ac_top_srcdir=$ac_top_builddir_sub
1732 ac_abs_top_srcdir=$ac_pwd ;;
1733 [\\/]* | ?:[\\/]* ) # Absolute name.
1734 ac_srcdir=$srcdir$ac_dir_suffix;
1735 ac_top_srcdir=$srcdir
1736 ac_abs_top_srcdir=$srcdir ;;
1738 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1739 ac_top_srcdir=$ac_top_build_prefix$srcdir
1740 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1742 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1744 cd "$ac_dir" || { ac_status=$?; continue; }
1745 # Check for guested configure.
1746 if test -f "$ac_srcdir/configure.gnu"; then
1748 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1749 elif test -f "$ac_srcdir/configure"; then
1751 $SHELL "$ac_srcdir/configure" --help=recursive
1753 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1755 cd "$ac_pwd" || { ac_status=$?; break; }
1759 test -n "$ac_init_help" && exit $ac_status
1760 if $ac_init_version; then
1763 generated by GNU Autoconf 2.64
1765 Copyright (C) 2009 Free Software Foundation, Inc.
1766 This configure script is free software; the Free Software Foundation
1767 gives unlimited permission to copy, distribute and modify it.
1772 ## ------------------------ ##
1773 ## Autoconf initialization. ##
1774 ## ------------------------ ##
1776 # ac_fn_c_try_compile LINENO
1777 # --------------------------
1778 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1779 ac_fn_c_try_compile ()
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 rm -f conftest.$ac_objext
1783 if { { ac_try="$ac_compile"
1785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1786 *) ac_try_echo
=$ac_try;;
1788 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_compile") 2>conftest.err
1792 if test -s conftest.err
; then
1793 grep -v '^ *+' conftest.err
>conftest.er1
1794 cat conftest.er1
>&5
1795 mv -f conftest.er1 conftest.err
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } && {
1799 test -z "$ac_c_werror_flag" ||
1800 test ! -s conftest.err
1801 } && test -s conftest.
$ac_objext; then :
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.
$ac_ext >&5
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1812 } # ac_fn_c_try_compile
1814 # ac_fn_cxx_try_compile LINENO
1815 # ----------------------------
1816 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_cxx_try_compile
()
1819 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1820 rm -f conftest.
$ac_objext
1821 if { { ac_try
="$ac_compile"
1823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_compile") 2>conftest.err
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && {
1837 test -z "$ac_cxx_werror_flag" ||
1838 test ! -s conftest.err
1839 } && test -s conftest.$ac_objext; then :
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 } # ac_fn_cxx_try_compile
1852 # ac_fn_c_try_cpp LINENO
1853 # ----------------------
1854 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if { { ac_try="$ac_cpp conftest.$ac_ext"
1860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1861 *) ac_try_echo
=$ac_try;;
1863 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1867 if test -s conftest.err
; then
1868 grep -v '^ *+' conftest.err
>conftest.er1
1869 cat conftest.er1
>&5
1870 mv -f conftest.er1 conftest.err
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } >/dev
/null
&& {
1874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1875 test ! -s conftest.err
1879 $as_echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.
$ac_ext >&5
1884 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1889 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1890 # -------------------------------------------------------
1891 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1892 # the include files in INCLUDES and setting the cache variable VAR
1894 ac_fn_c_check_header_mongrel
()
1896 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1897 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901 $as_echo_n "(cached) " >&6
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1907 # Is the header compilable?
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1909 $as_echo_n "checking $2 usability... " >&6; }
1910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1915 if ac_fn_c_try_compile
"$LINENO"; then :
1916 ac_header_compiler
=yes
1918 ac_header_compiler
=no
1920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1922 $as_echo "$ac_header_compiler" >&6; }
1924 # Is the header present?
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1926 $as_echo_n "checking $2 presence... " >&6; }
1927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1931 if ac_fn_c_try_cpp
"$LINENO"; then :
1932 ac_header_preproc
=yes
1934 ac_header_preproc
=no
1936 rm -f conftest.err conftest.
$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1938 $as_echo "$ac_header_preproc" >&6; }
1940 # So? What about this header?
1941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1944 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1946 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1950 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1952 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1954 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1956 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1958 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1966 eval "$3=\$ac_header_compiler"
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1974 } # ac_fn_c_check_header_mongrel
1976 # ac_fn_c_try_run LINENO
1977 # ----------------------
1978 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1979 # that executables *can* be run.
1982 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1983 if { { ac_try
="$ac_link"
1985 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_link") 2>&5
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1994 { { case "(($ac_try" in
1995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1996 *) ac_try_echo
=$ac_try;;
1998 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_try") 2>&5
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; }; }; then :
2006 $as_echo "$as_me: program exited with status $ac_status" >&5
2007 $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.
$ac_ext >&5
2010 ac_retval
=$ac_status
2012 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2013 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2018 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2019 # -------------------------------------------------------
2020 # Tests whether HEADER exists and can be compiled using the include files in
2021 # INCLUDES, setting the cache variable VAR accordingly.
2022 ac_fn_c_check_header_compile
()
2024 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 $as_echo_n "(cached) " >&6
2030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2035 if ac_fn_c_try_compile
"$LINENO"; then :
2040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2047 } # ac_fn_c_check_header_compile
2049 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2050 # --------------------------------------------
2051 # Tries to find the compile-time value of EXPR in a program that includes
2052 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2054 ac_fn_c_compute_int
()
2056 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2057 if test "$cross_compiling" = yes; then
2058 # Depending upon the size, compute the lo and hi bounds.
2059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2065 static int test_array [1 - 2 * !(($2) >= 0)];
2072 if ac_fn_c_try_compile
"$LINENO"; then :
2075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2081 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2088 if ac_fn_c_try_compile
"$LINENO"; then :
2089 ac_hi
=$ac_mid; break
2091 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2092 if test $ac_lo -le $ac_mid; then
2096 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2107 static int test_array [1 - 2 * !(($2) < 0)];
2114 if ac_fn_c_try_compile
"$LINENO"; then :
2117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2123 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2130 if ac_fn_c_try_compile
"$LINENO"; then :
2131 ac_lo
=$ac_mid; break
2133 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2134 if test $ac_mid -le $ac_hi; then
2138 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2148 # Binary search between lo and hi bounds.
2149 while test "x$ac_lo" != "x$ac_hi"; do
2150 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2157 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2164 if ac_fn_c_try_compile
"$LINENO"; then :
2167 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2172 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2179 static long int longval () { return $2; }
2180 static unsigned long int ulongval () { return $2; }
2187 FILE *f = fopen ("conftest.val", "w");
2192 long int i = longval ();
2195 fprintf (f, "%ld", i);
2199 unsigned long int i = ulongval ();
2202 fprintf (f, "%lu", i);
2204 /* Do not output a trailing newline, as this causes \r\n confusion
2205 on some platforms. */
2206 return ferror (f) || fclose (f) != 0;
2212 if ac_fn_c_try_run
"$LINENO"; then :
2213 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2217 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2218 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2222 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2225 } # ac_fn_c_compute_int
2227 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2228 # -------------------------------------------
2229 # Tests whether TYPE exists after having included INCLUDES, setting cache
2230 # variable VAR accordingly.
2231 ac_fn_c_check_type
()
2233 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235 $as_echo_n "checking for $2... " >&6; }
2236 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2237 $as_echo_n "(cached) " >&6
2240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2252 if ac_fn_c_try_compile
"$LINENO"; then :
2253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2265 if ac_fn_c_try_compile
"$LINENO"; then :
2270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276 $as_echo "$ac_res" >&6; }
2277 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2279 } # ac_fn_c_check_type
2281 # ac_fn_c_find_intX_t LINENO BITS VAR
2282 # -----------------------------------
2283 # Finds a signed integer type with width BITS, setting cache variable VAR
2285 ac_fn_c_find_intX_t
()
2287 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2289 $as_echo_n "checking for int$2_t... " >&6; }
2290 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2291 $as_echo_n "(cached) " >&6
2294 for ac_type
in int
$2_t 'int' 'long int' \
2295 'long long int' 'short int' 'signed char'; do
2296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2298 $ac_includes_default
2302 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2309 if ac_fn_c_try_compile
"$LINENO"; then :
2310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2312 $ac_includes_default
2316 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2317 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2324 if ac_fn_c_try_compile
"$LINENO"; then :
2331 eval "$3=\$ac_type" ;;
2334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2338 if test "x$as_val" = x
""no
; then :
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2347 $as_echo "$ac_res" >&6; }
2348 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2350 } # ac_fn_c_find_intX_t
2352 # ac_fn_c_try_link LINENO
2353 # -----------------------
2354 # Try to link conftest.$ac_ext, and return whether this succeeded.
2357 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2358 rm -f conftest.
$ac_objext conftest
$ac_exeext
2359 if { { ac_try
="$ac_link"
2361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2365 $as_echo "$ac_try_echo"; } >&5
2366 (eval "$ac_link") 2>conftest.err
2368 if test -s conftest.err; then
2369 grep -v '^ *+' conftest.err >conftest.er1
2370 cat conftest.er1 >&5
2371 mv -f conftest.er1 conftest.err
2373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2374 test $ac_status = 0; } && {
2375 test -z "$ac_c_werror_flag" ||
2376 test ! -s conftest.err
2377 } && test -s conftest$ac_exeext && {
2378 test "$cross_compiling" = yes ||
2379 $as_test_x conftest$ac_exeext
2383 $as_echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2388 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2389 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2390 # interfere with the next link command; also delete a directory that is
2391 # left behind by Apple's compiler. We do this before executing the actions.
2392 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2393 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2396 } # ac_fn_c_try_link
2398 # ac_fn_c_find_uintX_t LINENO BITS VAR
2399 # ------------------------------------
2400 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2402 ac_fn_c_find_uintX_t ()
2404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2406 $as_echo_n "checking for uint$2_t... " >&6; }
2407 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2408 $as_echo_n "(cached) " >&6
2411 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2412 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2415 $ac_includes_default
2419 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2426 if ac_fn_c_try_compile "$LINENO"; then :
2431 eval "$3=\$ac_type" ;;
2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 if test "x$as_val" = x""no; then :
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445 $as_echo "$ac_res" >&6; }
2446 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2448 } # ac_fn_c_find_uintX_t
2450 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2451 # ----------------------------------------------
2452 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2453 ac_fn_c_check_header_preproc ()
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2457 $as_echo_n "checking for $2... " >&6; }
2458 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2459 $as_echo_n "(cached) " >&6
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h. */
2465 if ac_fn_c_try_cpp "$LINENO"; then :
2470 rm -f conftest.err conftest.$ac_ext
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2474 $as_echo "$ac_res" >&6; }
2475 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2477 } # ac_fn_c_check_header_preproc
2479 # ac_fn_cxx_try_cpp LINENO
2480 # ------------------------
2481 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2482 ac_fn_cxx_try_cpp ()
2484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2485 if { { ac_try="$ac_cpp conftest.$ac_ext"
2487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2488 *) ac_try_echo
=$ac_try;;
2490 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2491 $as_echo "$ac_try_echo"; } >&5
2492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2494 if test -s conftest.err
; then
2495 grep -v '^ *+' conftest.err
>conftest.er1
2496 cat conftest.er1
>&5
2497 mv -f conftest.er1 conftest.err
2499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2500 test $ac_status = 0; } >/dev
/null
&& {
2501 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2502 test ! -s conftest.err
2506 $as_echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.
$ac_ext >&5
2511 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2514 } # ac_fn_cxx_try_cpp
2516 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2517 # ------------------------------------------------
2518 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2519 ac_fn_cxx_check_header_preproc
()
2521 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2523 $as_echo_n "checking for $2... " >&6; }
2524 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2525 $as_echo_n "(cached) " >&6
2527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h. */
2531 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2536 rm -f conftest.err conftest.
$ac_ext
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2540 $as_echo "$ac_res" >&6; }
2541 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2543 } # ac_fn_cxx_check_header_preproc
2545 # ac_fn_c_check_func LINENO FUNC VAR
2546 # ----------------------------------
2547 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2548 ac_fn_c_check_func
()
2550 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2552 $as_echo_n "checking for $2... " >&6; }
2553 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2554 $as_echo_n "(cached) " >&6
2556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2557 /* end confdefs.h. */
2558 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2560 #define $2 innocuous_$2
2562 /* System header to define __stub macros and hopefully few prototypes,
2563 which can conflict with char $2 (); below.
2564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2565 <limits.h> exists even on freestanding compilers. */
2568 # include <limits.h>
2570 # include <assert.h>
2575 /* Override any GCC internal prototype to avoid an error.
2576 Use char because int might match the return type of a GCC
2577 builtin and then its argument prototype would still apply. */
2582 /* The GNU C library defines this for functions which it implements
2583 to always fail with ENOSYS. Some functions are actually named
2584 something starting with __ and the normal name is an alias. */
2585 #if defined __stub_$2 || defined __stub___$2
2597 if ac_fn_c_try_link
"$LINENO"; then :
2602 rm -f core conftest.err conftest.
$ac_objext \
2603 conftest
$ac_exeext conftest.
$ac_ext
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2607 $as_echo "$ac_res" >&6; }
2608 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2610 } # ac_fn_c_check_func
2612 # ac_fn_cxx_try_link LINENO
2613 # -------------------------
2614 # Try to link conftest.$ac_ext, and return whether this succeeded.
2615 ac_fn_cxx_try_link
()
2617 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2618 rm -f conftest.
$ac_objext conftest
$ac_exeext
2619 if { { ac_try
="$ac_link"
2621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2622 *) ac_try_echo=$ac_try;;
2624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2625 $as_echo "$ac_try_echo"; } >&5
2626 (eval "$ac_link") 2>conftest.err
2628 if test -s conftest.err; then
2629 grep -v '^ *+' conftest.err >conftest.er1
2630 cat conftest.er1 >&5
2631 mv -f conftest.er1 conftest.err
2633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2634 test $ac_status = 0; } && {
2635 test -z "$ac_cxx_werror_flag" ||
2636 test ! -s conftest.err
2637 } && test -s conftest$ac_exeext && {
2638 test "$cross_compiling" = yes ||
2639 $as_test_x conftest$ac_exeext
2643 $as_echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2650 # interfere with the next link command; also delete a directory that is
2651 # left behind by Apple's compiler. We do this before executing the actions.
2652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2656 } # ac_fn_cxx_try_link
2657 cat >config.log <<_ACEOF
2658 This file contains any messages produced by compilers while
2659 running configure, to aid debugging if configure makes a mistake.
2661 It was created by $as_me, which was
2662 generated by GNU Autoconf 2.64. Invocation command line was
2674 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2675 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2676 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2677 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2678 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2680 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2681 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2683 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2684 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2685 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2686 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2687 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2688 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2689 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 test -z "$as_dir" && as_dir=.
2698 $as_echo "PATH: $as_dir"
2714 # Keep a trace of the command line.
2715 # Strip out --no-create and --no-recursion so they do not pile up.
2716 # Strip out --silent because we don't want to record it for future runs.
2717 # Also quote any args containing shell meta-characters.
2718 # Make two passes to allow for proper duplicate-argument suppression.
2722 ac_must_keep_next=false
2728 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2730 | -silent | --silent | --silen | --sile | --sil)
2733 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2736 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2738 as_fn_append ac_configure_args1 " '$ac_arg'"
2739 if test $ac_must_keep_next = true; then
2740 ac_must_keep_next=false # Got value, back to normal.
2743 *=* | --config-cache | -C | -disable-* | --disable-* \
2744 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2745 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2746 | -with-* | --with-* | -without-* | --without-* | --x)
2747 case "$ac_configure_args0 " in
2748 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2751 -* ) ac_must_keep_next=true ;;
2754 as_fn_append ac_configure_args " '$ac_arg'"
2759 { ac_configure_args0=; unset ac_configure_args0;}
2760 { ac_configure_args1=; unset ac_configure_args1;}
2762 # When interrupted or exit'd, cleanup temporary files, and complete
2763 # config.log. We remove comments because anyway the quotes in there
2764 # would cause problems or look ugly.
2765 # WARNING: Use '\'' to represent an apostrophe within the trap.
2766 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2767 trap 'exit_status=$?
2768 # Save into config.log some information that might help in debugging.
2773 ## ---------------- ##
2774 ## Cache variables. ##
2775 ## ---------------- ##
2778 # The following way of writing the cache mishandles newlines in values,
2780 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2781 eval ac_val=\$$ac_var
2785 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2786 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2789 _ | IFS | as_nl) ;; #(
2790 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2791 *) { eval $ac_var=; unset $ac_var;} ;;
2796 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2797 *${as_nl}ac_space=\ *)
2799 "s/'\''/'\''\\\\'\'''\''/g;
2800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2803 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2811 ## ----------------- ##
2812 ## Output variables. ##
2813 ## ----------------- ##
2816 for ac_var in $ac_subst_vars
2818 eval ac_val=\$$ac_var
2820 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2822 $as_echo "$ac_var='\''$ac_val'\''"
2826 if test -n "$ac_subst_files"; then
2828 ## ------------------- ##
2829 ## File substitutions. ##
2830 ## ------------------- ##
2833 for ac_var in $ac_subst_files
2835 eval ac_val=\$$ac_var
2837 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2839 $as_echo "$ac_var='\''$ac_val'\''"
2844 if test -s confdefs.h; then
2854 test "$ac_signal" != 0 &&
2855 $as_echo "$as_me: caught signal $ac_signal"
2856 $as_echo "$as_me: exit $exit_status"
2858 rm -f core *.core core.conftest.* &&
2859 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2862 for ac_signal in 1 2 13 15; do
2863 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2867 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2868 rm -f -r conftest* confdefs.h
2870 $as_echo "/* confdefs.h */" > confdefs.h
2872 # Predefined preprocessor variables.
2874 cat >>confdefs.h <<_ACEOF
2875 #define PACKAGE_NAME "$PACKAGE_NAME"
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_STRING "$PACKAGE_STRING"
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2894 cat >>confdefs.h <<_ACEOF
2895 #define PACKAGE_URL "$PACKAGE_URL"
2899 # Let the site file select an alternate cache file if it wants to.
2900 # Prefer an explicitly selected file to automatically selected ones.
2903 if test -n "$CONFIG_SITE"; then
2904 ac_site_file1=$CONFIG_SITE
2905 elif test "x$prefix" != xNONE; then
2906 ac_site_file1=$prefix/share/config.site
2907 ac_site_file2=$prefix/etc/config.site
2909 ac_site_file1=$ac_default_prefix/share/config.site
2910 ac_site_file2=$ac_default_prefix/etc/config.site
2912 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2914 test "x$ac_site_file" = xNONE && continue
2915 if test -r "$ac_site_file"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2917 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2918 sed 's/^/| /' "$ac_site_file" >&5
2923 if test -r "$cache_file"; then
2924 # Some versions of bash will fail to source /dev/null (special
2925 # files actually), so we avoid doing that.
2926 if test -f "$cache_file"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2928 $as_echo "$as_me: loading cache $cache_file" >&6;}
2930 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2931 *) . "./$cache_file";;
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2936 $as_echo "$as_me: creating cache $cache_file" >&6;}
2940 # Check that the precious variables saved in the cache have kept the same
2942 ac_cache_corrupted=false
2943 for ac_var in $ac_precious_vars; do
2944 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2945 eval ac_new_set=\$ac_env_${ac_var}_set
2946 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2947 eval ac_new_val=\$ac_env_${ac_var}_value
2948 case $ac_old_set,$ac_new_set in
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2951 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2952 ac_cache_corrupted=: ;;
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2955 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2956 ac_cache_corrupted=: ;;
2959 if test "x$ac_old_val" != "x$ac_new_val"; then
2960 # differences in whitespace do not lead to failure.
2961 ac_old_val_w=`echo x
$ac_old_val`
2962 ac_new_val_w=`echo x
$ac_new_val`
2963 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2965 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2966 ac_cache_corrupted=:
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2969 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2970 eval $ac_var=\$ac_old_val
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2973 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2975 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2978 # Pass precious variables to config.status.
2979 if test "$ac_new_set" = set; then
2981 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2982 *) ac_arg=$ac_var=$ac_new_val ;;
2984 case " $ac_configure_args " in
2985 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2986 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2990 if $ac_cache_corrupted; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2994 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2995 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2997 ## -------------------- ##
2998 ## Main body of script. ##
2999 ## -------------------- ##
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3015 gcc_version=`cat $srcdir/BASE-VER
`
3017 # Determine the host, build, and target systems
3019 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3020 for ac_t in install-sh install.sh shtool; do
3021 if test -f "$ac_dir/$ac_t"; then
3023 ac_install_sh="$ac_aux_dir/$ac_t -c"
3028 if test -z "$ac_aux_dir"; then
3029 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3032 # These three variables are undocumented and unsupported,
3033 # and are intended to be withdrawn in a future Autoconf release.
3034 # They can cause serious problems if a builder's source tree is in a directory
3035 # whose full name contains unusual characters.
3036 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3037 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3038 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3041 # Make sure we can run config.sub.
3042 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3043 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3046 $as_echo_n "checking build system type... " >&6; }
3047 if test "${ac_cv_build+set}" = set; then :
3048 $as_echo_n "(cached) " >&6
3050 ac_build_alias=$build_alias
3051 test "x$ac_build_alias" = x &&
3052 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3053 test "x$ac_build_alias" = x &&
3054 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3055 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3056 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3060 $as_echo "$ac_cv_build" >&6; }
3061 case $ac_cv_build in
3063 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3066 ac_save_IFS=$IFS; IFS='-'
3072 # Remember, the first character of IFS is used to create $*,
3073 # except with old shells:
3076 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3080 $as_echo_n "checking host system type... " >&6; }
3081 if test "${ac_cv_host+set}" = set; then :
3082 $as_echo_n "(cached) " >&6
3084 if test "x$host_alias" = x; then
3085 ac_cv_host=$ac_cv_build
3087 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3088 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3093 $as_echo "$ac_cv_host" >&6; }
3096 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3099 ac_save_IFS=$IFS; IFS='-'
3105 # Remember, the first character of IFS is used to create $*,
3106 # except with old shells:
3109 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3113 $as_echo_n "checking target system type... " >&6; }
3114 if test "${ac_cv_target+set}" = set; then :
3115 $as_echo_n "(cached) " >&6
3117 if test "x$target_alias" = x; then
3118 ac_cv_target=$ac_cv_host
3120 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3121 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3126 $as_echo "$ac_cv_target" >&6; }
3127 case $ac_cv_target in
3129 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3131 target=$ac_cv_target
3132 ac_save_IFS=$IFS; IFS='-'
3138 # Remember, the first character of IFS is used to create $*,
3139 # except with old shells:
3142 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3145 # The aliases save the names the user supplied, while $host etc.
3146 # will get canonicalized.
3147 test -n "$target_alias" &&
3148 test "$program_prefix$program_suffix$program_transform_name" = \
3150 program_prefix=${target_alias}-
3152 # Determine the noncanonical target name, for directory use.
3153 case ${build_alias} in
3154 "") build_noncanonical=${build} ;;
3155 *) build_noncanonical=${build_alias} ;;
3158 case ${host_alias} in
3159 "") host_noncanonical=${build_noncanonical} ;;
3160 *) host_noncanonical=${host_alias} ;;
3163 case ${target_alias} in
3164 "") target_noncanonical=${host_noncanonical} ;;
3165 *) target_noncanonical=${target_alias} ;;
3171 # Determine the target- and build-specific subdirectories
3173 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3174 # have matching libraries, they should use host libraries: Makefile.tpl
3175 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3176 # However, they still use the build modules, because the corresponding
3177 # host modules (e.g. bison) are only built for the host when bootstrap
3179 # - build_subdir is where we find build modules, and never changes.
3180 # - build_libsubdir is where we find build libraries, and can be overridden.
3182 # Prefix 'build-' so this never conflicts with target_subdir.
3183 build_subdir="build-${build_noncanonical}"
3185 # Check whether --with-build-libsubdir was given.
3186 if test "${with_build_libsubdir+set}" = set; then :
3187 withval=$with_build_libsubdir; build_libsubdir="$withval"
3189 build_libsubdir="$build_subdir"
3192 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3193 if ( test $srcdir = . && test -d gcc ) \
3194 || test -d $srcdir/../host-${host_noncanonical}; then
3195 host_subdir="host-${host_noncanonical}"
3200 target_subdir=${target_noncanonical}
3203 # Set program_transform_name
3204 test "$program_prefix" != NONE &&
3205 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3206 # Use a double $ so make ignores it.
3207 test "$program_suffix" != NONE &&
3208 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3209 # Double any \ or $.
3210 # By default was `s
,x
,x
', remove it if useless.
3211 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3212 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3215 # Check for bogus environment variables.
3216 # Test if LIBRARY_PATH contains the notation for the current directory
3217 # since this would lead to problems installing/building glibc.
3218 # LIBRARY_PATH contains the current directory if one of the following
3220 # - one of the terminals (":" and ";") is the first or last sign
3221 # - two terminals occur directly after each other
3222 # - the path contains an element with a dot in it
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3224 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3225 case ${LIBRARY_PATH} in
3226 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3227 library_path_setting="contains current directory"
3230 library_path_setting="ok"
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3234 $as_echo "$library_path_setting" >&6; }
3235 if test "$library_path_setting" != "ok"; then
3237 *** LIBRARY_PATH shouldn't contain the current directory when
3238 *** building gcc. Please change the environment variable
3239 *** and run configure again.
" "$LINENO" 5
3242 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3243 # since this would lead to problems installing/building glibc.
3244 # GCC_EXEC_PREFIX contains the current directory if one of the following
3246 # - one of the terminals (":" and ";") is the first or last sign
3247 # - two terminals occur directly after each other
3248 # - the path contains an element with a dot in it
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3250 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3251 case ${GCC_EXEC_PREFIX} in
3252 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3253 gcc_exec_prefix_setting="contains current directory
"
3256 gcc_exec_prefix_setting="ok
"
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3260 $as_echo "$gcc_exec_prefix_setting" >&6; }
3261 if test "$gcc_exec_prefix_setting" != "ok
"; then
3263 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3264 *** building gcc. Please change the environment variable
3265 *** and run configure again." "$LINENO" 5
3272 # Specify the local prefix
3275 # Check whether --with-local-prefix was given.
3276 if test "${with_local_prefix+set}" = set; then :
3277 withval=$with_local_prefix; case "${withval}" in
3278 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3280 *) local_prefix=$with_local_prefix ;;
3285 # Default local prefix if it is empty
3286 if test x$local_prefix = x; then
3287 local_prefix=/usr/local
3290 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3291 # passed in by the toplevel make and thus we'd get different behavior
3292 # depending on where we built the sources.
3293 gcc_gxx_include_dir
=
3294 # Specify the g++ header file directory
3296 # Check whether --with-gxx-include-dir was given.
3297 if test "${with_gxx_include_dir+set}" = set; then :
3298 withval
=$with_gxx_include_dir; case "${withval}" in
3299 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3301 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3306 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3307 if test x
${gcc_gxx_include_dir} = x
; then
3308 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3309 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3311 libstdcxx_incdir
='include/c++/$(version)'
3312 if test x
$host != x
$target; then
3313 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3315 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3319 gcc_gxx_include_dir_add_sysroot
=0
3320 if test "${with_sysroot+set}" = set; then
3321 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3322 if test "${gcc_gxx_without_sysroot}"; then
3323 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3324 gcc_gxx_include_dir_add_sysroot
=1
3329 # Check whether --with-cpp_install_dir was given.
3330 if test "${with_cpp_install_dir+set}" = set; then :
3331 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3332 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3333 elif test x
$withval != xno
; then
3334 cpp_install_dir
=$withval
3339 # We would like to our source tree to be readonly. However when releases or
3340 # pre-releases are generated, the flex/bison generated files as well as the
3341 # various formats of manuals need to be included along with the rest of the
3342 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3346 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3347 # Check whether --enable-generated-files-in-srcdir was given.
3348 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3349 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3351 generated_files_in_srcdir
=no
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3356 $as_echo "$generated_files_in_srcdir" >&6; }
3358 if test "$generated_files_in_srcdir" = "yes"; then
3365 # -------------------
3366 # Find default linker
3367 # -------------------
3371 # Check whether --with-gnu-ld was given.
3372 if test "${with_gnu_ld+set}" = set; then :
3373 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3379 # With pre-defined ld
3381 # Check whether --with-ld was given.
3382 if test "${with_ld+set}" = set; then :
3383 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3386 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3387 if test ! -x "$DEFAULT_LINKER"; then
3388 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3389 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3393 cat >>confdefs.h
<<_ACEOF
3394 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3400 $as_echo_n "checking whether a default linker was specified... " >&6; }
3401 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3402 if test x
"$gnu_ld_flag" = x
"no"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3404 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3407 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3414 # With demangler in GNU ld
3416 # Check whether --with-demangler-in-ld was given.
3417 if test "${with_demangler_in_ld+set}" = set; then :
3418 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3424 # ----------------------
3425 # Find default assembler
3426 # ----------------------
3430 # Check whether --with-gnu-as was given.
3431 if test "${with_gnu_as+set}" = set; then :
3432 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3439 # Check whether --with-as was given.
3440 if test "${with_as+set}" = set; then :
3441 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3444 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3445 if test ! -x "$DEFAULT_ASSEMBLER"; then
3446 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3447 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3451 cat >>confdefs.h
<<_ACEOF
3452 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3458 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3459 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3460 if test x
"$gas_flag" = x
"no"; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3462 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3465 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3476 # If a non-executable a.out is present (e.g. created by GNU as above even if
3477 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3478 # file, even when creating an executable, so an execution test fails.
3479 # Remove possible default executable files to avoid this.
3481 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3482 # Autoconf includes it.
3483 rm -f a.out a.exe b.out
3485 # Find the native compiler
3487 ac_cpp
='$CPP $CPPFLAGS'
3488 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3491 if test -n "$ac_tool_prefix"; then
3492 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3493 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if test "${ac_cv_prog_CC+set}" = set; then :
3497 $as_echo_n "(cached) " >&6
3499 if test -n "$CC"; then
3500 ac_cv_prog_CC
="$CC" # Let the user override the test.
3502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3506 test -z "$as_dir" && as_dir
=.
3507 for ac_exec_ext
in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 if test -n "$CC"; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3522 $as_echo "$CC" >&6; }
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3530 if test -z "$ac_cv_prog_CC"; then
3532 # Extract the first word of "gcc", so it can be a program name with args.
3533 set dummy gcc
; ac_word
=$2
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3537 $as_echo_n "(cached) " >&6
3539 if test -n "$ac_ct_CC"; then
3540 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3546 test -z "$as_dir" && as_dir
=.
3547 for ac_exec_ext
in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 ac_cv_prog_ac_ct_CC
="gcc"
3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3560 if test -n "$ac_ct_CC"; then
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3562 $as_echo "$ac_ct_CC" >&6; }
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 $as_echo "no" >&6; }
3568 if test "x$ac_ct_CC" = x
; then
3571 case $cross_compiling:$ac_tool_warned in
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3575 ac_tool_warned
=yes ;;
3583 if test -z "$CC"; then
3584 if test -n "$ac_tool_prefix"; then
3585 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3586 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 $as_echo_n "checking for $ac_word... " >&6; }
3589 if test "${ac_cv_prog_CC+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3592 if test -n "$CC"; then
3593 ac_cv_prog_CC
="$CC" # Let the user override the test.
3595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3599 test -z "$as_dir" && as_dir
=.
3600 for ac_exec_ext
in '' $ac_executable_extensions; do
3601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3602 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 if test -n "$CC"; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3615 $as_echo "$CC" >&6; }
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618 $as_echo "no" >&6; }
3624 if test -z "$CC"; then
3625 # Extract the first word of "cc", so it can be a program name with args.
3626 set dummy cc
; ac_word
=$2
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628 $as_echo_n "checking for $ac_word... " >&6; }
3629 if test "${ac_cv_prog_CC+set}" = set; then :
3630 $as_echo_n "(cached) " >&6
3632 if test -n "$CC"; then
3633 ac_cv_prog_CC
="$CC" # Let the user override the test.
3636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3640 test -z "$as_dir" && as_dir
=.
3641 for ac_exec_ext
in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3644 ac_prog_rejected
=yes
3648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 if test $ac_prog_rejected = yes; then
3656 # We found a bogon in the path, so make sure we never use it.
3657 set dummy
$ac_cv_prog_CC
3659 if test $# != 0; then
3660 # We chose a different compiler from the bogus one.
3661 # However, it has the same basename, so the bogon will be chosen
3662 # first if we set CC to just the basename; use the full file name.
3664 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3670 if test -n "$CC"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3672 $as_echo "$CC" >&6; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3680 if test -z "$CC"; then
3681 if test -n "$ac_tool_prefix"; then
3682 for ac_prog
in cl.exe
3684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3685 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if test "${ac_cv_prog_CC+set}" = set; then :
3689 $as_echo_n "(cached) " >&6
3691 if test -n "$CC"; then
3692 ac_cv_prog_CC
="$CC" # Let the user override the test.
3694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3698 test -z "$as_dir" && as_dir
=.
3699 for ac_exec_ext
in '' $ac_executable_extensions; do
3700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3701 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3712 if test -n "$CC"; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3714 $as_echo "$CC" >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3721 test -n "$CC" && break
3724 if test -z "$CC"; then
3726 for ac_prog
in cl.exe
3728 # Extract the first word of "$ac_prog", so it can be a program name with args.
3729 set dummy
$ac_prog; ac_word
=$2
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731 $as_echo_n "checking for $ac_word... " >&6; }
3732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3733 $as_echo_n "(cached) " >&6
3735 if test -n "$ac_ct_CC"; then
3736 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3742 test -z "$as_dir" && as_dir
=.
3743 for ac_exec_ext
in '' $ac_executable_extensions; do
3744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3745 ac_cv_prog_ac_ct_CC
="$ac_prog"
3746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3756 if test -n "$ac_ct_CC"; then
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3758 $as_echo "$ac_ct_CC" >&6; }
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761 $as_echo "no" >&6; }
3765 test -n "$ac_ct_CC" && break
3768 if test "x$ac_ct_CC" = x
; then
3771 case $cross_compiling:$ac_tool_warned in
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3775 ac_tool_warned
=yes ;;
3784 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3786 as_fn_error
"no acceptable C compiler found in \$PATH
3787 See \`config.log' for more details." "$LINENO" 5; }
3789 # Provide some information about the compiler.
3790 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3793 for ac_option
in --version -v -V -qversion; do
3794 { { ac_try
="$ac_compiler $ac_option >&5"
3796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800 $as_echo "$ac_try_echo"; } >&5
3801 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3803 if test -s conftest.err; then
3805 ... rest of stderr output deleted ...
3806 10q' conftest.err >conftest.er1
3807 cat conftest.er1 >&5
3808 rm -f conftest.er1 conftest.err
3810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3825 ac_clean_files_save=$ac_clean_files
3826 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3827 # Try to create an executable without -o first, disregard a.out.
3828 # It will help us diagnose broken compilers, and finding out an intuition
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3831 $as_echo_n "checking for C compiler default output file name... " >&6; }
3832 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3834 # The possible output files:
3835 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3838 for ac_file in $ac_files
3841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3842 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3847 if { { ac_try="$ac_link_default"
3849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3850 *) ac_try_echo
=$ac_try;;
3852 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 $as_echo "$ac_try_echo"; } >&5
3854 (eval "$ac_link_default") 2>&5
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }; then :
3858 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3859 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3860 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3861 # so that the user can short-circuit this test for compilers unknown to
3863 for ac_file
in $ac_files ''
3865 test -f "$ac_file" ||
continue
3867 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3870 # We found the default executable, but exeext='' is most
3874 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3876 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3878 # We set ac_cv_exeext here because the later test for it is not
3879 # safe: cross compilers may not add the suffix if given an `-o'
3880 # argument, so we may need to know it at that point already.
3881 # Even if this section looks crufty: it has the advantage of
3888 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3894 $as_echo "$ac_file" >&6; }
3895 if test -z "$ac_file"; then :
3896 $as_echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.
$ac_ext >&5
3899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901 { as_fn_set_status
77
3902 as_fn_error
"C compiler cannot create executables
3903 See \`config.log' for more details." "$LINENO" 5; }; }
3905 ac_exeext
=$ac_cv_exeext
3907 # Check that the compiler produces executables we can run. If not, either
3908 # the compiler is broken, or we cross compile.
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3910 $as_echo_n "checking whether the C compiler works... " >&6; }
3911 # If not cross compiling, check that we can run a simple program.
3912 if test "$cross_compiling" != yes; then
3913 if { ac_try
='./$ac_file'
3914 { { case "(($ac_try" in
3915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_try") 2>&5
3922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; }; }; then
3926 if test "$cross_compiling" = maybe; then
3929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931 as_fn_error "cannot run C compiled programs.
3932 If you meant to cross compile
, use \
`--host'.
3933 See \`config.log
' for more details." "$LINENO" 5; }
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3938 $as_echo "yes" >&6; }
3940 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3941 ac_clean_files=$ac_clean_files_save
3942 # Check that the compiler produces executables we can run. If not, either
3943 # the compiler is broken, or we cross compile.
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3945 $as_echo_n "checking whether we are cross compiling... " >&6; }
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3947 $as_echo "$cross_compiling" >&6; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3950 $as_echo_n "checking for suffix of executables... " >&6; }
3951 if { { ac_try="$ac_link"
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_link") 2>&5
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }; then :
3962 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3963 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3964 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3966 for ac_file
in conftest.exe conftest conftest.
*; do
3967 test -f "$ac_file" ||
continue
3969 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3970 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3978 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3979 See \`config.log' for more details." "$LINENO" 5; }
3981 rm -f conftest
$ac_cv_exeext
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3983 $as_echo "$ac_cv_exeext" >&6; }
3985 rm -f conftest.
$ac_ext
3986 EXEEXT
=$ac_cv_exeext
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3989 $as_echo_n "checking for suffix of object files... " >&6; }
3990 if test "${ac_cv_objext+set}" = set; then :
3991 $as_echo_n "(cached) " >&6
3993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
4004 rm -f conftest.o conftest.obj
4005 if { { ac_try
="$ac_compile"
4007 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011 $as_echo "$ac_try_echo"; } >&5
4012 (eval "$ac_compile") 2>&5
4014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015 test $ac_status = 0; }; then :
4016 for ac_file in conftest.o conftest.obj conftest.*; do
4017 test -f "$ac_file" || continue;
4019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4020 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4025 $as_echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4030 as_fn_error "cannot compute suffix of object files
: cannot compile
4031 See \
`config.log' for more details." "$LINENO" 5; }
4033 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4036 $as_echo "$ac_cv_objext" >&6; }
4037 OBJEXT=$ac_cv_objext
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4040 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4041 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4058 if ac_fn_c_try_compile "$LINENO"; then :
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4068 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4069 if test $ac_compiler_gnu = yes; then
4074 ac_test_CFLAGS=${CFLAGS+set}
4075 ac_save_CFLAGS=$CFLAGS
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4077 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4078 if test "${ac_cv_prog_cc_g+set}" = set; then :
4079 $as_echo_n "(cached) " >&6
4081 ac_save_c_werror_flag=$ac_c_werror_flag
4082 ac_c_werror_flag=yes
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4096 if ac_fn_c_try_compile "$LINENO"; then :
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4111 if ac_fn_c_try_compile "$LINENO"; then :
4114 ac_c_werror_flag=$ac_save_c_werror_flag
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4127 if ac_fn_c_try_compile "$LINENO"; then :
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 ac_c_werror_flag=$ac_save_c_werror_flag
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4138 $as_echo "$ac_cv_prog_cc_g" >&6; }
4139 if test "$ac_test_CFLAGS" = set; then
4140 CFLAGS=$ac_save_CFLAGS
4141 elif test $ac_cv_prog_cc_g = yes; then
4142 if test "$GCC" = yes; then
4148 if test "$GCC" = yes; then
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4155 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4156 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4157 $as_echo_n "(cached) " >&6
4159 ac_cv_prog_cc_c89=no
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4165 #include <sys/types.h>
4166 #include <sys/stat.h>
4167 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4168 struct buf { int x; };
4169 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4170 static char *e (p, i)
4176 static char *f (char * (*g) (char **, int), char **p, ...)
4181 s = g (p, va_arg (v,int));
4186 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4187 function prototypes and stuff, but not '\xHH' hex character constants.
4188 These don't provoke an error unfortunately, instead are silently treated
4189 as 'x'. The following induces an error, until -std is added to get
4190 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4191 array size at least. It's necessary to write '\x00'==0 to get something
4192 that's true only with -std. */
4193 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4195 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4196 inside strings and character constants. */
4198 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4200 int test (int i, double x);
4201 struct s1 {int (*f) (int a);};
4202 struct s2 {int (*f) (double a);};
4203 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4209 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4214 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4215 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4217 CC="$ac_save_CC $ac_arg"
4218 if ac_fn_c_try_compile "$LINENO"; then :
4219 ac_cv_prog_cc_c89=$ac_arg
4221 rm -f core conftest.err conftest.$ac_objext
4222 test "x$ac_cv_prog_cc_c89" != "xno" && break
4224 rm -f conftest.$ac_ext
4229 case "x$ac_cv_prog_cc_c89" in
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4232 $as_echo "none needed" >&6; } ;;
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4235 $as_echo "unsupported" >&6; } ;;
4237 CC="$CC $ac_cv_prog_cc_c89"
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4239 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4241 if test "x$ac_cv_prog_cc_c89" != xno; then :
4246 ac_cpp='$CPP $CPPFLAGS'
4247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251 if test "x$CC" != xcc; then
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4253 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4256 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4258 set dummy $CC; ac_cc=`$as_echo "$2" |
4259 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4260 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4261 $as_echo_n "(cached) " >&6
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4274 # Make sure it works both with $CC and with simple cc.
4275 # We do the test twice because some compilers refuse to overwrite an
4276 # existing .o file with -o, though they will create one.
4277 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4279 if { { case "(($ac_try" in
4280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4281 *) ac_try_echo
=$ac_try;;
4283 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284 $as_echo "$ac_try_echo"; } >&5
4285 (eval "$ac_try") 2>&5
4287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4288 test $ac_status = 0; } &&
4289 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294 $as_echo "$ac_try_echo"; } >&5
4295 (eval "$ac_try") 2>&5
4297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4298 test $ac_status = 0; };
4300 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4301 if test "x$CC" != xcc; then
4302 # Test first that cc exists at all.
4303 if { ac_try='cc -c conftest.$ac_ext >&5'
4304 { { case "(($ac_try" in
4305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4306 *) ac_try_echo
=$ac_try;;
4308 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4309 $as_echo "$ac_try_echo"; } >&5
4310 (eval "$ac_try") 2>&5
4312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4313 test $ac_status = 0; }; }; then
4314 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4316 if { { case "(($ac_try" in
4317 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321 $as_echo "$ac_try_echo"; } >&5
4322 (eval "$ac_try") 2>&5
4324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325 test $ac_status = 0; } &&
4326 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4328 *) ac_try_echo
=$ac_try;;
4330 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331 $as_echo "$ac_try_echo"; } >&5
4332 (eval "$ac_try") 2>&5
4334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335 test $ac_status = 0; };
4340 # cc exists but doesn't like -o.
4341 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4346 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4348 rm -f core conftest
*
4351 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4353 $as_echo "yes" >&6; }
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4356 $as_echo "no" >&6; }
4358 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4362 # expand $ac_aux_dir to an absolute path
4363 am_aux_dir
=`cd $ac_aux_dir && pwd`
4365 # FIXME: we rely on the cache variable name because
4366 # there is no other way.
4368 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4369 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4370 if test "$am_t" != yes; then
4371 # Losing compiler, so override with the script.
4372 # FIXME: It is wrong to rewrite CC.
4373 # But if we don't then we get into trouble of one sort or another.
4374 # A longer-term fix would be to have automake use am__CC in this case,
4375 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4376 CC
="$am_aux_dir/compile $CC"
4381 ac_cpp
='$CXXCPP $CPPFLAGS'
4382 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4385 if test -z "$CXX"; then
4386 if test -n "$CCC"; then
4389 if test -n "$ac_tool_prefix"; then
4390 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4393 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4395 $as_echo_n "checking for $ac_word... " >&6; }
4396 if test "${ac_cv_prog_CXX+set}" = set; then :
4397 $as_echo_n "(cached) " >&6
4399 if test -n "$CXX"; then
4400 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4406 test -z "$as_dir" && as_dir
=.
4407 for ac_exec_ext
in '' $ac_executable_extensions; do
4408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4409 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 if test -n "$CXX"; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4422 $as_echo "$CXX" >&6; }
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425 $as_echo "no" >&6; }
4429 test -n "$CXX" && break
4432 if test -z "$CXX"; then
4434 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4436 # Extract the first word of "$ac_prog", so it can be a program name with args.
4437 set dummy
$ac_prog; ac_word
=$2
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4443 if test -n "$ac_ct_CXX"; then
4444 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4450 test -z "$as_dir" && as_dir
=.
4451 for ac_exec_ext
in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4464 if test -n "$ac_ct_CXX"; then
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4466 $as_echo "$ac_ct_CXX" >&6; }
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469 $as_echo "no" >&6; }
4473 test -n "$ac_ct_CXX" && break
4476 if test "x$ac_ct_CXX" = x
; then
4479 case $cross_compiling:$ac_tool_warned in
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4483 ac_tool_warned
=yes ;;
4491 # Provide some information about the compiler.
4492 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4495 for ac_option
in --version -v -V -qversion; do
4496 { { ac_try
="$ac_compiler $ac_option >&5"
4498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502 $as_echo "$ac_try_echo"; } >&5
4503 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4505 if test -s conftest.err; then
4507 ... rest of stderr output deleted ...
4508 10q' conftest.err >conftest.er1
4509 cat conftest.er1 >&5
4510 rm -f conftest.er1 conftest.err
4512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513 test $ac_status = 0; }
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4517 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4518 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4519 $as_echo_n "(cached) " >&6
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4535 if ac_fn_cxx_try_compile "$LINENO"; then :
4540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4541 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4545 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4546 if test $ac_compiler_gnu = yes; then
4551 ac_test_CXXFLAGS=${CXXFLAGS+set}
4552 ac_save_CXXFLAGS=$CXXFLAGS
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4554 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4555 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
4558 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4559 ac_cxx_werror_flag=yes
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4573 if ac_fn_cxx_try_compile "$LINENO"; then :
4574 ac_cv_prog_cxx_g=yes
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4588 if ac_fn_cxx_try_compile "$LINENO"; then :
4591 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4604 if ac_fn_cxx_try_compile "$LINENO"; then :
4605 ac_cv_prog_cxx_g=yes
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4615 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4616 if test "$ac_test_CXXFLAGS" = set; then
4617 CXXFLAGS=$ac_save_CXXFLAGS
4618 elif test $ac_cv_prog_cxx_g = yes; then
4619 if test "$GXX" = yes; then
4625 if test "$GXX" = yes; then
4632 ac_cpp='$CPP $CPPFLAGS'
4633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4640 if test -n "$ac_tool_prefix"; then
4641 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4642 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644 $as_echo_n "checking for $ac_word... " >&6; }
4645 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4646 $as_echo_n "(cached) " >&6
4648 if test -n "$GNATBIND"; then
4649 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 GNATBIND=$ac_cv_prog_GNATBIND
4669 if test -n "$GNATBIND"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4671 $as_echo "$GNATBIND" >&6; }
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4679 if test -z "$ac_cv_prog_GNATBIND"; then
4680 ac_ct_GNATBIND=$GNATBIND
4681 # Extract the first word of "gnatbind", so it can be a program name with args.
4682 set dummy gnatbind; ac_word=$2
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684 $as_echo_n "checking for $ac_word... " >&6; }
4685 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4688 if test -n "$ac_ct_GNATBIND"; then
4689 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4698 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4709 if test -n "$ac_ct_GNATBIND"; then
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4711 $as_echo "$ac_ct_GNATBIND" >&6; }
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714 $as_echo "no" >&6; }
4717 if test "x$ac_ct_GNATBIND" = x; then
4720 case $cross_compiling:$ac_tool_warned in
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4724 ac_tool_warned=yes ;;
4726 GNATBIND=$ac_ct_GNATBIND
4729 GNATBIND="$ac_cv_prog_GNATBIND"
4732 if test -n "$ac_tool_prefix"; then
4733 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4734 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736 $as_echo_n "checking for $ac_word... " >&6; }
4737 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4738 $as_echo_n "(cached) " >&6
4740 if test -n "$GNATMAKE"; then
4741 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 GNATMAKE=$ac_cv_prog_GNATMAKE
4761 if test -n "$GNATMAKE"; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4763 $as_echo "$GNATMAKE" >&6; }
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4771 if test -z "$ac_cv_prog_GNATMAKE"; then
4772 ac_ct_GNATMAKE=$GNATMAKE
4773 # Extract the first word of "gnatmake", so it can be a program name with args.
4774 set dummy gnatmake; ac_word=$2
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776 $as_echo_n "checking for $ac_word... " >&6; }
4777 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4780 if test -n "$ac_ct_GNATMAKE"; then
4781 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4801 if test -n "$ac_ct_GNATMAKE"; then
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4803 $as_echo "$ac_ct_GNATMAKE" >&6; }
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4809 if test "x$ac_ct_GNATMAKE" = x; then
4812 case $cross_compiling:$ac_tool_warned in
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4816 ac_tool_warned=yes ;;
4818 GNATMAKE=$ac_ct_GNATMAKE
4821 GNATMAKE="$ac_cv_prog_GNATMAKE"
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4825 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4826 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4827 $as_echo_n "(cached) " >&6
4829 cat >conftest.adb <<EOF
4830 procedure conftest is begin null; end conftest;
4832 acx_cv_cc_gcc_supports_ada=no
4833 # There is a bug in old released versions of GCC which causes the
4834 # driver to exit successfully when the appropriate language module
4835 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4836 # Therefore we must check for the error message as well as an
4837 # unsuccessful exit.
4838 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4839 # given a .adb file, but produce no object file. So we must check
4840 # if an object file was really produced to guard against this.
4841 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4842 if test x"$errors" = x && test -f conftest.$ac_objext; then
4843 acx_cv_cc_gcc_supports_ada=yes
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4848 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4850 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4857 # autoconf is lame and doesn't give us any substitution variable for this.
4858 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4859 NO_MINUS_C_MINUS_O=yes
4861 OUTPUT_OPTION='-o $@'
4866 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4867 # optimizations to be activated explicitly by the toplevel.
4869 */prev-gcc/xgcc*) ;;
4870 *) CFLAGS=`echo "$CFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4871 CXXFLAGS=`echo "$CXXFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4876 # Determine PICFLAG for target gnatlib.
4882 # PIC is the default on some targets or must not be used.
4884 # PIC is the default on this platform
4885 # Common symbols not allowed in MH_DYLIB files
4886 PICFLAG_FOR_TARGET=-fno-common
4889 # PIC is the default.
4892 # PIC is the default for 64-bit PA HP-UX.
4894 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4896 i[34567]86-*-interix[3-9]*)
4897 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4898 # Instead, we relocate shared libraries at runtime.
4900 i[34567]86-*-nto-qnx*)
4901 # QNX uses GNU C++, but need to define -shared option too, otherwise
4903 PICFLAG_FOR_TARGET='-fPIC -shared'
4905 i[34567]86-pc-msdosdjgpp*)
4906 # DJGPP does not support shared libraries at all.
4909 # On IA64 HP-UX, PIC is the default but the pic flag
4910 # sets the default TLS model and affects inlining.
4911 PICFLAG_FOR_TARGET=-fPIC
4914 # PIC is the default.
4916 rs6000-ibm-aix* | powerpc-ibm-aix*)
4917 # All AIX code is PIC.
4920 # Some targets support both -fPIC and -fpic, but prefer the latter.
4922 i[34567]86-*-* | x86_64-*-*)
4923 PICFLAG_FOR_TARGET=-fpic
4926 PICFLAG_FOR_TARGET=-fpic
4928 # FIXME: Override -fPIC default in libgcc only?
4929 sh-*-linux* | sh[2346lbe]*-*-linux*)
4930 PICFLAG_FOR_TARGET=-fpic
4932 # FIXME: Simplify to sh*-*-netbsd*?
4933 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4934 sh64-*-netbsd* | sh64l*-*-netbsd*)
4935 PICFLAG_FOR_TARGET=-fpic
4937 # Default to -fPIC unless specified otherwise.
4939 PICFLAG_FOR_TARGET=-fPIC
4943 # If the user explicitly uses -fpic/-fPIC, keep that.
4944 case "${CFLAGS_FOR_TARGET}" in
4946 PICFLAG_FOR_TARGET=-fpic
4949 PICFLAG_FOR_TARGET=-fPIC
4955 # -------------------------
4956 # Check C compiler features
4957 # -------------------------
4961 ac_cpp='$CPP $CPPFLAGS'
4962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4966 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4967 # On Suns, sometimes $CPP names a directory.
4968 if test -n "$CPP" && test -d "$CPP"; then
4971 if test -z "$CPP"; then
4972 if test "${ac_cv_prog_CPP+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
4975 # Double quotes because CPP needs to be expanded
4976 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4979 for ac_c_preproc_warn_flag in '' yes
4981 # Use a header file that comes with gcc, so configuring glibc
4982 # with a fresh cross-compiler works.
4983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4984 # <limits.h> exists even on freestanding compilers.
4985 # On the NeXT, cc -E runs the code through the compiler's parser,
4986 # not just through cpp. "Syntax error" is here to catch this case.
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4990 # include <limits.h>
4992 # include <assert.h>
4996 if ac_fn_c_try_cpp "$LINENO"; then :
4999 # Broken: fails on valid input.
5002 rm -f conftest.err conftest.$ac_ext
5004 # OK, works on sane cases. Now check whether nonexistent headers
5005 # can be detected and how.
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5008 #include <ac_nonexistent.h>
5010 if ac_fn_c_try_cpp "$LINENO"; then :
5011 # Broken: success on invalid input.
5014 # Passes both tests.
5018 rm -f conftest.err conftest.$ac_ext
5021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5022 rm -f conftest.err conftest.
$ac_ext
5023 if $ac_preproc_ok; then :
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5036 $as_echo "$CPP" >&6; }
5038 for ac_c_preproc_warn_flag
in '' yes
5040 # Use a header file that comes with gcc, so configuring glibc
5041 # with a fresh cross-compiler works.
5042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5043 # <limits.h> exists even on freestanding compilers.
5044 # On the NeXT, cc -E runs the code through the compiler's parser,
5045 # not just through cpp. "Syntax error" is here to catch this case.
5046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5049 # include <limits.h>
5051 # include <assert.h>
5055 if ac_fn_c_try_cpp
"$LINENO"; then :
5058 # Broken: fails on valid input.
5061 rm -f conftest.err conftest.
$ac_ext
5063 # OK, works on sane cases. Now check whether nonexistent headers
5064 # can be detected and how.
5065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5067 #include <ac_nonexistent.h>
5069 if ac_fn_c_try_cpp
"$LINENO"; then :
5070 # Broken: success on invalid input.
5073 # Passes both tests.
5077 rm -f conftest.err conftest.
$ac_ext
5080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5081 rm -f conftest.err conftest.
$ac_ext
5082 if $ac_preproc_ok; then :
5085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5087 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5088 See \`config.log' for more details." "$LINENO" 5; }
5092 ac_cpp
='$CPP $CPPFLAGS'
5093 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5094 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5095 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5099 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5100 if test "${ac_cv_path_GREP+set}" = set; then :
5101 $as_echo_n "(cached) " >&6
5103 if test -z "$GREP"; then
5104 ac_path_GREP_found
=false
5105 # Loop through the user's path and test for each of PROGNAME-LIST
5106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5107 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5110 test -z "$as_dir" && as_dir
=.
5111 for ac_prog
in grep ggrep
; do
5112 for ac_exec_ext
in '' $ac_executable_extensions; do
5113 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5114 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5115 # Check for GNU ac_path_GREP and select it if it is found.
5116 # Check for GNU $ac_path_GREP
5117 case `"$ac_path_GREP" --version 2>&1` in
5119 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5122 $as_echo_n 0123456789 >"conftest.in"
5125 cat "conftest.in" "conftest.in" >"conftest.tmp"
5126 mv "conftest.tmp" "conftest.in"
5127 cp "conftest.in" "conftest.nl"
5128 $as_echo 'GREP' >> "conftest.nl"
5129 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5130 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5131 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5132 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5133 # Best one so far, save it but keep looking for a better one
5134 ac_cv_path_GREP
="$ac_path_GREP"
5135 ac_path_GREP_max
=$ac_count
5137 # 10*(2^10) chars as input seems more than enough
5138 test $ac_count -gt 10 && break
5140 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5143 $ac_path_GREP_found && break 3
5148 if test -z "$ac_cv_path_GREP"; then
5149 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5152 ac_cv_path_GREP
=$GREP
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5157 $as_echo "$ac_cv_path_GREP" >&6; }
5158 GREP
="$ac_cv_path_GREP"
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5162 $as_echo_n "checking for egrep... " >&6; }
5163 if test "${ac_cv_path_EGREP+set}" = set; then :
5164 $as_echo_n "(cached) " >&6
5166 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5167 then ac_cv_path_EGREP
="$GREP -E"
5169 if test -z "$EGREP"; then
5170 ac_path_EGREP_found
=false
5171 # Loop through the user's path and test for each of PROGNAME-LIST
5172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5173 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5176 test -z "$as_dir" && as_dir
=.
5177 for ac_prog
in egrep; do
5178 for ac_exec_ext
in '' $ac_executable_extensions; do
5179 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5180 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5181 # Check for GNU ac_path_EGREP and select it if it is found.
5182 # Check for GNU $ac_path_EGREP
5183 case `"$ac_path_EGREP" --version 2>&1` in
5185 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5188 $as_echo_n 0123456789 >"conftest.in"
5191 cat "conftest.in" "conftest.in" >"conftest.tmp"
5192 mv "conftest.tmp" "conftest.in"
5193 cp "conftest.in" "conftest.nl"
5194 $as_echo 'EGREP' >> "conftest.nl"
5195 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5196 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5197 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5198 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5199 # Best one so far, save it but keep looking for a better one
5200 ac_cv_path_EGREP
="$ac_path_EGREP"
5201 ac_path_EGREP_max
=$ac_count
5203 # 10*(2^10) chars as input seems more than enough
5204 test $ac_count -gt 10 && break
5206 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5209 $ac_path_EGREP_found && break 3
5214 if test -z "$ac_cv_path_EGREP"; then
5215 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5218 ac_cv_path_EGREP
=$EGREP
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5224 $as_echo "$ac_cv_path_EGREP" >&6; }
5225 EGREP
="$ac_cv_path_EGREP"
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5229 $as_echo_n "checking for ANSI C header files... " >&6; }
5230 if test "${ac_cv_header_stdc+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5248 if ac_fn_c_try_compile
"$LINENO"; then :
5249 ac_cv_header_stdc
=yes
5251 ac_cv_header_stdc
=no
5253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5255 if test $ac_cv_header_stdc = yes; then
5256 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5263 $EGREP "memchr" >/dev
/null
2>&1; then :
5266 ac_cv_header_stdc
=no
5272 if test $ac_cv_header_stdc = yes; then
5273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5280 $EGREP "free" >/dev
/null
2>&1; then :
5283 ac_cv_header_stdc
=no
5289 if test $ac_cv_header_stdc = yes; then
5290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5291 if test "$cross_compiling" = yes; then :
5294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5298 #if ((' ' & 0x0FF) == 0x020)
5299 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5300 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5302 # define ISLOWER(c) \
5303 (('a' <= (c) && (c) <= 'i') \
5304 || ('j' <= (c) && (c) <= 'r') \
5305 || ('s' <= (c) && (c) <= 'z'))
5306 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5309 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5314 for (i = 0; i < 256; i++)
5315 if (XOR (islower (i), ISLOWER (i))
5316 || toupper (i) != TOUPPER (i))
5321 if ac_fn_c_try_run
"$LINENO"; then :
5324 ac_cv_header_stdc
=no
5326 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5327 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5333 $as_echo "$ac_cv_header_stdc" >&6; }
5334 if test $ac_cv_header_stdc = yes; then
5336 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5340 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5341 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5342 inttypes.h stdint.h unistd.h
5344 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5345 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5347 eval as_val
=\$
$as_ac_Header
5348 if test "x$as_val" = x
""yes; then :
5349 cat >>confdefs.h
<<_ACEOF
5350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5359 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5360 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5367 if test "$MINIX" = yes; then
5369 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5372 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5375 $as_echo "#define _MINIX 1" >>confdefs.h
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5381 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5382 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5383 $as_echo_n "(cached) " >&6
5385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5388 # define __EXTENSIONS__ 1
5389 $ac_includes_default
5398 if ac_fn_c_try_compile
"$LINENO"; then :
5399 ac_cv_safe_to_define___extensions__
=yes
5401 ac_cv_safe_to_define___extensions__
=no
5403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5406 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5407 test $ac_cv_safe_to_define___extensions__ = yes &&
5408 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5410 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5412 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5414 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5416 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5420 ac_cpp
='$CPP $CPPFLAGS'
5421 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5425 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5426 # On Suns, sometimes $CPP names a directory.
5427 if test -n "$CPP" && test -d "$CPP"; then
5430 if test -z "$CPP"; then
5431 if test "${ac_cv_prog_CPP+set}" = set; then :
5432 $as_echo_n "(cached) " >&6
5434 # Double quotes because CPP needs to be expanded
5435 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5438 for ac_c_preproc_warn_flag
in '' yes
5440 # Use a header file that comes with gcc, so configuring glibc
5441 # with a fresh cross-compiler works.
5442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5443 # <limits.h> exists even on freestanding compilers.
5444 # On the NeXT, cc -E runs the code through the compiler's parser,
5445 # not just through cpp. "Syntax error" is here to catch this case.
5446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5449 # include <limits.h>
5451 # include <assert.h>
5455 if ac_fn_c_try_cpp
"$LINENO"; then :
5458 # Broken: fails on valid input.
5461 rm -f conftest.err conftest.
$ac_ext
5463 # OK, works on sane cases. Now check whether nonexistent headers
5464 # can be detected and how.
5465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467 #include <ac_nonexistent.h>
5469 if ac_fn_c_try_cpp
"$LINENO"; then :
5470 # Broken: success on invalid input.
5473 # Passes both tests.
5477 rm -f conftest.err conftest.
$ac_ext
5480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5481 rm -f conftest.err conftest.
$ac_ext
5482 if $ac_preproc_ok; then :
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5495 $as_echo "$CPP" >&6; }
5497 for ac_c_preproc_warn_flag
in '' yes
5499 # Use a header file that comes with gcc, so configuring glibc
5500 # with a fresh cross-compiler works.
5501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5502 # <limits.h> exists even on freestanding compilers.
5503 # On the NeXT, cc -E runs the code through the compiler's parser,
5504 # not just through cpp. "Syntax error" is here to catch this case.
5505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5508 # include <limits.h>
5510 # include <assert.h>
5514 if ac_fn_c_try_cpp
"$LINENO"; then :
5517 # Broken: fails on valid input.
5520 rm -f conftest.err conftest.
$ac_ext
5522 # OK, works on sane cases. Now check whether nonexistent headers
5523 # can be detected and how.
5524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5526 #include <ac_nonexistent.h>
5528 if ac_fn_c_try_cpp
"$LINENO"; then :
5529 # Broken: success on invalid input.
5532 # Passes both tests.
5536 rm -f conftest.err conftest.
$ac_ext
5539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5540 rm -f conftest.err conftest.
$ac_ext
5541 if $ac_preproc_ok; then :
5544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5546 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5547 See \`config.log' for more details." "$LINENO" 5; }
5551 ac_cpp
='$CPP $CPPFLAGS'
5552 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5557 $as_echo_n "checking for inline... " >&6; }
5558 if test "${ac_cv_c_inline+set}" = set; then :
5559 $as_echo_n "(cached) " >&6
5562 for ac_kw
in inline __inline__ __inline
; do
5563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5567 static $ac_kw foo_t static_foo () {return 0; }
5568 $ac_kw foo_t foo () {return 0; }
5572 if ac_fn_c_try_compile
"$LINENO"; then :
5573 ac_cv_c_inline
=$ac_kw
5575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5576 test "$ac_cv_c_inline" != no
&& break
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5581 $as_echo "$ac_cv_c_inline" >&6; }
5583 case $ac_cv_c_inline in
5586 case $ac_cv_c_inline in
5588 *) ac_val
=$ac_cv_c_inline;;
5590 cat >>confdefs.h
<<_ACEOF
5592 #define inline $ac_val
5599 # Check whether --enable-largefile was given.
5600 if test "${enable_largefile+set}" = set; then :
5601 enableval
=$enable_largefile;
5604 if test "$enable_largefile" != no
; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5607 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5608 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5609 $as_echo_n "(cached) " >&6
5611 ac_cv_sys_largefile_CC
=no
5612 if test "$GCC" != yes; then
5615 # IRIX 6.2 and later do not support large files by default,
5616 # so use the C compiler's -n32 option if that helps.
5617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 #include <sys/types.h>
5620 /* Check that off_t can represent 2**63 - 1 correctly.
5621 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5622 since some C++ compilers masquerading as C compilers
5623 incorrectly reject 9223372036854775807. */
5624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5625 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5626 && LARGE_OFF_T % 2147483647 == 1)
5636 if ac_fn_c_try_compile
"$LINENO"; then :
5639 rm -f core conftest.err conftest.
$ac_objext
5641 if ac_fn_c_try_compile
"$LINENO"; then :
5642 ac_cv_sys_largefile_CC
=' -n32'; break
5644 rm -f core conftest.err conftest.
$ac_objext
5648 rm -f conftest.
$ac_ext
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5652 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5653 if test "$ac_cv_sys_largefile_CC" != no
; then
5654 CC
=$CC$ac_cv_sys_largefile_CC
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5658 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5659 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5660 $as_echo_n "(cached) " >&6
5663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h. */
5665 #include <sys/types.h>
5666 /* Check that off_t can represent 2**63 - 1 correctly.
5667 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5668 since some C++ compilers masquerading as C compilers
5669 incorrectly reject 9223372036854775807. */
5670 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5671 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5672 && LARGE_OFF_T % 2147483647 == 1)
5682 if ac_fn_c_try_compile
"$LINENO"; then :
5683 ac_cv_sys_file_offset_bits
=no
; break
5685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5688 #define _FILE_OFFSET_BITS 64
5689 #include <sys/types.h>
5690 /* Check that off_t can represent 2**63 - 1 correctly.
5691 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5692 since some C++ compilers masquerading as C compilers
5693 incorrectly reject 9223372036854775807. */
5694 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5695 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5696 && LARGE_OFF_T % 2147483647 == 1)
5706 if ac_fn_c_try_compile
"$LINENO"; then :
5707 ac_cv_sys_file_offset_bits
=64; break
5709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5710 ac_cv_sys_file_offset_bits
=unknown
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5715 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5716 case $ac_cv_sys_file_offset_bits in #(
5719 cat >>confdefs.h
<<_ACEOF
5720 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5725 if test $ac_cv_sys_file_offset_bits = unknown
; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5727 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5728 if test "${ac_cv_sys_large_files+set}" = set; then :
5729 $as_echo_n "(cached) " >&6
5732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h. */
5734 #include <sys/types.h>
5735 /* Check that off_t can represent 2**63 - 1 correctly.
5736 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5737 since some C++ compilers masquerading as C compilers
5738 incorrectly reject 9223372036854775807. */
5739 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5740 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5741 && LARGE_OFF_T % 2147483647 == 1)
5751 if ac_fn_c_try_compile
"$LINENO"; then :
5752 ac_cv_sys_large_files
=no
; break
5754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757 #define _LARGE_FILES 1
5758 #include <sys/types.h>
5759 /* Check that off_t can represent 2**63 - 1 correctly.
5760 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5761 since some C++ compilers masquerading as C compilers
5762 incorrectly reject 9223372036854775807. */
5763 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5764 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5765 && LARGE_OFF_T % 2147483647 == 1)
5775 if ac_fn_c_try_compile
"$LINENO"; then :
5776 ac_cv_sys_large_files
=1; break
5778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5779 ac_cv_sys_large_files
=unknown
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5784 $as_echo "$ac_cv_sys_large_files" >&6; }
5785 case $ac_cv_sys_large_files in #(
5788 cat >>confdefs.h
<<_ACEOF
5789 #define _LARGE_FILES $ac_cv_sys_large_files
5798 # sizeof(char) is 1 by definition.
5799 # The cast to long int works around a bug in the HP C Compiler
5800 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5801 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5802 # This bug is HP SR number 8606223364.
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5804 $as_echo_n "checking size of void *... " >&6; }
5805 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5808 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5811 if test "$ac_cv_type_void_p" = yes; then
5812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5814 { as_fn_set_status
77
5815 as_fn_error
"cannot compute sizeof (void *)
5816 See \`config.log' for more details." "$LINENO" 5; }; }
5818 ac_cv_sizeof_void_p
=0
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5824 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5828 cat >>confdefs.h
<<_ACEOF
5829 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5833 # The cast to long int works around a bug in the HP C Compiler
5834 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5835 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5836 # This bug is HP SR number 8606223364.
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5838 $as_echo_n "checking size of short... " >&6; }
5839 if test "${ac_cv_sizeof_short+set}" = set; then :
5840 $as_echo_n "(cached) " >&6
5842 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5845 if test "$ac_cv_type_short" = yes; then
5846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5848 { as_fn_set_status
77
5849 as_fn_error
"cannot compute sizeof (short)
5850 See \`config.log' for more details." "$LINENO" 5; }; }
5852 ac_cv_sizeof_short
=0
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5858 $as_echo "$ac_cv_sizeof_short" >&6; }
5862 cat >>confdefs.h
<<_ACEOF
5863 #define SIZEOF_SHORT $ac_cv_sizeof_short
5867 # The cast to long int works around a bug in the HP C Compiler
5868 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5869 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5870 # This bug is HP SR number 8606223364.
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5872 $as_echo_n "checking size of int... " >&6; }
5873 if test "${ac_cv_sizeof_int+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
5876 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5879 if test "$ac_cv_type_int" = yes; then
5880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5882 { as_fn_set_status
77
5883 as_fn_error
"cannot compute sizeof (int)
5884 See \`config.log' for more details." "$LINENO" 5; }; }
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5892 $as_echo "$ac_cv_sizeof_int" >&6; }
5896 cat >>confdefs.h
<<_ACEOF
5897 #define SIZEOF_INT $ac_cv_sizeof_int
5901 # The cast to long int works around a bug in the HP C Compiler
5902 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5903 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5904 # This bug is HP SR number 8606223364.
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5906 $as_echo_n "checking size of long... " >&6; }
5907 if test "${ac_cv_sizeof_long+set}" = set; then :
5908 $as_echo_n "(cached) " >&6
5910 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5913 if test "$ac_cv_type_long" = yes; then
5914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5916 { as_fn_set_status
77
5917 as_fn_error
"cannot compute sizeof (long)
5918 See \`config.log' for more details." "$LINENO" 5; }; }
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5926 $as_echo "$ac_cv_sizeof_long" >&6; }
5930 cat >>confdefs.h
<<_ACEOF
5931 #define SIZEOF_LONG $ac_cv_sizeof_long
5935 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5936 if test "x$ac_cv_type_long_long" = x
""yes; then :
5938 cat >>confdefs.h
<<_ACEOF
5939 #define HAVE_LONG_LONG 1
5942 # The cast to long int works around a bug in the HP C Compiler
5943 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5944 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5945 # This bug is HP SR number 8606223364.
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5947 $as_echo_n "checking size of long long... " >&6; }
5948 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5949 $as_echo_n "(cached) " >&6
5951 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5954 if test "$ac_cv_type_long_long" = yes; then
5955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5957 { as_fn_set_status
77
5958 as_fn_error
"cannot compute sizeof (long long)
5959 See \`config.log' for more details." "$LINENO" 5; }; }
5961 ac_cv_sizeof_long_long
=0
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5967 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5971 cat >>confdefs.h
<<_ACEOF
5972 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5978 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5979 if test "x$ac_cv_type___int64" = x
""yes; then :
5981 cat >>confdefs.h
<<_ACEOF
5982 #define HAVE___INT64 1
5985 # The cast to long int works around a bug in the HP C Compiler
5986 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5987 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5988 # This bug is HP SR number 8606223364.
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5990 $as_echo_n "checking size of __int64... " >&6; }
5991 if test "${ac_cv_sizeof___int64+set}" = set; then :
5992 $as_echo_n "(cached) " >&6
5994 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5997 if test "$ac_cv_type___int64" = yes; then
5998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6000 { as_fn_set_status
77
6001 as_fn_error
"cannot compute sizeof (__int64)
6002 See \`config.log' for more details." "$LINENO" 5; }; }
6004 ac_cv_sizeof___int64
=0
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6010 $as_echo "$ac_cv_sizeof___int64" >&6; }
6014 cat >>confdefs.h
<<_ACEOF
6015 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6021 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6022 case $ac_cv_c_int8_t in #(
6026 cat >>confdefs.h
<<_ACEOF
6027 #define int8_t $ac_cv_c_int8_t
6032 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6033 case $ac_cv_c_int16_t in #(
6037 cat >>confdefs.h
<<_ACEOF
6038 #define int16_t $ac_cv_c_int16_t
6043 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6044 case $ac_cv_c_int32_t in #(
6048 cat >>confdefs.h
<<_ACEOF
6049 #define int32_t $ac_cv_c_int32_t
6054 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6055 case $ac_cv_c_int64_t in #(
6059 cat >>confdefs.h
<<_ACEOF
6060 #define int64_t $ac_cv_c_int64_t
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6067 $as_echo_n "checking for long long int... " >&6; }
6068 if test "${ac_cv_type_long_long_int+set}" = set; then :
6069 $as_echo_n "(cached) " >&6
6071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6074 /* For now, do not test the preprocessor; as of 2007 there are too many
6075 implementations with broken preprocessors. Perhaps this can
6076 be revisited in 2012. In the meantime, code should not expect
6077 #if to work with literals wider than 32 bits. */
6078 /* Test literals. */
6079 long long int ll = 9223372036854775807ll;
6080 long long int nll = -9223372036854775807LL;
6081 unsigned long long int ull = 18446744073709551615ULL;
6082 /* Test constant expressions. */
6083 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6085 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6091 /* Test availability of runtime routines for shift and division. */
6092 long long int llmax = 9223372036854775807ll;
6093 unsigned long long int ullmax = 18446744073709551615ull;
6094 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6095 | (llmax / ll) | (llmax % ll)
6096 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6097 | (ullmax / ull) | (ullmax % ull));
6103 if ac_fn_c_try_link
"$LINENO"; then :
6104 if test "$cross_compiling" = yes; then :
6105 ac_cv_type_long_long_int
=yes
6107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6112 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6113 # define LLONG_MAX (HALF - 1 + HALF)
6118 long long int n = 1;
6122 long long int m = n << i;
6125 if (LLONG_MAX / 2 < m)
6133 if ac_fn_c_try_run
"$LINENO"; then :
6134 ac_cv_type_long_long_int
=yes
6136 ac_cv_type_long_long_int
=no
6138 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6139 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6143 ac_cv_type_long_long_int
=no
6145 rm -f core conftest.err conftest.
$ac_objext \
6146 conftest
$ac_exeext conftest.
$ac_ext
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6149 $as_echo "$ac_cv_type_long_long_int" >&6; }
6150 if test $ac_cv_type_long_long_int = yes; then
6152 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6158 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6159 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6161 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6164 test $ac_cv_type_long_long_int = yes \
6165 && ac_type
='long long int' \
6166 || ac_type
='long int'
6168 cat >>confdefs.h
<<_ACEOF
6169 #define intmax_t $ac_type
6176 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6177 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6179 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6182 for ac_type
in 'int' 'long int' 'long long int'; do
6183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6185 $ac_includes_default
6189 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6196 if ac_fn_c_try_compile
"$LINENO"; then :
6198 cat >>confdefs.h
<<_ACEOF
6199 #define intptr_t $ac_type
6204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6205 test -z "$ac_type" && break
6210 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6211 case $ac_cv_c_uint8_t in #(
6215 $as_echo "#define _UINT8_T 1" >>confdefs.h
6218 cat >>confdefs.h
<<_ACEOF
6219 #define uint8_t $ac_cv_c_uint8_t
6224 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6225 case $ac_cv_c_uint16_t in #(
6230 cat >>confdefs.h
<<_ACEOF
6231 #define uint16_t $ac_cv_c_uint16_t
6236 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6237 case $ac_cv_c_uint32_t in #(
6241 $as_echo "#define _UINT32_T 1" >>confdefs.h
6244 cat >>confdefs.h
<<_ACEOF
6245 #define uint32_t $ac_cv_c_uint32_t
6250 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6251 case $ac_cv_c_uint64_t in #(
6255 $as_echo "#define _UINT64_T 1" >>confdefs.h
6258 cat >>confdefs.h
<<_ACEOF
6259 #define uint64_t $ac_cv_c_uint64_t
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6266 $as_echo_n "checking for unsigned long long int... " >&6; }
6267 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6268 $as_echo_n "(cached) " >&6
6270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h. */
6273 /* For now, do not test the preprocessor; as of 2007 there are too many
6274 implementations with broken preprocessors. Perhaps this can
6275 be revisited in 2012. In the meantime, code should not expect
6276 #if to work with literals wider than 32 bits. */
6277 /* Test literals. */
6278 long long int ll = 9223372036854775807ll;
6279 long long int nll = -9223372036854775807LL;
6280 unsigned long long int ull = 18446744073709551615ULL;
6281 /* Test constant expressions. */
6282 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6284 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6290 /* Test availability of runtime routines for shift and division. */
6291 long long int llmax = 9223372036854775807ll;
6292 unsigned long long int ullmax = 18446744073709551615ull;
6293 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6294 | (llmax / ll) | (llmax % ll)
6295 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6296 | (ullmax / ull) | (ullmax % ull));
6302 if ac_fn_c_try_link
"$LINENO"; then :
6303 ac_cv_type_unsigned_long_long_int
=yes
6305 ac_cv_type_unsigned_long_long_int
=no
6307 rm -f core conftest.err conftest.
$ac_objext \
6308 conftest
$ac_exeext conftest.
$ac_ext
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6311 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6312 if test $ac_cv_type_unsigned_long_long_int = yes; then
6314 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6320 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6321 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6323 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6326 test $ac_cv_type_unsigned_long_long_int = yes \
6327 && ac_type
='unsigned long long int' \
6328 || ac_type
='unsigned long int'
6330 cat >>confdefs.h
<<_ACEOF
6331 #define uintmax_t $ac_type
6338 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6339 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6341 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6344 for ac_type
in 'unsigned int' 'unsigned long int' \
6345 'unsigned long long int'; do
6346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6348 $ac_includes_default
6352 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6359 if ac_fn_c_try_compile
"$LINENO"; then :
6361 cat >>confdefs.h
<<_ACEOF
6362 #define uintptr_t $ac_type
6367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6368 test -z "$ac_type" && break
6386 # ---------------------
6387 # Warnings and checking
6388 # ---------------------
6390 # Check $CC warning features (if it's GCC).
6391 # We want to use -pedantic, but we don't want warnings about
6394 # * overlong strings
6395 # * C++11 narrowing conversions in { }
6396 # So, we only use -pedantic if we can disable those warnings.
6399 save_CFLAGS
="$CFLAGS"
6400 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6401 # Do the check with the no- prefix removed since gcc silently
6402 # accepts any -Wno-* option on purpose
6403 case $real_option in
6404 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6405 *) option
=$real_option ;;
6407 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6410 $as_echo_n "checking whether $CC supports $option... " >&6; }
6411 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6412 $as_echo_n "(cached) " >&6
6415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6426 if ac_fn_c_try_compile
"$LINENO"; then :
6427 eval "$as_acx_Woption=yes"
6429 eval "$as_acx_Woption=no"
6431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6434 eval ac_res
=\$
$as_acx_Woption
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6436 $as_echo "$ac_res" >&6; }
6437 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6438 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6441 CFLAGS
="$save_CFLAGS"
6444 save_CFLAGS
="$CFLAGS"
6445 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6446 # Do the check with the no- prefix removed since gcc silently
6447 # accepts any -Wno-* option on purpose
6448 case $real_option in
6449 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6450 *) option
=$real_option ;;
6452 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6455 $as_echo_n "checking whether $CC supports $option... " >&6; }
6456 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6457 $as_echo_n "(cached) " >&6
6460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6471 if ac_fn_c_try_compile
"$LINENO"; then :
6472 eval "$as_acx_Woption=yes"
6474 eval "$as_acx_Woption=no"
6476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6479 eval ac_res
=\$
$as_acx_Woption
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6481 $as_echo "$ac_res" >&6; }
6482 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6483 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6486 CFLAGS
="$save_CFLAGS"
6489 save_CFLAGS
="$CFLAGS"
6490 for real_option
in -Wmissing-format-attribute; do
6491 # Do the check with the no- prefix removed since gcc silently
6492 # accepts any -Wno-* option on purpose
6493 case $real_option in
6494 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6495 *) option
=$real_option ;;
6497 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6500 $as_echo_n "checking whether $CC supports $option... " >&6; }
6501 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6502 $as_echo_n "(cached) " >&6
6505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h. */
6516 if ac_fn_c_try_compile
"$LINENO"; then :
6517 eval "$as_acx_Woption=yes"
6519 eval "$as_acx_Woption=no"
6521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6524 eval ac_res
=\$
$as_acx_Woption
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6526 $as_echo "$ac_res" >&6; }
6527 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6528 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6531 CFLAGS
="$save_CFLAGS"
6534 save_CFLAGS
="$CFLAGS"
6535 for real_option
in -Wold-style-definition -Wc++-compat; do
6536 # Do the check with the no- prefix removed since gcc silently
6537 # accepts any -Wno-* option on purpose
6538 case $real_option in
6539 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6540 *) option
=$real_option ;;
6542 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6545 $as_echo_n "checking whether $CC supports $option... " >&6; }
6546 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6547 $as_echo_n "(cached) " >&6
6550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6561 if ac_fn_c_try_compile
"$LINENO"; then :
6562 eval "$as_acx_Woption=yes"
6564 eval "$as_acx_Woption=no"
6566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6569 eval ac_res
=\$
$as_acx_Woption
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6571 $as_echo "$ac_res" >&6; }
6572 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6573 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6576 CFLAGS
="$save_CFLAGS"
6578 # Do the check with the no- prefix removed from the warning options
6579 # since gcc silently accepts any -Wno-* option on purpose
6580 if test "$GCC" = yes; then :
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6582 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6583 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6584 $as_echo_n "(cached) " >&6
6586 save_CFLAGS
="$CFLAGS"
6587 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6599 if ac_fn_c_try_compile
"$LINENO"; then :
6600 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6602 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6605 CFLAGS
="$save_CFLAGS"
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6608 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6609 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6610 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6615 # Check whether --enable-werror-always was given.
6616 if test "${enable_werror_always+set}" = set; then :
6617 enableval
=$enable_werror_always;
6619 enable_werror_always
=no
6622 if test $enable_werror_always = yes; then :
6623 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6628 # The above macros do nothing if the compiler is not GCC. However, the
6629 # Makefile has more goo to add other flags, so these variables are used
6630 # to enable warnings only for GCC.
6633 if test "x$GCC" = "xyes"; then
6634 warn_cflags
='$(GCC_WARN_CFLAGS)'
6635 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6640 # Disable exceptions and RTTI if building with g++
6642 save_CFLAGS
="$CFLAGS"
6643 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6644 # Do the check with the no- prefix removed since gcc silently
6645 # accepts any -Wno-* option on purpose
6646 case $real_option in
6647 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6648 *) option
=$real_option ;;
6650 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6653 $as_echo_n "checking whether $CC supports $option... " >&6; }
6654 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6655 $as_echo_n "(cached) " >&6
6658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6669 if ac_fn_c_try_compile
"$LINENO"; then :
6670 eval "$as_acx_Woption=yes"
6672 eval "$as_acx_Woption=no"
6674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6677 eval ac_res
=\$
$as_acx_Woption
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6679 $as_echo "$ac_res" >&6; }
6680 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6681 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6684 CFLAGS
="$save_CFLAGS"
6687 # Enable expensive internal checks
6689 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6693 # Check whether --enable-checking was given.
6694 if test "${enable_checking+set}" = set; then :
6695 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6698 # Determine the default checks.
6699 if test x
$is_release = x
; then
6700 ac_checking_flags
=yes
6702 ac_checking_flags
=release
6706 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6707 for check
in release
$ac_checking_flags
6710 # these set all the flags to specific states
6711 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6712 ac_fold_checking
= ; ac_gc_checking
=1 ;
6713 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6714 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6715 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6716 ac_types_checking
=1 ;;
6717 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6718 ac_fold_checking
= ; ac_gc_checking
= ;
6719 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6720 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6721 ac_tree_checking
= ; ac_valgrind_checking
= ;
6722 ac_types_checking
= ;;
6723 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6724 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6725 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6726 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6727 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6728 ac_types_checking
=1 ;;
6729 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6730 ac_fold_checking
= ; ac_gc_checking
= ;
6731 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6732 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6733 ac_tree_checking
= ; ac_valgrind_checking
= ;
6734 ac_types_checking
= ;;
6735 # these enable particular checks
6736 assert
) ac_assert_checking
=1 ;;
6737 df
) ac_df_checking
=1 ;;
6738 fold) ac_fold_checking
=1 ;;
6739 gc
) ac_gc_checking
=1 ;;
6740 gcac
) ac_gc_always_collect
=1 ;;
6741 gimple
) ac_gimple_checking
=1 ;;
6742 misc
) ac_checking
=1 ;;
6743 rtl
) ac_rtl_checking
=1 ;;
6744 rtlflag
) ac_rtlflag_checking
=1 ;;
6745 runtime
) ac_runtime_checking
=1 ;;
6746 tree
) ac_tree_checking
=1 ;;
6747 types
) ac_types_checking
=1 ;;
6748 valgrind
) ac_valgrind_checking
=1 ;;
6749 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6755 if test x
$ac_checking != x
; then
6757 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6759 nocommon_flag
=-fno-common
6762 if test x
$ac_df_checking != x
; then
6764 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6767 if test x
$ac_assert_checking != x
; then
6769 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6772 if test x
$ac_gimple_checking != x
; then
6774 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6778 if test x
$ac_runtime_checking != x
; then
6780 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6783 if test x
$ac_tree_checking != x
; then
6785 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6787 TREEBROWSER
=tree-browser.o
6789 if test x
$ac_types_checking != x
; then
6791 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6795 if test x
$ac_rtl_checking != x
; then
6797 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6800 if test x
$ac_rtlflag_checking != x
; then
6802 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6805 if test x
$ac_gc_checking != x
; then
6807 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6810 if test x
$ac_gc_always_collect != x
; then
6812 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6815 if test x
$ac_fold_checking != x
; then
6817 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6820 valgrind_path_defines
=
6823 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6824 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6832 if test x
$ac_valgrind_checking != x
; then
6833 # It is certainly possible that there's valgrind but no valgrind.h.
6834 # GCC relies on making annotations so we must have both.
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6836 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839 #include <valgrind/memcheck.h>
6840 #ifndef VALGRIND_DISCARD
6841 #error VALGRIND_DISCARD not defined
6844 if ac_fn_c_try_cpp
"$LINENO"; then :
6845 gcc_cv_header_valgrind_memcheck_h
=yes
6847 gcc_cv_header_valgrind_memcheck_h
=no
6849 rm -f conftest.err conftest.
$ac_ext
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6851 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6853 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h. */
6856 #include <memcheck.h>
6857 #ifndef VALGRIND_DISCARD
6858 #error VALGRIND_DISCARD not defined
6861 if ac_fn_c_try_cpp
"$LINENO"; then :
6862 gcc_cv_header_memcheck_h
=yes
6864 gcc_cv_header_memcheck_h
=no
6866 rm -f conftest.err conftest.
$ac_ext
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6868 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6870 # Prepare PATH_SEPARATOR.
6871 # The user is always right.
6872 if test "${PATH_SEPARATOR+set}" != set; then
6873 echo "#! /bin/sh" >conf$$.sh
6874 echo "exit 0" >>conf$$.sh
6876 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6884 # Find out how to test for executable files. Don't use a zero-byte file,
6885 # as systems may use methods other than mode bits to determine executability.
6886 cat >conf$$.
file <<_ASEOF
6890 chmod +x conf$$.
file
6891 if test -x conf$$.
file >/dev
/null
2>&1; then
6892 ac_executable_p
="test -x"
6894 ac_executable_p
="test -f"
6898 # Extract the first word of "valgrind", so it can be a program name with args.
6899 set dummy valgrind
; ac_word
=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6903 $as_echo_n "(cached) " >&6
6905 case "$valgrind_path" in
6907 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6910 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6911 for ac_dir
in $PATH; do
6913 test -z "$ac_dir" && ac_dir
=.
6914 for ac_exec_ext
in '' $ac_executable_extensions; do
6915 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6916 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6917 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6927 valgrind_path
="$ac_cv_path_valgrind_path"
6928 if test -n "$valgrind_path"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6930 $as_echo "$valgrind_path" >&6; }
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6936 if test "x$valgrind_path" = "x" \
6937 ||
(test $have_valgrind_h = no \
6938 && test $gcc_cv_header_memcheck_h = no \
6939 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6940 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6942 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6943 valgrind_command
="$valgrind_path -q"
6945 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6947 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6949 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6952 if test $gcc_cv_header_memcheck_h = yes; then
6954 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6961 # Enable code coverage collection
6962 # Check whether --enable-coverage was given.
6963 if test "${enable_coverage+set}" = set; then :
6964 enableval
=$enable_coverage; case "${enableval}" in
6966 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6969 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6972 # a.k.a. --disable-coverage
6976 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6985 # Check whether --enable-gather-detailed-mem-stats was given.
6986 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6987 enableval
=$enable_gather_detailed_mem_stats;
6989 enable_gather_detailed_mem_stats
=no
6992 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6994 cat >>confdefs.h
<<_ACEOF
6995 #define GATHER_STATISTICS $gather_stats
6999 # -------------------------------
7000 # Miscenalleous configure options
7001 # -------------------------------
7005 # Check whether --with-stabs was given.
7006 if test "${with_stabs+set}" = set; then :
7007 withval
=$with_stabs; stabs
="$with_stabs"
7013 # Determine whether or not multilibs are enabled.
7014 # Check whether --enable-multilib was given.
7015 if test "${enable_multilib+set}" = set; then :
7016 enableval
=$enable_multilib;
7023 # Determine whether or not multiarch is enabled.
7024 # Check whether --enable-multiarch was given.
7025 if test "${enable_multiarch+set}" = set; then :
7026 enableval
=$enable_multiarch; case "${withval}" in
7027 yes|no|auto
) enable_multiarch
=$withval;;
7028 *) as_fn_error
"bad value ${withval} given for --enable-multiarch option" "$LINENO" 5 ;;
7031 enable_multiarch
=auto
7034 if test x
${enable_multiarch} = xauto
; then
7035 if test x
${with_native_system_header_dir} != x
; then
7036 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7039 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7040 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7045 $as_echo_n "checking for multiarch configuration... " >&6; }
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7048 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7050 # needed for setting the multiarch name for soft-float/hard-float ABIs
7053 # Enable __cxa_atexit for C++.
7054 # Check whether --enable-__cxa_atexit was given.
7055 if test "${enable___cxa_atexit+set}" = set; then :
7056 enableval
=$enable___cxa_atexit;
7060 # Enable C extension for decimal float if target supports it.
7062 # Check whether --enable-decimal-float was given.
7063 if test "${enable_decimal_float+set}" = set; then :
7064 enableval
=$enable_decimal_float;
7065 case $enable_decimal_float in
7066 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7067 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7068 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7074 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7075 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7077 enable_decimal_float
=yes
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7081 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7082 enable_decimal_float
=no
7089 # x86's use BID format instead of DPD
7090 case x
$enable_decimal_float in
7093 i?
86*-*-* | x86_64
*-*-*)
7094 enable_decimal_float
=bid
7097 enable_decimal_float
=dpd
7100 default_decimal_float
=$enable_decimal_float
7103 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7104 # dependency on libdecnumber.
7105 default_decimal_float
=dpd
7112 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7114 cat >>confdefs.h
<<_ACEOF
7115 #define ENABLE_DECIMAL_FLOAT $dfp
7119 # Use default_decimal_float for dependency.
7120 enable_decimal_float
=$default_decimal_float
7122 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7124 cat >>confdefs.h
<<_ACEOF
7125 #define ENABLE_DECIMAL_BID_FORMAT $bid
7129 # Enable C extension for fixed-point arithmetic.
7130 # Check whether --enable-fixed-point was given.
7131 if test "${enable_fixed_point+set}" = set; then :
7132 enableval
=$enable_fixed_point;
7137 enable_fixed_point
=yes
7141 enable_fixed_point
=yes
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7145 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7146 enable_fixed_point
=no
7154 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7156 cat >>confdefs.h
<<_ACEOF
7157 #define ENABLE_FIXED_POINT $fixedpoint
7162 # Pass with no value to take the default
7163 # Pass with a value to specify a thread package
7164 # Check whether --enable-threads was given.
7165 if test "${enable_threads+set}" = set; then :
7166 enableval
=$enable_threads;
7172 # Check whether --enable-tls was given.
7173 if test "${enable_tls+set}" = set; then :
7174 enableval
=$enable_tls;
7177 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7178 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7186 # Check whether --enable-objc-gc was given.
7187 if test "${enable_objc_gc+set}" = set; then :
7188 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7199 # Check whether --with-dwarf2 was given.
7200 if test "${with_dwarf2+set}" = set; then :
7201 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7207 # Check whether --enable-shared was given.
7208 if test "${enable_shared+set}" = set; then :
7209 enableval
=$enable_shared;
7210 case $enable_shared in
7214 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7215 for pkg
in $enableval; do
7216 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7231 # Check whether --with-native-system-header-dir was given.
7232 if test "${with_native_system_header_dir+set}" = set; then :
7233 withval
=$with_native_system_header_dir;
7234 case ${with_native_system_header_dir} in
7235 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7236 /* |
[A-Za-z
]:[\\/]*) ;;
7237 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7239 configured_native_system_header_dir
="${withval}"
7242 configured_native_system_header_dir
=
7247 # Check whether --with-build-sysroot was given.
7248 if test "${with_build_sysroot+set}" = set; then :
7249 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7250 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7253 SYSROOT_CFLAGS_FOR_TARGET
=
7258 if test "x$prefix" = xNONE
; then
7259 test_prefix
=/usr
/local
7263 if test "x$exec_prefix" = xNONE
; then
7264 test_exec_prefix
=$test_prefix
7266 test_exec_prefix
=$exec_prefix
7270 # Check whether --with-sysroot was given.
7271 if test "${with_sysroot+set}" = set; then :
7272 withval
=$with_sysroot;
7273 case ${with_sysroot} in
7274 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7275 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7278 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7279 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7281 case ${TARGET_SYSTEM_ROOT} in
7282 "${test_prefix}"|
"${test_prefix}/"*|\
7283 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7284 '${prefix}'|
'${prefix}/'*|\
7285 '${exec_prefix}'|
'${exec_prefix}/'*)
7286 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7287 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7294 TARGET_SYSTEM_ROOT_DEFINE
=
7295 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7304 # Check whether --with-specs was given.
7305 if test "${with_specs+set}" = set; then :
7306 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7316 # Check whether --with-pkgversion was given.
7317 if test "${with_pkgversion+set}" = set; then :
7318 withval
=$with_pkgversion; case "$withval" in
7319 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7321 *) PKGVERSION
="($withval) " ;;
7332 # Check whether --with-bugurl was given.
7333 if test "${with_bugurl+set}" = set; then :
7334 withval
=$with_bugurl; case "$withval" in
7335 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7338 *) BUGURL
="$withval"
7342 BUGURL
="http://gcc.gnu.org/bugs.html"
7352 REPORT_BUGS_TO
="<$BUGURL>"
7353 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7360 # Sanity check enable_languages in case someone does not run the toplevel
7361 # configure # script.
7362 # Check whether --enable-languages was given.
7363 if test "${enable_languages+set}" = set; then :
7364 enableval
=$enable_languages; case ,${enable_languages}, in
7366 # go safe -- we cannot be much sure without the toplevel
7368 # analysis of which target libs are present and usable
7372 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7377 enable_languages
=c
,${enable_languages}
7386 # Check whether --with-multilib-list was given.
7387 if test "${with_multilib_list+set}" = set; then :
7388 withval
=$with_multilib_list; :
7390 with_multilib_list
=default
7394 # -------------------------
7395 # Checks for other programs
7396 # -------------------------
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7399 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7401 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7402 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7403 $as_echo_n "(cached) " >&6
7405 cat >conftest.
make <<\_ACEOF
7408 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7410 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7411 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7413 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7415 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7419 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7421 $as_echo "yes" >&6; }
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7426 SET_MAKE
="MAKE=${MAKE-make}"
7430 # Find some useful tools
7431 for ac_prog
in gawk mawk nawk
awk
7433 # Extract the first word of "$ac_prog", so it can be a program name with args.
7434 set dummy
$ac_prog; ac_word
=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if test "${ac_cv_prog_AWK+set}" = set; then :
7438 $as_echo_n "(cached) " >&6
7440 if test -n "$AWK"; then
7441 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7447 test -z "$as_dir" && as_dir
=.
7448 for ac_exec_ext
in '' $ac_executable_extensions; do
7449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7450 ac_cv_prog_AWK
="$ac_prog"
7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 if test -n "$AWK"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7463 $as_echo "$AWK" >&6; }
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7470 test -n "$AWK" && break
7473 # We need awk to create options.c and options.h.
7474 # Bail out if it's missing.
7476 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7480 $as_echo_n "checking whether ln -s works... " >&6; }
7481 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7482 $as_echo_n "(cached) " >&6
7484 rm -f conftestdata_t
7485 echo >conftestdata_f
7486 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7488 gcc_cv_prog_LN_S
="ln -s"
7490 if ln conftestdata_f conftestdata_t
2>/dev
/null
7494 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7496 gcc_cv_prog_LN_S
="cp -p"
7502 rm -f conftestdata_f conftestdata_t
7505 LN_S
="$gcc_cv_prog_LN_S"
7506 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7508 $as_echo "yes" >&6; }
7510 if test "$gcc_cv_prog_LN_S" = "ln"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7512 $as_echo "no, using ln" >&6; }
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7515 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7520 $as_echo_n "checking whether ln works... " >&6; }
7521 if test "${acx_cv_prog_LN+set}" = set; then :
7522 $as_echo_n "(cached) " >&6
7524 rm -f conftestdata_t
7525 echo >conftestdata_f
7526 if ln conftestdata_f conftestdata_t
2>/dev
/null
7532 rm -f conftestdata_f conftestdata_t
7535 if test $acx_cv_prog_LN = no
; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7538 $as_echo "no, using $LN" >&6; }
7540 LN
="$acx_cv_prog_LN"
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7542 $as_echo "yes" >&6; }
7545 if test -n "$ac_tool_prefix"; then
7546 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7547 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549 $as_echo_n "checking for $ac_word... " >&6; }
7550 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7551 $as_echo_n "(cached) " >&6
7553 if test -n "$RANLIB"; then
7554 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7560 test -z "$as_dir" && as_dir
=.
7561 for ac_exec_ext
in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 RANLIB
=$ac_cv_prog_RANLIB
7574 if test -n "$RANLIB"; then
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7576 $as_echo "$RANLIB" >&6; }
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7584 if test -z "$ac_cv_prog_RANLIB"; then
7585 ac_ct_RANLIB
=$RANLIB
7586 # Extract the first word of "ranlib", so it can be a program name with args.
7587 set dummy ranlib
; ac_word
=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
7593 if test -n "$ac_ct_RANLIB"; then
7594 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7600 test -z "$as_dir" && as_dir
=.
7601 for ac_exec_ext
in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7614 if test -n "$ac_ct_RANLIB"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7616 $as_echo "$ac_ct_RANLIB" >&6; }
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7622 if test "x$ac_ct_RANLIB" = x
; then
7625 case $cross_compiling:$ac_tool_warned in
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7629 ac_tool_warned
=yes ;;
7631 RANLIB
=$ac_ct_RANLIB
7634 RANLIB
="$ac_cv_prog_RANLIB"
7640 # Find a good install program. We prefer a C program (faster),
7641 # so one script is as good as another. But avoid the broken or
7642 # incompatible versions:
7643 # SysV /etc/install, /usr/sbin/install
7644 # SunOS /usr/etc/install
7645 # IRIX /sbin/install
7647 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7648 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7649 # ./install, which can be erroneously created by make from ./install.sh.
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7651 $as_echo_n "checking for a BSD compatible install... " >&6; }
7652 if test -z "$INSTALL"; then
7653 if test "${ac_cv_path_install+set}" = set; then :
7654 $as_echo_n "(cached) " >&6
7656 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7657 for ac_dir
in $PATH; do
7658 # Account for people who put trailing slashes in PATH elements.
7660 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7662 # OSF1 and SCO ODT 3.0 have their own names for install.
7663 for ac_prog
in ginstall scoinst
install; do
7664 if test -f $ac_dir/$ac_prog; then
7665 if test $ac_prog = install &&
7666 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7667 # AIX install. It has an incompatible calling convention.
7668 # OSF/1 installbsd also uses dspmsg, but is usable.
7671 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7682 if test "${ac_cv_path_install+set}" = set; then
7683 INSTALL
="$ac_cv_path_install"
7685 # As a last resort, use the slow shell script. We don't cache a
7686 # path for INSTALL within a source directory, because that will
7687 # break other packages using the cache if that directory is
7688 # removed, or if the path is relative.
7689 INSTALL
="$ac_install_sh"
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7693 $as_echo "$INSTALL" >&6; }
7695 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7696 # It thinks the first close brace ends the variable substitution.
7697 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7699 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7702 # See if cmp has --ignore-initial.
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7704 $as_echo_n "checking for cmp's capabilities... " >&6; }
7705 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7706 $as_echo_n "(cached) " >&6
7710 gcc_cv_prog_cmp_skip
=slowcompare
7711 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7712 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7715 gcc_cv_prog_cmp_skip
=gnucompare
7718 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7719 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7720 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7723 gcc_cv_prog_cmp_skip
=fastcompare
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7731 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7732 make_compare_target
=$gcc_cv_prog_cmp_skip
7736 # See if we have the mktemp command.
7737 # Extract the first word of "mktemp", so it can be a program name with args.
7738 set dummy mktemp
; ac_word
=$2
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740 $as_echo_n "checking for $ac_word... " >&6; }
7741 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7742 $as_echo_n "(cached) " >&6
7744 if test -n "$have_mktemp_command"; then
7745 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7747 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7751 test -z "$as_dir" && as_dir
=.
7752 for ac_exec_ext
in '' $ac_executable_extensions; do
7753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7754 ac_cv_prog_have_mktemp_command
="yes"
7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7765 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7766 if test -n "$have_mktemp_command"; then
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7768 $as_echo "$have_mktemp_command" >&6; }
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 $as_echo "no" >&6; }
7776 # See if makeinfo has been installed and is modern enough
7777 # that we can use it.
7779 # Extract the first word of "makeinfo", so it can be a program name with args.
7780 set dummy makeinfo
; ac_word
=$2
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 $as_echo_n "checking for $ac_word... " >&6; }
7783 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7784 $as_echo_n "(cached) " >&6
7786 if test -n "$MAKEINFO"; then
7787 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7793 test -z "$as_dir" && as_dir
=.
7794 for ac_exec_ext
in '' $ac_executable_extensions; do
7795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7796 ac_cv_prog_MAKEINFO
="makeinfo"
7797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7806 MAKEINFO
=$ac_cv_prog_MAKEINFO
7807 if test -n "$MAKEINFO"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7809 $as_echo "$MAKEINFO" >&6; }
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7816 if test -n "$MAKEINFO"; then
7817 # Found it, now check the version.
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7819 $as_echo_n "checking for modern makeinfo... " >&6; }
7820 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7821 $as_echo_n "(cached) " >&6
7823 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7824 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7826 case $ac_prog_version in
7827 '') gcc_cv_prog_makeinfo_modern
=no
;;
7828 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7829 *) gcc_cv_prog_makeinfo_modern
=no
;;
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7834 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7836 gcc_cv_prog_makeinfo_modern
=no
7838 if test $gcc_cv_prog_makeinfo_modern = no
; then
7839 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7842 if test $gcc_cv_prog_makeinfo_modern = no
; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7844 *** Makeinfo is missing or too old.
7845 *** Info documentation will not be built." >&5
7846 $as_echo "$as_me: WARNING:
7847 *** Makeinfo is missing or too old.
7848 *** Info documentation will not be built." >&2;}
7855 # Is pod2man recent enough to regenerate manpages?
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7857 $as_echo_n "checking for recent Pod::Man... " >&6; }
7858 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7860 $as_echo "yes" >&6; }
7861 GENERATED_MANPAGES
=generated-manpages
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7869 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7874 # Extract the first word of "$ac_prog", so it can be a program name with args.
7875 set dummy
$ac_prog; ac_word
=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if test "${ac_cv_prog_FLEX+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7881 if test -n "$FLEX"; then
7882 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7888 test -z "$as_dir" && as_dir
=.
7889 for ac_exec_ext
in '' $ac_executable_extensions; do
7890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7891 ac_cv_prog_FLEX
="$ac_prog"
7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 FLEX
=$ac_cv_prog_FLEX
7902 if test -n "$FLEX"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7904 $as_echo "$FLEX" >&6; }
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7911 test -n "$FLEX" && break
7913 test -n "$FLEX" || FLEX
="$MISSING flex"
7917 for ac_prog
in bison
7919 # Extract the first word of "$ac_prog", so it can be a program name with args.
7920 set dummy
$ac_prog; ac_word
=$2
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if test "${ac_cv_prog_BISON+set}" = set; then :
7924 $as_echo_n "(cached) " >&6
7926 if test -n "$BISON"; then
7927 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7933 test -z "$as_dir" && as_dir
=.
7934 for ac_exec_ext
in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7936 ac_cv_prog_BISON
="$ac_prog"
7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 BISON
=$ac_cv_prog_BISON
7947 if test -n "$BISON"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7949 $as_echo "$BISON" >&6; }
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7956 test -n "$BISON" && break
7958 test -n "$BISON" || BISON
="$MISSING bison"
7961 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7962 # check for build == host before using them.
7965 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7966 && test -d ..
/binutils
; then
7967 NM
='${objdir}/../binutils/nm-new'
7969 # Extract the first word of "nm", so it can be a program name with args.
7970 set dummy nm
; ac_word
=$2
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972 $as_echo_n "checking for $ac_word... " >&6; }
7973 if test "${ac_cv_prog_NM+set}" = set; then :
7974 $as_echo_n "(cached) " >&6
7976 if test -n "$NM"; then
7977 ac_cv_prog_NM
="$NM" # Let the user override the test.
7979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7983 test -z "$as_dir" && as_dir
=.
7984 for ac_exec_ext
in '' $ac_executable_extensions; do
7985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7998 if test -n "$NM"; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8000 $as_echo "$NM" >&6; }
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003 $as_echo "no" >&6; }
8010 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8011 && test -d ..
/binutils
; then
8012 AR
='${objdir}/../binutils/ar'
8014 # Extract the first word of "ar", so it can be a program name with args.
8015 set dummy
ar; ac_word
=$2
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 $as_echo_n "checking for $ac_word... " >&6; }
8018 if test "${ac_cv_prog_AR+set}" = set; then :
8019 $as_echo_n "(cached) " >&6
8021 if test -n "$AR"; then
8022 ac_cv_prog_AR
="$AR" # Let the user override the test.
8024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8028 test -z "$as_dir" && as_dir
=.
8029 for ac_exec_ext
in '' $ac_executable_extensions; do
8030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8043 if test -n "$AR"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8045 $as_echo "$AR" >&6; }
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8055 # --------------------
8056 # Checks for C headers
8057 # --------------------
8059 # Need to reject headers which give warnings, so that the -Werror bootstrap
8060 # works later. *sigh* This needs to come before all header checks.
8062 ac_c_preproc_warn_flag
=yes
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8065 $as_echo_n "checking for ANSI C header files... " >&6; }
8066 if test "${ac_cv_header_stdc+set}" = set; then :
8067 $as_echo_n "(cached) " >&6
8069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8084 if ac_fn_c_try_compile
"$LINENO"; then :
8085 ac_cv_header_stdc
=yes
8087 ac_cv_header_stdc
=no
8089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8091 if test $ac_cv_header_stdc = yes; then
8092 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8099 $EGREP "memchr" >/dev
/null
2>&1; then :
8102 ac_cv_header_stdc
=no
8108 if test $ac_cv_header_stdc = yes; then
8109 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8116 $EGREP "free" >/dev
/null
2>&1; then :
8119 ac_cv_header_stdc
=no
8125 if test $ac_cv_header_stdc = yes; then
8126 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8127 if test "$cross_compiling" = yes; then :
8130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8131 /* end confdefs.h. */
8134 #if ((' ' & 0x0FF) == 0x020)
8135 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8136 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8138 # define ISLOWER(c) \
8139 (('a' <= (c) && (c) <= 'i') \
8140 || ('j' <= (c) && (c) <= 'r') \
8141 || ('s' <= (c) && (c) <= 'z'))
8142 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8145 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8150 for (i = 0; i < 256; i++)
8151 if (XOR (islower (i), ISLOWER (i))
8152 || toupper (i) != TOUPPER (i))
8157 if ac_fn_c_try_run
"$LINENO"; then :
8160 ac_cv_header_stdc
=no
8162 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8163 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8169 $as_echo "$ac_cv_header_stdc" >&6; }
8170 if test $ac_cv_header_stdc = yes; then
8172 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8177 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8178 if test "${ac_cv_header_time+set}" = set; then :
8179 $as_echo_n "(cached) " >&6
8181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h. */
8183 #include <sys/types.h>
8184 #include <sys/time.h>
8190 if ((struct tm *) 0)
8196 if ac_fn_c_try_compile
"$LINENO"; then :
8197 ac_cv_header_time
=yes
8199 ac_cv_header_time
=no
8201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8204 $as_echo "$ac_cv_header_time" >&6; }
8205 if test $ac_cv_header_time = yes; then
8207 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8212 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8213 if test "${gcc_cv_header_string+set}" = set; then :
8214 $as_echo_n "(cached) " >&6
8216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8219 #include <strings.h>
8228 if ac_fn_c_try_compile
"$LINENO"; then :
8229 gcc_cv_header_string
=yes
8231 gcc_cv_header_string
=no
8233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8236 $as_echo "$gcc_cv_header_string" >&6; }
8237 if test $gcc_cv_header_string = yes; then
8239 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8244 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8245 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8246 $as_echo_n "(cached) " >&6
8248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8249 /* end confdefs.h. */
8250 #include <sys/types.h>
8251 #include <sys/wait.h>
8253 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8256 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8264 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8269 if ac_fn_c_try_compile
"$LINENO"; then :
8270 ac_cv_header_sys_wait_h
=yes
8272 ac_cv_header_sys_wait_h
=no
8274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8277 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8278 if test $ac_cv_header_sys_wait_h = yes; then
8280 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8284 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8285 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8286 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8287 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h libintl.h
8289 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8290 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8291 eval as_val
=\$
$as_ac_Header
8292 if test "x$as_val" = x
""yes; then :
8293 cat >>confdefs.h
<<_ACEOF
8294 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8301 # Check for thread headers.
8302 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8303 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8309 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8310 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8317 # These tests can't be done till we know if we have limits.h.
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8319 $as_echo_n "checking for CHAR_BIT... " >&6; }
8320 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
8323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8325 #ifdef HAVE_LIMITS_H
8332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8333 $EGREP "found" >/dev
/null
2>&1; then :
8334 gcc_cv_decl_char_bit
=yes
8336 gcc_cv_decl_char_bit
=no
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8343 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8344 if test $gcc_cv_decl_char_bit = no
; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8346 $as_echo_n "checking number of bits in a byte... " >&6; }
8347 if test "${gcc_cv_c_nbby+set}" = set; then :
8348 $as_echo_n "(cached) " >&6
8352 while test $i -lt 65; do
8353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h. */
8360 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8361 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8367 if ac_fn_c_try_compile
"$LINENO"; then :
8368 gcc_cv_c_nbby
=$i; break
8370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8373 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8377 $as_echo "$gcc_cv_c_nbby" >&6; }
8378 if test $gcc_cv_c_nbby = failed
; then
8379 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8382 cat >>confdefs.h
<<_ACEOF
8383 #define CHAR_BIT $gcc_cv_c_nbby
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8389 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8390 if test "${ac_cv_c_bigendian+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
8393 ac_cv_c_bigendian
=unknown
8394 # See if we're dealing with a universal compiler.
8395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 #ifndef __APPLE_CC__
8398 not a universal capable compiler
8403 if ac_fn_c_try_compile
"$LINENO"; then :
8405 # Check for potential -arch flags. It is not universal unless
8406 # there are at least two -arch flags with different values.
8409 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8410 if test -n "$ac_prev"; then
8412 i?
86 | x86_64 | ppc | ppc64
)
8413 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8416 ac_cv_c_bigendian
=universal
8422 elif test "x$ac_word" = "x-arch"; then
8427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8428 if test $ac_cv_c_bigendian = unknown
; then
8429 # See if sys/param.h defines the BYTE_ORDER macro.
8430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8432 #include <sys/types.h>
8433 #include <sys/param.h>
8438 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8439 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8448 if ac_fn_c_try_compile
"$LINENO"; then :
8449 # It does; now see whether it defined to BIG_ENDIAN or not.
8450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8452 #include <sys/types.h>
8453 #include <sys/param.h>
8458 #if BYTE_ORDER != BIG_ENDIAN
8466 if ac_fn_c_try_compile
"$LINENO"; then :
8467 ac_cv_c_bigendian
=yes
8469 ac_cv_c_bigendian
=no
8471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8475 if test $ac_cv_c_bigendian = unknown
; then
8476 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8478 /* end confdefs.h. */
8484 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8492 if ac_fn_c_try_compile
"$LINENO"; then :
8493 # It does; now see whether it defined to _BIG_ENDIAN or not.
8494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8509 if ac_fn_c_try_compile
"$LINENO"; then :
8510 ac_cv_c_bigendian
=yes
8512 ac_cv_c_bigendian
=no
8514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8518 if test $ac_cv_c_bigendian = unknown
; then
8519 # Compile a test program.
8520 if test "$cross_compiling" = yes; then :
8521 # Try to guess by grepping values from an object file.
8522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 short int ascii_mm[] =
8525 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8526 short int ascii_ii[] =
8527 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8528 int use_ascii (int i) {
8529 return ascii_mm[i] + ascii_ii[i];
8531 short int ebcdic_ii[] =
8532 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8533 short int ebcdic_mm[] =
8534 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8535 int use_ebcdic (int i) {
8536 return ebcdic_mm[i] + ebcdic_ii[i];
8543 return use_ascii (foo) == use_ebcdic (foo);
8548 if ac_fn_c_try_compile
"$LINENO"; then :
8549 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8550 ac_cv_c_bigendian
=yes
8552 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8553 if test "$ac_cv_c_bigendian" = unknown
; then
8554 ac_cv_c_bigendian
=no
8556 # finding both strings is unlikely to happen, but who knows?
8557 ac_cv_c_bigendian
=unknown
8561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8564 /* end confdefs.h. */
8565 $ac_includes_default
8570 /* Are we little or big endian? From Harbison&Steele. */
8574 char c[sizeof (long int)];
8577 return u.c[sizeof (long int) - 1] == 1;
8583 if ac_fn_c_try_run
"$LINENO"; then :
8584 ac_cv_c_bigendian
=no
8586 ac_cv_c_bigendian
=yes
8588 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8589 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8595 $as_echo "$ac_cv_c_bigendian" >&6; }
8596 case $ac_cv_c_bigendian in #(
8598 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8604 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8608 as_fn_error
"unknown endianness
8609 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8613 # ----------------------
8614 # Checks for C++ headers
8615 # ----------------------
8618 ac_cpp
='$CXXCPP $CPPFLAGS'
8619 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8620 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8621 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8623 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8624 if test -z "$CXXCPP"; then
8625 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8626 $as_echo_n "(cached) " >&6
8628 # Double quotes because CXXCPP needs to be expanded
8629 for CXXCPP
in "$CXX -E" "/lib/cpp"
8632 for ac_cxx_preproc_warn_flag
in '' yes
8634 # Use a header file that comes with gcc, so configuring glibc
8635 # with a fresh cross-compiler works.
8636 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8637 # <limits.h> exists even on freestanding compilers.
8638 # On the NeXT, cc -E runs the code through the compiler's parser,
8639 # not just through cpp. "Syntax error" is here to catch this case.
8640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8643 # include <limits.h>
8645 # include <assert.h>
8649 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8652 # Broken: fails on valid input.
8655 rm -f conftest.err conftest.
$ac_ext
8657 # OK, works on sane cases. Now check whether nonexistent headers
8658 # can be detected and how.
8659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8660 /* end confdefs.h. */
8661 #include <ac_nonexistent.h>
8663 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8664 # Broken: success on invalid input.
8667 # Passes both tests.
8671 rm -f conftest.err conftest.
$ac_ext
8674 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8675 rm -f conftest.err conftest.
$ac_ext
8676 if $ac_preproc_ok; then :
8681 ac_cv_prog_CXXCPP
=$CXXCPP
8684 CXXCPP
=$ac_cv_prog_CXXCPP
8686 ac_cv_prog_CXXCPP
=$CXXCPP
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8689 $as_echo "$CXXCPP" >&6; }
8691 for ac_cxx_preproc_warn_flag
in '' yes
8693 # Use a header file that comes with gcc, so configuring glibc
8694 # with a fresh cross-compiler works.
8695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8696 # <limits.h> exists even on freestanding compilers.
8697 # On the NeXT, cc -E runs the code through the compiler's parser,
8698 # not just through cpp. "Syntax error" is here to catch this case.
8699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h. */
8702 # include <limits.h>
8704 # include <assert.h>
8708 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8711 # Broken: fails on valid input.
8714 rm -f conftest.err conftest.
$ac_ext
8716 # OK, works on sane cases. Now check whether nonexistent headers
8717 # can be detected and how.
8718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h. */
8720 #include <ac_nonexistent.h>
8722 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8723 # Broken: success on invalid input.
8726 # Passes both tests.
8730 rm -f conftest.err conftest.
$ac_ext
8733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8734 rm -f conftest.err conftest.
$ac_ext
8735 if $ac_preproc_ok; then :
8738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8741 See \`config.log' for more details." >&5
8742 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8743 See \`config.log' for more details." >&2;}; }
8747 ac_cpp
='$CPP $CPPFLAGS'
8748 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8749 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8750 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8754 ac_cpp
='$CXXCPP $CPPFLAGS'
8755 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8756 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8757 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8762 for ac_header
in unordered_map
8764 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8765 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8766 cat >>confdefs.h
<<_ACEOF
8767 #define HAVE_UNORDERED_MAP 1
8773 for ac_header
in tr1/unordered_map
8775 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8776 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8777 cat >>confdefs.h
<<_ACEOF
8778 #define HAVE_TR1_UNORDERED_MAP 1
8784 for ac_header
in ext
/hash_map
8786 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8787 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8788 cat >>confdefs.h
<<_ACEOF
8789 #define HAVE_EXT_HASH_MAP 1
8797 ac_cpp
='$CPP $CPPFLAGS'
8798 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8799 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8800 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8808 # These libraries may be used by collect2.
8809 # We may need a special search path to get them linked.
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8811 $as_echo_n "checking for collect2 libraries... " >&6; }
8812 if test "${gcc_cv_collect2_libs+set}" = set; then :
8813 $as_echo_n "(cached) " >&6
8816 for libs
in '' -lld -lmld \
8817 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8818 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8824 /* Override any GCC internal prototype to avoid an error.
8825 Use char because int might match the return type of a GCC
8826 builtin and then its argument prototype would still apply. */
8839 if ac_fn_c_try_link
"$LINENO"; then :
8840 gcc_cv_collect2_libs
="$libs"; break
8842 rm -f core conftest.err conftest.
$ac_objext \
8843 conftest
$ac_exeext conftest.
$ac_ext
8846 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8849 $as_echo "$gcc_cv_collect2_libs" >&6; }
8850 case $gcc_cv_collect2_libs in
8852 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8856 # When building Ada code on Alpha, we need exc_resume which is usually in
8857 # -lexc. So test for it.
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8861 $as_echo_n "checking for library containing exc_resume... " >&6; }
8862 if test "${ac_cv_search_exc_resume+set}" = set; then :
8863 $as_echo_n "(cached) " >&6
8865 ac_func_search_save_LIBS
=$LIBS
8866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8869 /* Override any GCC internal prototype to avoid an error.
8870 Use char because int might match the return type of a GCC
8871 builtin and then its argument prototype would still apply. */
8879 return exc_resume ();
8884 for ac_lib
in '' exc
; do
8885 if test -z "$ac_lib"; then
8886 ac_res
="none required"
8889 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8891 if ac_fn_c_try_link
"$LINENO"; then :
8892 ac_cv_search_exc_resume
=$ac_res
8894 rm -f core conftest.err conftest.
$ac_objext \
8896 if test "${ac_cv_search_exc_resume+set}" = set; then :
8900 if test "${ac_cv_search_exc_resume+set}" = set; then :
8903 ac_cv_search_exc_resume
=no
8906 LIBS
=$ac_func_search_save_LIBS
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8909 $as_echo "$ac_cv_search_exc_resume" >&6; }
8910 ac_res
=$ac_cv_search_exc_resume
8911 if test "$ac_res" != no
; then :
8912 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8920 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8924 $as_echo_n "checking for library containing kstat_open... " >&6; }
8925 if test "${ac_cv_search_kstat_open+set}" = set; then :
8926 $as_echo_n "(cached) " >&6
8928 ac_func_search_save_LIBS
=$LIBS
8929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8932 /* Override any GCC internal prototype to avoid an error.
8933 Use char because int might match the return type of a GCC
8934 builtin and then its argument prototype would still apply. */
8942 return kstat_open ();
8947 for ac_lib
in '' kstat
; do
8948 if test -z "$ac_lib"; then
8949 ac_res
="none required"
8952 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8954 if ac_fn_c_try_link
"$LINENO"; then :
8955 ac_cv_search_kstat_open
=$ac_res
8957 rm -f core conftest.err conftest.
$ac_objext \
8959 if test "${ac_cv_search_kstat_open+set}" = set; then :
8963 if test "${ac_cv_search_kstat_open+set}" = set; then :
8966 ac_cv_search_kstat_open
=no
8969 LIBS
=$ac_func_search_save_LIBS
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8972 $as_echo "$ac_cv_search_kstat_open" >&6; }
8973 ac_res
=$ac_cv_search_kstat_open
8974 if test "$ac_res" != no
; then :
8975 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8979 EXTRA_GCC_LIBS
="$LIBS"
8983 # Some systems put ldexp and frexp in libm instead of libc; assume
8984 # they're both in the same place. jcf-dump needs them.
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8988 $as_echo_n "checking for library containing ldexp... " >&6; }
8989 if test "${ac_cv_search_ldexp+set}" = set; then :
8990 $as_echo_n "(cached) " >&6
8992 ac_func_search_save_LIBS
=$LIBS
8993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8996 /* Override any GCC internal prototype to avoid an error.
8997 Use char because int might match the return type of a GCC
8998 builtin and then its argument prototype would still apply. */
9011 for ac_lib
in '' m
; do
9012 if test -z "$ac_lib"; then
9013 ac_res
="none required"
9016 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9018 if ac_fn_c_try_link
"$LINENO"; then :
9019 ac_cv_search_ldexp
=$ac_res
9021 rm -f core conftest.err conftest.
$ac_objext \
9023 if test "${ac_cv_search_ldexp+set}" = set; then :
9027 if test "${ac_cv_search_ldexp+set}" = set; then :
9030 ac_cv_search_ldexp
=no
9033 LIBS
=$ac_func_search_save_LIBS
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9036 $as_echo "$ac_cv_search_ldexp" >&6; }
9037 ac_res
=$ac_cv_search_ldexp
9038 if test "$ac_res" != no
; then :
9039 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9047 # Use <inttypes.h> only if it exists,
9048 # doesn't clash with <sys/types.h>, and declares intmax_t.
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9050 $as_echo_n "checking for inttypes.h... " >&6; }
9051 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9052 $as_echo_n "(cached) " >&6
9054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9056 #include <sys/types.h>
9057 #include <inttypes.h>
9066 if ac_fn_c_try_compile
"$LINENO"; then :
9067 gcc_cv_header_inttypes_h
=yes
9069 gcc_cv_header_inttypes_h
=no
9071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9075 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9076 if test $gcc_cv_header_inttypes_h = yes; then
9078 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9084 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9085 sysconf strsignal getrusage nl_langinfo \
9086 gettimeofday mbstowcs wcswidth mmap setlocale \
9087 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
9089 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9090 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9091 eval as_val
=\$
$as_ac_var
9092 if test "x$as_val" = x
""yes; then :
9093 cat >>confdefs.h
<<_ACEOF
9094 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9101 if test x
$ac_cv_func_mbstowcs = xyes
; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9103 $as_echo_n "checking whether mbstowcs works... " >&6; }
9104 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9105 $as_echo_n "(cached) " >&6
9107 if test "$cross_compiling" = yes; then :
9108 gcc_cv_func_mbstowcs_works
=yes
9110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9119 if ac_fn_c_try_run
"$LINENO"; then :
9120 gcc_cv_func_mbstowcs_works
=yes
9122 gcc_cv_func_mbstowcs_works
=no
9124 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9125 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9130 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9131 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9133 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9138 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9139 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9143 cat >>confdefs.h
<<_ACEOF
9149 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9150 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9154 cat >>confdefs.h
<<_ACEOF
9155 #define caddr_t char *
9162 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9163 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9164 gcc_header_sys_mman_h
=yes
9166 gcc_header_sys_mman_h
=no
9169 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9170 if test "x$ac_cv_func_mmap" = x
""yes; then :
9176 if test "$gcc_header_sys_mman_h" != yes \
9177 ||
test "$gcc_func_mmap" != yes; then
9178 gcc_cv_func_mmap_file
=no
9179 gcc_cv_func_mmap_dev_zero
=no
9180 gcc_cv_func_mmap_anon
=no
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9183 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9184 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9185 $as_echo_n "(cached) " >&6
9187 # Add a system to this blacklist if
9188 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9189 # memory area containing the same data that you'd get if you applied
9190 # read() to the same fd. The only system known to have a problem here
9191 # is VMS, where text files have record structure.
9194 gcc_cv_func_mmap_file
=no
;;
9196 gcc_cv_func_mmap_file
=yes;;
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9200 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9202 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9203 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9204 $as_echo_n "(cached) " >&6
9206 # Add a system to this blacklist if it has mmap() but /dev/zero
9207 # does not exist, or if mmapping /dev/zero does not give anonymous
9208 # zeroed pages with both the following properties:
9209 # 1. If you map N consecutive pages in with one call, and then
9210 # unmap any subset of those pages, the pages that were not
9211 # explicitly unmapped remain accessible.
9212 # 2. If you map two adjacent blocks of memory and then unmap them
9213 # both at once, they must both go away.
9214 # Systems known to be in this category are Windows (all variants),
9217 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9218 gcc_cv_func_mmap_dev_zero
=no
;;
9220 gcc_cv_func_mmap_dev_zero
=yes;;
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9224 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9226 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9228 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9229 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9230 $as_echo_n "(cached) " >&6
9232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9234 #include <sys/types.h>
9235 #include <sys/mman.h>
9238 #ifndef MAP_ANONYMOUS
9239 #define MAP_ANONYMOUS MAP_ANON
9245 int n = MAP_ANONYMOUS;
9250 if ac_fn_c_try_compile
"$LINENO"; then :
9251 gcc_cv_decl_map_anon
=yes
9253 gcc_cv_decl_map_anon
=no
9255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9258 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9260 if test $gcc_cv_decl_map_anon = no
; then
9261 gcc_cv_func_mmap_anon
=no
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9264 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9265 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9266 $as_echo_n "(cached) " >&6
9268 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9269 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9270 # doesn't give anonymous zeroed pages with the same properties listed
9271 # above for use of /dev/zero.
9272 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9274 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9275 gcc_cv_func_mmap_anon
=no
;;
9277 gcc_cv_func_mmap_anon
=yes;;
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9281 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9285 if test $gcc_cv_func_mmap_file = yes; then
9287 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9290 if test $gcc_cv_func_mmap_dev_zero = yes; then
9292 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9295 if test $gcc_cv_func_mmap_anon = yes; then
9297 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9304 # Under VMS, vfork works very differently than on Unix. The standard test
9305 # won't work, and it isn't easily adaptable. It makes more sense to
9307 ac_cv_func_vfork_works
=yes
9310 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9311 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9315 cat >>confdefs.h
<<_ACEOF
9321 for ac_header
in vfork.h
9323 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9324 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9325 cat >>confdefs.h
<<_ACEOF
9326 #define HAVE_VFORK_H 1
9332 for ac_func
in fork vfork
9334 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9335 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9336 eval as_val
=\$
$as_ac_var
9337 if test "x$as_val" = x
""yes; then :
9338 cat >>confdefs.h
<<_ACEOF
9339 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9345 if test "x$ac_cv_func_fork" = xyes
; then
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9347 $as_echo_n "checking for working fork... " >&6; }
9348 if test "${ac_cv_func_fork_works+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
9351 if test "$cross_compiling" = yes; then :
9352 ac_cv_func_fork_works
=cross
9354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9356 $ac_includes_default
9361 /* By Ruediger Kuhlmann. */
9368 if ac_fn_c_try_run
"$LINENO"; then :
9369 ac_cv_func_fork_works
=yes
9371 ac_cv_func_fork_works
=no
9373 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9374 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9379 $as_echo "$ac_cv_func_fork_works" >&6; }
9382 ac_cv_func_fork_works
=$ac_cv_func_fork
9384 if test "x$ac_cv_func_fork_works" = xcross
; then
9386 *-*-amigaos* |
*-*-msdosdjgpp*)
9387 # Override, as these systems have only a dummy fork() stub
9388 ac_cv_func_fork_works
=no
9391 ac_cv_func_fork_works
=yes
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9395 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9397 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9398 if test "x$ac_cv_func_vfork" = xyes
; then
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9400 $as_echo_n "checking for working vfork... " >&6; }
9401 if test "${ac_cv_func_vfork_works+set}" = set; then :
9402 $as_echo_n "(cached) " >&6
9404 if test "$cross_compiling" = yes; then :
9405 ac_cv_func_vfork_works
=cross
9407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9409 /* Thanks to Paul Eggert for this test. */
9410 $ac_includes_default
9411 #include <sys/wait.h>
9415 /* On some sparc systems, changes by the child to local and incoming
9416 argument registers are propagated back to the parent. The compiler
9417 is told about this with #include <vfork.h>, but some compilers
9418 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9419 static variable whose address is put into a register that is
9420 clobbered by the vfork. */
9423 sparc_address_test (int arg)
9425 sparc_address_test (arg) int arg;
9446 pid_t parent = getpid ();
9449 sparc_address_test (0);
9454 /* Here is another test for sparc vfork register problems. This
9455 test uses lots of local variables, at least as many local
9456 variables as main has allocated so far including compiler
9457 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9458 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9459 reuse the register of parent for one of the local variables,
9460 since it will think that parent can't possibly be used any more
9461 in this routine. Assigning to the local variable will thus
9462 munge parent in the parent process. */
9464 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9465 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9466 /* Convince the compiler that p..p7 are live; otherwise, it might
9467 use the same hardware register for all 8 local variables. */
9468 if (p != p1 || p != p2 || p != p3 || p != p4
9469 || p != p5 || p != p6 || p != p7)
9472 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9473 from child file descriptors. If the child closes a descriptor
9474 before it execs or exits, this munges the parent's descriptor
9475 as well. Test for this by closing stdout in the child. */
9476 _exit(close(fileno(stdout)) != 0);
9481 while (wait(&status) != child)
9484 /* Was there some problem with vforking? */
9487 /* Did the child fail? (This shouldn't happen.) */
9490 /* Did the vfork/compiler bug occur? */
9491 || parent != getpid()
9493 /* Did the file descriptor bug occur? */
9494 || fstat(fileno(stdout), &st) != 0
9499 if ac_fn_c_try_run
"$LINENO"; then :
9500 ac_cv_func_vfork_works
=yes
9502 ac_cv_func_vfork_works
=no
9504 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9505 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9510 $as_echo "$ac_cv_func_vfork_works" >&6; }
9513 if test "x$ac_cv_func_fork_works" = xcross
; then
9514 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9516 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9519 if test "x$ac_cv_func_vfork_works" = xyes
; then
9521 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9525 $as_echo "#define vfork fork" >>confdefs.h
9528 if test "x$ac_cv_func_fork_works" = xyes
; then
9530 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9535 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9536 # iconv() prototype.
9538 ac_cpp
='$CXXCPP $CPPFLAGS'
9539 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9540 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9541 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9544 if test "X$prefix" = "XNONE"; then
9545 acl_final_prefix
="$ac_default_prefix"
9547 acl_final_prefix
="$prefix"
9549 if test "X$exec_prefix" = "XNONE"; then
9550 acl_final_exec_prefix
='${prefix}'
9552 acl_final_exec_prefix
="$exec_prefix"
9554 acl_save_prefix
="$prefix"
9555 prefix
="$acl_final_prefix"
9556 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9557 prefix
="$acl_save_prefix"
9560 # Check whether --with-gnu-ld was given.
9561 if test "${with_gnu_ld+set}" = set; then :
9562 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9567 # Prepare PATH_SEPARATOR.
9568 # The user is always right.
9569 if test "${PATH_SEPARATOR+set}" != set; then
9570 echo "#! /bin/sh" >conf$$.sh
9571 echo "exit 0" >>conf$$.sh
9573 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9581 if test "$GCC" = yes; then
9582 # Check if gcc -print-prog-name=ld gives a path.
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9584 $as_echo_n "checking for ld used by GCC... " >&6; }
9587 # gcc leaves a trailing carriage return which upsets mingw
9588 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9590 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9593 # Accept absolute paths.
9594 [\\/]* |
[A-Za-z
]:[\\/]*)
9595 re_direlt
='/[^/][^/]*/\.\./'
9596 # Canonicalize the path of ld
9597 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9598 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9599 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9601 test -z "$LD" && LD
="$ac_prog"
9604 # If it fails, then pretend we aren't using GCC.
9608 # If it is relative, then search for the first ld in PATH.
9612 elif test "$with_gnu_ld" = yes; then
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9614 $as_echo_n "checking for GNU ld... " >&6; }
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9617 $as_echo_n "checking for non-GNU ld... " >&6; }
9619 if test "${acl_cv_path_LD+set}" = set; then :
9620 $as_echo_n "(cached) " >&6
9622 if test -z "$LD"; then
9623 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9624 for ac_dir
in $PATH; do
9625 test -z "$ac_dir" && ac_dir
=.
9626 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9627 acl_cv_path_LD
="$ac_dir/$ac_prog"
9628 # Check to see if the program is GNU ld. I'd rather use --version,
9629 # but apparently some GNU ld's only accept -v.
9630 # Break only if it was the GNU/non-GNU ld that we prefer.
9631 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9632 test "$with_gnu_ld" != no
&& break
9634 test "$with_gnu_ld" != yes && break
9640 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9644 LD
="$acl_cv_path_LD"
9645 if test -n "$LD"; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9647 $as_echo "$LD" >&6; }
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650 $as_echo "no" >&6; }
9652 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9654 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9655 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9656 $as_echo_n "(cached) " >&6
9658 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9659 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9660 acl_cv_prog_gnu_ld
=yes
9662 acl_cv_prog_gnu_ld
=no
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9666 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9667 with_gnu_ld
=$acl_cv_prog_gnu_ld
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9672 $as_echo_n "checking for shared library run path origin... " >&6; }
9673 if test "${acl_cv_rpath+set}" = set; then :
9674 $as_echo_n "(cached) " >&6
9677 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9678 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9685 $as_echo "$acl_cv_rpath" >&6; }
9687 libext
="$acl_cv_libext"
9688 shlibext
="$acl_cv_shlibext"
9689 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9690 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9691 hardcode_direct
="$acl_cv_hardcode_direct"
9692 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9693 # Check whether --enable-rpath was given.
9694 if test "${enable_rpath+set}" = set; then :
9695 enableval
=$enable_rpath; :
9709 acl_save_prefix
="$prefix"
9710 prefix
="$acl_final_prefix"
9711 acl_save_exec_prefix
="$exec_prefix"
9712 exec_prefix
="$acl_final_exec_prefix"
9714 eval additional_includedir
=\"$includedir\"
9715 eval additional_libdir
=\"$libdir\"
9717 exec_prefix
="$acl_save_exec_prefix"
9718 prefix
="$acl_save_prefix"
9721 # Check whether --with-libiconv-prefix was given.
9722 if test "${with_libiconv_prefix+set}" = set; then :
9723 withval
=$with_libiconv_prefix;
9724 if test "X$withval" = "Xno"; then
9727 if test "X$withval" = "X"; then
9729 acl_save_prefix
="$prefix"
9730 prefix
="$acl_final_prefix"
9731 acl_save_exec_prefix
="$exec_prefix"
9732 exec_prefix
="$acl_final_exec_prefix"
9734 eval additional_includedir
=\"$includedir\"
9735 eval additional_libdir
=\"$libdir\"
9737 exec_prefix
="$acl_save_exec_prefix"
9738 prefix
="$acl_save_prefix"
9741 additional_includedir
="$withval/include"
9742 additional_libdir
="$withval/lib"
9753 names_already_handled
=
9754 names_next_round
='iconv '
9755 while test -n "$names_next_round"; do
9756 names_this_round
="$names_next_round"
9758 for name
in $names_this_round; do
9760 for n
in $names_already_handled; do
9761 if test "$n" = "$name"; then
9766 if test -z "$already_handled"; then
9767 names_already_handled
="$names_already_handled $name"
9768 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9769 eval value
=\"\
$HAVE_LIB$uppername\"
9770 if test -n "$value"; then
9771 if test "$value" = yes; then
9772 eval value
=\"\
$LIB$uppername\"
9773 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9774 eval value
=\"\
$LTLIB$uppername\"
9775 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9784 if test $use_additional = yes; then
9785 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9786 found_dir
="$additional_libdir"
9787 found_so
="$additional_libdir/lib$name.$shlibext"
9788 if test -f "$additional_libdir/lib$name.la"; then
9789 found_la
="$additional_libdir/lib$name.la"
9792 if test -f "$additional_libdir/lib$name.$libext"; then
9793 found_dir
="$additional_libdir"
9794 found_a
="$additional_libdir/lib$name.$libext"
9795 if test -f "$additional_libdir/lib$name.la"; then
9796 found_la
="$additional_libdir/lib$name.la"
9801 if test "X$found_dir" = "X"; then
9802 for x
in $LDFLAGS $LTLIBICONV; do
9804 acl_save_prefix
="$prefix"
9805 prefix
="$acl_final_prefix"
9806 acl_save_exec_prefix
="$exec_prefix"
9807 exec_prefix
="$acl_final_exec_prefix"
9809 exec_prefix
="$acl_save_exec_prefix"
9810 prefix
="$acl_save_prefix"
9814 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9815 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9817 found_so
="$dir/lib$name.$shlibext"
9818 if test -f "$dir/lib$name.la"; then
9819 found_la
="$dir/lib$name.la"
9822 if test -f "$dir/lib$name.$libext"; then
9824 found_a
="$dir/lib$name.$libext"
9825 if test -f "$dir/lib$name.la"; then
9826 found_la
="$dir/lib$name.la"
9832 if test "X$found_dir" != "X"; then
9837 if test "X$found_dir" != "X"; then
9838 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9839 if test "X$found_so" != "X"; then
9840 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9841 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9844 for x
in $ltrpathdirs; do
9845 if test "X$x" = "X$found_dir"; then
9850 if test -z "$haveit"; then
9851 ltrpathdirs
="$ltrpathdirs $found_dir"
9853 if test "$hardcode_direct" = yes; then
9854 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9856 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9857 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9859 for x
in $rpathdirs; do
9860 if test "X$x" = "X$found_dir"; then
9865 if test -z "$haveit"; then
9866 rpathdirs
="$rpathdirs $found_dir"
9870 for x
in $LDFLAGS $LIBICONV; do
9872 acl_save_prefix
="$prefix"
9873 prefix
="$acl_final_prefix"
9874 acl_save_exec_prefix
="$exec_prefix"
9875 exec_prefix
="$acl_final_exec_prefix"
9877 exec_prefix
="$acl_save_exec_prefix"
9878 prefix
="$acl_save_prefix"
9880 if test "X$x" = "X-L$found_dir"; then
9885 if test -z "$haveit"; then
9886 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9888 if test "$hardcode_minus_L" != no
; then
9889 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9891 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9897 if test "X$found_a" != "X"; then
9898 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9900 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9903 additional_includedir
=
9904 case "$found_dir" in
9906 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9907 additional_includedir
="$basedir/include"
9910 if test "X$additional_includedir" != "X"; then
9911 if test "X$additional_includedir" != "X/usr/include"; then
9913 if test "X$additional_includedir" = "X/usr/local/include"; then
9914 if test -n "$GCC"; then
9916 linux
*) haveit
=yes;;
9920 if test -z "$haveit"; then
9921 for x
in $CPPFLAGS $INCICONV; do
9923 acl_save_prefix
="$prefix"
9924 prefix
="$acl_final_prefix"
9925 acl_save_exec_prefix
="$exec_prefix"
9926 exec_prefix
="$acl_final_exec_prefix"
9928 exec_prefix
="$acl_save_exec_prefix"
9929 prefix
="$acl_save_prefix"
9931 if test "X$x" = "X-I$additional_includedir"; then
9936 if test -z "$haveit"; then
9937 if test -d "$additional_includedir"; then
9938 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9944 if test -n "$found_la"; then
9945 save_libdir
="$libdir"
9947 */* |
*\\*) .
"$found_la" ;;
9948 *) .
"./$found_la" ;;
9950 libdir
="$save_libdir"
9951 for dep
in $dependency_libs; do
9954 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9955 if test "X$additional_libdir" != "X/usr/lib"; then
9957 if test "X$additional_libdir" = "X/usr/local/lib"; then
9958 if test -n "$GCC"; then
9960 linux
*) haveit
=yes;;
9964 if test -z "$haveit"; then
9966 for x
in $LDFLAGS $LIBICONV; do
9968 acl_save_prefix
="$prefix"
9969 prefix
="$acl_final_prefix"
9970 acl_save_exec_prefix
="$exec_prefix"
9971 exec_prefix
="$acl_final_exec_prefix"
9973 exec_prefix
="$acl_save_exec_prefix"
9974 prefix
="$acl_save_prefix"
9976 if test "X$x" = "X-L$additional_libdir"; then
9981 if test -z "$haveit"; then
9982 if test -d "$additional_libdir"; then
9983 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9987 for x
in $LDFLAGS $LTLIBICONV; do
9989 acl_save_prefix
="$prefix"
9990 prefix
="$acl_final_prefix"
9991 acl_save_exec_prefix
="$exec_prefix"
9992 exec_prefix
="$acl_final_exec_prefix"
9994 exec_prefix
="$acl_save_exec_prefix"
9995 prefix
="$acl_save_prefix"
9997 if test "X$x" = "X-L$additional_libdir"; then
10002 if test -z "$haveit"; then
10003 if test -d "$additional_libdir"; then
10004 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10011 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10012 if test "$enable_rpath" != no
; then
10014 for x
in $rpathdirs; do
10015 if test "X$x" = "X$dir"; then
10020 if test -z "$haveit"; then
10021 rpathdirs
="$rpathdirs $dir"
10024 for x
in $ltrpathdirs; do
10025 if test "X$x" = "X$dir"; then
10030 if test -z "$haveit"; then
10031 ltrpathdirs
="$ltrpathdirs $dir"
10036 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10039 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10042 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10043 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10049 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10050 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10056 if test "X$rpathdirs" != "X"; then
10057 if test -n "$hardcode_libdir_separator"; then
10059 for found_dir
in $rpathdirs; do
10060 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10062 acl_save_libdir
="$libdir"
10064 eval flag
=\"$hardcode_libdir_flag_spec\"
10065 libdir
="$acl_save_libdir"
10066 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10068 for found_dir
in $rpathdirs; do
10069 acl_save_libdir
="$libdir"
10070 libdir
="$found_dir"
10071 eval flag
=\"$hardcode_libdir_flag_spec\"
10072 libdir
="$acl_save_libdir"
10073 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10077 if test "X$ltrpathdirs" != "X"; then
10078 for found_dir
in $ltrpathdirs; do
10079 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10089 am_save_CPPFLAGS
="$CPPFLAGS"
10091 for element
in $INCICONV; do
10093 for x
in $CPPFLAGS; do
10095 acl_save_prefix
="$prefix"
10096 prefix
="$acl_final_prefix"
10097 acl_save_exec_prefix
="$exec_prefix"
10098 exec_prefix
="$acl_final_exec_prefix"
10100 exec_prefix
="$acl_save_exec_prefix"
10101 prefix
="$acl_save_prefix"
10103 if test "X$x" = "X$element"; then
10108 if test -z "$haveit"; then
10109 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10115 $as_echo_n "checking for iconv... " >&6; }
10116 if test "${am_cv_func_iconv+set}" = set; then :
10117 $as_echo_n "(cached) " >&6
10120 am_cv_func_iconv
="no, consider installing GNU libiconv"
10122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10124 #include <stdlib.h>
10129 iconv_t cd = iconv_open("","");
10130 iconv(cd,NULL,NULL,NULL,NULL);
10136 if ac_fn_cxx_try_link
"$LINENO"; then :
10137 am_cv_func_iconv
=yes
10139 rm -f core conftest.err conftest.
$ac_objext \
10140 conftest
$ac_exeext conftest.
$ac_ext
10141 if test "$am_cv_func_iconv" != yes; then
10142 am_save_LIBS
="$LIBS"
10143 LIBS
="$LIBS $LIBICONV"
10144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10145 /* end confdefs.h. */
10146 #include <stdlib.h>
10151 iconv_t cd = iconv_open("","");
10152 iconv(cd,NULL,NULL,NULL,NULL);
10158 if ac_fn_cxx_try_link
"$LINENO"; then :
10159 am_cv_lib_iconv
=yes
10160 am_cv_func_iconv
=yes
10162 rm -f core conftest.err conftest.
$ac_objext \
10163 conftest
$ac_exeext conftest.
$ac_ext
10164 LIBS
="$am_save_LIBS"
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10169 $as_echo "$am_cv_func_iconv" >&6; }
10170 if test "$am_cv_func_iconv" = yes; then
10172 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10175 if test "$am_cv_lib_iconv" = yes; then
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10177 $as_echo_n "checking how to link with libiconv... " >&6; }
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10179 $as_echo "$LIBICONV" >&6; }
10181 CPPFLAGS
="$am_save_CPPFLAGS"
10188 if test "$am_cv_func_iconv" = yes; then
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10190 $as_echo_n "checking for iconv declaration... " >&6; }
10191 if test "${am_cv_proto_iconv+set}" = set; then :
10192 $as_echo_n "(cached) " >&6
10195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h. */
10198 #include <stdlib.h>
10204 #if defined(__STDC__) || defined(__cplusplus)
10205 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10218 if ac_fn_cxx_try_compile
"$LINENO"; then :
10219 am_cv_proto_iconv_arg1
=""
10221 am_cv_proto_iconv_arg1
="const"
10223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10224 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);"
10227 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10229 }$am_cv_proto_iconv" >&5
10231 }$am_cv_proto_iconv" >&6; }
10233 cat >>confdefs.h
<<_ACEOF
10234 #define ICONV_CONST $am_cv_proto_iconv_arg1
10240 ac_cpp
='$CPP $CPPFLAGS'
10241 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10242 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10243 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10246 # Until we have in-tree GNU iconv:
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10252 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10253 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10254 $as_echo_n "(cached) " >&6
10256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10258 #include <locale.h>
10267 if ac_fn_c_try_link
"$LINENO"; then :
10268 am_cv_val_LC_MESSAGES
=yes
10270 am_cv_val_LC_MESSAGES
=no
10272 rm -f core conftest.err conftest.
$ac_objext \
10273 conftest
$ac_exeext conftest.
$ac_ext
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10276 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10277 if test $am_cv_val_LC_MESSAGES = yes; then
10279 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10286 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10287 if test "${am_cv_langinfo_codeset+set}" = set; then :
10288 $as_echo_n "(cached) " >&6
10290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10292 #include <langinfo.h>
10296 char* cs = nl_langinfo(CODESET);
10301 if ac_fn_c_try_link
"$LINENO"; then :
10302 am_cv_langinfo_codeset
=yes
10304 am_cv_langinfo_codeset
=no
10306 rm -f core conftest.err conftest.
$ac_objext \
10307 conftest
$ac_exeext conftest.
$ac_ext
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10311 $as_echo "$am_cv_langinfo_codeset" >&6; }
10312 if test $am_cv_langinfo_codeset = yes; then
10314 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10319 # We will need to find libiberty.h and ansidecl.h
10320 saved_CFLAGS
="$CFLAGS"
10321 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10322 saved_CXXFLAGS
="$CXXFLAGS"
10323 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10324 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10325 strsignal strstr stpcpy strverscmp \
10326 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10327 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
10329 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10331 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10332 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10333 $as_echo_n "(cached) " >&6
10335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10336 /* end confdefs.h. */
10338 #define $ac_tr_decl 1
10340 #include "ansidecl.h"
10341 #include "system.h"
10347 char *(*pfn) = (char *(*)) $ac_func ;
10353 if ac_fn_c_try_compile
"$LINENO"; then :
10354 eval "gcc_cv_have_decl_$ac_func=yes"
10356 eval "gcc_cv_have_decl_$ac_func=no"
10358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10361 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10363 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10364 #define $ac_tr_decl 1
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10369 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10370 #define $ac_tr_decl 0
10378 for ac_func
in getrlimit setrlimit getrusage
10380 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10382 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10383 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10384 $as_echo_n "(cached) " >&6
10386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10389 #define $ac_tr_decl 1
10391 #include "ansidecl.h"
10392 #include "system.h"
10393 #ifdef HAVE_SYS_RESOURCE_H
10394 #include <sys/resource.h>
10402 char *(*pfn) = (char *(*)) $ac_func ;
10408 if ac_fn_c_try_compile
"$LINENO"; then :
10409 eval "gcc_cv_have_decl_$ac_func=yes"
10411 eval "gcc_cv_have_decl_$ac_func=no"
10413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10416 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10418 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10419 #define $ac_tr_decl 1
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10425 #define $ac_tr_decl 0
10433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10436 #include "ansidecl.h"
10437 #include "system.h"
10438 #ifdef HAVE_SYS_RESOURCE_H
10439 #include <sys/resource.h>
10450 if ac_fn_c_try_compile
"$LINENO"; then :
10454 $as_echo "#define rlim_t long" >>confdefs.h
10457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10459 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10460 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10461 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10462 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10463 for ac_func
in ldgetname
10465 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10467 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10468 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10469 $as_echo_n "(cached) " >&6
10471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10474 #define $ac_tr_decl 1
10476 #include "ansidecl.h"
10477 #include "system.h"
10478 #ifdef HAVE_LDFCN_H
10489 char *(*pfn) = (char *(*)) $ac_func ;
10495 if ac_fn_c_try_compile
"$LINENO"; then :
10496 eval "gcc_cv_have_decl_$ac_func=yes"
10498 eval "gcc_cv_have_decl_$ac_func=no"
10500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10503 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10505 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10506 #define $ac_tr_decl 1
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10512 #define $ac_tr_decl 0
10520 for ac_func
in times
10522 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10524 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10525 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10526 $as_echo_n "(cached) " >&6
10528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10531 #define $ac_tr_decl 1
10533 #include "ansidecl.h"
10534 #include "system.h"
10535 #ifdef HAVE_SYS_TIMES_H
10536 #include <sys/times.h>
10544 char *(*pfn) = (char *(*)) $ac_func ;
10550 if ac_fn_c_try_compile
"$LINENO"; then :
10551 eval "gcc_cv_have_decl_$ac_func=yes"
10553 eval "gcc_cv_have_decl_$ac_func=no"
10555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10558 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10560 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10561 #define $ac_tr_decl 1
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10567 #define $ac_tr_decl 0
10575 for ac_func
in sigaltstack
10577 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10579 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10580 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10581 $as_echo_n "(cached) " >&6
10583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10586 #define $ac_tr_decl 1
10588 #include "ansidecl.h"
10589 #include "system.h"
10590 #include <signal.h>
10597 char *(*pfn) = (char *(*)) $ac_func ;
10603 if ac_fn_c_try_compile
"$LINENO"; then :
10604 eval "gcc_cv_have_decl_$ac_func=yes"
10606 eval "gcc_cv_have_decl_$ac_func=no"
10608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10611 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10613 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10614 #define $ac_tr_decl 1
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10619 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10620 #define $ac_tr_decl 0
10628 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10631 ac_cpp
='$CXXCPP $CPPFLAGS'
10632 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10633 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10634 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10636 for ac_func
in madvise
10638 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10640 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10641 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10642 $as_echo_n "(cached) " >&6
10644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10645 /* end confdefs.h. */
10647 #define $ac_tr_decl 1
10649 #include "ansidecl.h"
10650 #include "system.h"
10657 char *(*pfn) = (char *(*)) $ac_func ;
10663 if ac_fn_cxx_try_compile
"$LINENO"; then :
10664 eval "gcc_cv_have_decl_$ac_func=yes"
10666 eval "gcc_cv_have_decl_$ac_func=no"
10668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10671 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10673 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10674 #define $ac_tr_decl 1
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10680 #define $ac_tr_decl 0
10688 ac_cpp
='$CPP $CPPFLAGS'
10689 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10690 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10691 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10694 # More time-related stuff.
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10696 $as_echo_n "checking for struct tms... " >&6; }
10697 if test "${ac_cv_struct_tms+set}" = set; then :
10698 $as_echo_n "(cached) " >&6
10701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h. */
10704 #include "ansidecl.h"
10705 #include "system.h"
10706 #ifdef HAVE_SYS_TIMES_H
10707 #include <sys/times.h>
10718 if ac_fn_c_try_compile
"$LINENO"; then :
10719 ac_cv_struct_tms
=yes
10721 ac_cv_struct_tms
=no
10723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10726 $as_echo "$ac_cv_struct_tms" >&6; }
10727 if test $ac_cv_struct_tms = yes; then
10729 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10733 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10734 # revisit after autoconf 2.50.
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10736 $as_echo_n "checking for clock_t... " >&6; }
10737 if test "${gcc_cv_type_clock_t+set}" = set; then :
10738 $as_echo_n "(cached) " >&6
10741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h. */
10744 #include "ansidecl.h"
10745 #include "system.h"
10755 if ac_fn_c_try_compile
"$LINENO"; then :
10756 gcc_cv_type_clock_t
=yes
10758 gcc_cv_type_clock_t
=no
10760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10763 $as_echo "$gcc_cv_type_clock_t" >&6; }
10764 if test $gcc_cv_type_clock_t = yes; then
10766 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10770 # Check if F_SETLKW is supported by fcntl.
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10772 $as_echo_n "checking for F_SETLKW... " >&6; }
10773 if test "${ac_cv_f_setlkw+set}" = set; then :
10774 $as_echo_n "(cached) " >&6
10777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10790 return fcntl (1, F_SETLKW, &fl);
10795 if ac_fn_c_try_compile
"$LINENO"; then :
10800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10803 $as_echo "$ac_cv_f_setlkw" >&6; }
10804 if test $ac_cv_f_setlkw = yes; then
10806 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10810 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10811 CFLAGS
="$saved_CFLAGS"
10812 CXXFLAGS
="$saved_CXXFLAGS"
10814 # mkdir takes a single argument on some systems.
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10816 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10817 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10818 $as_echo_n "(cached) " >&6
10820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h. */
10823 #include <sys/types.h>
10824 #ifdef HAVE_SYS_STAT_H
10825 # include <sys/stat.h>
10827 #ifdef HAVE_UNISTD_H
10828 # include <unistd.h>
10830 #ifdef HAVE_DIRECT_H
10831 # include <direct.h>
10841 if ac_fn_c_try_compile
"$LINENO"; then :
10842 gcc_cv_mkdir_takes_one_arg
=no
10844 gcc_cv_mkdir_takes_one_arg
=yes
10846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10849 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10850 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10852 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10863 # With Setjmp/Longjmp based exception handling.
10864 # Check whether --enable-sjlj-exceptions was given.
10865 if test "${enable_sjlj_exceptions+set}" = set; then :
10866 enableval
=$enable_sjlj_exceptions; case $target in
10868 if test $enableval != yes; then
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10870 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10875 force_sjlj_exceptions
=yes
10879 force_sjlj_exceptions
=yes
10883 force_sjlj_exceptions
=no
10888 if test $force_sjlj_exceptions = yes; then
10889 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10891 cat >>confdefs.h
<<_ACEOF
10892 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10897 # --------------------------------------------------------
10898 # Build, host, and target specific configuration fragments
10899 # --------------------------------------------------------
10901 # Collect build-machine-specific information.
10902 .
${srcdir}/config.build
10904 # Collect host-machine-specific information.
10905 .
${srcdir}/config.
host
10909 # Collect target-machine-specific information.
10910 .
${srcdir}/config.gcc
10912 extra_objs
="${host_extra_objs} ${extra_objs}"
10913 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10915 # Default the target-machine variables that were not explicitly set.
10916 if test x
"$tm_file" = x
10917 then tm_file
=$cpu_type/$cpu_type.h
; fi
10919 if test x
"$extra_headers" = x
10920 then extra_headers
=; fi
10922 if test x
$md_file = x
10923 then md_file
=$cpu_type/$cpu_type.md
; fi
10925 if test x
$out_file = x
10926 then out_file
=$cpu_type/$cpu_type.c
; fi
10928 if test x
"$tmake_file" = x
10929 then tmake_file
=$cpu_type/t-
$cpu_type
10932 # Support --enable-initfini-array.
10933 if test x
$enable_initfini_array != xno
; then
10934 tm_file
="${tm_file} initfini-array.h"
10937 if test x
"$dwarf2" = xyes
10938 then tm_file
="$tm_file tm-dwarf2.h"
10941 # Say what files are being used for the output code and MD file.
10942 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10943 echo "Using \`$srcdir/config/$md_file' as machine description file."
10945 # If any of the xm_file variables contain nonexistent files, warn
10946 # about them and drop them.
10949 for x
in $build_xm_file; do
10950 if test -f $srcdir/config
/$x
10952 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10953 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10956 build_xm_file
="$bx"
10959 for x
in $host_xm_file; do
10960 if test -f $srcdir/config
/$x
10962 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10963 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10969 for x
in $xm_file; do
10970 if test -f $srcdir/config
/$x
10972 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10973 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10979 for f
in $tm_file; do
10982 if test $count = ax
; then
10983 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10985 echo "Using the following target machine macro files:"
10986 for f
in $tm_file; do
10987 echo " $srcdir/config/$f"
10991 if test x
$need_64bit_hwint = xyes
; then
10993 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10997 if test x
$use_long_long_for_widest_fast_int = xyes
; then
10999 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11003 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11005 cat >>confdefs.h
<<_ACEOF
11006 #define HAVE_GNU_LD $gnu_ld_bool
11010 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11012 cat >>confdefs.h
<<_ACEOF
11013 #define HAVE_GNU_AS $gnu_as_bool
11018 for f
in $host_xm_file; do
11021 if test $count = a
; then
11023 elif test $count = ax
; then
11024 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11026 echo "Using the following host machine macro files:"
11027 for f
in $host_xm_file; do
11028 echo " $srcdir/config/$f"
11031 echo "Using ${out_host_hook_obj} for host machine hooks."
11033 if test "$host_xm_file" != "$build_xm_file"; then
11035 for f
in $build_xm_file; do
11038 if test $count = a
; then
11040 elif test $count = ax
; then
11041 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11043 echo "Using the following build machine macro files:"
11044 for f
in $build_xm_file; do
11045 echo " $srcdir/config/$f"
11050 if test -n "$configured_native_system_header_dir"; then
11051 native_system_header_dir
=$configured_native_system_header_dir
11053 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11057 powerpc
*-*-darwin*)
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11059 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11060 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11061 $as_echo_n "(cached) " >&6
11063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11064 /* end confdefs.h. */
11066 #include <sys/cdefs.h>
11067 #include <sys/signal.h>
11068 #include <ucontext.h>
11069 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11072 if ac_fn_c_try_compile
"$LINENO"; then :
11073 gcc_cv_mcontext_underscores
=no
11075 gcc_cv_mcontext_underscores
=yes
11077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11080 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11081 if test $gcc_cv_mcontext_underscores = yes; then
11083 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11093 # Check if a valid thread package
11094 case ${enable_threads} in
11097 target_thread_file
='single'
11101 target_thread_file
='single'
11103 aix | dce | lynx | mipssde | posix | rtems | \
11104 single | tpf | vxworks | win32
)
11105 target_thread_file
=${enable_threads}
11108 echo "${enable_threads} is an unknown thread package" 1>&2
11113 if test x
${thread_file} = x
; then
11114 # No thread file set by target-specific clauses in config.gcc,
11115 # so use file chosen by default logic above
11116 thread_file
=${target_thread_file}
11124 if test x
$enable___cxa_atexit = xyes || \
11125 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11126 if test x
$host = x
$target; then
11128 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11129 # keyed to flag_use_cxa_atexit
11134 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11135 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11138 echo "__cxa_atexit can't be enabled on this target"
11144 # We can't check for __cxa_atexit when building a cross, so assume
11148 if test x
$use_cxa_atexit = xyes
; then
11150 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11155 # Look for a file containing extra machine modes.
11156 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11157 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11160 cat >>confdefs.h
<<_ACEOF
11161 #define EXTRA_MODES_FILE "config/$extra_modes"
11166 # Convert extra_options into a form suitable for Makefile use.
11169 for f
in $extra_options; do
11170 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11171 all_opt_files
="$all_opt_files $srcdir/config/$f"
11175 # auto-host.h is the file containing items generated by autoconf and is
11176 # the first file included by config.h.
11177 # If host=build, it is correct to have bconfig include auto-host.h
11178 # as well. If host!=build, we are in error and need to do more
11179 # work to find out the build config parameters.
11180 if test x
$host = x
$build
11182 build_auto
=auto-host.h
11184 # We create a subdir, then run autoconf in the subdir.
11185 # To prevent recursion we set host and build for the new
11186 # invocation of configure to the build for this invocation
11193 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11194 *) realsrcdir
=..
/${srcdir};;
11196 saved_CFLAGS
="${CFLAGS}"
11197 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11198 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11199 ${realsrcdir}/configure \
11200 --enable-languages=${enable_languages-all} \
11201 --target=$target_alias --host=$build_alias --build=$build_alias
11202 CFLAGS
="${saved_CFLAGS}"
11204 # We just finished tests for the build machine, so rename
11205 # the file auto-build.h in the gcc directory.
11206 mv auto-host.h ..
/auto-build.h
11209 build_auto
=auto-build.h
11213 tm_file
="${tm_file} defaults.h"
11214 tm_p_file
="${tm_p_file} tm-preds.h"
11215 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11216 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11217 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11218 # put this back in temporarily.
11219 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11225 # Compile in configure arguments.
11226 if test -f configargs.h
; then
11227 # Being re-configured.
11228 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11229 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11231 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11234 # Double all backslashes and backslash all quotes to turn
11235 # gcc_config_arguments into a C string.
11236 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11237 $gcc_config_arguments
11239 gcc_config_arguments_str
=`cat conftest.out`
11242 cat > configargs.h
<<EOF
11243 /* Generated automatically. */
11244 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11245 static const char thread_model[] = "$thread_file";
11247 static const struct {
11248 const char *name, *value;
11249 } configure_default_options[] = $configure_default_options;
11252 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11253 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11254 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11255 if test -f $srcdir/REVISION
; then
11256 gcc_REVISION
=`cat $srcdir/REVISION`
11260 cat > plugin-version.h
<<EOF
11261 #include "configargs.h"
11263 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11264 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11265 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11266 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11268 static char basever[] = "$gcc_BASEVER";
11269 static char datestamp[] = "$gcc_DATESTAMP";
11270 static char devphase[] = "$gcc_DEVPHASE";
11271 static char revision[] = "$gcc_REVISION";
11273 /* FIXME plugins: We should make the version information more precise.
11274 One way to do is to add a checksum. */
11276 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11277 devphase, revision,
11278 configuration_arguments};
11281 # Internationalization
11282 # If we haven't got the data from the intl directory,
11283 # assume NLS is disabled.
11292 if test -f ..
/intl
/config.intl
; then
11293 . ..
/intl
/config.intl
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11296 $as_echo_n "checking whether NLS is requested... " >&6; }
11297 if test x
"$USE_NLS" != xyes
; then
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11299 $as_echo "no" >&6; }
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11302 $as_echo "yes" >&6; }
11304 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11308 $as_echo_n "checking for catalogs to be installed... " >&6; }
11309 # Look for .po and .gmo files in the source directory.
11312 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11313 # If there aren't any .gmo files the shell will give us the
11314 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11316 case "$cat" in *\
**)
11319 # The quadruple backslash is collapsed to a double backslash
11320 # by the backticks, then collapsed again by the double quotes,
11321 # leaving us with one backslash in the sed expression (right
11322 # before the dot that mustn't act as a wildcard).
11323 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11324 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11325 # The user is allowed to set LINGUAS to a list of languages to
11326 # install catalogs for. If it's empty that means "all of them."
11327 if test "x$LINGUAS" = x
; then
11328 CATALOGS
="$CATALOGS $cat"
11329 XLINGUAS
="$XLINGUAS $lang"
11331 case "$LINGUAS" in *$lang*)
11332 CATALOGS
="$CATALOGS $cat"
11333 XLINGUAS
="$XLINGUAS $lang"
11338 LINGUAS
="$XLINGUAS"
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11340 $as_echo "$LINGUAS" >&6; }
11353 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11354 # -liconv on the link line twice.
11355 case "$LIBINTL" in *$LIBICONV*)
11359 # Check whether --enable-secureplt was given.
11360 if test "${enable_secureplt+set}" = set; then :
11361 enableval
=$enable_secureplt;
11365 # Check whether --enable-leading-mingw64-underscores was given.
11366 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11367 enableval
=$enable_leading_mingw64_underscores;
11370 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11372 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11376 # Check whether --enable-cld was given.
11377 if test "${enable_cld+set}" = set; then :
11378 enableval
=$enable_cld;
11384 # Check whether --enable-frame-pointer was given.
11385 if test "${enable_frame_pointer+set}" = set; then :
11386 enableval
=$enable_frame_pointer;
11390 linux
* | darwin
[8912]*)
11391 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11393 enable_frame_pointer
=no
11396 enable_frame_pointer
=yes
11403 # Windows32 Registry support for specifying GCC installation paths.
11404 # Check whether --enable-win32-registry was given.
11405 if test "${enable_win32_registry+set}" = set; then :
11406 enableval
=$enable_win32_registry;
11411 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11412 if test "x$enable_win32_registry" != xno
; then
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11414 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11415 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11416 $as_echo_n "(cached) " >&6
11418 ac_func_search_save_LIBS
=$LIBS
11419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h. */
11422 /* Override any GCC internal prototype to avoid an error.
11423 Use char because int might match the return type of a GCC
11424 builtin and then its argument prototype would still apply. */
11428 char RegOpenKeyExA ();
11432 return RegOpenKeyExA ();
11437 for ac_lib
in '' advapi32
; do
11438 if test -z "$ac_lib"; then
11439 ac_res
="none required"
11442 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11444 if ac_fn_c_try_link
"$LINENO"; then :
11445 ac_cv_search_RegOpenKeyExA
=$ac_res
11447 rm -f core conftest.err conftest.
$ac_objext \
11449 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11453 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11456 ac_cv_search_RegOpenKeyExA
=no
11458 rm conftest.
$ac_ext
11459 LIBS
=$ac_func_search_save_LIBS
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11462 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11463 ac_res
=$ac_cv_search_RegOpenKeyExA
11464 if test "$ac_res" != no
; then :
11465 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11468 enable_win32_registry
=no
11473 if test "x$enable_win32_registry" != xno
; then
11475 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11478 if test "x$enable_win32_registry" != xyes \
11479 && test "x$enable_win32_registry" != x
; then
11481 cat >>confdefs.h
<<_ACEOF
11482 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11490 # Get an absolute path to the GCC top-level source directory
11491 holddir
=`${PWDCMD-pwd}`
11493 topdir
=`${PWDCMD-pwd}`
11496 # Conditionalize the makefile for this host machine.
11498 for f
in ${host_xmake_file}
11500 if test -f ${srcdir}/config
/$f
11502 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11506 # Conditionalize the makefile for this target machine.
11508 for f
in ${tmake_file}
11510 if test -f ${srcdir}/config
/$f
11512 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11515 tmake_file
="${tmake_file_}"
11517 out_object_file
=`basename $out_file .c`.o
11518 common_out_object_file
=`basename $common_out_file .c`.o
11520 tm_file_list
="options.h"
11521 tm_include_list
="options.h insn-constants.h"
11522 for f
in $tm_file; do
11525 f
=`echo $f | sed 's/^..//'`
11526 tm_file_list
="${tm_file_list} $f"
11527 tm_include_list
="${tm_include_list} $f"
11530 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11531 tm_include_list
="${tm_include_list} $f"
11534 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11535 tm_include_list
="${tm_include_list} config/$f"
11542 for f
in $tm_p_file; do
11545 tm_p_file_list
="${tm_p_file_list} $f"
11546 tm_p_include_list
="${tm_p_include_list} $f"
11549 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11550 tm_p_include_list
="${tm_p_include_list} config/$f"
11556 for f
in $xm_file; do
11559 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11560 xm_include_list
="${xm_include_list} $f"
11563 xm_file_list
="${xm_file_list} $f"
11564 xm_include_list
="${xm_include_list} $f"
11567 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11568 xm_include_list
="${xm_include_list} config/$f"
11574 host_xm_include_list
=
11575 for f
in $host_xm_file; do
11578 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11579 host_xm_include_list
="${host_xm_include_list} $f"
11582 host_xm_file_list
="${host_xm_file_list} $f"
11583 host_xm_include_list
="${host_xm_include_list} $f"
11586 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11587 host_xm_include_list
="${host_xm_include_list} config/$f"
11592 build_xm_file_list
=
11593 for f
in $build_xm_file; do
11596 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11597 build_xm_include_list
="${build_xm_include_list} $f"
11599 auto-build.h | auto-host.h
)
11600 build_xm_file_list
="${build_xm_file_list} $f"
11601 build_xm_include_list
="${build_xm_include_list} $f"
11604 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11605 build_xm_include_list
="${build_xm_include_list} config/$f"
11610 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11611 # cross-compiler which does not use the native headers and libraries.
11612 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11615 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11617 if test "x$with_build_sysroot" != x
; then
11618 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11620 # This value is used, even on a native system, because
11621 # CROSS_SYSTEM_HEADER_DIR is just
11622 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11623 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11626 if test x
$host != x
$target
11628 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11630 SYSTEM_HEADER_DIR
=$build_system_header_dir
11631 case "$host","$target" in
11632 # Darwin crosses can use the host system's libraries and headers,
11633 # because of the fat library support. Of course, it must be the
11634 # same version of Darwin on both sides. Allow the user to
11635 # just say --target=foo-darwin without a version number to mean
11636 # "the version on this system".
11637 *-*-darwin*,*-*-darwin*)
11638 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11639 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11640 if test $hostos = $targetos -o $targetos = darwin
; then
11642 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11647 i?
86-*-*,x86_64-
*-* \
11648 | powerpc
*-*-*,powerpc64
*-*-*)
11649 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11654 if test "x$with_headers" = x
; then
11661 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11662 SYSTEM_HEADER_DIR
=$build_system_header_dir
11665 # If this is a cross-compiler that does not
11666 # have its own set of headers then define
11669 # If this is using newlib, without having the headers available now,
11670 # then define inhibit_libc in LIBGCC2_CFLAGS.
11671 # This prevents libgcc2 from containing any code which requires libc
11673 : ${inhibit_libc=false}
11674 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11675 test x
$with_newlib = xyes
; } &&
11676 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11681 # When building gcc with a cross-compiler, we need to adjust things so
11682 # that the generator programs are still built with the native compiler.
11683 # Also, we cannot run fixincludes.
11685 # These are the normal (build=host) settings:
11686 CC_FOR_BUILD
='$(CC)'
11687 CXX_FOR_BUILD
='$(CXX)'
11688 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11689 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11690 BUILD_LDFLAGS
='$(LDFLAGS)'
11691 STMP_FIXINC
=stmp-fixinc
11693 # And these apply if build != host, or we are generating coverage data
11694 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11696 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11697 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11700 # Expand extra_headers to include complete path.
11701 # This substitutes for lots of t-* files.
11702 extra_headers_list
=
11703 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11704 for file in ${extra_headers} ; do
11705 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11708 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11709 if test x
"$use_gcc_tgmath" = xyes
11710 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11713 # Define collect2 in Makefile.
11714 case $host_can_use_collect2 in
11716 *) collect2
='collect2$(exeext)' ;;
11720 # Add a definition of USE_COLLECT2 if system wants one.
11721 case $use_collect2 in
11722 no
) use_collect2
= ;;
11725 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11726 xm_defines
="${xm_defines} USE_COLLECT2"
11727 case $host_can_use_collect2 in
11729 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11736 cat >>confdefs.h
<<_ACEOF
11737 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11741 # ---------------------------
11742 # Assembler & linker features
11743 # ---------------------------
11745 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11746 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11747 # However when ld-new is first executed from the build tree, libtool will
11748 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11749 # to the build tree. While doing this we need to use the previous-stage
11750 # linker, or we have an infinite loop. The presence of a shell script as
11751 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11752 # the gcc/collect-ld script. So we need to know how libtool works, or
11753 # exec-tool will fail.
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11759 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11764 macro_version
='2.2.7a'
11765 macro_revision
='1.3134'
11779 ltmain
="$ac_aux_dir/ltmain.sh"
11781 # Backslashify metacharacters that are still active within
11782 # double-quoted strings.
11783 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11785 # Same as above, but do not quote variable references.
11786 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11788 # Sed substitution to delay expansion of an escaped shell variable in a
11789 # double_quote_subst'ed string.
11790 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11792 # Sed substitution to delay expansion of an escaped single quote.
11793 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11795 # Sed substitution to avoid accidental globbing in evaled expressions
11796 no_glob_subst
='s/\*/\\\*/g'
11798 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11799 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11800 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11803 $as_echo_n "checking how to print strings... " >&6; }
11804 # Test print first, because it will be a builtin if present.
11805 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11806 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11808 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11811 # Use this function as a fallback that always works.
11812 func_fallback_echo ()
11814 eval 'cat <<_LTECHO_EOF
11818 ECHO='func_fallback_echo
'
11821 # func_echo_all arg...
11822 # Invoke $ECHO with all args, space-separated.
11829 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11830 $as_echo "printf" >&6; } ;;
11831 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11832 $as_echo "print -r" >&6; } ;;
11833 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11834 $as_echo "cat" >&6; } ;;
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11851 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11852 if test "${ac_cv_path_SED+set}" = set; then :
11853 $as_echo_n "(cached) " >&6
11855 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11856 for ac_i in 1 2 3 4 5 6 7; do
11857 ac_script="$ac_script$as_nl$ac_script"
11859 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11860 { ac_script=; unset ac_script;}
11861 if test -z "$SED"; then
11862 ac_path_SED_found=false
11863 # Loop through the user's path and
test for each of PROGNAME-LIST
11864 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11865 for as_dir
in $PATH
11868 test -z "$as_dir" && as_dir
=.
11869 for ac_prog
in sed gsed
; do
11870 for ac_exec_ext
in '' $ac_executable_extensions; do
11871 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11872 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11873 # Check for GNU ac_path_SED and select it if it is found.
11874 # Check for GNU $ac_path_SED
11875 case `"$ac_path_SED" --version 2>&1` in
11877 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11880 $as_echo_n 0123456789 >"conftest.in"
11883 cat "conftest.in" "conftest.in" >"conftest.tmp"
11884 mv "conftest.tmp" "conftest.in"
11885 cp "conftest.in" "conftest.nl"
11886 $as_echo '' >> "conftest.nl"
11887 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11888 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11889 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11890 if test $ac_count -gt ${ac_path_SED_max-0}; then
11891 # Best one so far, save it but keep looking for a better one
11892 ac_cv_path_SED
="$ac_path_SED"
11893 ac_path_SED_max
=$ac_count
11895 # 10*(2^10) chars as input seems more than enough
11896 test $ac_count -gt 10 && break
11898 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11901 $ac_path_SED_found && break 3
11906 if test -z "$ac_cv_path_SED"; then
11907 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11910 ac_cv_path_SED
=$SED
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11915 $as_echo "$ac_cv_path_SED" >&6; }
11916 SED
="$ac_cv_path_SED"
11919 test -z "$SED" && SED
=sed
11920 Xsed
="$SED -e 1s/^X//"
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11933 $as_echo_n "checking for fgrep... " >&6; }
11934 if test "${ac_cv_path_FGREP+set}" = set; then :
11935 $as_echo_n "(cached) " >&6
11937 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11938 then ac_cv_path_FGREP
="$GREP -F"
11940 if test -z "$FGREP"; then
11941 ac_path_FGREP_found
=false
11942 # Loop through the user's path and test for each of PROGNAME-LIST
11943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11944 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11947 test -z "$as_dir" && as_dir
=.
11948 for ac_prog
in fgrep
; do
11949 for ac_exec_ext
in '' $ac_executable_extensions; do
11950 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11951 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11952 # Check for GNU ac_path_FGREP and select it if it is found.
11953 # Check for GNU $ac_path_FGREP
11954 case `"$ac_path_FGREP" --version 2>&1` in
11956 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
11959 $as_echo_n 0123456789 >"conftest.in"
11962 cat "conftest.in" "conftest.in" >"conftest.tmp"
11963 mv "conftest.tmp" "conftest.in"
11964 cp "conftest.in" "conftest.nl"
11965 $as_echo 'FGREP' >> "conftest.nl"
11966 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11967 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11968 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11969 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11970 # Best one so far, save it but keep looking for a better one
11971 ac_cv_path_FGREP
="$ac_path_FGREP"
11972 ac_path_FGREP_max
=$ac_count
11974 # 10*(2^10) chars as input seems more than enough
11975 test $ac_count -gt 10 && break
11977 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11980 $ac_path_FGREP_found && break 3
11985 if test -z "$ac_cv_path_FGREP"; then
11986 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11989 ac_cv_path_FGREP
=$FGREP
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11995 $as_echo "$ac_cv_path_FGREP" >&6; }
11996 FGREP
="$ac_cv_path_FGREP"
11999 test -z "$GREP" && GREP
=grep
12019 # Check whether --with-gnu-ld was given.
12020 if test "${with_gnu_ld+set}" = set; then :
12021 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12027 if test "$GCC" = yes; then
12028 # Check if gcc -print-prog-name=ld gives a path.
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12030 $as_echo_n "checking for ld used by $CC... " >&6; }
12033 # gcc leaves a trailing carriage return which upsets mingw
12034 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12036 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12039 # Accept absolute paths.
12041 re_direlt
='/[^/][^/]*/\.\./'
12042 # Canonicalize the pathname of ld
12043 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12044 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12045 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12047 test -z "$LD" && LD
="$ac_prog"
12050 # If it fails, then pretend we aren't using GCC.
12054 # If it is relative, then search for the first ld in PATH.
12055 with_gnu_ld
=unknown
12058 elif test "$with_gnu_ld" = yes; then
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12060 $as_echo_n "checking for GNU ld... " >&6; }
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12063 $as_echo_n "checking for non-GNU ld... " >&6; }
12065 if test "${lt_cv_path_LD+set}" = set; then :
12066 $as_echo_n "(cached) " >&6
12068 if test -z "$LD"; then
12069 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12070 for ac_dir
in $PATH; do
12072 test -z "$ac_dir" && ac_dir
=.
12073 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12074 lt_cv_path_LD
="$ac_dir/$ac_prog"
12075 # Check to see if the program is GNU ld. I'd rather use --version,
12076 # but apparently some variants of GNU ld only accept -v.
12077 # Break only if it was the GNU/non-GNU ld that we prefer.
12078 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12079 *GNU
* |
*'with BFD'*)
12080 test "$with_gnu_ld" != no
&& break
12083 test "$with_gnu_ld" != yes && break
12090 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12094 LD
="$lt_cv_path_LD"
12095 if test -n "$LD"; then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12097 $as_echo "$LD" >&6; }
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12100 $as_echo "no" >&6; }
12102 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12104 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12105 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12106 $as_echo_n "(cached) " >&6
12108 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12109 case `$LD -v 2>&1 </dev/null` in
12110 *GNU
* |
*'with BFD'*)
12111 lt_cv_prog_gnu_ld
=yes
12114 lt_cv_prog_gnu_ld
=no
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12119 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12120 with_gnu_ld
=$lt_cv_prog_gnu_ld
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12131 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12132 if test "${lt_cv_path_NM+set}" = set; then :
12133 $as_echo_n "(cached) " >&6
12135 if test -n "$NM"; then
12136 # Let the user override the test.
12137 lt_cv_path_NM
="$NM"
12139 lt_nm_to_check
="${ac_tool_prefix}nm"
12140 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12141 lt_nm_to_check
="$lt_nm_to_check nm"
12143 for lt_tmp_nm
in $lt_nm_to_check; do
12144 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12145 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12147 test -z "$ac_dir" && ac_dir
=.
12148 tmp_nm
="$ac_dir/$lt_tmp_nm"
12149 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12150 # Check to see if the nm accepts a BSD-compat flag.
12151 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12152 # nm: unknown option "B" ignored
12153 # Tru64's nm complains that /dev/null is an invalid object file
12154 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12155 */dev
/null
* |
*'Invalid file or object type'*)
12156 lt_cv_path_NM
="$tmp_nm -B"
12160 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12162 lt_cv_path_NM
="$tmp_nm -p"
12166 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12167 continue # so that we can try to find one that supports BSD flags
12176 : ${lt_cv_path_NM=no}
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12180 $as_echo "$lt_cv_path_NM" >&6; }
12181 if test "$lt_cv_path_NM" != "no"; then
12182 NM
="$lt_cv_path_NM"
12184 # Didn't find any BSD compatible name lister, look for dumpbin.
12185 if test -n "$DUMPBIN"; then :
12186 # Let the user override the test.
12188 if test -n "$ac_tool_prefix"; then
12189 for ac_prog
in dumpbin
"link -dump"
12191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12192 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12194 $as_echo_n "checking for $ac_word... " >&6; }
12195 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12196 $as_echo_n "(cached) " >&6
12198 if test -n "$DUMPBIN"; then
12199 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12201 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12202 for as_dir
in $PATH
12205 test -z "$as_dir" && as_dir
=.
12206 for ac_exec_ext
in '' $ac_executable_extensions; do
12207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12208 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12218 DUMPBIN
=$ac_cv_prog_DUMPBIN
12219 if test -n "$DUMPBIN"; then
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12221 $as_echo "$DUMPBIN" >&6; }
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224 $as_echo "no" >&6; }
12228 test -n "$DUMPBIN" && break
12231 if test -z "$DUMPBIN"; then
12232 ac_ct_DUMPBIN
=$DUMPBIN
12233 for ac_prog
in dumpbin
"link -dump"
12235 # Extract the first word of "$ac_prog", so it can be a program name with args.
12236 set dummy
$ac_prog; ac_word
=$2
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238 $as_echo_n "checking for $ac_word... " >&6; }
12239 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12240 $as_echo_n "(cached) " >&6
12242 if test -n "$ac_ct_DUMPBIN"; then
12243 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12245 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12246 for as_dir
in $PATH
12249 test -z "$as_dir" && as_dir
=.
12250 for ac_exec_ext
in '' $ac_executable_extensions; do
12251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12252 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12262 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12263 if test -n "$ac_ct_DUMPBIN"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12265 $as_echo "$ac_ct_DUMPBIN" >&6; }
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12272 test -n "$ac_ct_DUMPBIN" && break
12275 if test "x$ac_ct_DUMPBIN" = x
; then
12278 case $cross_compiling:$ac_tool_warned in
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12282 ac_tool_warned
=yes ;;
12284 DUMPBIN
=$ac_ct_DUMPBIN
12288 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12290 DUMPBIN
="$DUMPBIN -symbols"
12298 if test "$DUMPBIN" != ":"; then
12302 test -z "$NM" && NM
=nm
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12310 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12311 if test "${lt_cv_nm_interface+set}" = set; then :
12312 $as_echo_n "(cached) " >&6
12314 lt_cv_nm_interface
="BSD nm"
12315 echo "int some_variable = 0;" > conftest.
$ac_ext
12316 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12317 (eval "$ac_compile" 2>conftest.err
)
12318 cat conftest.err
>&5
12319 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12320 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12321 cat conftest.err
>&5
12322 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12323 cat conftest.out
>&5
12324 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12325 lt_cv_nm_interface
="MS dumpbin"
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12330 $as_echo "$lt_cv_nm_interface" >&6; }
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12333 $as_echo_n "checking whether ln -s works... " >&6; }
12335 if test "$LN_S" = "ln -s"; then
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12337 $as_echo "yes" >&6; }
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12340 $as_echo "no, using $LN_S" >&6; }
12343 # find the maximum length of command line arguments
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12345 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12346 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12347 $as_echo_n "(cached) " >&6
12354 # On DJGPP, this test can blow up pretty badly due to problems in libc
12355 # (any single argument exceeding 2000 bytes causes a buffer overrun
12356 # during glob expansion). Even if it were fixed, the result of this
12357 # check would be larger than it should be.
12358 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12362 # Under GNU Hurd, this test is not required because there is
12363 # no limit to the length of command line arguments.
12364 # Libtool will interpret -1 as no limit whatsoever
12365 lt_cv_sys_max_cmd_len
=-1;
12368 cygwin
* | mingw
* | cegcc
*)
12369 # On Win9x/ME, this test blows up -- it succeeds, but takes
12370 # about 5 minutes as the teststring grows exponentially.
12371 # Worse, since 9x/ME are not pre-emptively multitasking,
12372 # you end up with a "frozen" computer, even though with patience
12373 # the test eventually succeeds (with a max line length of 256k).
12374 # Instead, let's just punt: use the minimum linelength reported by
12375 # all of the supported platforms: 8192 (on NT/2K/XP).
12376 lt_cv_sys_max_cmd_len
=8192;
12380 # On MiNT this can take a long time and run out of memory.
12381 lt_cv_sys_max_cmd_len
=8192;
12385 # On AmigaOS with pdksh, this test takes hours, literally.
12386 # So we just punt and use a minimum line length of 8192.
12387 lt_cv_sys_max_cmd_len
=8192;
12390 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12391 # This has been around since 386BSD, at least. Likely further.
12392 if test -x /sbin
/sysctl
; then
12393 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12394 elif test -x /usr
/sbin
/sysctl
; then
12395 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12397 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12399 # And add a safety zone
12400 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12401 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12405 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12406 lt_cv_sys_max_cmd_len
=196608
12410 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12411 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12412 # nice to cause kernel panics so lets avoid the loop below.
12413 # First set a reasonable default.
12414 lt_cv_sys_max_cmd_len
=16384
12416 if test -x /sbin
/sysconfig
; then
12417 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12418 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12423 lt_cv_sys_max_cmd_len
=102400
12425 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12426 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12427 if test -n "$kargmax"; then
12428 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12430 lt_cv_sys_max_cmd_len
=32768
12434 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12435 if test -n "$lt_cv_sys_max_cmd_len"; then
12436 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12437 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12439 # Make teststring a little bigger before we do anything with it.
12440 # a 1K string should be a reasonable start.
12441 for i
in 1 2 3 4 5 6 7 8 ; do
12442 teststring
=$teststring$teststring
12444 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12445 # If test is not a shell built-in, we'll probably end up computing a
12446 # maximum length that is only half of the actual maximum length, but
12448 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12449 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12450 test $i != 17 # 1/2 MB should be enough
12453 teststring
=$teststring$teststring
12455 # Only check the string length outside the loop.
12456 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12458 # Add a significant safety factor because C++ compilers can tack on
12459 # massive amounts of additional arguments before passing them to the
12460 # linker. It appears as though 1/2 is a usable value.
12461 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12468 if test -n $lt_cv_sys_max_cmd_len ; then
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12470 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12473 $as_echo "none" >&6; }
12475 max_cmd_len
=$lt_cv_sys_max_cmd_len
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12487 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12488 # Try some XSI features
12490 ( _lt_dummy
="a/b/c"
12491 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12493 && eval 'test $(( 1 + 1 )) -eq 2 \
12494 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12497 $as_echo "$xsi_shell" >&6; }
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12501 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12503 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12505 && lt_shell_append=yes
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12507 $as_echo "$lt_shell_append" >&6; }
12510 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12520 # test EBCDIC or ASCII
12521 case `echo X|tr X '\101'` in
12522 A) # ASCII based system
12523 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12524 lt_SP2NL='tr \040 \012'
12525 lt_NL2SP='tr \015\012 \040\040'
12527 *) # EBCDIC based system
12528 lt_SP2NL='tr \100 \n'
12529 lt_NL2SP='tr \r\n \100\100'
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12542 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12543 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12544 $as_echo_n "(cached
) " >&6
12546 lt_cv_ld_reload_flag='-r'
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12549 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12550 reload_flag=$lt_cv_ld_reload_flag
12551 case $reload_flag in
12553 *) reload_flag=" $reload_flag" ;;
12555 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12558 if test "$GCC" = yes; then
12559 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12561 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12574 if test -n "$ac_tool_prefix"; then
12575 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12576 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12578 $as_echo_n "checking
for $ac_word...
" >&6; }
12579 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12580 $as_echo_n "(cached
) " >&6
12582 if test -n "$OBJDUMP"; then
12583 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586 for as_dir in $PATH
12589 test -z "$as_dir" && as_dir=.
12590 for ac_exec_ext in '' $ac_executable_extensions; do
12591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12592 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12593 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12602 OBJDUMP=$ac_cv_prog_OBJDUMP
12603 if test -n "$OBJDUMP"; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12605 $as_echo "$OBJDUMP" >&6; }
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12608 $as_echo "no
" >&6; }
12613 if test -z "$ac_cv_prog_OBJDUMP"; then
12614 ac_ct_OBJDUMP=$OBJDUMP
12615 # Extract the first word of "objdump
", so it can be a program name with args.
12616 set dummy objdump; ac_word=$2
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12618 $as_echo_n "checking
for $ac_word...
" >&6; }
12619 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12620 $as_echo_n "(cached
) " >&6
12622 if test -n "$ac_ct_OBJDUMP"; then
12623 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626 for as_dir in $PATH
12629 test -z "$as_dir" && as_dir=.
12630 for ac_exec_ext in '' $ac_executable_extensions; do
12631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12632 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12633 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12642 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12643 if test -n "$ac_ct_OBJDUMP"; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12645 $as_echo "$ac_ct_OBJDUMP" >&6; }
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12648 $as_echo "no
" >&6; }
12651 if test "x
$ac_ct_OBJDUMP" = x; then
12654 case $cross_compiling:$ac_tool_warned in
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12657 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12658 ac_tool_warned=yes ;;
12660 OBJDUMP=$ac_ct_OBJDUMP
12663 OBJDUMP="$ac_cv_prog_OBJDUMP"
12666 test -z "$OBJDUMP" && OBJDUMP=objdump
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12677 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12678 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12679 $as_echo_n "(cached
) " >&6
12681 lt_cv_file_magic_cmd='$MAGIC_CMD'
12682 lt_cv_file_magic_test_file=
12683 lt_cv_deplibs_check_method='unknown'
12684 # Need to set the preceding variable on all platforms that support
12685 # interlibrary dependencies.
12686 # 'none' -- dependencies not supported.
12687 # `unknown' -- same as none, but documents that we really don't know.
12688 # 'pass_all' -- all dependencies passed with no checks.
12689 # 'test_compile' -- check by making test program.
12690 # 'file_magic [[regex]]' -- check by looking for files in library path
12691 # which responds to the $file_magic_cmd with a given extended regex.
12692 # If you have `file' or equivalent on your system and you're not sure
12693 # whether `pass_all' will *always* work, you probably want this one.
12697 lt_cv_deplibs_check_method=pass_all
12701 lt_cv_deplibs_check_method=pass_all
12705 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12706 lt_cv_file_magic_cmd='/usr/bin/file -L'
12707 lt_cv_file_magic_test_file=/shlib/libc.so
12711 # func_win32_libid is a shell function defined in ltmain.sh
12712 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12713 lt_cv_file_magic_cmd='func_win32_libid'
12717 # Base MSYS/MinGW do not provide the 'file' command needed by
12718 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12719 # unless we find 'file', for example because we are cross-compiling.
12720 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12721 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12722 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12723 lt_cv_file_magic_cmd='func_win32_libid'
12725 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12726 lt_cv_file_magic_cmd='$OBJDUMP -f'
12731 # use the weaker test based on 'objdump'. See mingw*.
12732 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12733 lt_cv_file_magic_cmd='$OBJDUMP -f'
12736 darwin* | rhapsody*)
12737 lt_cv_deplibs_check_method=pass_all
12740 freebsd* | dragonfly*)
12741 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12744 # Not sure whether the presence of OpenBSD here was a mistake.
12745 # Let's accept both of them until this is cleared up.
12746 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12747 lt_cv_file_magic_cmd=/usr/bin/file
12748 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12752 lt_cv_deplibs_check_method=pass_all
12757 lt_cv_deplibs_check_method=pass_all
12761 lt_cv_deplibs_check_method=pass_all
12764 hpux10.20* | hpux11*)
12765 lt_cv_file_magic_cmd=/usr/bin/file
12768 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12769 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12772 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]'
12773 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12776 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12777 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12783 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12784 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12787 irix5* | irix6* | nonstopux*)
12789 *-32|*"-32 ") libmagic=32-bit;;
12790 *-n32|*"-n32 ") libmagic=N32;;
12791 *-64|*"-64 ") libmagic=64-bit;;
12792 *) libmagic=never-match;;
12794 lt_cv_deplibs_check_method=pass_all
12797 # This must be Linux ELF.
12798 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12799 lt_cv_deplibs_check_method=pass_all
12803 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12804 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12811 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12812 lt_cv_file_magic_cmd=/usr/bin/file
12813 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12817 lt_cv_deplibs_check_method=pass_all
12821 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12822 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12824 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12828 osf3* | osf4* | osf5*)
12829 lt_cv_deplibs_check_method=pass_all
12833 lt_cv_deplibs_check_method=pass_all
12837 lt_cv_deplibs_check_method=pass_all
12840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12841 lt_cv_deplibs_check_method=pass_all
12845 case $host_vendor in
12847 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]'
12848 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12851 lt_cv_deplibs_check_method=pass_all
12854 lt_cv_file_magic_cmd='/bin/file'
12855 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12858 lt_cv_file_magic_cmd='/bin/file'
12859 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12860 lt_cv_file_magic_test_file=/lib/libc.so
12863 lt_cv_deplibs_check_method=pass_all
12866 lt_cv_deplibs_check_method=pass_all
12872 lt_cv_deplibs_check_method=pass_all
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12878 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12879 file_magic_cmd=$lt_cv_file_magic_cmd
12880 deplibs_check_method=$lt_cv_deplibs_check_method
12881 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12894 if test -n "$ac_tool_prefix"; then
12895 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12896 set dummy ${ac_tool_prefix}ar; ac_word=$2
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12898 $as_echo_n "checking
for $ac_word...
" >&6; }
12899 if test "${ac_cv_prog_AR+set}" = set; then :
12900 $as_echo_n "(cached
) " >&6
12902 if test -n "$AR"; then
12903 ac_cv_prog_AR="$AR" # Let the user override the test.
12905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906 for as_dir in $PATH
12909 test -z "$as_dir" && as_dir=.
12910 for ac_exec_ext in '' $ac_executable_extensions; do
12911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12912 ac_cv_prog_AR="${ac_tool_prefix}ar"
12913 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12923 if test -n "$AR"; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12925 $as_echo "$AR" >&6; }
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12928 $as_echo "no
" >&6; }
12933 if test -z "$ac_cv_prog_AR"; then
12935 # Extract the first word of "ar", so it can be a program name with args.
12936 set dummy ar; ac_word=$2
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12938 $as_echo_n "checking
for $ac_word...
" >&6; }
12939 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12940 $as_echo_n "(cached
) " >&6
12942 if test -n "$ac_ct_AR"; then
12943 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12946 for as_dir in $PATH
12949 test -z "$as_dir" && as_dir=.
12950 for ac_exec_ext in '' $ac_executable_extensions; do
12951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12952 ac_cv_prog_ac_ct_AR="ar"
12953 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12962 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12963 if test -n "$ac_ct_AR"; then
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12965 $as_echo "$ac_ct_AR" >&6; }
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12968 $as_echo "no
" >&6; }
12971 if test "x
$ac_ct_AR" = x; then
12974 case $cross_compiling:$ac_tool_warned in
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12977 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12978 ac_tool_warned=yes ;;
12983 AR="$ac_cv_prog_AR"
12986 test -z "$AR" && AR=ar
12987 test -z "$AR_FLAGS" && AR_FLAGS=cru
12999 if test -n "$ac_tool_prefix"; then
13000 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13001 set dummy ${ac_tool_prefix}strip; ac_word=$2
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13003 $as_echo_n "checking
for $ac_word...
" >&6; }
13004 if test "${ac_cv_prog_STRIP+set}" = set; then :
13005 $as_echo_n "(cached
) " >&6
13007 if test -n "$STRIP"; then
13008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13011 for as_dir in $PATH
13014 test -z "$as_dir" && as_dir=.
13015 for ac_exec_ext in '' $ac_executable_extensions; do
13016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13017 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13018 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13027 STRIP=$ac_cv_prog_STRIP
13028 if test -n "$STRIP"; then
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13030 $as_echo "$STRIP" >&6; }
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13033 $as_echo "no
" >&6; }
13038 if test -z "$ac_cv_prog_STRIP"; then
13040 # Extract the first word of "strip
", so it can be a program name with args.
13041 set dummy strip; ac_word=$2
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13043 $as_echo_n "checking
for $ac_word...
" >&6; }
13044 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13045 $as_echo_n "(cached
) " >&6
13047 if test -n "$ac_ct_STRIP"; then
13048 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13051 for as_dir in $PATH
13054 test -z "$as_dir" && as_dir=.
13055 for ac_exec_ext in '' $ac_executable_extensions; do
13056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13057 ac_cv_prog_ac_ct_STRIP="strip
"
13058 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13068 if test -n "$ac_ct_STRIP"; then
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13070 $as_echo "$ac_ct_STRIP" >&6; }
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13073 $as_echo "no
" >&6; }
13076 if test "x
$ac_ct_STRIP" = x; then
13079 case $cross_compiling:$ac_tool_warned in
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13082 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13083 ac_tool_warned=yes ;;
13088 STRIP="$ac_cv_prog_STRIP"
13091 test -z "$STRIP" && STRIP=:
13098 if test -n "$ac_tool_prefix"; then
13099 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13100 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13102 $as_echo_n "checking
for $ac_word...
" >&6; }
13103 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13104 $as_echo_n "(cached
) " >&6
13106 if test -n "$RANLIB"; then
13107 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13110 for as_dir in $PATH
13113 test -z "$as_dir" && as_dir=.
13114 for ac_exec_ext in '' $ac_executable_extensions; do
13115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13116 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13117 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13126 RANLIB=$ac_cv_prog_RANLIB
13127 if test -n "$RANLIB"; then
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13129 $as_echo "$RANLIB" >&6; }
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13132 $as_echo "no
" >&6; }
13137 if test -z "$ac_cv_prog_RANLIB"; then
13138 ac_ct_RANLIB=$RANLIB
13139 # Extract the first word of "ranlib
", so it can be a program name with args.
13140 set dummy ranlib; ac_word=$2
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13142 $as_echo_n "checking
for $ac_word...
" >&6; }
13143 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13144 $as_echo_n "(cached
) " >&6
13146 if test -n "$ac_ct_RANLIB"; then
13147 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150 for as_dir in $PATH
13153 test -z "$as_dir" && as_dir=.
13154 for ac_exec_ext in '' $ac_executable_extensions; do
13155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13156 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13157 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13166 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13167 if test -n "$ac_ct_RANLIB"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13169 $as_echo "$ac_ct_RANLIB" >&6; }
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13172 $as_echo "no
" >&6; }
13175 if test "x
$ac_ct_RANLIB" = x; then
13178 case $cross_compiling:$ac_tool_warned in
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13181 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13182 ac_tool_warned=yes ;;
13184 RANLIB=$ac_ct_RANLIB
13187 RANLIB="$ac_cv_prog_RANLIB"
13190 test -z "$RANLIB" && RANLIB=:
13197 # Determine commands to create old-style static archives.
13198 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13199 old_postinstall_cmds='chmod 644 $oldlib'
13200 old_postuninstall_cmds=
13202 if test -n "$RANLIB"; then
13205 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13208 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13211 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13216 lock_old_archive_extraction=yes ;;
13218 lock_old_archive_extraction=no ;;
13259 # If no C compiler was specified, use CC.
13262 # If no C compiler flags were specified, use CFLAGS.
13263 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13265 # Allow CC to be a program name with arguments.
13269 # Check for command to grab the raw symbol name followed by C symbol from nm.
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13271 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13272 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13273 $as_echo_n "(cached
) " >&6
13276 # These are sane defaults that work on at least a few old systems.
13277 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13279 # Character class describing NM global symbol codes.
13280 symcode='[BCDEGRST]'
13282 # Regexp to match symbols that can be accessed directly from C.
13283 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13285 # Define system-specific variables.
13290 cygwin* | mingw* | pw32* | cegcc*)
13291 symcode='[ABCDGISTW]'
13294 if test "$host_cpu" = ia64; then
13295 symcode='[ABCDEGRST]'
13298 irix* | nonstopux*)
13299 symcode='[BCDEGRST]'
13302 symcode='[BCDEGQRST]'
13313 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13321 # If we're using GNU nm, then use its standard symbol codes.
13322 case `$NM -V 2>&1` in
13323 *GNU* | *'with BFD'*)
13324 symcode='[ABCDGIRSTW]' ;;
13327 # Transform an extracted symbol line into a proper C declaration.
13328 # Some systems (esp. on ia64) link data and code symbols differently,
13329 # so use this general approach.
13330 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13332 # Transform an extracted symbol line into symbol name and symbol address
13333 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13334 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'"
13336 # Handle CRLF in mingw tool chain
13340 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13344 # Try without a prefix underscore, then with it.
13345 for ac_symprfx in "" "_
"; do
13347 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13348 symxfrm="\\1 $ac_symprfx\\2 \\2"
13350 # Write the raw and C identifiers.
13351 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13352 # Fake it for dumpbin and say T for any non-static function
13353 # and D for any global variable.
13354 # Also find C++ and __fastcall symbols from MSVC++,
13355 # which start with @ or ?.
13356 lt_cv_sys_global_symbol_pipe="$AWK '"\
13357 " {last_section=section; section=\$ 3};"\
13358 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13359 " \$ 0!~/External *\|/{next};"\
13360 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13361 " {if(hide[section]) next};"\
13362 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13363 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13364 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13365 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13366 " ' prfx
=^
$ac_symprfx"
13368 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13371 # Check to see that the pipe works correctly.
13375 cat > conftest.$ac_ext <<_LT_EOF
13380 void nm_test_func(void);
13381 void nm_test_func(void){}
13385 int main(){nm_test_var='a';nm_test_func();return(0);}
13388 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13389 (eval $ac_compile) 2>&5
13391 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13392 test $ac_status = 0; }; then
13393 # Now try to grab the symbols.
13395 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13396 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13398 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13399 test $ac_status = 0; } && test -s "$nlist"; then
13400 # Try sorting and uniquifying the output.
13401 if sort "$nlist" | uniq > "$nlist"T; then
13402 mv -f "$nlist"T "$nlist"
13407 # Make sure that we snagged all the symbols we need.
13408 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13409 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13410 cat <<_LT_EOF > conftest.$ac_ext
13416 # Now generate the symbol file.
13417 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13419 cat <<_LT_EOF >> conftest.$ac_ext
13421 /* The mapping between symbol names and symbols. */
13426 lt__PROGRAM__LTX_preloaded_symbols[] =
13428 { "@PROGRAM@
", (void *) 0 },
13430 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13431 cat <<\_LT_EOF >> conftest.$ac_ext
13435 /* This works around a problem in FreeBSD linker */
13436 #ifdef FREEBSD_WORKAROUND
13437 static const void *lt_preloaded_setup() {
13438 return lt__PROGRAM__LTX_preloaded_symbols;
13446 # Now try linking the two files.
13447 mv conftest.$ac_objext conftstm.$ac_objext
13448 lt_save_LIBS="$LIBS"
13449 lt_save_CFLAGS="$CFLAGS"
13450 LIBS="conftstm.
$ac_objext"
13451 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13452 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13453 (eval $ac_link) 2>&5
13455 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13456 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13459 LIBS="$lt_save_LIBS"
13460 CFLAGS="$lt_save_CFLAGS"
13462 echo "cannot
find nm_test_func
in $nlist" >&5
13465 echo "cannot
find nm_test_var
in $nlist" >&5
13468 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13471 echo "$progname: failed program was
:" >&5
13472 cat conftest.$ac_ext >&5
13474 rm -rf conftest* conftst*
13476 # Do not use the global_symbol_pipe unless it works.
13477 if test "$pipe_works" = yes; then
13480 lt_cv_sys_global_symbol_pipe=
13486 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13487 lt_cv_sys_global_symbol_to_cdecl=
13489 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13491 $as_echo "failed
" >&6; }
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13494 $as_echo "ok
" >&6; }
13518 # Check whether --enable-libtool-lock was given.
13519 if test "${enable_libtool_lock+set}" = set; then :
13520 enableval=$enable_libtool_lock;
13523 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13525 # Some flags need to be propagated to the compiler or linker for good
13529 # Find out which ABI we are using.
13530 echo 'int i;' > conftest.$ac_ext
13531 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13532 (eval $ac_compile) 2>&5
13534 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13535 test $ac_status = 0; }; then
13536 case `/usr/bin/file conftest.$ac_objext` in
13538 HPUX_IA64_MODE="32"
13541 HPUX_IA64_MODE="64"
13548 # Find out which ABI we are using.
13549 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13550 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13551 (eval $ac_compile) 2>&5
13553 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13554 test $ac_status = 0; }; then
13555 if test "$lt_cv_prog_gnu_ld" = yes; then
13556 case `/usr/bin/file conftest.$ac_objext` in
13558 LD="${LD-ld} -melf32bsmip"
13561 LD="${LD-ld} -melf32bmipn32"
13564 LD="${LD-ld} -melf64bmip"
13568 case `/usr/bin/file conftest.$ac_objext` in
13584 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13585 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13586 # Find out which ABI we are using.
13587 echo 'int i;' > conftest.$ac_ext
13588 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13589 (eval $ac_compile) 2>&5
13591 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13592 test $ac_status = 0; }; then
13593 case `/usr/bin/file conftest.o` in
13596 x86_64-*kfreebsd*-gnu)
13597 LD="${LD-ld} -m elf_i386_fbsd
"
13600 case `/usr/bin/file conftest.o` in
13602 LD="${LD-ld} -m elf32_x86_64
"
13605 LD="${LD-ld} -m elf_i386
"
13609 ppc64-*linux*|powerpc64-*linux*)
13610 LD="${LD-ld} -m elf32ppclinux
"
13613 LD="${LD-ld} -m elf_s390
"
13616 LD="${LD-ld} -m elf32_sparc
"
13622 x86_64-*kfreebsd*-gnu)
13623 LD="${LD-ld} -m elf_x86_64_fbsd
"
13626 LD="${LD-ld} -m elf_x86_64
"
13628 ppc*-*linux*|powerpc*-*linux*)
13629 LD="${LD-ld} -m elf64ppc
"
13631 s390*-*linux*|s390*-*tpf*)
13632 LD="${LD-ld} -m elf64_s390
"
13635 LD="${LD-ld} -m elf64_sparc
"
13645 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13646 SAVE_CFLAGS="$CFLAGS"
13647 CFLAGS="$CFLAGS -belf"
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13649 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13650 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13651 $as_echo_n "(cached
) " >&6
13654 ac_cpp='$CPP $CPPFLAGS'
13655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h. */
13670 if ac_fn_c_try_link "$LINENO"; then :
13671 lt_cv_cc_needs_belf=yes
13673 lt_cv_cc_needs_belf=no
13675 rm -f core conftest.err conftest.$ac_objext \
13676 conftest$ac_exeext conftest.$ac_ext
13678 ac_cpp='$CPP $CPPFLAGS'
13679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13685 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13686 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13687 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13688 CFLAGS="$SAVE_CFLAGS"
13692 # Find out which ABI we are using.
13693 echo 'int i;' > conftest.$ac_ext
13694 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13695 (eval $ac_compile) 2>&5
13697 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13698 test $ac_status = 0; }; then
13699 case `/usr/bin/file conftest.o` in
13701 case $lt_cv_prog_gnu_ld in
13702 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13704 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13716 need_locks="$enable_libtool_lock"
13720 rhapsody* | darwin*)
13721 if test -n "$ac_tool_prefix"; then
13722 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13723 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13725 $as_echo_n "checking
for $ac_word...
" >&6; }
13726 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13727 $as_echo_n "(cached
) " >&6
13729 if test -n "$DSYMUTIL"; then
13730 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13733 for as_dir in $PATH
13736 test -z "$as_dir" && as_dir=.
13737 for ac_exec_ext in '' $ac_executable_extensions; do
13738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13739 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13740 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13749 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13750 if test -n "$DSYMUTIL"; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13752 $as_echo "$DSYMUTIL" >&6; }
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13755 $as_echo "no
" >&6; }
13760 if test -z "$ac_cv_prog_DSYMUTIL"; then
13761 ac_ct_DSYMUTIL=$DSYMUTIL
13762 # Extract the first word of "dsymutil
", so it can be a program name with args.
13763 set dummy dsymutil; ac_word=$2
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13765 $as_echo_n "checking
for $ac_word...
" >&6; }
13766 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13767 $as_echo_n "(cached
) " >&6
13769 if test -n "$ac_ct_DSYMUTIL"; then
13770 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13773 for as_dir in $PATH
13776 test -z "$as_dir" && as_dir=.
13777 for ac_exec_ext in '' $ac_executable_extensions; do
13778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13779 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13780 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13789 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13790 if test -n "$ac_ct_DSYMUTIL"; then
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13792 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13795 $as_echo "no
" >&6; }
13798 if test "x
$ac_ct_DSYMUTIL" = x; then
13801 case $cross_compiling:$ac_tool_warned in
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13804 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13805 ac_tool_warned=yes ;;
13807 DSYMUTIL=$ac_ct_DSYMUTIL
13810 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13813 if test -n "$ac_tool_prefix"; then
13814 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13815 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13817 $as_echo_n "checking
for $ac_word...
" >&6; }
13818 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13819 $as_echo_n "(cached
) " >&6
13821 if test -n "$NMEDIT"; then
13822 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13825 for as_dir in $PATH
13828 test -z "$as_dir" && as_dir=.
13829 for ac_exec_ext in '' $ac_executable_extensions; do
13830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13831 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13832 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13841 NMEDIT=$ac_cv_prog_NMEDIT
13842 if test -n "$NMEDIT"; then
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13844 $as_echo "$NMEDIT" >&6; }
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13847 $as_echo "no
" >&6; }
13852 if test -z "$ac_cv_prog_NMEDIT"; then
13853 ac_ct_NMEDIT=$NMEDIT
13854 # Extract the first word of "nmedit
", so it can be a program name with args.
13855 set dummy nmedit; ac_word=$2
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13857 $as_echo_n "checking
for $ac_word...
" >&6; }
13858 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13859 $as_echo_n "(cached
) " >&6
13861 if test -n "$ac_ct_NMEDIT"; then
13862 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13865 for as_dir in $PATH
13868 test -z "$as_dir" && as_dir=.
13869 for ac_exec_ext in '' $ac_executable_extensions; do
13870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13871 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13872 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13881 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13882 if test -n "$ac_ct_NMEDIT"; then
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13884 $as_echo "$ac_ct_NMEDIT" >&6; }
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13887 $as_echo "no
" >&6; }
13890 if test "x
$ac_ct_NMEDIT" = x; then
13893 case $cross_compiling:$ac_tool_warned in
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13896 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13897 ac_tool_warned=yes ;;
13899 NMEDIT=$ac_ct_NMEDIT
13902 NMEDIT="$ac_cv_prog_NMEDIT"
13905 if test -n "$ac_tool_prefix"; then
13906 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13907 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13909 $as_echo_n "checking
for $ac_word...
" >&6; }
13910 if test "${ac_cv_prog_LIPO+set}" = set; then :
13911 $as_echo_n "(cached
) " >&6
13913 if test -n "$LIPO"; then
13914 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13917 for as_dir in $PATH
13920 test -z "$as_dir" && as_dir=.
13921 for ac_exec_ext in '' $ac_executable_extensions; do
13922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13923 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13924 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13933 LIPO=$ac_cv_prog_LIPO
13934 if test -n "$LIPO"; then
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13936 $as_echo "$LIPO" >&6; }
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13939 $as_echo "no
" >&6; }
13944 if test -z "$ac_cv_prog_LIPO"; then
13946 # Extract the first word of "lipo
", so it can be a program name with args.
13947 set dummy lipo; ac_word=$2
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13949 $as_echo_n "checking
for $ac_word...
" >&6; }
13950 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13951 $as_echo_n "(cached
) " >&6
13953 if test -n "$ac_ct_LIPO"; then
13954 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13957 for as_dir in $PATH
13960 test -z "$as_dir" && as_dir=.
13961 for ac_exec_ext in '' $ac_executable_extensions; do
13962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13963 ac_cv_prog_ac_ct_LIPO="lipo
"
13964 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13973 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13974 if test -n "$ac_ct_LIPO"; then
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
13976 $as_echo "$ac_ct_LIPO" >&6; }
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13979 $as_echo "no
" >&6; }
13982 if test "x
$ac_ct_LIPO" = x; then
13985 case $cross_compiling:$ac_tool_warned in
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13988 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13989 ac_tool_warned=yes ;;
13994 LIPO="$ac_cv_prog_LIPO"
13997 if test -n "$ac_tool_prefix"; then
13998 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
13999 set dummy ${ac_tool_prefix}otool; ac_word=$2
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14001 $as_echo_n "checking
for $ac_word...
" >&6; }
14002 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14003 $as_echo_n "(cached
) " >&6
14005 if test -n "$OTOOL"; then
14006 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14009 for as_dir in $PATH
14012 test -z "$as_dir" && as_dir=.
14013 for ac_exec_ext in '' $ac_executable_extensions; do
14014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14015 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14016 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14025 OTOOL=$ac_cv_prog_OTOOL
14026 if test -n "$OTOOL"; then
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14028 $as_echo "$OTOOL" >&6; }
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14031 $as_echo "no
" >&6; }
14036 if test -z "$ac_cv_prog_OTOOL"; then
14038 # Extract the first word of "otool
", so it can be a program name with args.
14039 set dummy otool; ac_word=$2
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14041 $as_echo_n "checking
for $ac_word...
" >&6; }
14042 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14043 $as_echo_n "(cached
) " >&6
14045 if test -n "$ac_ct_OTOOL"; then
14046 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14049 for as_dir in $PATH
14052 test -z "$as_dir" && as_dir=.
14053 for ac_exec_ext in '' $ac_executable_extensions; do
14054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14055 ac_cv_prog_ac_ct_OTOOL="otool
"
14056 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14065 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14066 if test -n "$ac_ct_OTOOL"; then
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14068 $as_echo "$ac_ct_OTOOL" >&6; }
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14071 $as_echo "no
" >&6; }
14074 if test "x
$ac_ct_OTOOL" = x; then
14077 case $cross_compiling:$ac_tool_warned in
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14080 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14081 ac_tool_warned=yes ;;
14086 OTOOL="$ac_cv_prog_OTOOL"
14089 if test -n "$ac_tool_prefix"; then
14090 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14091 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14093 $as_echo_n "checking
for $ac_word...
" >&6; }
14094 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14095 $as_echo_n "(cached
) " >&6
14097 if test -n "$OTOOL64"; then
14098 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14101 for as_dir in $PATH
14104 test -z "$as_dir" && as_dir=.
14105 for ac_exec_ext in '' $ac_executable_extensions; do
14106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14107 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14108 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14117 OTOOL64=$ac_cv_prog_OTOOL64
14118 if test -n "$OTOOL64"; then
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14120 $as_echo "$OTOOL64" >&6; }
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14123 $as_echo "no
" >&6; }
14128 if test -z "$ac_cv_prog_OTOOL64"; then
14129 ac_ct_OTOOL64=$OTOOL64
14130 # Extract the first word of "otool64
", so it can be a program name with args.
14131 set dummy otool64; ac_word=$2
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14133 $as_echo_n "checking
for $ac_word...
" >&6; }
14134 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14135 $as_echo_n "(cached
) " >&6
14137 if test -n "$ac_ct_OTOOL64"; then
14138 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14141 for as_dir in $PATH
14144 test -z "$as_dir" && as_dir=.
14145 for ac_exec_ext in '' $ac_executable_extensions; do
14146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14147 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14148 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14157 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14158 if test -n "$ac_ct_OTOOL64"; then
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14160 $as_echo "$ac_ct_OTOOL64" >&6; }
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14163 $as_echo "no
" >&6; }
14166 if test "x
$ac_ct_OTOOL64" = x; then
14169 case $cross_compiling:$ac_tool_warned in
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14172 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14173 ac_tool_warned=yes ;;
14175 OTOOL64=$ac_ct_OTOOL64
14178 OTOOL64="$ac_cv_prog_OTOOL64"
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14208 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14209 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14210 $as_echo_n "(cached
) " >&6
14212 lt_cv_apple_cc_single_mod=no
14213 if test -z "${LT_MULTI_MODULE}"; then
14214 # By default we will add the -single_module flag. You can override
14215 # by either setting the environment variable LT_MULTI_MODULE
14216 # non-empty at configure time, or by adding -multi_module to the
14218 rm -rf libconftest.dylib*
14219 echo "int foo
(void
){return 1;}" > conftest.c
14220 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14221 -dynamiclib -Wl,-single_module conftest.c
" >&5
14222 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14223 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14225 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14226 lt_cv_apple_cc_single_mod=yes
14228 cat conftest.err >&5
14230 rm -rf libconftest.dylib*
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14235 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14237 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14238 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14239 $as_echo_n "(cached
) " >&6
14241 lt_cv_ld_exported_symbols_list=no
14242 save_LDFLAGS=$LDFLAGS
14243 echo "_main
" > conftest.sym
14244 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h. */
14256 if ac_fn_c_try_link "$LINENO"; then :
14257 lt_cv_ld_exported_symbols_list=yes
14259 lt_cv_ld_exported_symbols_list=no
14261 rm -f core conftest.err conftest.$ac_objext \
14262 conftest$ac_exeext conftest.$ac_ext
14263 LDFLAGS="$save_LDFLAGS"
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14267 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14269 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14270 if test "${lt_cv_ld_force_load+set}" = set; then :
14271 $as_echo_n "(cached
) " >&6
14273 lt_cv_ld_force_load=no
14274 cat > conftest.c << _LT_EOF
14275 int forced_loaded() { return 2;}
14277 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14278 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14279 echo "$AR cru libconftest.a conftest.o
" >&5
14280 $AR cru libconftest.a conftest.o 2>&5
14281 cat > conftest.c << _LT_EOF
14282 int main() { return 0;}
14284 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14285 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14287 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14288 lt_cv_ld_force_load=yes
14290 cat conftest.err >&5
14292 rm -f conftest.err libconftest.a conftest conftest.c
14293 rm -rf conftest.dSYM
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14297 $as_echo "$lt_cv_ld_force_load" >&6; }
14299 rhapsody* | darwin1.[012])
14300 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14302 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14303 darwin*) # darwin 5.x on
14304 # if running on 10.5 or later, the deployment target defaults
14305 # to the OS version, if on x86, and 10.4, the deployment
14306 # target defaults to 10.4. Don't you love it?
14307 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14308 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14309 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14311 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14313 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14317 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14318 _lt_dar_single_mod='$single_module'
14320 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14321 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14323 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14325 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14326 _lt_dsymutil='~$DSYMUTIL $lib || :'
14333 for ac_header in dlfcn.h
14335 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14336 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14337 cat >>confdefs.h <<_ACEOF
14338 #define HAVE_DLFCN_H 1
14355 enable_win32_dll=no
14358 # Check whether --enable-shared was given.
14359 if test "${enable_shared+set}" = set; then :
14360 enableval=$enable_shared; p=${PACKAGE-default}
14362 yes) enable_shared=yes ;;
14363 no) enable_shared=no ;;
14366 # Look at the argument we got. We use all the common list separators.
14367 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14368 for pkg in $enableval; do
14370 if test "X
$pkg" = "X
$p"; then
14389 # Check whether --enable-static was given.
14390 if test "${enable_static+set}" = set; then :
14391 enableval=$enable_static; p=${PACKAGE-default}
14393 yes) enable_static=yes ;;
14394 no) enable_static=no ;;
14397 # Look at the argument we got. We use all the common list separators.
14398 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14399 for pkg in $enableval; do
14401 if test "X
$pkg" = "X
$p"; then
14421 # Check whether --with-pic was given.
14422 if test "${with_pic+set}" = set; then :
14423 withval=$with_pic; pic_mode="$withval"
14429 test -z "$pic_mode" && pic_mode=default
14437 # Check whether --enable-fast-install was given.
14438 if test "${enable_fast_install+set}" = set; then :
14439 enableval=$enable_fast_install; p=${PACKAGE-default}
14441 yes) enable_fast_install=yes ;;
14442 no) enable_fast_install=no ;;
14444 enable_fast_install=no
14445 # Look at the argument we got. We use all the common list separators.
14446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14447 for pkg in $enableval; do
14449 if test "X
$pkg" = "X
$p"; then
14450 enable_fast_install=yes
14457 enable_fast_install=yes
14470 # This can be used to rebuild libtool when needed
14471 LIBTOOL_DEPS="$ltmain"
14473 # Always use our own libtool.
14474 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14501 test -z "$LN_S" && LN_S="ln -s"
14516 if test -n "${ZSH_VERSION+set}" ; then
14517 setopt NO_GLOB_SUBST
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14521 $as_echo_n "checking
for objdir...
" >&6; }
14522 if test "${lt_cv_objdir+set}" = set; then :
14523 $as_echo_n "(cached
) " >&6
14525 rm -f .libs 2>/dev/null
14526 mkdir .libs 2>/dev/null
14527 if test -d .libs; then
14530 # MS-DOS does not allow filenames that begin with a dot.
14533 rmdir .libs 2>/dev/null
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14536 $as_echo "$lt_cv_objdir" >&6; }
14537 objdir=$lt_cv_objdir
14543 cat >>confdefs.h <<_ACEOF
14544 #define LT_OBJDIR "$lt_cv_objdir/"
14552 # AIX sometimes has problems with the GCC collect2 program. For some
14553 # reason, if we set the COLLECT_NAMES environment variable, the problems
14554 # vanish in a puff of smoke.
14555 if test "X
${COLLECT_NAMES+set}" != Xset; then
14557 export COLLECT_NAMES
14562 # Global variables:
14564 can_build_shared=yes
14566 # All known linkers require a `.a' archive for static linking (except MSVC,
14567 # which needs '.lib').
14570 with_gnu_ld="$lt_cv_prog_gnu_ld"
14573 old_CFLAGS="$CFLAGS"
14575 # Set sane defaults for various variables
14576 test -z "$CC" && CC=cc
14577 test -z "$LTCC" && LTCC=$CC
14578 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14579 test -z "$LD" && LD=ld
14580 test -z "$ac_objext" && ac_objext=o
14582 for cc_temp in $compiler""; do
14584 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14585 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14590 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14593 # Only perform the check for file, if the check method requires it
14594 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14595 case $deplibs_check_method in
14597 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14599 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14600 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14601 $as_echo_n "(cached
) " >&6
14605 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14608 lt_save_MAGIC_CMD="$MAGIC_CMD"
14609 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14610 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14611 for ac_dir in $ac_dummy; do
14613 test -z "$ac_dir" && ac_dir=.
14614 if test -f $ac_dir/${ac_tool_prefix}file; then
14615 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14616 if test -n "$file_magic_test_file"; then
14617 case $deplibs_check_method in
14619 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14620 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14621 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14622 $EGREP "$file_magic_regex" > /dev/null; then
14627 *** Warning: the command libtool uses to detect shared libraries,
14628 *** $file_magic_cmd, produces output that libtool cannot recognize.
14629 *** The result is that libtool may fail to recognize shared libraries
14630 *** as such. This will affect the creation of libtool libraries that
14631 *** depend on shared libraries, but programs linked with such libtool
14632 *** libraries will work regardless of this problem. Nevertheless, you
14633 *** may want to report the problem to your system manager and/or to
14634 *** bug-libtool@gnu.org
14644 MAGIC_CMD="$lt_save_MAGIC_CMD"
14649 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14650 if test -n "$MAGIC_CMD"; then
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14652 $as_echo "$MAGIC_CMD" >&6; }
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14655 $as_echo "no
" >&6; }
14662 if test -z "$lt_cv_path_MAGIC_CMD"; then
14663 if test -n "$ac_tool_prefix"; then
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14665 $as_echo_n "checking
for file...
" >&6; }
14666 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14667 $as_echo_n "(cached
) " >&6
14671 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14674 lt_save_MAGIC_CMD="$MAGIC_CMD"
14675 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14676 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14677 for ac_dir in $ac_dummy; do
14679 test -z "$ac_dir" && ac_dir=.
14680 if test -f $ac_dir/file; then
14681 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14682 if test -n "$file_magic_test_file"; then
14683 case $deplibs_check_method in
14685 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14686 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14687 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14688 $EGREP "$file_magic_regex" > /dev/null; then
14693 *** Warning: the command libtool uses to detect shared libraries,
14694 *** $file_magic_cmd, produces output that libtool cannot recognize.
14695 *** The result is that libtool may fail to recognize shared libraries
14696 *** as such. This will affect the creation of libtool libraries that
14697 *** depend on shared libraries, but programs linked with such libtool
14698 *** libraries will work regardless of this problem. Nevertheless, you
14699 *** may want to report the problem to your system manager and/or to
14700 *** bug-libtool@gnu.org
14710 MAGIC_CMD="$lt_save_MAGIC_CMD"
14715 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14716 if test -n "$MAGIC_CMD"; then
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14718 $as_echo "$MAGIC_CMD" >&6; }
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14721 $as_echo "no
" >&6; }
14734 # Use C for the default configuration in the libtool script
14738 ac_cpp='$CPP $CPPFLAGS'
14739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14744 # Source file extension for C test sources.
14747 # Object file extension for compiled C test sources.
14751 # Code to be used in simple compile tests
14752 lt_simple_compile_test_code="int some_variable
= 0;"
14754 # Code to be used in simple link tests
14755 lt_simple_link_test_code='int main(){return(0);}'
14763 # If no C compiler was specified, use CC.
14766 # If no C compiler flags were specified, use CFLAGS.
14767 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14769 # Allow CC to be a program name with arguments.
14772 # Save the default compiler, since it gets overwritten when the other
14773 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14774 compiler_DEFAULT=$CC
14776 # save warnings/boilerplate of simple test code
14777 ac_outfile=conftest.$ac_objext
14778 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14779 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14780 _lt_compiler_boilerplate=`cat conftest.err`
14783 ac_outfile=conftest.$ac_objext
14784 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14785 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14786 _lt_linker_boilerplate=`cat conftest.err`
14791 ## There is no encapsulation within the following macros, do not change
14792 ## the running order or otherwise move them around unless you know exactly
14793 ## what you are doing...
14794 if test -n "$compiler"; then
14796 lt_prog_compiler_no_builtin_flag=
14798 if test "$GCC" = yes; then
14799 case $cc_basename in
14801 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14803 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14807 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14808 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14809 $as_echo_n "(cached
) " >&6
14811 lt_cv_prog_compiler_rtti_exceptions=no
14812 ac_outfile=conftest.$ac_objext
14813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14814 lt_compiler_flag="-fno-rtti -fno-exceptions"
14815 # Insert the option either (1) after the last *FLAGS variable, or
14816 # (2) before a word containing "conftest.
", or (3) at the end.
14817 # Note that $ac_compile itself does not contain backslashes and begins
14818 # with a dollar sign (not a hyphen), so the echo should work correctly.
14819 # The option is referenced via a variable to avoid confusing sed.
14820 lt_compile=`echo "$ac_compile" | $SED \
14821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14823 -e 's:$: $lt_compiler_flag:'`
14824 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14825 (eval "$lt_compile" 2>conftest.err)
14827 cat conftest.err >&5
14828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14829 if (exit $ac_status) && test -s "$ac_outfile"; then
14830 # The compiler can only warn and ignore the option if not recognized
14831 # So say no if there are warnings other than the usual output.
14832 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14835 lt_cv_prog_compiler_rtti_exceptions=yes
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14842 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14844 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14845 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14857 lt_prog_compiler_wl=
14858 lt_prog_compiler_pic=
14859 lt_prog_compiler_static=
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14862 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14864 if test "$GCC" = yes; then
14865 lt_prog_compiler_wl='-Wl,'
14866 lt_prog_compiler_static='-static'
14870 # All AIX code is PIC.
14871 if test "$host_cpu" = ia64; then
14872 # AIX 5 now supports IA64 processor
14873 lt_prog_compiler_static='-Bstatic'
14875 lt_prog_compiler_pic='-fPIC'
14881 # see comment about AmigaOS4 .so support
14882 lt_prog_compiler_pic='-fPIC'
14885 # FIXME: we need at least 68020 code to build shared libraries, but
14886 # adding the `-m68020' flag to GCC prevents building anything better,
14888 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14893 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14894 # PIC is the default for these OSes.
14897 mingw* | cygwin* | pw32* | os2* | cegcc*)
14898 # This hack is so that the source file can tell whether it is being
14899 # built for inclusion in a dll (and should export symbols for example).
14900 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14901 # (--disable-auto-import) libraries
14902 lt_prog_compiler_pic='-DDLL_EXPORT'
14905 darwin* | rhapsody*)
14906 # PIC is the default on this platform
14907 # Common symbols not allowed in MH_DYLIB files
14908 lt_prog_compiler_pic='-fno-common'
14912 # PIC is the default for Haiku.
14913 # The "-static" flag exists, but is broken.
14914 lt_prog_compiler_static=
14918 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14919 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14920 # sets the default TLS model and affects inlining.
14926 lt_prog_compiler_pic='-fPIC'
14932 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14933 # Instead, we relocate shared libraries at runtime.
14937 # Just because we use GCC doesn't mean we suddenly get shared libraries
14938 # on systems that don't support them.
14939 lt_prog_compiler_can_build_shared=no
14944 # QNX uses GNU C++, but need to define -shared option too, otherwise
14945 # it will coredump.
14946 lt_prog_compiler_pic='-fPIC -shared'
14950 if test -d /usr/nec; then
14951 lt_prog_compiler_pic=-Kconform_pic
14956 lt_prog_compiler_pic='-fPIC'
14960 case $cc_basename in
14961 nvcc*) # Cuda Compiler Driver 2.2
14962 lt_prog_compiler_wl='-Xlinker '
14963 lt_prog_compiler_pic='-Xcompiler -fPIC'
14967 # PORTME Check for flag to pass linker flags through the system compiler.
14970 lt_prog_compiler_wl='-Wl,'
14971 if test "$host_cpu" = ia64; then
14972 # AIX 5 now supports IA64 processor
14973 lt_prog_compiler_static='-Bstatic'
14975 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14979 mingw* | cygwin* | pw32* | os2* | cegcc*)
14980 # This hack is so that the source file can tell whether it is being
14981 # built for inclusion in a dll (and should export symbols for example).
14982 lt_prog_compiler_pic='-DDLL_EXPORT'
14985 hpux9* | hpux10* | hpux11*)
14986 lt_prog_compiler_wl='-Wl,'
14987 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14988 # not for PA HP-UX.
14994 lt_prog_compiler_pic='+Z'
14997 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14998 lt_prog_compiler_static='${wl}-a ${wl}archive'
15001 irix5* | irix6* | nonstopux*)
15002 lt_prog_compiler_wl='-Wl,'
15003 # PIC (with -KPIC) is the default.
15004 lt_prog_compiler_static='-non_shared'
15007 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15008 case $cc_basename in
15009 # old Intel for x86_64 which still supported -KPIC.
15011 lt_prog_compiler_wl='-Wl,'
15012 lt_prog_compiler_pic='-KPIC'
15013 lt_prog_compiler_static='-static'
15015 # icc used to be incompatible with GCC.
15016 # ICC 10 doesn't accept -KPIC any more.
15018 lt_prog_compiler_wl='-Wl,'
15019 lt_prog_compiler_pic='-fPIC'
15020 lt_prog_compiler_static='-static'
15022 # Lahey Fortran 8.1.
15024 lt_prog_compiler_wl='-Wl,'
15025 lt_prog_compiler_pic='--shared'
15026 lt_prog_compiler_static='--static'
15028 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15029 # Portland Group compilers (*not* the Pentium gcc compiler,
15030 # which looks to be a dead project)
15031 lt_prog_compiler_wl='-Wl,'
15032 lt_prog_compiler_pic='-fpic'
15033 lt_prog_compiler_static='-Bstatic'
15036 lt_prog_compiler_wl='-Wl,'
15037 # All Alpha code is PIC.
15038 lt_prog_compiler_static='-non_shared'
15040 xl* | bgxl* | bgf* | mpixl*)
15041 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15042 lt_prog_compiler_wl='-Wl,'
15043 lt_prog_compiler_pic='-qpic'
15044 lt_prog_compiler_static='-qstaticlink'
15047 case `$CC -V 2>&1 | sed 5q` in
15048 *Sun\ F* | *Sun*Fortran*)
15049 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15050 lt_prog_compiler_pic='-KPIC'
15051 lt_prog_compiler_static='-Bstatic'
15052 lt_prog_compiler_wl=''
15056 lt_prog_compiler_pic='-KPIC'
15057 lt_prog_compiler_static='-Bstatic'
15058 lt_prog_compiler_wl='-Wl,'
15066 lt_prog_compiler_pic='-KPIC'
15067 lt_prog_compiler_static='-Bstatic'
15071 # QNX uses GNU C++, but need to define -shared option too, otherwise
15072 # it will coredump.
15073 lt_prog_compiler_pic='-fPIC -shared'
15076 osf3* | osf4* | osf5*)
15077 lt_prog_compiler_wl='-Wl,'
15078 # All OSF/1 code is PIC.
15079 lt_prog_compiler_static='-non_shared'
15083 lt_prog_compiler_static='-non_shared'
15087 lt_prog_compiler_pic='-KPIC'
15088 lt_prog_compiler_static='-Bstatic'
15089 case $cc_basename in
15090 f77* | f90* | f95*)
15091 lt_prog_compiler_wl='-Qoption ld ';;
15093 lt_prog_compiler_wl='-Wl,';;
15098 lt_prog_compiler_wl='-Qoption ld '
15099 lt_prog_compiler_pic='-PIC'
15100 lt_prog_compiler_static='-Bstatic'
15103 sysv4 | sysv4.2uw2* | sysv4.3*)
15104 lt_prog_compiler_wl='-Wl,'
15105 lt_prog_compiler_pic='-KPIC'
15106 lt_prog_compiler_static='-Bstatic'
15110 if test -d /usr/nec ;then
15111 lt_prog_compiler_pic='-Kconform_pic'
15112 lt_prog_compiler_static='-Bstatic'
15116 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15117 lt_prog_compiler_wl='-Wl,'
15118 lt_prog_compiler_pic='-KPIC'
15119 lt_prog_compiler_static='-Bstatic'
15123 lt_prog_compiler_wl='-Wl,'
15124 lt_prog_compiler_can_build_shared=no
15128 lt_prog_compiler_pic='-pic'
15129 lt_prog_compiler_static='-Bstatic'
15133 lt_prog_compiler_can_build_shared=no
15139 # For platforms which do not support PIC, -DPIC is meaningless:
15141 lt_prog_compiler_pic=
15144 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15148 $as_echo "$lt_prog_compiler_pic" >&6; }
15156 # Check to make sure the PIC flag actually works.
15158 if test -n "$lt_prog_compiler_pic"; then
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15160 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15161 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15162 $as_echo_n "(cached
) " >&6
15164 lt_cv_prog_compiler_pic_works=no
15165 ac_outfile=conftest.$ac_objext
15166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15167 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15168 # Insert the option either (1) after the last *FLAGS variable, or
15169 # (2) before a word containing "conftest.
", or (3) at the end.
15170 # Note that $ac_compile itself does not contain backslashes and begins
15171 # with a dollar sign (not a hyphen), so the echo should work correctly.
15172 # The option is referenced via a variable to avoid confusing sed.
15173 lt_compile=`echo "$ac_compile" | $SED \
15174 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15176 -e 's:$: $lt_compiler_flag:'`
15177 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15178 (eval "$lt_compile" 2>conftest.err)
15180 cat conftest.err >&5
15181 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15182 if (exit $ac_status) && test -s "$ac_outfile"; then
15183 # The compiler can only warn and ignore the option if not recognized
15184 # So say no if there are warnings other than the usual output.
15185 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15186 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15187 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15188 lt_cv_prog_compiler_pic_works=yes
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15195 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15197 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15198 case $lt_prog_compiler_pic in
15200 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15203 lt_prog_compiler_pic=
15204 lt_prog_compiler_can_build_shared=no
15215 # Check to make sure the static flag actually works.
15217 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15219 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15220 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15221 $as_echo_n "(cached
) " >&6
15223 lt_cv_prog_compiler_static_works=no
15224 save_LDFLAGS="$LDFLAGS"
15225 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15226 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15227 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15228 # The linker can only warn and ignore the option if not recognized
15229 # So say no if there are warnings
15230 if test -s conftest.err; then
15231 # Append any errors to the config.log.
15232 cat conftest.err 1>&5
15233 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15234 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15235 if diff conftest.exp conftest.er2 >/dev/null; then
15236 lt_cv_prog_compiler_static_works=yes
15239 lt_cv_prog_compiler_static_works=yes
15243 LDFLAGS="$save_LDFLAGS"
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15247 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15249 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15252 lt_prog_compiler_static=
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15262 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15263 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15264 $as_echo_n "(cached
) " >&6
15266 lt_cv_prog_compiler_c_o=no
15267 $RM -r conftest 2>/dev/null
15271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15273 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15274 # Insert the option either (1) after the last *FLAGS variable, or
15275 # (2) before a word containing "conftest.
", or (3) at the end.
15276 # Note that $ac_compile itself does not contain backslashes and begins
15277 # with a dollar sign (not a hyphen), so the echo should work correctly.
15278 lt_compile=`echo "$ac_compile" | $SED \
15279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15281 -e 's:$: $lt_compiler_flag:'`
15282 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15283 (eval "$lt_compile" 2>out/conftest.err)
15285 cat out/conftest.err >&5
15286 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15287 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15289 # The compiler can only warn and ignore the option if not recognized
15290 # So say no if there are warnings
15291 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15292 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15293 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15294 lt_cv_prog_compiler_c_o=yes
15299 # SGI C++ compiler will create directory out/ii_files/ for
15300 # template instantiation
15301 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15302 $RM out/* && rmdir out
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15309 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15317 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15318 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15319 $as_echo_n "(cached
) " >&6
15321 lt_cv_prog_compiler_c_o=no
15322 $RM -r conftest 2>/dev/null
15326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15328 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15329 # Insert the option either (1) after the last *FLAGS variable, or
15330 # (2) before a word containing "conftest.
", or (3) at the end.
15331 # Note that $ac_compile itself does not contain backslashes and begins
15332 # with a dollar sign (not a hyphen), so the echo should work correctly.
15333 lt_compile=`echo "$ac_compile" | $SED \
15334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15336 -e 's:$: $lt_compiler_flag:'`
15337 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15338 (eval "$lt_compile" 2>out/conftest.err)
15340 cat out/conftest.err >&5
15341 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15342 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15344 # The compiler can only warn and ignore the option if not recognized
15345 # So say no if there are warnings
15346 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15347 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15348 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15349 lt_cv_prog_compiler_c_o=yes
15354 # SGI C++ compiler will create directory out/ii_files/ for
15355 # template instantiation
15356 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15357 $RM out/* && rmdir out
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15364 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15369 hard_links="nottested
"
15370 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15371 # do not overwrite the value of need_locks provided by the user
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15373 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15376 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15378 ln conftest.a conftest.b 2>&5 || hard_links=no
15379 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15381 $as_echo "$hard_links" >&6; }
15382 if test "$hard_links" = no; then
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15384 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15397 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15400 allow_undefined_flag=
15401 always_export_symbols=no
15403 archive_expsym_cmds=
15404 compiler_needs_object=no
15405 enable_shared_with_static_runtimes=no
15406 export_dynamic_flag_spec=
15407 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15408 hardcode_automatic=no
15410 hardcode_direct_absolute=no
15411 hardcode_libdir_flag_spec=
15412 hardcode_libdir_flag_spec_ld=
15413 hardcode_libdir_separator=
15414 hardcode_minus_L=no
15415 hardcode_shlibpath_var=unsupported
15417 link_all_deplibs=unknown
15419 module_expsym_cmds=
15420 old_archive_from_new_cmds=
15421 old_archive_from_expsyms_cmds=
15422 thread_safe_flag_spec=
15423 whole_archive_flag_spec=
15424 # include_expsyms should be a list of space-separated symbols to be *always*
15425 # included in the symbol list
15427 # exclude_expsyms can be an extended regexp of symbols to exclude
15428 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15429 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15430 # as well as any symbol that contains `d'.
15431 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15432 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15433 # platforms (ab)use it in PIC code, but their linkers get confused if
15434 # the symbol is explicitly referenced. Since portable code cannot
15435 # rely on this symbol name, it's probably fine to never include it in
15436 # preloaded symbol tables.
15437 # Exclude shared library initialization/finalization symbols.
15438 extract_expsyms_cmds=
15441 cygwin* | mingw* | pw32* | cegcc*)
15442 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15443 # When not using gcc, we currently assume that we are using
15444 # Microsoft Visual C++.
15445 if test "$GCC" != yes; then
15450 # we just hope/assume this is gcc and not c89 (= MSVC++)
15460 # On some targets, GNU ld is compatible enough with the native linker
15461 # that we're better off using the native interface for both.
15462 lt_use_gnu_ld_interface=no
15463 if test "$with_gnu_ld" = yes; then
15466 # The AIX port of GNU ld has always aspired to compatibility
15467 # with the native linker. However, as the warning in the GNU ld
15468 # block says, versions before 2.19.5* couldn't really create working
15469 # shared libraries, regardless of the interface used.
15470 case `$LD -v 2>&1` in
15471 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15472 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15473 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15475 lt_use_gnu_ld_interface=yes
15480 lt_use_gnu_ld_interface=yes
15485 if test "$lt_use_gnu_ld_interface" = yes; then
15486 # If archive_cmds runs LD, not CC, wlarc should be empty
15489 # Set some defaults for GNU ld with shared library support. These
15490 # are reset later if shared libraries are not supported. Putting them
15491 # here allows them to be overridden if necessary.
15492 runpath_var=LD_RUN_PATH
15493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15494 export_dynamic_flag_spec='${wl}--export-dynamic'
15495 # ancient GNU ld didn't support --whole-archive et. al.
15496 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15497 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15499 whole_archive_flag_spec=
15501 supports_anon_versioning=no
15502 case `$LD -v 2>&1` in
15503 *GNU\ gold*) supports_anon_versioning=yes ;;
15504 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15505 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15506 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15507 *\ 2.11.*) ;; # other 2.11 versions
15508 *) supports_anon_versioning=yes ;;
15511 # See if GNU ld supports shared libraries.
15514 # On AIX/PPC, the GNU linker is very broken
15515 if test "$host_cpu" != ia64; then
15519 *** Warning: the GNU linker, at least up to release 2.19, is reported
15520 *** to be unable to reliably create shared libraries on AIX.
15521 *** Therefore, libtool is disabling shared libraries support. If you
15522 *** really care for shared libraries, you may want to install binutils
15523 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15524 *** You will then need to restart the configuration process.
15533 # see comment about AmigaOS4 .so support
15534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15535 archive_expsym_cmds=''
15538 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)'
15539 hardcode_libdir_flag_spec
='-L$libdir'
15540 hardcode_minus_L
=yes
15546 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15547 allow_undefined_flag
=unsupported
15548 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15549 # support --undefined. This deserves some investigation. FIXME
15550 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15556 cygwin
* | mingw
* | pw32
* | cegcc
*)
15557 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15558 # as there is no search path for DLLs.
15559 hardcode_libdir_flag_spec
='-L$libdir'
15560 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15561 allow_undefined_flag
=unsupported
15562 always_export_symbols
=no
15563 enable_shared_with_static_runtimes
=yes
15564 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15566 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15567 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15568 # If the export-symbols file already is a .def file (1st line
15569 # is EXPORTS), use it as is; otherwise, prepend...
15570 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15571 cp $export_symbols $output_objdir/$soname.def;
15573 echo EXPORTS > $output_objdir/$soname.def;
15574 cat $export_symbols >> $output_objdir/$soname.def;
15576 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15583 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15584 link_all_deplibs
=yes
15589 hardcode_shlibpath_var
=no
15590 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15591 export_dynamic_flag_spec
='${wl}-E'
15592 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15593 # Instead, shared libraries are loaded at an image base (0x10000000 by
15594 # default) and relocated if they conflict, which is a slow very memory
15595 # consuming and fragmenting process. To avoid this, we pick a random,
15596 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15597 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15598 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15599 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'
15602 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15604 if test "$host_os" = linux-dietlibc
; then
15605 case $cc_basename in
15606 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15609 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15610 && test "$tmp_diet" = no
15613 tmp_sharedflag
='-shared'
15614 case $cc_basename,$host_cpu in
15615 pgcc
*) # Portland Group C compiler
15616 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'
15617 tmp_addflag
=' $pic_flag'
15619 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15620 # Portland Group f77 and f90 compilers
15621 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'
15622 tmp_addflag
=' $pic_flag -Mnomain' ;;
15623 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15624 tmp_addflag
=' -i_dynamic' ;;
15625 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15626 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15627 ifc
* | ifort
*) # Intel Fortran compiler
15628 tmp_addflag
=' -nofor_main' ;;
15629 lf95
*) # Lahey Fortran 8.1
15630 whole_archive_flag_spec
=
15631 tmp_sharedflag
='--shared' ;;
15632 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15633 tmp_sharedflag
='-qmkshrobj'
15635 nvcc
*) # Cuda Compiler Driver 2.2
15636 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'
15637 compiler_needs_object
=yes
15640 case `$CC -V 2>&1 | sed 5q` in
15641 *Sun\ C
*) # Sun C 5.9
15642 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'
15643 compiler_needs_object
=yes
15644 tmp_sharedflag
='-G' ;;
15645 *Sun\ F
*) # Sun Fortran 8.3
15646 tmp_sharedflag
='-G' ;;
15648 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15650 if test "x$supports_anon_versioning" = xyes
; then
15651 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15652 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15653 echo "local: *; };" >> $output_objdir/$libname.ver~
15654 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15657 case $cc_basename in
15658 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15659 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15660 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15661 hardcode_libdir_flag_spec
=
15662 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15663 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15664 if test "x$supports_anon_versioning" = xyes
; then
15665 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15666 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15667 echo "local: *; };" >> $output_objdir/$libname.ver~
15668 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15678 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15679 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15682 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15683 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15688 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15692 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15693 *** create shared libraries on Solaris systems. Therefore, libtool
15694 *** is disabling shared libraries support. We urge you to upgrade GNU
15695 *** binutils to release 2.9.1 or newer. Another option is to modify
15696 *** your PATH or compiler configuration so that the native linker is
15697 *** used, and then restart.
15700 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15701 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15702 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15708 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15709 case `$LD -v 2>&1` in
15710 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15714 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15715 *** reliably create shared libraries on SCO systems. Therefore, libtool
15716 *** is disabling shared libraries support. We urge you to upgrade GNU
15717 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15718 *** your PATH or compiler configuration so that the native linker is
15719 *** used, and then restart.
15724 # For security reasons, it is highly recommended that you always
15725 # use absolute paths for naming shared libraries, and exclude the
15726 # DT_RUNPATH tag from executables and libraries. But doing so
15727 # requires that you compile everything twice, which is a pain.
15728 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15729 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15730 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15731 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15740 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15742 hardcode_direct
=yes
15743 hardcode_shlibpath_var
=no
15747 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15748 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15749 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15756 if test "$ld_shlibs" = no
; then
15758 hardcode_libdir_flag_spec
=
15759 export_dynamic_flag_spec
=
15760 whole_archive_flag_spec
=
15763 # PORTME fill in a description of your system's linker (not GNU ld)
15766 allow_undefined_flag
=unsupported
15767 always_export_symbols
=yes
15768 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'
15769 # Note: this linker hardcodes the directories in LIBPATH if there
15770 # are no directories specified by -L.
15771 hardcode_minus_L
=yes
15772 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15773 # Neither direct hardcoding nor static linking is supported with a
15775 hardcode_direct
=unsupported
15780 if test "$host_cpu" = ia64
; then
15781 # On IA64, the linker does run time linking by default, so we don't
15782 # have to do anything special.
15783 aix_use_runtimelinking
=no
15784 exp_sym_flag
='-Bexport'
15787 # If we're using GNU nm, then we don't want the "-C" option.
15788 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15789 # Also, AIX nm treats weak defined symbols like other global
15790 # defined symbols, whereas GNU nm marks them as "W".
15791 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15792 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'
15794 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'
15796 aix_use_runtimelinking
=no
15798 # Test if we are trying to use run time linking or normal
15799 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15800 # need to do runtime linking.
15801 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15802 for ld_flag
in $LDFLAGS; do
15803 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15804 aix_use_runtimelinking
=yes
15811 exp_sym_flag
='-bexport'
15812 no_entry_flag
='-bnoentry'
15815 # When large executables or shared objects are built, AIX ld can
15816 # have problems creating the table of contents. If linking a library
15817 # or program results in "error TOC overflow" add -mminimal-toc to
15818 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15819 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15822 hardcode_direct
=yes
15823 hardcode_direct_absolute
=yes
15824 hardcode_libdir_separator
=':'
15825 link_all_deplibs
=yes
15826 file_list_spec
='${wl}-f,'
15828 if test "$GCC" = yes; then
15829 case $host_os in aix4.
[012]|aix4.
[012].
*)
15830 # We only want to do this on AIX 4.2 and lower, the check
15831 # below for broken collect2 doesn't work under 4.3+
15832 collect2name
=`${CC} -print-prog-name=collect2`
15833 if test -f "$collect2name" &&
15834 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15836 # We have reworked collect2
15839 # We have old collect2
15840 hardcode_direct
=unsupported
15841 # It fails to find uninstalled libraries when the uninstalled
15842 # path is not listed in the libpath. Setting hardcode_minus_L
15843 # to unsupported forces relinking
15844 hardcode_minus_L
=yes
15845 hardcode_libdir_flag_spec
='-L$libdir'
15846 hardcode_libdir_separator
=
15850 shared_flag
='-shared'
15851 if test "$aix_use_runtimelinking" = yes; then
15852 shared_flag
="$shared_flag "'${wl}-G'
15856 if test "$host_cpu" = ia64
; then
15857 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15858 # chokes on -Wl,-G. The following line is correct:
15861 if test "$aix_use_runtimelinking" = yes; then
15862 shared_flag
='${wl}-G'
15864 shared_flag
='${wl}-bM:SRE'
15869 export_dynamic_flag_spec
='${wl}-bexpall'
15870 # It seems that -bexpall does not export symbols beginning with
15871 # underscore (_), so it is better to generate a list of symbols to export.
15872 always_export_symbols
=yes
15873 if test "$aix_use_runtimelinking" = yes; then
15874 # Warning - without using the other runtime loading flags (-brtl),
15875 # -berok will link without error, but may produce a broken library.
15876 allow_undefined_flag
='-berok'
15877 # Determine the default libpath from the value encoded in an
15878 # empty executable.
15879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15880 /* end confdefs.h. */
15890 if ac_fn_c_try_link
"$LINENO"; then :
15892 lt_aix_libpath_sed
='
15893 /Import File Strings/,/^$/ {
15899 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15900 # Check for a 64-bit object if we didn't find anything.
15901 if test -z "$aix_libpath"; then
15902 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15905 rm -f core conftest.err conftest.
$ac_objext \
15906 conftest
$ac_exeext conftest.
$ac_ext
15907 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15909 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15910 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"
15912 if test "$host_cpu" = ia64
; then
15913 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15914 allow_undefined_flag
="-z nodefs"
15915 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"
15917 # Determine the default libpath from the value encoded in an
15918 # empty executable.
15919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15920 /* end confdefs.h. */
15930 if ac_fn_c_try_link
"$LINENO"; then :
15932 lt_aix_libpath_sed
='
15933 /Import File Strings/,/^$/ {
15939 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15940 # Check for a 64-bit object if we didn't find anything.
15941 if test -z "$aix_libpath"; then
15942 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15945 rm -f core conftest.err conftest.
$ac_objext \
15946 conftest
$ac_exeext conftest.
$ac_ext
15947 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15949 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15950 # Warning - without using the other run time loading flags,
15951 # -berok will link without error, but may produce a broken library.
15952 no_undefined_flag
=' ${wl}-bernotok'
15953 allow_undefined_flag
=' ${wl}-berok'
15954 if test "$with_gnu_ld" = yes; then
15955 # We only use this code for GNU lds that support --whole-archive.
15956 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15958 # Exported symbols can be pulled into shared objects from archives
15959 whole_archive_flag_spec
='$convenience'
15961 archive_cmds_need_lc
=yes
15962 # This is similar to how AIX traditionally builds its shared libraries.
15963 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'
15971 # see comment about AmigaOS4 .so support
15972 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15973 archive_expsym_cmds
=''
15976 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)'
15977 hardcode_libdir_flag_spec
='-L$libdir'
15978 hardcode_minus_L
=yes
15984 export_dynamic_flag_spec
=-rdynamic
15987 cygwin
* | mingw
* | pw32
* | cegcc
*)
15988 # When not using gcc, we currently assume that we are using
15989 # Microsoft Visual C++.
15990 # hardcode_libdir_flag_spec is actually meaningless, as there is
15991 # no search path for DLLs.
15992 hardcode_libdir_flag_spec
=' '
15993 allow_undefined_flag
=unsupported
15994 # Tell ltmain to make .lib files, not .a files.
15996 # Tell ltmain to make .dll files, not .so files.
15998 # FIXME: Setting linknames here is a bad hack.
15999 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16000 # The linker will automatically build a .lib file if we build a DLL.
16001 old_archive_from_new_cmds
='true'
16002 # FIXME: Should let the user specify the lib program.
16003 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16004 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16005 enable_shared_with_static_runtimes
=yes
16008 darwin
* | rhapsody
*)
16011 archive_cmds_need_lc
=no
16013 hardcode_automatic
=yes
16014 hardcode_shlibpath_var
=unsupported
16015 if test "$lt_cv_ld_force_load" = "yes"; then
16016 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\"`'
16018 whole_archive_flag_spec
=''
16020 link_all_deplibs
=yes
16021 allow_undefined_flag
="$_lt_dar_allow_undefined"
16022 case $cc_basename in
16023 ifort
*) _lt_dar_can_shared
=yes ;;
16024 *) _lt_dar_can_shared
=$GCC ;;
16026 if test "$_lt_dar_can_shared" = "yes"; then
16027 output_verbose_link_cmd
=func_echo_all
16028 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16029 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16030 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}"
16031 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}"
16040 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16041 hardcode_libdir_flag_spec
='-L$libdir'
16042 hardcode_shlibpath_var
=no
16045 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16046 # support. Future versions do this automatically, but an explicit c++rt0.o
16047 # does not break anything, and helps significantly (at the cost of a little
16050 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16051 hardcode_libdir_flag_spec
='-R$libdir'
16052 hardcode_direct
=yes
16053 hardcode_shlibpath_var
=no
16056 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16058 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16059 hardcode_direct
=yes
16060 hardcode_minus_L
=yes
16061 hardcode_shlibpath_var
=no
16064 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16065 freebsd
* | dragonfly
*)
16066 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16067 hardcode_libdir_flag_spec
='-R$libdir'
16068 hardcode_direct
=yes
16069 hardcode_shlibpath_var
=no
16073 if test "$GCC" = yes; then
16074 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'
16076 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'
16078 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16079 hardcode_libdir_separator
=:
16080 hardcode_direct
=yes
16082 # hardcode_minus_L: Not really in the search PATH,
16083 # but as the default location of the library.
16084 hardcode_minus_L
=yes
16085 export_dynamic_flag_spec
='${wl}-E'
16089 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16090 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16092 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16094 if test "$with_gnu_ld" = no
; then
16095 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16096 hardcode_libdir_flag_spec_ld
='+b $libdir'
16097 hardcode_libdir_separator
=:
16098 hardcode_direct
=yes
16099 hardcode_direct_absolute
=yes
16100 export_dynamic_flag_spec
='${wl}-E'
16101 # hardcode_minus_L: Not really in the search PATH,
16102 # but as the default location of the library.
16103 hardcode_minus_L
=yes
16108 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16111 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16114 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16117 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16123 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16126 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16130 # Older versions of the 11.00 compiler do not understand -b yet
16131 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16133 $as_echo_n "checking if $CC understands -b... " >&6; }
16134 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16135 $as_echo_n "(cached) " >&6
16137 lt_cv_prog_compiler__b
=no
16138 save_LDFLAGS
="$LDFLAGS"
16139 LDFLAGS
="$LDFLAGS -b"
16140 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16141 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16142 # The linker can only warn and ignore the option if not recognized
16143 # So say no if there are warnings
16144 if test -s conftest.err
; then
16145 # Append any errors to the config.log.
16146 cat conftest.err
1>&5
16147 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16148 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16149 if diff conftest.exp conftest.er2
>/dev
/null
; then
16150 lt_cv_prog_compiler__b
=yes
16153 lt_cv_prog_compiler__b
=yes
16157 LDFLAGS
="$save_LDFLAGS"
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16161 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16163 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16164 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16166 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16172 if test "$with_gnu_ld" = no
; then
16173 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16174 hardcode_libdir_separator
=:
16179 hardcode_shlibpath_var
=no
16182 hardcode_direct
=yes
16183 hardcode_direct_absolute
=yes
16184 export_dynamic_flag_spec
='${wl}-E'
16186 # hardcode_minus_L: Not really in the search PATH,
16187 # but as the default location of the library.
16188 hardcode_minus_L
=yes
16194 irix5
* | irix6
* | nonstopux
*)
16195 if test "$GCC" = yes; then
16196 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'
16197 # Try to use the -exported_symbol ld option, if it does not
16198 # work, assume that -exports_file does not work either and
16199 # implicitly export all symbols.
16200 save_LDFLAGS
="$LDFLAGS"
16201 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16203 /* end confdefs.h. */
16206 if ac_fn_c_try_link
"$LINENO"; then :
16207 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'
16210 rm -f core conftest.err conftest.
$ac_objext \
16211 conftest
$ac_exeext conftest.
$ac_ext
16212 LDFLAGS
="$save_LDFLAGS"
16214 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'
16215 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'
16217 archive_cmds_need_lc
='no'
16218 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16219 hardcode_libdir_separator
=:
16221 link_all_deplibs
=yes
16225 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16226 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16228 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16230 hardcode_libdir_flag_spec
='-R$libdir'
16231 hardcode_direct
=yes
16232 hardcode_shlibpath_var
=no
16236 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16237 hardcode_direct
=yes
16238 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16239 hardcode_libdir_separator
=:
16240 hardcode_shlibpath_var
=no
16247 if test -f /usr
/libexec
/ld.so
; then
16248 hardcode_direct
=yes
16249 hardcode_shlibpath_var
=no
16250 hardcode_direct_absolute
=yes
16251 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16252 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16253 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16254 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16255 export_dynamic_flag_spec
='${wl}-E'
16258 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16259 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16260 hardcode_libdir_flag_spec
='-R$libdir'
16263 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16264 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16274 hardcode_libdir_flag_spec
='-L$libdir'
16275 hardcode_minus_L
=yes
16276 allow_undefined_flag
=unsupported
16277 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'
16278 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16282 if test "$GCC" = yes; then
16283 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16284 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'
16286 allow_undefined_flag
=' -expect_unresolved \*'
16287 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'
16289 archive_cmds_need_lc
='no'
16290 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16291 hardcode_libdir_separator
=:
16294 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16295 if test "$GCC" = yes; then
16296 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16297 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'
16298 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16300 allow_undefined_flag
=' -expect_unresolved \*'
16301 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'
16302 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~
16303 $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'
16305 # Both c and cxx compiler support -rpath directly
16306 hardcode_libdir_flag_spec
='-rpath $libdir'
16308 archive_cmds_need_lc
='no'
16309 hardcode_libdir_separator
=:
16313 no_undefined_flag
=' -z defs'
16314 if test "$GCC" = yes; then
16316 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16317 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16318 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16320 case `$CC -V 2>&1` in
16323 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16324 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16325 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16329 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16330 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16331 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16335 hardcode_libdir_flag_spec
='-R$libdir'
16336 hardcode_shlibpath_var
=no
16338 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16340 # The compiler driver will combine and reorder linker options,
16341 # but understands `-z linker_flag'. GCC discards it without `$wl',
16342 # but is careful enough not to reorder.
16343 # Supported since Solaris 2.6 (maybe 2.5.1?)
16344 if test "$GCC" = yes; then
16345 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16347 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16351 link_all_deplibs
=yes
16355 if test "x$host_vendor" = xsequent
; then
16356 # Use $CC to link under sequent, because it throws in some extra .o
16357 # files that make .init and .fini sections work.
16358 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16360 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16362 hardcode_libdir_flag_spec
='-L$libdir'
16363 hardcode_direct
=yes
16364 hardcode_minus_L
=yes
16365 hardcode_shlibpath_var
=no
16369 case $host_vendor in
16371 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16372 hardcode_direct
=yes # is this really true???
16375 ## LD is ld it makes a PLAMLIB
16376 ## CC just makes a GrossModule.
16377 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16378 reload_cmds
='$CC -r -o $output$reload_objs'
16382 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16383 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16386 runpath_var
='LD_RUN_PATH'
16387 hardcode_shlibpath_var
=no
16391 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16392 hardcode_shlibpath_var
=no
16393 export_dynamic_flag_spec
='-Bexport'
16397 if test -d /usr
/nec
; then
16398 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16399 hardcode_shlibpath_var
=no
16400 runpath_var
=LD_RUN_PATH
16401 hardcode_runpath_var
=yes
16406 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16407 no_undefined_flag
='${wl}-z,text'
16408 archive_cmds_need_lc
=no
16409 hardcode_shlibpath_var
=no
16410 runpath_var
='LD_RUN_PATH'
16412 if test "$GCC" = yes; then
16413 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16414 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16416 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16417 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16421 sysv5
* | sco3.2v5
* | sco5v6
*)
16422 # Note: We can NOT use -z defs as we might desire, because we do not
16423 # link with -lc, and that would cause any symbols used from libc to
16424 # always be unresolved, which means just about no library would
16425 # ever link correctly. If we're not using GNU ld we use -z text
16426 # though, which does catch some bad symbols but isn't as heavy-handed
16428 no_undefined_flag
='${wl}-z,text'
16429 allow_undefined_flag
='${wl}-z,nodefs'
16430 archive_cmds_need_lc
=no
16431 hardcode_shlibpath_var
=no
16432 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16433 hardcode_libdir_separator
=':'
16434 link_all_deplibs
=yes
16435 export_dynamic_flag_spec
='${wl}-Bexport'
16436 runpath_var
='LD_RUN_PATH'
16438 if test "$GCC" = yes; then
16439 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16440 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16442 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16443 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16448 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16449 hardcode_libdir_flag_spec
='-L$libdir'
16450 hardcode_shlibpath_var
=no
16458 if test x
$host_vendor = xsni
; then
16460 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16461 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16468 $as_echo "$ld_shlibs" >&6; }
16469 test "$ld_shlibs" = no
&& can_build_shared
=no
16471 with_gnu_ld
=$with_gnu_ld
16488 # Do we need to explicitly link libc?
16490 case "x$archive_cmds_need_lc" in
16492 # Assume -lc should be added
16493 archive_cmds_need_lc
=yes
16495 if test "$enable_shared" = yes && test "$GCC" = yes; then
16496 case $archive_cmds in
16498 # FIXME: we may have to deal with multi-command sequences.
16501 # Test whether the compiler implicitly links with -lc since on some
16502 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16503 # to ld, don't add -lc before -lgcc.
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16505 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16506 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16507 $as_echo_n "(cached) " >&6
16510 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16513 (eval $ac_compile) 2>&5
16515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16516 test $ac_status = 0; } 2>conftest.err
; then
16519 libobjs
=conftest.
$ac_objext
16521 wl
=$lt_prog_compiler_wl
16522 pic_flag
=$lt_prog_compiler_pic
16528 lt_save_allow_undefined_flag
=$allow_undefined_flag
16529 allow_undefined_flag
=
16530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16531 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16534 test $ac_status = 0; }
16536 lt_cv_archive_cmds_need_lc
=no
16538 lt_cv_archive_cmds_need_lc
=yes
16540 allow_undefined_flag
=$lt_save_allow_undefined_flag
16542 cat conftest.err
1>&5
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16548 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16549 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16713 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16715 if test "$GCC" = yes; then
16717 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16718 *) lt_awk_arg
="/^libraries:/" ;;
16721 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16722 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16724 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16725 case $lt_search_path_spec in
16727 # if the path contains ";" then we assume it to be the separator
16728 # otherwise default to the standard path separator (i.e. ":") - it is
16729 # assumed that no part of a normal pathname contains ";" but that should
16730 # okay in the real world where ";" in dirpaths is itself problematic.
16731 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16734 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16737 # Ok, now we have the path, separated by spaces, we can step through it
16738 # and add multilib dir if necessary.
16739 lt_tmp_lt_search_path_spec
=
16740 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16741 for lt_sys_path
in $lt_search_path_spec; do
16742 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16743 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16745 test -d "$lt_sys_path" && \
16746 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16749 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16750 BEGIN {RS=" "; FS="/|\n";} {
16753 for (lt_i = NF; lt_i > 0; lt_i--) {
16754 if ($lt_i != "" && $lt_i != ".") {
16755 if ($lt_i == "..") {
16758 if (lt_count == 0) {
16759 lt_foo="/" $lt_i lt_foo;
16766 if (lt_foo != "") { lt_freq[lt_foo]++; }
16767 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16769 # AWK program above erroneously prepends '/' to C:/dos/paths
16772 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16773 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16775 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16777 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16779 library_names_spec
=
16780 libname_spec
='lib$name'
16784 postuninstall_cmds
=
16788 shlibpath_overrides_runpath
=unknown
16790 dynamic_linker
="$host_os ld.so"
16791 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16792 need_lib_prefix
=unknown
16793 hardcode_into_libs
=no
16795 # when you set need_version to no, make sure it does not cause -set_version
16796 # flags to be left without arguments
16797 need_version
=unknown
16802 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16803 shlibpath_var
=LIBPATH
16805 # AIX 3 has no versioning support, so we append a major version to the name.
16806 soname_spec
='${libname}${release}${shared_ext}$major'
16813 hardcode_into_libs
=yes
16814 if test "$host_cpu" = ia64
; then
16815 # AIX 5 supports IA64
16816 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16817 shlibpath_var
=LD_LIBRARY_PATH
16819 # With GCC up to 2.95.x, collect2 would create an import file
16820 # for dependence libraries. The import file would start with
16821 # the line `#! .'. This would cause the generated library to
16822 # depend on `.', always an invalid library. This was fixed in
16823 # development snapshots of GCC prior to 3.0.
16825 aix4 | aix4.
[01] | aix4.
[01].
*)
16826 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16828 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16831 can_build_shared
=no
16835 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16836 # soname into executable. Probably we can add versioning support to
16837 # collect2, so additional links can be useful in future.
16838 if test "$aix_use_runtimelinking" = yes; then
16839 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16840 # instead of lib<name>.a to let people know that these are not
16841 # typical AIX shared libraries.
16842 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16844 # We preserve .a as extension for shared libraries through AIX4.2
16845 # and later when we are not doing run time linking.
16846 library_names_spec
='${libname}${release}.a $libname.a'
16847 soname_spec
='${libname}${release}${shared_ext}$major'
16849 shlibpath_var
=LIBPATH
16856 # Since July 2007 AmigaOS4 officially supports .so libraries.
16857 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16858 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16861 library_names_spec
='$libname.ixlibrary $libname.a'
16862 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16863 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'
16869 library_names_spec
='${libname}${shared_ext}'
16870 dynamic_linker
="$host_os ld.so"
16871 shlibpath_var
=LIBRARY_PATH
16877 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16878 soname_spec
='${libname}${release}${shared_ext}$major'
16879 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16880 shlibpath_var
=LD_LIBRARY_PATH
16881 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16882 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16883 # the default ld.so.conf also contains /usr/contrib/lib and
16884 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16885 # libtool to hard-code these into programs
16888 cygwin
* | mingw
* | pw32
* | cegcc
*)
16889 version_type
=windows
16894 case $GCC,$host_os in
16895 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16896 library_names_spec
='$libname.dll.a'
16897 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16898 postinstall_cmds
='base_file=`basename \${file}`~
16899 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16900 dldir=$destdir/`dirname \$dlpath`~
16901 test -d \$dldir || mkdir -p \$dldir~
16902 $install_prog $dir/$dlname \$dldir/$dlname~
16903 chmod a+x \$dldir/$dlname~
16904 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16905 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16907 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16908 dlpath=$dir/\$dldll~
16910 shlibpath_overrides_runpath
=yes
16914 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16915 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16917 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16920 # MinGW DLLs use traditional 'lib' prefix
16921 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16924 # pw32 DLLs use 'pw' prefix rather than 'lib'
16925 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16931 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16934 dynamic_linker
='Win32 ld.exe'
16935 # FIXME: first we should search . and the directory the executable is in
16939 darwin
* | rhapsody
*)
16940 dynamic_linker
="$host_os dyld"
16941 version_type
=darwin
16944 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16945 soname_spec
='${libname}${release}${major}$shared_ext'
16946 shlibpath_overrides_runpath
=yes
16947 shlibpath_var
=DYLD_LIBRARY_PATH
16948 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16950 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
16951 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16958 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16959 soname_spec
='${libname}${release}${shared_ext}$major'
16960 shlibpath_var
=LD_LIBRARY_PATH
16963 freebsd
* | dragonfly
*)
16964 # DragonFly does not have aout. When/if they implement a new
16965 # versioning mechanism, adjust this.
16966 if test -x /usr
/bin
/objformat
; then
16967 objformat
=`/usr/bin/objformat`
16970 freebsd
[23].
*) objformat
=aout
;;
16971 *) objformat
=elf
;;
16974 version_type
=freebsd-
$objformat
16975 case $version_type in
16977 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16982 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16986 shlibpath_var
=LD_LIBRARY_PATH
16989 shlibpath_overrides_runpath
=yes
16991 freebsd3.
[01]* | freebsdelf3.
[01]*)
16992 shlibpath_overrides_runpath
=yes
16993 hardcode_into_libs
=yes
16995 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16996 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16997 shlibpath_overrides_runpath
=no
16998 hardcode_into_libs
=yes
17000 *) # from 4.6 on, and DragonFly
17001 shlibpath_overrides_runpath
=yes
17002 hardcode_into_libs
=yes
17011 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17012 soname_spec
='${libname}${release}${shared_ext}$major'
17013 shlibpath_var
=LD_LIBRARY_PATH
17014 hardcode_into_libs
=yes
17021 dynamic_linker
="$host_os runtime_loader"
17022 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17023 soname_spec
='${libname}${release}${shared_ext}$major'
17024 shlibpath_var
=LIBRARY_PATH
17025 shlibpath_overrides_runpath
=yes
17026 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17027 hardcode_into_libs
=yes
17030 hpux9
* | hpux10
* | hpux11
*)
17031 # Give a soname corresponding to the major version so that dld.sl refuses to
17032 # link against other versions.
17039 hardcode_into_libs
=yes
17040 dynamic_linker
="$host_os dld.so"
17041 shlibpath_var
=LD_LIBRARY_PATH
17042 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17043 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17044 soname_spec
='${libname}${release}${shared_ext}$major'
17045 if test "X$HPUX_IA64_MODE" = X32
; then
17046 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17048 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17050 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17054 hardcode_into_libs
=yes
17055 dynamic_linker
="$host_os dld.sl"
17056 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17057 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17058 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17059 soname_spec
='${libname}${release}${shared_ext}$major'
17060 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17061 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17065 dynamic_linker
="$host_os dld.sl"
17066 shlibpath_var
=SHLIB_PATH
17067 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17068 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069 soname_spec
='${libname}${release}${shared_ext}$major'
17072 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17073 postinstall_cmds
='chmod 555 $lib'
17074 # or fails outright, so override atomically:
17075 install_override_mode
=555
17082 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17083 soname_spec
='${libname}${release}${shared_ext}$major'
17084 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17085 shlibpath_var
=LD_LIBRARY_PATH
17086 shlibpath_overrides_runpath
=no
17087 hardcode_into_libs
=yes
17090 irix5
* | irix6
* | nonstopux
*)
17092 nonstopux
*) version_type
=nonstopux
;;
17094 if test "$lt_cv_prog_gnu_ld" = yes; then
17102 soname_spec
='${libname}${release}${shared_ext}$major'
17103 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17105 irix5
* | nonstopux
*)
17106 libsuff
= shlibsuff
=
17109 case $LD in # libtool.m4 will add one of these switches to LD
17110 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17111 libsuff
= shlibsuff
= libmagic
=32-bit;;
17112 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17113 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17114 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17115 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17116 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17120 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17121 shlibpath_overrides_runpath
=no
17122 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17123 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17124 hardcode_into_libs
=yes
17127 # No shared lib support for Linux oldld, aout, or coff.
17128 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17132 # This must be Linux ELF.
17133 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17137 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17138 soname_spec
='${libname}${release}${shared_ext}$major'
17139 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17140 shlibpath_var
=LD_LIBRARY_PATH
17141 shlibpath_overrides_runpath
=no
17143 # Some binutils ld are patched to set DT_RUNPATH
17144 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17145 $as_echo_n "(cached) " >&6
17147 lt_cv_shlibpath_overrides_runpath
=no
17148 save_LDFLAGS
=$LDFLAGS
17149 save_libdir
=$libdir
17150 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17151 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17153 /* end confdefs.h. */
17163 if ac_fn_c_try_link
"$LINENO"; then :
17164 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17165 lt_cv_shlibpath_overrides_runpath
=yes
17168 rm -f core conftest.err conftest.
$ac_objext \
17169 conftest
$ac_exeext conftest.
$ac_ext
17170 LDFLAGS
=$save_LDFLAGS
17171 libdir
=$save_libdir
17175 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17177 # This implies no fast_install, which is unacceptable.
17178 # Some rework will be needed to allow for fast_install
17179 # before this can be enabled.
17180 hardcode_into_libs
=yes
17182 # Append ld.so.conf contents to the search path
17183 if test -f /etc
/ld.so.conf
; then
17184 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' ' '`
17185 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17188 # We used to test for /lib/ld.so.1 and disable shared libraries on
17189 # powerpc, because MkLinux only supported shared libraries with the
17190 # GNU dynamic linker. Since this was broken with cross compilers,
17191 # most powerpc-linux boxes support dynamic linking these days and
17192 # people can always --disable-shared, the test was removed, and we
17193 # assume the GNU/Linux dynamic linker is in use.
17194 dynamic_linker
='GNU/Linux ld.so'
17201 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17202 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17203 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17204 dynamic_linker
='NetBSD (a.out) ld.so'
17206 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17207 soname_spec
='${libname}${release}${shared_ext}$major'
17208 dynamic_linker
='NetBSD ld.elf_so'
17210 shlibpath_var
=LD_LIBRARY_PATH
17211 shlibpath_overrides_runpath
=yes
17212 hardcode_into_libs
=yes
17217 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17218 shlibpath_var
=LD_LIBRARY_PATH
17219 shlibpath_overrides_runpath
=yes
17226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17227 soname_spec
='${libname}${release}${shared_ext}$major'
17228 shlibpath_var
=LD_LIBRARY_PATH
17229 shlibpath_overrides_runpath
=no
17230 hardcode_into_libs
=yes
17231 dynamic_linker
='ldqnx.so'
17236 sys_lib_dlsearch_path_spec
="/usr/lib"
17238 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17240 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17241 *) need_version
=no
;;
17243 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17244 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17245 shlibpath_var
=LD_LIBRARY_PATH
17246 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17248 openbsd2.
[89] | openbsd2.
[89].
*)
17249 shlibpath_overrides_runpath
=no
17252 shlibpath_overrides_runpath
=yes
17256 shlibpath_overrides_runpath
=yes
17261 libname_spec
='$name'
17264 library_names_spec
='$libname${shared_ext} $libname.a'
17265 dynamic_linker
='OS/2 ld.exe'
17266 shlibpath_var
=LIBPATH
17269 osf3
* | osf4
* | osf5
*)
17273 soname_spec
='${libname}${release}${shared_ext}$major'
17274 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17275 shlibpath_var
=LD_LIBRARY_PATH
17276 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17277 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17288 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17289 soname_spec
='${libname}${release}${shared_ext}$major'
17290 shlibpath_var
=LD_LIBRARY_PATH
17291 shlibpath_overrides_runpath
=yes
17292 hardcode_into_libs
=yes
17293 # ldd complains unless libraries are executable
17294 postinstall_cmds
='chmod +x $lib'
17299 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17300 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17301 shlibpath_var
=LD_LIBRARY_PATH
17302 shlibpath_overrides_runpath
=yes
17303 if test "$with_gnu_ld" = yes; then
17311 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312 soname_spec
='${libname}${release}${shared_ext}$major'
17313 shlibpath_var
=LD_LIBRARY_PATH
17314 case $host_vendor in
17316 shlibpath_overrides_runpath
=no
17318 runpath_var
=LD_RUN_PATH
17326 shlibpath_overrides_runpath
=no
17327 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17333 if test -d /usr
/nec
;then
17335 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17336 soname_spec
='$libname${shared_ext}.$major'
17337 shlibpath_var
=LD_LIBRARY_PATH
17341 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17342 version_type
=freebsd-elf
17345 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17346 soname_spec
='${libname}${release}${shared_ext}$major'
17347 shlibpath_var
=LD_LIBRARY_PATH
17348 shlibpath_overrides_runpath
=yes
17349 hardcode_into_libs
=yes
17350 if test "$with_gnu_ld" = yes; then
17351 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17353 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17356 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17360 sys_lib_dlsearch_path_spec
='/usr/lib'
17364 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17368 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17369 shlibpath_var
=LD_LIBRARY_PATH
17370 shlibpath_overrides_runpath
=no
17371 hardcode_into_libs
=yes
17376 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377 soname_spec
='${libname}${release}${shared_ext}$major'
17378 shlibpath_var
=LD_LIBRARY_PATH
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17386 $as_echo "$dynamic_linker" >&6; }
17387 test "$dynamic_linker" = no
&& can_build_shared
=no
17389 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17390 if test "$GCC" = yes; then
17391 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17394 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17395 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17397 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17398 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17493 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17495 if test -n "$hardcode_libdir_flag_spec" ||
17496 test -n "$runpath_var" ||
17497 test "X$hardcode_automatic" = "Xyes" ; then
17499 # We can hardcode non-existent directories.
17500 if test "$hardcode_direct" != no
&&
17501 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17502 # have to relink, otherwise we might link with an installed library
17503 # when we should be linking with a yet-to-be-installed one
17504 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17505 test "$hardcode_minus_L" != no
; then
17506 # Linking always hardcodes the temporary library directory.
17507 hardcode_action
=relink
17509 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17510 hardcode_action
=immediate
17513 # We cannot hardcode anything, or else we can only hardcode existing
17515 hardcode_action
=unsupported
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17518 $as_echo "$hardcode_action" >&6; }
17520 if test "$hardcode_action" = relink ||
17521 test "$inherit_rpath" = yes; then
17522 # Fast installation is not supported
17523 enable_fast_install
=no
17524 elif test "$shlibpath_overrides_runpath" = yes ||
17525 test "$enable_shared" = no
; then
17526 # Fast installation is not necessary
17527 enable_fast_install
=needless
17535 if test "x$enable_dlopen" != xyes
; then
17536 enable_dlopen
=unknown
17537 enable_dlopen_self
=unknown
17538 enable_dlopen_self_static
=unknown
17545 lt_cv_dlopen
="load_add_on"
17547 lt_cv_dlopen_self
=yes
17550 mingw
* | pw32
* | cegcc
*)
17551 lt_cv_dlopen
="LoadLibrary"
17556 lt_cv_dlopen
="dlopen"
17561 # if libdl is installed we need to link against it
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17563 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17564 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17565 $as_echo_n "(cached) " >&6
17567 ac_check_lib_save_LIBS
=$LIBS
17569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17570 /* end confdefs.h. */
17572 /* Override any GCC internal prototype to avoid an error.
17573 Use char because int might match the return type of a GCC
17574 builtin and then its argument prototype would still apply. */
17587 if ac_fn_c_try_link
"$LINENO"; then :
17588 ac_cv_lib_dl_dlopen
=yes
17590 ac_cv_lib_dl_dlopen
=no
17592 rm -f core conftest.err conftest.
$ac_objext \
17593 conftest
$ac_exeext conftest.
$ac_ext
17594 LIBS
=$ac_check_lib_save_LIBS
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17597 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17598 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17599 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17602 lt_cv_dlopen
="dyld"
17604 lt_cv_dlopen_self
=yes
17611 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17612 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17613 lt_cv_dlopen
="shl_load"
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17616 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17617 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17618 $as_echo_n "(cached) " >&6
17620 ac_check_lib_save_LIBS
=$LIBS
17622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17623 /* end confdefs.h. */
17625 /* Override any GCC internal prototype to avoid an error.
17626 Use char because int might match the return type of a GCC
17627 builtin and then its argument prototype would still apply. */
17635 return shl_load ();
17640 if ac_fn_c_try_link
"$LINENO"; then :
17641 ac_cv_lib_dld_shl_load
=yes
17643 ac_cv_lib_dld_shl_load
=no
17645 rm -f core conftest.err conftest.
$ac_objext \
17646 conftest
$ac_exeext conftest.
$ac_ext
17647 LIBS
=$ac_check_lib_save_LIBS
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17650 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17651 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17652 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17654 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17655 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17656 lt_cv_dlopen
="dlopen"
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17659 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17660 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17661 $as_echo_n "(cached) " >&6
17663 ac_check_lib_save_LIBS
=$LIBS
17665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17666 /* end confdefs.h. */
17668 /* Override any GCC internal prototype to avoid an error.
17669 Use char because int might match the return type of a GCC
17670 builtin and then its argument prototype would still apply. */
17683 if ac_fn_c_try_link
"$LINENO"; then :
17684 ac_cv_lib_dl_dlopen
=yes
17686 ac_cv_lib_dl_dlopen
=no
17688 rm -f core conftest.err conftest.
$ac_objext \
17689 conftest
$ac_exeext conftest.
$ac_ext
17690 LIBS
=$ac_check_lib_save_LIBS
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17693 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17694 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17695 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17698 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17699 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17700 $as_echo_n "(cached) " >&6
17702 ac_check_lib_save_LIBS
=$LIBS
17703 LIBS
="-lsvld $LIBS"
17704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17705 /* end confdefs.h. */
17707 /* Override any GCC internal prototype to avoid an error.
17708 Use char because int might match the return type of a GCC
17709 builtin and then its argument prototype would still apply. */
17722 if ac_fn_c_try_link
"$LINENO"; then :
17723 ac_cv_lib_svld_dlopen
=yes
17725 ac_cv_lib_svld_dlopen
=no
17727 rm -f core conftest.err conftest.
$ac_objext \
17728 conftest
$ac_exeext conftest.
$ac_ext
17729 LIBS
=$ac_check_lib_save_LIBS
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17732 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17733 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17734 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17737 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17738 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17739 $as_echo_n "(cached) " >&6
17741 ac_check_lib_save_LIBS
=$LIBS
17743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17744 /* end confdefs.h. */
17746 /* Override any GCC internal prototype to avoid an error.
17747 Use char because int might match the return type of a GCC
17748 builtin and then its argument prototype would still apply. */
17756 return dld_link ();
17761 if ac_fn_c_try_link
"$LINENO"; then :
17762 ac_cv_lib_dld_dld_link
=yes
17764 ac_cv_lib_dld_dld_link
=no
17766 rm -f core conftest.err conftest.
$ac_objext \
17767 conftest
$ac_exeext conftest.
$ac_ext
17768 LIBS
=$ac_check_lib_save_LIBS
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17771 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17772 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17773 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17794 if test "x$lt_cv_dlopen" != xno
; then
17800 case $lt_cv_dlopen in
17802 save_CPPFLAGS
="$CPPFLAGS"
17803 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17805 save_LDFLAGS
="$LDFLAGS"
17806 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17809 LIBS
="$lt_cv_dlopen_libs $LIBS"
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17812 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17813 if test "${lt_cv_dlopen_self+set}" = set; then :
17814 $as_echo_n "(cached) " >&6
17816 if test "$cross_compiling" = yes; then :
17817 lt_cv_dlopen_self
=cross
17819 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17820 lt_status
=$lt_dlunknown
17821 cat > conftest.
$ac_ext <<_LT_EOF
17822 #line 17822 "configure"
17823 #include "confdefs.h"
17832 # define LT_DLGLOBAL RTLD_GLOBAL
17835 # define LT_DLGLOBAL DL_GLOBAL
17837 # define LT_DLGLOBAL 0
17841 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17842 find out it does not work in some platform. */
17843 #ifndef LT_DLLAZY_OR_NOW
17845 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17848 # define LT_DLLAZY_OR_NOW DL_LAZY
17851 # define LT_DLLAZY_OR_NOW RTLD_NOW
17854 # define LT_DLLAZY_OR_NOW DL_NOW
17856 # define LT_DLLAZY_OR_NOW 0
17863 /* When -fvisbility=hidden is used, assume the code has been annotated
17864 correspondingly for the symbols needed. */
17865 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17866 void fnord () __attribute__((visibility("default")));
17869 void fnord () { int i=42; }
17872 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17873 int status = $lt_dlunknown;
17877 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17880 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17881 else puts (dlerror ());
17883 /* dlclose (self); */
17891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17892 (eval $ac_link) 2>&5
17894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17895 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17896 (.
/conftest
; exit; ) >&5 2>/dev
/null
17898 case x
$lt_status in
17899 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17900 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17901 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17904 # compilation failed
17905 lt_cv_dlopen_self
=no
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17913 $as_echo "$lt_cv_dlopen_self" >&6; }
17915 if test "x$lt_cv_dlopen_self" = xyes
; then
17916 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17918 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17919 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17920 $as_echo_n "(cached) " >&6
17922 if test "$cross_compiling" = yes; then :
17923 lt_cv_dlopen_self_static
=cross
17925 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17926 lt_status
=$lt_dlunknown
17927 cat > conftest.
$ac_ext <<_LT_EOF
17928 #line 17928 "configure"
17929 #include "confdefs.h"
17938 # define LT_DLGLOBAL RTLD_GLOBAL
17941 # define LT_DLGLOBAL DL_GLOBAL
17943 # define LT_DLGLOBAL 0
17947 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17948 find out it does not work in some platform. */
17949 #ifndef LT_DLLAZY_OR_NOW
17951 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17954 # define LT_DLLAZY_OR_NOW DL_LAZY
17957 # define LT_DLLAZY_OR_NOW RTLD_NOW
17960 # define LT_DLLAZY_OR_NOW DL_NOW
17962 # define LT_DLLAZY_OR_NOW 0
17969 /* When -fvisbility=hidden is used, assume the code has been annotated
17970 correspondingly for the symbols needed. */
17971 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17972 void fnord () __attribute__((visibility("default")));
17975 void fnord () { int i=42; }
17978 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17979 int status = $lt_dlunknown;
17983 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17986 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17987 else puts (dlerror ());
17989 /* dlclose (self); */
17997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17998 (eval $ac_link) 2>&5
18000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18001 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18002 (.
/conftest
; exit; ) >&5 2>/dev
/null
18004 case x
$lt_status in
18005 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18006 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18007 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18010 # compilation failed
18011 lt_cv_dlopen_self_static
=no
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18019 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18022 CPPFLAGS
="$save_CPPFLAGS"
18023 LDFLAGS
="$save_LDFLAGS"
18028 case $lt_cv_dlopen_self in
18029 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18030 *) enable_dlopen_self
=unknown
;;
18033 case $lt_cv_dlopen_self_static in
18034 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18035 *) enable_dlopen_self_static
=unknown
;;
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18058 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18059 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18060 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18061 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18063 $as_echo "yes" >&6; }
18065 # FIXME - insert some real tests, host_os isn't really good enough
18068 if test -n "$STRIP" ; then
18069 striplib
="$STRIP -x"
18070 old_striplib
="$STRIP -S"
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18072 $as_echo "yes" >&6; }
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18075 $as_echo "no" >&6; }
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18080 $as_echo "no" >&6; }
18096 # Report which library types will actually be built
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18098 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18100 $as_echo "$can_build_shared" >&6; }
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18103 $as_echo_n "checking whether to build shared libraries... " >&6; }
18104 test "$can_build_shared" = "no" && enable_shared
=no
18106 # On AIX, shared libraries and static libraries use the same namespace, and
18107 # are all built from PIC.
18110 test "$enable_shared" = yes && enable_static
=no
18111 if test -n "$RANLIB"; then
18112 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18113 postinstall_cmds
='$RANLIB $lib'
18118 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18119 test "$enable_shared" = yes && enable_static
=no
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18124 $as_echo "$enable_shared" >&6; }
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18127 $as_echo_n "checking whether to build static libraries... " >&6; }
18128 # Make sure either enable_shared or enable_static is yes.
18129 test "$enable_shared" = yes || enable_static
=yes
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18131 $as_echo "$enable_static" >&6; }
18138 ac_cpp
='$CPP $CPPFLAGS'
18139 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18140 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18141 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18145 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18146 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18147 (test "X$CXX" != "Xg++"))) ; then
18149 ac_cpp
='$CXXCPP $CPPFLAGS'
18150 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18151 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18152 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18154 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18155 if test -z "$CXXCPP"; then
18156 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18157 $as_echo_n "(cached) " >&6
18159 # Double quotes because CXXCPP needs to be expanded
18160 for CXXCPP
in "$CXX -E" "/lib/cpp"
18162 ac_preproc_ok
=false
18163 for ac_cxx_preproc_warn_flag
in '' yes
18165 # Use a header file that comes with gcc, so configuring glibc
18166 # with a fresh cross-compiler works.
18167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18168 # <limits.h> exists even on freestanding compilers.
18169 # On the NeXT, cc -E runs the code through the compiler's parser,
18170 # not just through cpp. "Syntax error" is here to catch this case.
18171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18172 /* end confdefs.h. */
18174 # include <limits.h>
18176 # include <assert.h>
18180 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18183 # Broken: fails on valid input.
18186 rm -f conftest.err conftest.
$ac_ext
18188 # OK, works on sane cases. Now check whether nonexistent headers
18189 # can be detected and how.
18190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18191 /* end confdefs.h. */
18192 #include <ac_nonexistent.h>
18194 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18195 # Broken: success on invalid input.
18198 # Passes both tests.
18202 rm -f conftest.err conftest.
$ac_ext
18205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18206 rm -f conftest.err conftest.
$ac_ext
18207 if $ac_preproc_ok; then :
18212 ac_cv_prog_CXXCPP
=$CXXCPP
18215 CXXCPP
=$ac_cv_prog_CXXCPP
18217 ac_cv_prog_CXXCPP
=$CXXCPP
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18220 $as_echo "$CXXCPP" >&6; }
18221 ac_preproc_ok
=false
18222 for ac_cxx_preproc_warn_flag
in '' yes
18224 # Use a header file that comes with gcc, so configuring glibc
18225 # with a fresh cross-compiler works.
18226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18227 # <limits.h> exists even on freestanding compilers.
18228 # On the NeXT, cc -E runs the code through the compiler's parser,
18229 # not just through cpp. "Syntax error" is here to catch this case.
18230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18231 /* end confdefs.h. */
18233 # include <limits.h>
18235 # include <assert.h>
18239 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18242 # Broken: fails on valid input.
18245 rm -f conftest.err conftest.
$ac_ext
18247 # OK, works on sane cases. Now check whether nonexistent headers
18248 # can be detected and how.
18249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h. */
18251 #include <ac_nonexistent.h>
18253 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18254 # Broken: success on invalid input.
18257 # Passes both tests.
18261 rm -f conftest.err conftest.
$ac_ext
18264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18265 rm -f conftest.err conftest.
$ac_ext
18266 if $ac_preproc_ok; then :
18269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18271 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18272 See \`config.log' for more details." "$LINENO" 5; }
18276 ac_cpp
='$CPP $CPPFLAGS'
18277 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18278 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18279 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18282 _lt_caught_CXX_error
=yes
18286 ac_cpp
='$CXXCPP $CPPFLAGS'
18287 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18288 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18289 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18291 archive_cmds_need_lc_CXX
=no
18292 allow_undefined_flag_CXX
=
18293 always_export_symbols_CXX
=no
18294 archive_expsym_cmds_CXX
=
18295 compiler_needs_object_CXX
=no
18296 export_dynamic_flag_spec_CXX
=
18297 hardcode_direct_CXX
=no
18298 hardcode_direct_absolute_CXX
=no
18299 hardcode_libdir_flag_spec_CXX
=
18300 hardcode_libdir_flag_spec_ld_CXX
=
18301 hardcode_libdir_separator_CXX
=
18302 hardcode_minus_L_CXX
=no
18303 hardcode_shlibpath_var_CXX
=unsupported
18304 hardcode_automatic_CXX
=no
18305 inherit_rpath_CXX
=no
18307 module_expsym_cmds_CXX
=
18308 link_all_deplibs_CXX
=unknown
18309 old_archive_cmds_CXX
=$old_archive_cmds
18310 reload_flag_CXX
=$reload_flag
18311 reload_cmds_CXX
=$reload_cmds
18312 no_undefined_flag_CXX
=
18313 whole_archive_flag_spec_CXX
=
18314 enable_shared_with_static_runtimes_CXX
=no
18316 # Source file extension for C++ test sources.
18319 # Object file extension for compiled C++ test sources.
18323 # No sense in running all these tests if we already determined that
18324 # the CXX compiler isn't working. Some variables (like enable_shared)
18325 # are currently assumed to apply to all compilers on this platform,
18326 # and will be corrupted by setting them based on a non-working compiler.
18327 if test "$_lt_caught_CXX_error" != yes; then
18328 # Code to be used in simple compile tests
18329 lt_simple_compile_test_code
="int some_variable = 0;"
18331 # Code to be used in simple link tests
18332 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18334 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18341 # If no C compiler was specified, use CC.
18344 # If no C compiler flags were specified, use CFLAGS.
18345 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18347 # Allow CC to be a program name with arguments.
18351 # save warnings/boilerplate of simple test code
18352 ac_outfile
=conftest.
$ac_objext
18353 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18354 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18355 _lt_compiler_boilerplate
=`cat conftest.err`
18358 ac_outfile
=conftest.
$ac_objext
18359 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18360 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18361 _lt_linker_boilerplate
=`cat conftest.err`
18365 # Allow CC to be a program name with arguments.
18370 lt_save_with_gnu_ld
=$with_gnu_ld
18371 lt_save_path_LD
=$lt_cv_path_LD
18372 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18373 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18375 $as_unset lt_cv_prog_gnu_ld
18377 if test -n "${lt_cv_path_LDCXX+set}"; then
18378 lt_cv_path_LD
=$lt_cv_path_LDCXX
18380 $as_unset lt_cv_path_LD
18382 test -z "${LDCXX+set}" || LD
=$LDCXX
18386 for cc_temp
in $compiler""; do
18388 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18389 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18394 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18397 if test -n "$compiler"; then
18398 # We don't want -fno-exception when compiling C++ code, so set the
18399 # no_builtin_flag separately
18400 if test "$GXX" = yes; then
18401 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18403 lt_prog_compiler_no_builtin_flag_CXX
=
18406 if test "$GXX" = yes; then
18407 # Set up default GNU C++ configuration
18411 # Check whether --with-gnu-ld was given.
18412 if test "${with_gnu_ld+set}" = set; then :
18413 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18419 if test "$GCC" = yes; then
18420 # Check if gcc -print-prog-name=ld gives a path.
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18422 $as_echo_n "checking for ld used by $CC... " >&6; }
18425 # gcc leaves a trailing carriage return which upsets mingw
18426 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18428 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18431 # Accept absolute paths.
18433 re_direlt
='/[^/][^/]*/\.\./'
18434 # Canonicalize the pathname of ld
18435 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18436 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18437 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18439 test -z "$LD" && LD
="$ac_prog"
18442 # If it fails, then pretend we aren't using GCC.
18446 # If it is relative, then search for the first ld in PATH.
18447 with_gnu_ld
=unknown
18450 elif test "$with_gnu_ld" = yes; then
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18452 $as_echo_n "checking for GNU ld... " >&6; }
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18455 $as_echo_n "checking for non-GNU ld... " >&6; }
18457 if test "${lt_cv_path_LD+set}" = set; then :
18458 $as_echo_n "(cached) " >&6
18460 if test -z "$LD"; then
18461 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18462 for ac_dir
in $PATH; do
18464 test -z "$ac_dir" && ac_dir
=.
18465 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18466 lt_cv_path_LD
="$ac_dir/$ac_prog"
18467 # Check to see if the program is GNU ld. I'd rather use --version,
18468 # but apparently some variants of GNU ld only accept -v.
18469 # Break only if it was the GNU/non-GNU ld that we prefer.
18470 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18471 *GNU
* |
*'with BFD'*)
18472 test "$with_gnu_ld" != no
&& break
18475 test "$with_gnu_ld" != yes && break
18482 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18486 LD
="$lt_cv_path_LD"
18487 if test -n "$LD"; then
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18489 $as_echo "$LD" >&6; }
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18492 $as_echo "no" >&6; }
18494 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18496 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18497 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18498 $as_echo_n "(cached) " >&6
18500 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18501 case `$LD -v 2>&1 </dev/null` in
18502 *GNU
* |
*'with BFD'*)
18503 lt_cv_prog_gnu_ld
=yes
18506 lt_cv_prog_gnu_ld
=no
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18511 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18512 with_gnu_ld
=$lt_cv_prog_gnu_ld
18520 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18521 # archiving commands below assume that GNU ld is being used.
18522 if test "$with_gnu_ld" = yes; then
18523 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18524 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'
18526 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18527 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18529 # If archive_cmds runs LD, not CC, wlarc should be empty
18530 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18531 # investigate it a little bit more. (MM)
18534 # ancient GNU ld didn't support --whole-archive et. al.
18535 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18536 $GREP 'no-whole-archive' > /dev
/null
; then
18537 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18539 whole_archive_flag_spec_CXX
=
18545 # A generic and very simple default shared library creation
18546 # command for GNU C++ for the case where it uses the native
18547 # linker, instead of GNU ld. If possible, this setting should
18548 # overridden to take advantage of the native linker features on
18549 # the platform it is being used on.
18550 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18553 # Commands to make compiler produce verbose output that lists
18554 # what "hidden" libraries, object files and flags are used when
18555 # linking a shared library.
18556 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18564 # PORTME: fill in a description of your system's C++ link characteristics
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18566 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18570 # FIXME: insert proper C++ library support
18574 if test "$host_cpu" = ia64
; then
18575 # On IA64, the linker does run time linking by default, so we don't
18576 # have to do anything special.
18577 aix_use_runtimelinking
=no
18578 exp_sym_flag
='-Bexport'
18581 aix_use_runtimelinking
=no
18583 # Test if we are trying to use run time linking or normal
18584 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18585 # need to do runtime linking.
18586 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18587 for ld_flag
in $LDFLAGS; do
18590 aix_use_runtimelinking
=yes
18598 exp_sym_flag
='-bexport'
18599 no_entry_flag
='-bnoentry'
18602 # When large executables or shared objects are built, AIX ld can
18603 # have problems creating the table of contents. If linking a library
18604 # or program results in "error TOC overflow" add -mminimal-toc to
18605 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18606 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18608 archive_cmds_CXX
=''
18609 hardcode_direct_CXX
=yes
18610 hardcode_direct_absolute_CXX
=yes
18611 hardcode_libdir_separator_CXX
=':'
18612 link_all_deplibs_CXX
=yes
18613 file_list_spec_CXX
='${wl}-f,'
18615 if test "$GXX" = yes; then
18616 case $host_os in aix4.
[012]|aix4.
[012].
*)
18617 # We only want to do this on AIX 4.2 and lower, the check
18618 # below for broken collect2 doesn't work under 4.3+
18619 collect2name
=`${CC} -print-prog-name=collect2`
18620 if test -f "$collect2name" &&
18621 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18623 # We have reworked collect2
18626 # We have old collect2
18627 hardcode_direct_CXX
=unsupported
18628 # It fails to find uninstalled libraries when the uninstalled
18629 # path is not listed in the libpath. Setting hardcode_minus_L
18630 # to unsupported forces relinking
18631 hardcode_minus_L_CXX
=yes
18632 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18633 hardcode_libdir_separator_CXX
=
18636 shared_flag
='-shared'
18637 if test "$aix_use_runtimelinking" = yes; then
18638 shared_flag
="$shared_flag "'${wl}-G'
18642 if test "$host_cpu" = ia64
; then
18643 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18644 # chokes on -Wl,-G. The following line is correct:
18647 if test "$aix_use_runtimelinking" = yes; then
18648 shared_flag
='${wl}-G'
18650 shared_flag
='${wl}-bM:SRE'
18655 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18656 # It seems that -bexpall does not export symbols beginning with
18657 # underscore (_), so it is better to generate a list of symbols to
18659 always_export_symbols_CXX
=yes
18660 if test "$aix_use_runtimelinking" = yes; then
18661 # Warning - without using the other runtime loading flags (-brtl),
18662 # -berok will link without error, but may produce a broken library.
18663 allow_undefined_flag_CXX
='-berok'
18664 # Determine the default libpath from the value encoded in an empty
18666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18667 /* end confdefs.h. */
18677 if ac_fn_cxx_try_link
"$LINENO"; then :
18679 lt_aix_libpath_sed
='
18680 /Import File Strings/,/^$/ {
18686 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18687 # Check for a 64-bit object if we didn't find anything.
18688 if test -z "$aix_libpath"; then
18689 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18692 rm -f core conftest.err conftest.
$ac_objext \
18693 conftest
$ac_exeext conftest.
$ac_ext
18694 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18696 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18698 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"
18700 if test "$host_cpu" = ia64
; then
18701 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18702 allow_undefined_flag_CXX
="-z nodefs"
18703 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"
18705 # Determine the default libpath from the value encoded in an
18706 # empty executable.
18707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18708 /* end confdefs.h. */
18718 if ac_fn_cxx_try_link
"$LINENO"; then :
18720 lt_aix_libpath_sed
='
18721 /Import File Strings/,/^$/ {
18727 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18728 # Check for a 64-bit object if we didn't find anything.
18729 if test -z "$aix_libpath"; then
18730 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18733 rm -f core conftest.err conftest.
$ac_objext \
18734 conftest
$ac_exeext conftest.
$ac_ext
18735 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18737 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18738 # Warning - without using the other run time loading flags,
18739 # -berok will link without error, but may produce a broken library.
18740 no_undefined_flag_CXX
=' ${wl}-bernotok'
18741 allow_undefined_flag_CXX
=' ${wl}-berok'
18742 if test "$with_gnu_ld" = yes; then
18743 # We only use this code for GNU lds that support --whole-archive.
18744 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18746 # Exported symbols can be pulled into shared objects from archives
18747 whole_archive_flag_spec_CXX
='$convenience'
18749 archive_cmds_need_lc_CXX
=yes
18750 # This is similar to how AIX traditionally builds its shared
18752 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'
18758 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18759 allow_undefined_flag_CXX
=unsupported
18760 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18761 # support --undefined. This deserves some investigation. FIXME
18762 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18769 case $cc_basename in
18771 # FIXME: insert proper C++ library support
18777 cygwin
* | mingw
* | pw32
* | cegcc
*)
18778 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18779 # as there is no search path for DLLs.
18780 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18781 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18782 allow_undefined_flag_CXX
=unsupported
18783 always_export_symbols_CXX
=no
18784 enable_shared_with_static_runtimes_CXX
=yes
18786 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18787 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'
18788 # If the export-symbols file already is a .def file (1st line
18789 # is EXPORTS), use it as is; otherwise, prepend...
18790 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18791 cp $export_symbols $output_objdir/$soname.def;
18793 echo EXPORTS > $output_objdir/$soname.def;
18794 cat $export_symbols >> $output_objdir/$soname.def;
18796 $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'
18801 darwin
* | rhapsody
*)
18804 archive_cmds_need_lc_CXX
=no
18805 hardcode_direct_CXX
=no
18806 hardcode_automatic_CXX
=yes
18807 hardcode_shlibpath_var_CXX
=unsupported
18808 if test "$lt_cv_ld_force_load" = "yes"; then
18809 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\"`'
18811 whole_archive_flag_spec_CXX
=''
18813 link_all_deplibs_CXX
=yes
18814 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18815 case $cc_basename in
18816 ifort
*) _lt_dar_can_shared
=yes ;;
18817 *) _lt_dar_can_shared
=$GCC ;;
18819 if test "$_lt_dar_can_shared" = "yes"; then
18820 output_verbose_link_cmd
=func_echo_all
18821 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}"
18822 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18823 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}"
18824 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}"
18825 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18826 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}"
18827 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}"
18837 case $cc_basename in
18839 # FIXME: insert proper C++ library support
18843 # Green Hills C++ Compiler
18844 # FIXME: insert proper C++ library support
18848 # FIXME: insert proper C++ library support
18855 # C++ shared libraries reported to be fairly broken before
18861 archive_cmds_need_lc_CXX
=no
18864 freebsd
* | dragonfly
*)
18865 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18874 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18875 link_all_deplibs_CXX
=yes
18879 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18880 hardcode_libdir_separator_CXX
=:
18881 export_dynamic_flag_spec_CXX
='${wl}-E'
18882 hardcode_direct_CXX
=yes
18883 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18884 # but as the default
18885 # location of the library.
18887 case $cc_basename in
18889 # FIXME: insert proper C++ library support
18893 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'
18894 # Commands to make compiler produce verbose output that lists
18895 # what "hidden" libraries, object files and flags are used when
18896 # linking a shared library.
18898 # There doesn't appear to be a way to prevent this compiler from
18899 # explicitly linking system object files so we need to strip them
18900 # from the output so that they don't get included in the library
18902 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"'
18905 if test "$GXX" = yes; then
18906 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'
18908 # FIXME: insert proper C++ library support
18916 if test $with_gnu_ld = no
; then
18917 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18918 hardcode_libdir_separator_CXX
=:
18924 export_dynamic_flag_spec_CXX
='${wl}-E'
18930 hardcode_direct_CXX
=no
18931 hardcode_shlibpath_var_CXX
=no
18934 hardcode_direct_CXX
=yes
18935 hardcode_direct_absolute_CXX
=yes
18936 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18937 # but as the default
18938 # location of the library.
18942 case $cc_basename in
18944 # FIXME: insert proper C++ library support
18950 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18953 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18956 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18959 # Commands to make compiler produce verbose output that lists
18960 # what "hidden" libraries, object files and flags are used when
18961 # linking a shared library.
18963 # There doesn't appear to be a way to prevent this compiler from
18964 # explicitly linking system object files so we need to strip them
18965 # from the output so that they don't get included in the library
18967 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"'
18970 if test "$GXX" = yes; then
18971 if test $with_gnu_ld = no
; then
18974 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18977 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18980 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'
18985 # FIXME: insert proper C++ library support
18993 hardcode_direct_CXX
=no
18994 hardcode_shlibpath_var_CXX
=no
18995 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18996 export_dynamic_flag_spec_CXX
='${wl}-E'
18997 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18998 # Instead, shared libraries are loaded at an image base (0x10000000 by
18999 # default) and relocated if they conflict, which is a slow very memory
19000 # consuming and fragmenting process. To avoid this, we pick a random,
19001 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19002 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19003 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'
19004 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'
19007 case $cc_basename in
19010 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'
19012 # Archives containing C++ object files must be created using
19013 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19014 # necessary to make sure instantiated templates are included
19016 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19019 if test "$GXX" = yes; then
19020 if test "$with_gnu_ld" = no
; then
19021 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'
19023 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'
19026 link_all_deplibs_CXX
=yes
19029 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19030 hardcode_libdir_separator_CXX
=:
19031 inherit_rpath_CXX
=yes
19034 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19035 case $cc_basename in
19037 # Kuck and Associates, Inc. (KAI) C++ Compiler
19039 # KCC will only create a shared library if the output file
19040 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19041 # to its proper name (with version) after linking.
19042 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'
19043 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'
19044 # Commands to make compiler produce verbose output that lists
19045 # what "hidden" libraries, object files and flags are used when
19046 # linking a shared library.
19048 # There doesn't appear to be a way to prevent this compiler from
19049 # explicitly linking system object files so we need to strip them
19050 # from the output so that they don't get included in the library
19052 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"'
19054 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19055 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19057 # Archives containing C++ object files must be created using
19058 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19059 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19064 # version 8.0 and above of icpc choke on multiply defined symbols
19065 # if we add $predep_objects and $postdep_objects, however 7.1 and
19066 # earlier do not add the objects themselves.
19067 case `$CC -V 2>&1` in
19069 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19070 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'
19072 *) # Version 8.0 or newer
19075 ia64
*) tmp_idyn
=' -i_dynamic';;
19077 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19078 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'
19081 archive_cmds_need_lc_CXX
=no
19082 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19083 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19084 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19087 # Portland Group C++ compiler
19089 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19090 prelink_cmds_CXX
='tpldir=Template.dir~
19092 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19093 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19094 old_archive_cmds_CXX
='tpldir=Template.dir~
19096 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19097 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19099 archive_cmds_CXX
='tpldir=Template.dir~
19101 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19102 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19103 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19105 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19106 $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'
19108 *) # Version 6 and above use weak symbols
19109 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19110 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'
19114 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19115 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19116 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'
19120 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19121 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'
19123 runpath_var
=LD_RUN_PATH
19124 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19125 hardcode_libdir_separator_CXX
=:
19127 # Commands to make compiler produce verbose output that lists
19128 # what "hidden" libraries, object files and flags are used when
19129 # linking a shared library.
19131 # There doesn't appear to be a way to prevent this compiler from
19132 # explicitly linking system object files so we need to strip them
19133 # from the output so that they don't get included in the library
19135 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'
19137 xl
* | mpixl
* | bgxl
*)
19138 # IBM XL 8.0 on PPC, with GNU ld
19139 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19140 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19141 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19142 if test "x$supports_anon_versioning" = xyes
; then
19143 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19144 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19145 echo "local: *; };" >> $output_objdir/$libname.ver~
19146 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19150 case `$CC -V 2>&1 | sed 5q` in
19153 no_undefined_flag_CXX
=' -zdefs'
19154 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19155 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'
19156 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19157 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'
19158 compiler_needs_object_CXX
=yes
19160 # Not sure whether something based on
19161 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19163 output_verbose_link_cmd
='func_echo_all'
19165 # Archives containing C++ object files must be created using
19166 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19167 # necessary to make sure instantiated templates are included
19169 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19177 # FIXME: insert proper C++ library support
19182 # FIXME: insert proper C++ library support
19187 case $cc_basename in
19189 # FIXME: insert proper C++ library support
19193 # FIXME: insert proper C++ library support
19200 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19201 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19203 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19204 hardcode_direct_CXX
=yes
19205 hardcode_shlibpath_var_CXX
=no
19207 # Workaround some broken pre-1.5 toolchains
19208 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19216 # C++ shared libraries are fairly broken
19221 if test -f /usr
/libexec
/ld.so
; then
19222 hardcode_direct_CXX
=yes
19223 hardcode_shlibpath_var_CXX
=no
19224 hardcode_direct_absolute_CXX
=yes
19225 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19226 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19227 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19228 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19229 export_dynamic_flag_spec_CXX
='${wl}-E'
19230 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19232 output_verbose_link_cmd
=func_echo_all
19238 osf3
* | osf4
* | osf5
*)
19239 case $cc_basename in
19241 # Kuck and Associates, Inc. (KAI) C++ Compiler
19243 # KCC will only create a shared library if the output file
19244 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19245 # to its proper name (with version) after linking.
19246 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'
19248 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19249 hardcode_libdir_separator_CXX
=:
19251 # Archives containing C++ object files must be created using
19252 # the KAI C++ compiler.
19254 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19255 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19259 # Rational C++ 2.4.1
19260 # FIXME: insert proper C++ library support
19266 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19267 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'
19268 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19271 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19272 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'
19273 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19274 echo "-hidden">> $lib.exp~
19275 $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~
19277 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19281 hardcode_libdir_separator_CXX
=:
19283 # Commands to make compiler produce verbose output that lists
19284 # what "hidden" libraries, object files and flags are used when
19285 # linking a shared library.
19287 # There doesn't appear to be a way to prevent this compiler from
19288 # explicitly linking system object files so we need to strip them
19289 # from the output so that they don't get included in the library
19291 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"'
19294 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19295 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19298 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'
19301 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'
19305 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19306 hardcode_libdir_separator_CXX
=:
19308 # Commands to make compiler produce verbose output that lists
19309 # what "hidden" libraries, object files and flags are used when
19310 # linking a shared library.
19311 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19314 # FIXME: insert proper C++ library support
19322 # FIXME: insert proper C++ library support
19327 case $cc_basename in
19330 # FIXME: insert proper C++ library support
19335 # FIXME: insert proper C++ library support
19339 # FIXME: insert proper C++ library support
19346 case $cc_basename in
19348 # Sun C++ 4.2, 5.x and Centerline C++
19349 archive_cmds_need_lc_CXX
=yes
19350 no_undefined_flag_CXX
=' -zdefs'
19351 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19352 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19353 $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'
19355 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19356 hardcode_shlibpath_var_CXX
=no
19358 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19360 # The compiler driver will combine and reorder linker options,
19361 # but understands `-z linker_flag'.
19362 # Supported since Solaris 2.6 (maybe 2.5.1?)
19363 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19366 link_all_deplibs_CXX
=yes
19368 output_verbose_link_cmd
='func_echo_all'
19370 # Archives containing C++ object files must be created using
19371 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19372 # necessary to make sure instantiated templates are included
19374 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19377 # Green Hills C++ Compiler
19378 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19380 # The C++ compiler must be used to create the archive.
19381 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19384 # GNU C++ compiler with Solaris linker
19385 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19386 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19387 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19388 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19389 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19390 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19392 # Commands to make compiler produce verbose output that lists
19393 # what "hidden" libraries, object files and flags are used when
19394 # linking a shared library.
19395 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19397 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19399 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19400 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19401 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19403 # Commands to make compiler produce verbose output that lists
19404 # what "hidden" libraries, object files and flags are used when
19405 # linking a shared library.
19406 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19409 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19411 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19413 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19421 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19422 no_undefined_flag_CXX
='${wl}-z,text'
19423 archive_cmds_need_lc_CXX
=no
19424 hardcode_shlibpath_var_CXX
=no
19425 runpath_var
='LD_RUN_PATH'
19427 case $cc_basename in
19429 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19430 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19433 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19434 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19439 sysv5
* | sco3.2v5
* | sco5v6
*)
19440 # Note: We can NOT use -z defs as we might desire, because we do not
19441 # link with -lc, and that would cause any symbols used from libc to
19442 # always be unresolved, which means just about no library would
19443 # ever link correctly. If we're not using GNU ld we use -z text
19444 # though, which does catch some bad symbols but isn't as heavy-handed
19446 no_undefined_flag_CXX
='${wl}-z,text'
19447 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19448 archive_cmds_need_lc_CXX
=no
19449 hardcode_shlibpath_var_CXX
=no
19450 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19451 hardcode_libdir_separator_CXX
=':'
19452 link_all_deplibs_CXX
=yes
19453 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19454 runpath_var
='LD_RUN_PATH'
19456 case $cc_basename in
19458 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19459 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19460 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19461 '"$old_archive_cmds_CXX"
19462 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19463 '"$reload_cmds_CXX"
19466 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19467 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19473 case $cc_basename in
19475 # NonStop-UX NCC 3.20
19476 # FIXME: insert proper C++ library support
19480 # FIXME: insert proper C++ library support
19487 # FIXME: insert proper C++ library support
19492 # FIXME: insert proper C++ library support
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19498 $as_echo "$ld_shlibs_CXX" >&6; }
19499 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19505 ## There is no encapsulation within the following macros, do not change
19506 ## the running order or otherwise move them around unless you know exactly
19507 ## what you are doing...
19508 # Dependencies to place before and after the object being linked:
19509 predep_objects_CXX
=
19510 postdep_objects_CXX
=
19513 compiler_lib_search_path_CXX
=
19515 cat > conftest.
$ac_ext <<_LT_EOF
19519 Foo (void) { a = 0; }
19525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19526 (eval $ac_compile) 2>&5
19528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19529 test $ac_status = 0; }; then
19530 # Parse the compiler output and extract the necessary
19531 # objects, libraries and library flags.
19533 # Sentinel used to keep track of whether or not we are before
19534 # the conftest object file.
19535 pre_test_object_deps_done
=no
19537 for p
in `eval "$output_verbose_link_cmd"`; do
19541 # Some compilers place space between "-{L,R}" and the path.
19542 # Remove the space.
19543 if test $p = "-L" ||
19544 test $p = "-R"; then
19551 if test "$pre_test_object_deps_done" = no
; then
19554 # Internal compiler library paths should come after those
19555 # provided the user. The postdeps already come after the
19556 # user supplied libs so there is no need to process them.
19557 if test -z "$compiler_lib_search_path_CXX"; then
19558 compiler_lib_search_path_CXX
="${prev}${p}"
19560 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19563 # The "-l" case would never come before the object being
19564 # linked, so don't bother handling this case.
19567 if test -z "$postdeps_CXX"; then
19568 postdeps_CXX
="${prev}${p}"
19570 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19576 # This assumes that the test object file only shows up
19577 # once in the compiler output.
19578 if test "$p" = "conftest.$objext"; then
19579 pre_test_object_deps_done
=yes
19583 if test "$pre_test_object_deps_done" = no
; then
19584 if test -z "$predep_objects_CXX"; then
19585 predep_objects_CXX
="$p"
19587 predep_objects_CXX
="$predep_objects_CXX $p"
19590 if test -z "$postdep_objects_CXX"; then
19591 postdep_objects_CXX
="$p"
19593 postdep_objects_CXX
="$postdep_objects_CXX $p"
19598 *) ;; # Ignore the rest.
19606 echo "libtool.m4: error: problem compiling CXX test program"
19609 $RM -f confest.
$objext
19611 # PORTME: override above test on systems where it is broken
19614 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19615 # hack all around it, let's just trust "g++" to DTRT.
19616 predep_objects_CXX
=
19617 postdep_objects_CXX
=
19622 case `$CC -V 2>&1 | sed 5q` in
19626 # The more standards-conforming stlport4 library is
19627 # incompatible with the Cstd library. Avoid specifying
19628 # it if it's in CXXFLAGS. Ignore libCrun as
19629 # -library=stlport4 depends on it.
19630 case " $CXX $CXXFLAGS " in
19631 *" -library=stlport4 "*)
19632 solaris_use_stlport4
=yes
19636 if test "$solaris_use_stlport4" != yes; then
19637 postdeps_CXX
='-library=Cstd -library=Crun'
19644 case $cc_basename in
19646 # The more standards-conforming stlport4 library is
19647 # incompatible with the Cstd library. Avoid specifying
19648 # it if it's in CXXFLAGS. Ignore libCrun as
19649 # -library=stlport4 depends on it.
19650 case " $CXX $CXXFLAGS " in
19651 *" -library=stlport4 "*)
19652 solaris_use_stlport4
=yes
19656 # Adding this requires a known-good setup of shared libraries for
19657 # Sun compiler versions before 5.6, else PIC objects from an old
19658 # archive will be linked into the output, leading to subtle bugs.
19659 if test "$solaris_use_stlport4" != yes; then
19660 postdeps_CXX
='-library=Cstd -library=Crun'
19668 case " $postdeps_CXX " in
19669 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19671 compiler_lib_search_dirs_CXX
=
19672 if test -n "${compiler_lib_search_path_CXX}"; then
19673 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19706 lt_prog_compiler_wl_CXX
=
19707 lt_prog_compiler_pic_CXX
=
19708 lt_prog_compiler_static_CXX
=
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19711 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19713 # C++ specific cases for pic, static, wl, etc.
19714 if test "$GXX" = yes; then
19715 lt_prog_compiler_wl_CXX
='-Wl,'
19716 lt_prog_compiler_static_CXX
='-static'
19720 # All AIX code is PIC.
19721 if test "$host_cpu" = ia64
; then
19722 # AIX 5 now supports IA64 processor
19723 lt_prog_compiler_static_CXX
='-Bstatic'
19725 lt_prog_compiler_pic_CXX
='-fPIC'
19731 # see comment about AmigaOS4 .so support
19732 lt_prog_compiler_pic_CXX
='-fPIC'
19735 # FIXME: we need at least 68020 code to build shared libraries, but
19736 # adding the `-m68020' flag to GCC prevents building anything better,
19738 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19743 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19744 # PIC is the default for these OSes.
19746 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19747 # This hack is so that the source file can tell whether it is being
19748 # built for inclusion in a dll (and should export symbols for example).
19749 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19750 # (--disable-auto-import) libraries
19751 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19753 darwin
* | rhapsody
*)
19754 # PIC is the default on this platform
19755 # Common symbols not allowed in MH_DYLIB files
19756 lt_prog_compiler_pic_CXX
='-fno-common'
19759 # DJGPP does not support shared libraries at all
19760 lt_prog_compiler_pic_CXX
=
19763 # PIC is the default for Haiku.
19764 # The "-static" flag exists, but is broken.
19765 lt_prog_compiler_static_CXX
=
19768 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19769 # Instead, we relocate shared libraries at runtime.
19772 if test -d /usr
/nec
; then
19773 lt_prog_compiler_pic_CXX
=-Kconform_pic
19777 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19778 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19779 # sets the default TLS model and affects inlining.
19784 lt_prog_compiler_pic_CXX
='-fPIC'
19789 # QNX uses GNU C++, but need to define -shared option too, otherwise
19790 # it will coredump.
19791 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19794 lt_prog_compiler_pic_CXX
='-fPIC'
19800 # All AIX code is PIC.
19801 if test "$host_cpu" = ia64
; then
19802 # AIX 5 now supports IA64 processor
19803 lt_prog_compiler_static_CXX
='-Bstatic'
19805 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19809 case $cc_basename in
19811 # Green Hills C++ Compiler
19812 # _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"
19817 case $cc_basename in
19819 lt_prog_compiler_pic_CXX
='-KPIC'
19822 # Green Hills C++ Compiler
19823 lt_prog_compiler_pic_CXX
='-pic'
19829 freebsd
* | dragonfly
*)
19830 # FreeBSD uses GNU C++
19832 hpux9
* | hpux10
* | hpux11
*)
19833 case $cc_basename in
19835 lt_prog_compiler_wl_CXX
='-Wl,'
19836 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19837 if test "$host_cpu" != ia64
; then
19838 lt_prog_compiler_pic_CXX
='+Z'
19842 lt_prog_compiler_wl_CXX
='-Wl,'
19843 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19849 lt_prog_compiler_pic_CXX
='+Z'
19858 # This is c89, which is MS Visual C++ (no shared libs)
19859 # Anyone wants to do a port?
19861 irix5
* | irix6
* | nonstopux
*)
19862 case $cc_basename in
19864 lt_prog_compiler_wl_CXX
='-Wl,'
19865 lt_prog_compiler_static_CXX
='-non_shared'
19866 # CC pic flag -KPIC is the default.
19872 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19873 case $cc_basename in
19876 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19877 lt_prog_compiler_pic_CXX
='-fPIC'
19880 # old Intel C++ for x86_64 which still supported -KPIC.
19881 lt_prog_compiler_wl_CXX
='-Wl,'
19882 lt_prog_compiler_pic_CXX
='-KPIC'
19883 lt_prog_compiler_static_CXX
='-static'
19886 # Intel C++, used to be incompatible with GCC.
19887 # ICC 10 doesn't accept -KPIC any more.
19888 lt_prog_compiler_wl_CXX
='-Wl,'
19889 lt_prog_compiler_pic_CXX
='-fPIC'
19890 lt_prog_compiler_static_CXX
='-static'
19893 # Portland Group C++ compiler
19894 lt_prog_compiler_wl_CXX
='-Wl,'
19895 lt_prog_compiler_pic_CXX
='-fpic'
19896 lt_prog_compiler_static_CXX
='-Bstatic'
19900 # Make sure the PIC flag is empty. It appears that all Alpha
19901 # Linux and Compaq Tru64 Unix objects are PIC.
19902 lt_prog_compiler_pic_CXX
=
19903 lt_prog_compiler_static_CXX
='-non_shared'
19905 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19906 # IBM XL 8.0, 9.0 on PPC and BlueGene
19907 lt_prog_compiler_wl_CXX
='-Wl,'
19908 lt_prog_compiler_pic_CXX
='-qpic'
19909 lt_prog_compiler_static_CXX
='-qstaticlink'
19912 case `$CC -V 2>&1 | sed 5q` in
19915 lt_prog_compiler_pic_CXX
='-KPIC'
19916 lt_prog_compiler_static_CXX
='-Bstatic'
19917 lt_prog_compiler_wl_CXX
='-Qoption ld '
19928 case $cc_basename in
19930 lt_prog_compiler_pic_CXX
='-W c,exportall'
19939 # QNX uses GNU C++, but need to define -shared option too, otherwise
19940 # it will coredump.
19941 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19943 osf3
* | osf4
* | osf5
*)
19944 case $cc_basename in
19946 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19949 # Rational C++ 2.4.1
19950 lt_prog_compiler_pic_CXX
='-pic'
19953 # Digital/Compaq C++
19954 lt_prog_compiler_wl_CXX
='-Wl,'
19955 # Make sure the PIC flag is empty. It appears that all Alpha
19956 # Linux and Compaq Tru64 Unix objects are PIC.
19957 lt_prog_compiler_pic_CXX
=
19958 lt_prog_compiler_static_CXX
='-non_shared'
19967 case $cc_basename in
19969 # Sun C++ 4.2, 5.x and Centerline C++
19970 lt_prog_compiler_pic_CXX
='-KPIC'
19971 lt_prog_compiler_static_CXX
='-Bstatic'
19972 lt_prog_compiler_wl_CXX
='-Qoption ld '
19975 # Green Hills C++ Compiler
19976 lt_prog_compiler_pic_CXX
='-PIC'
19983 case $cc_basename in
19986 lt_prog_compiler_pic_CXX
='-pic'
19987 lt_prog_compiler_static_CXX
='-Bstatic'
19991 lt_prog_compiler_pic_CXX
='-pic'
19997 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
19998 case $cc_basename in
20000 lt_prog_compiler_wl_CXX
='-Wl,'
20001 lt_prog_compiler_pic_CXX
='-KPIC'
20002 lt_prog_compiler_static_CXX
='-Bstatic'
20007 case $cc_basename in
20009 # NonStop-UX NCC 3.20
20010 lt_prog_compiler_pic_CXX
='-KPIC'
20019 lt_prog_compiler_can_build_shared_CXX
=no
20025 # For platforms which do not support PIC, -DPIC is meaningless:
20027 lt_prog_compiler_pic_CXX
=
20030 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20034 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20039 # Check to make sure the PIC flag actually works.
20041 if test -n "$lt_prog_compiler_pic_CXX"; then
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20043 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20044 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20045 $as_echo_n "(cached) " >&6
20047 lt_cv_prog_compiler_pic_works_CXX
=no
20048 ac_outfile
=conftest.
$ac_objext
20049 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20050 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20051 # Insert the option either (1) after the last *FLAGS variable, or
20052 # (2) before a word containing "conftest.", or (3) at the end.
20053 # Note that $ac_compile itself does not contain backslashes and begins
20054 # with a dollar sign (not a hyphen), so the echo should work correctly.
20055 # The option is referenced via a variable to avoid confusing sed.
20056 lt_compile
=`echo "$ac_compile" | $SED \
20057 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20059 -e 's:$: $lt_compiler_flag:'`
20060 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20061 (eval "$lt_compile" 2>conftest.err
)
20063 cat conftest.err
>&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 if (exit $ac_status) && test -s "$ac_outfile"; then
20066 # The compiler can only warn and ignore the option if not recognized
20067 # So say no if there are warnings other than the usual output.
20068 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20069 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20070 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20071 lt_cv_prog_compiler_pic_works_CXX
=yes
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20078 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20080 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20081 case $lt_prog_compiler_pic_CXX in
20083 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20086 lt_prog_compiler_pic_CXX
=
20087 lt_prog_compiler_can_build_shared_CXX
=no
20095 # Check to make sure the static flag actually works.
20097 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20099 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20100 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20101 $as_echo_n "(cached) " >&6
20103 lt_cv_prog_compiler_static_works_CXX
=no
20104 save_LDFLAGS
="$LDFLAGS"
20105 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20106 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20107 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20108 # The linker can only warn and ignore the option if not recognized
20109 # So say no if there are warnings
20110 if test -s conftest.err
; then
20111 # Append any errors to the config.log.
20112 cat conftest.err
1>&5
20113 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20114 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20115 if diff conftest.exp conftest.er2
>/dev
/null
; then
20116 lt_cv_prog_compiler_static_works_CXX
=yes
20119 lt_cv_prog_compiler_static_works_CXX
=yes
20123 LDFLAGS
="$save_LDFLAGS"
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20127 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20129 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20132 lt_prog_compiler_static_CXX
=
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20139 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20140 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20141 $as_echo_n "(cached) " >&6
20143 lt_cv_prog_compiler_c_o_CXX
=no
20144 $RM -r conftest
2>/dev
/null
20148 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20150 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20151 # Insert the option either (1) after the last *FLAGS variable, or
20152 # (2) before a word containing "conftest.", or (3) at the end.
20153 # Note that $ac_compile itself does not contain backslashes and begins
20154 # with a dollar sign (not a hyphen), so the echo should work correctly.
20155 lt_compile
=`echo "$ac_compile" | $SED \
20156 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20157 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20158 -e 's:$: $lt_compiler_flag:'`
20159 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20160 (eval "$lt_compile" 2>out
/conftest.err
)
20162 cat out
/conftest.err
>&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20166 # The compiler can only warn and ignore the option if not recognized
20167 # So say no if there are warnings
20168 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20169 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20170 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20171 lt_cv_prog_compiler_c_o_CXX
=yes
20176 # SGI C++ compiler will create directory out/ii_files/ for
20177 # template instantiation
20178 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20179 $RM out
/* && rmdir out
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20186 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20191 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20192 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20193 $as_echo_n "(cached) " >&6
20195 lt_cv_prog_compiler_c_o_CXX
=no
20196 $RM -r conftest
2>/dev
/null
20200 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20202 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20203 # Insert the option either (1) after the last *FLAGS variable, or
20204 # (2) before a word containing "conftest.", or (3) at the end.
20205 # Note that $ac_compile itself does not contain backslashes and begins
20206 # with a dollar sign (not a hyphen), so the echo should work correctly.
20207 lt_compile
=`echo "$ac_compile" | $SED \
20208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20210 -e 's:$: $lt_compiler_flag:'`
20211 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20212 (eval "$lt_compile" 2>out
/conftest.err
)
20214 cat out
/conftest.err
>&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20218 # The compiler can only warn and ignore the option if not recognized
20219 # So say no if there are warnings
20220 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20221 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20222 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20223 lt_cv_prog_compiler_c_o_CXX
=yes
20228 # SGI C++ compiler will create directory out/ii_files/ for
20229 # template instantiation
20230 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20231 $RM out
/* && rmdir out
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20238 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20243 hard_links
="nottested"
20244 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20245 # do not overwrite the value of need_locks provided by the user
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20247 $as_echo_n "checking if we can lock with hard links... " >&6; }
20250 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20252 ln conftest.a conftest.b
2>&5 || hard_links
=no
20253 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20255 $as_echo "$hard_links" >&6; }
20256 if test "$hard_links" = no
; then
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20258 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20268 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20270 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20273 # If we're using GNU nm, then we don't want the "-C" option.
20274 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20275 # Also, AIX nm treats weak defined symbols like other global defined
20276 # symbols, whereas GNU nm marks them as "W".
20277 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20278 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'
20280 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'
20284 export_symbols_cmds_CXX
="$ltdll_cmds"
20286 cygwin
* | mingw
* | cegcc
*)
20287 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'
20290 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20293 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20296 $as_echo "$ld_shlibs_CXX" >&6; }
20297 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20299 with_gnu_ld_CXX
=$with_gnu_ld
20307 # Do we need to explicitly link libc?
20309 case "x$archive_cmds_need_lc_CXX" in
20311 # Assume -lc should be added
20312 archive_cmds_need_lc_CXX
=yes
20314 if test "$enable_shared" = yes && test "$GCC" = yes; then
20315 case $archive_cmds_CXX in
20317 # FIXME: we may have to deal with multi-command sequences.
20320 # Test whether the compiler implicitly links with -lc since on some
20321 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20322 # to ld, don't add -lc before -lgcc.
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20324 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20325 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20326 $as_echo_n "(cached) " >&6
20329 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20332 (eval $ac_compile) 2>&5
20334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20335 test $ac_status = 0; } 2>conftest.err
; then
20338 libobjs
=conftest.
$ac_objext
20340 wl
=$lt_prog_compiler_wl_CXX
20341 pic_flag
=$lt_prog_compiler_pic_CXX
20347 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20348 allow_undefined_flag_CXX
=
20349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20350 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20353 test $ac_status = 0; }
20355 lt_cv_archive_cmds_need_lc_CXX
=no
20357 lt_cv_archive_cmds_need_lc_CXX
=yes
20359 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20361 cat conftest.err
1>&5
20366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20367 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20368 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20439 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20441 library_names_spec
=
20442 libname_spec
='lib$name'
20446 postuninstall_cmds
=
20450 shlibpath_overrides_runpath
=unknown
20452 dynamic_linker
="$host_os ld.so"
20453 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20454 need_lib_prefix
=unknown
20455 hardcode_into_libs
=no
20457 # when you set need_version to no, make sure it does not cause -set_version
20458 # flags to be left without arguments
20459 need_version
=unknown
20464 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20465 shlibpath_var
=LIBPATH
20467 # AIX 3 has no versioning support, so we append a major version to the name.
20468 soname_spec
='${libname}${release}${shared_ext}$major'
20475 hardcode_into_libs
=yes
20476 if test "$host_cpu" = ia64
; then
20477 # AIX 5 supports IA64
20478 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20479 shlibpath_var
=LD_LIBRARY_PATH
20481 # With GCC up to 2.95.x, collect2 would create an import file
20482 # for dependence libraries. The import file would start with
20483 # the line `#! .'. This would cause the generated library to
20484 # depend on `.', always an invalid library. This was fixed in
20485 # development snapshots of GCC prior to 3.0.
20487 aix4 | aix4.
[01] | aix4.
[01].
*)
20488 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20490 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20493 can_build_shared
=no
20497 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20498 # soname into executable. Probably we can add versioning support to
20499 # collect2, so additional links can be useful in future.
20500 if test "$aix_use_runtimelinking" = yes; then
20501 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20502 # instead of lib<name>.a to let people know that these are not
20503 # typical AIX shared libraries.
20504 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20506 # We preserve .a as extension for shared libraries through AIX4.2
20507 # and later when we are not doing run time linking.
20508 library_names_spec
='${libname}${release}.a $libname.a'
20509 soname_spec
='${libname}${release}${shared_ext}$major'
20511 shlibpath_var
=LIBPATH
20518 # Since July 2007 AmigaOS4 officially supports .so libraries.
20519 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20520 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20523 library_names_spec
='$libname.ixlibrary $libname.a'
20524 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20525 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'
20531 library_names_spec
='${libname}${shared_ext}'
20532 dynamic_linker
="$host_os ld.so"
20533 shlibpath_var
=LIBRARY_PATH
20539 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20540 soname_spec
='${libname}${release}${shared_ext}$major'
20541 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20542 shlibpath_var
=LD_LIBRARY_PATH
20543 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20544 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20545 # the default ld.so.conf also contains /usr/contrib/lib and
20546 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20547 # libtool to hard-code these into programs
20550 cygwin
* | mingw
* | pw32
* | cegcc
*)
20551 version_type
=windows
20556 case $GCC,$host_os in
20557 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20558 library_names_spec
='$libname.dll.a'
20559 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20560 postinstall_cmds
='base_file=`basename \${file}`~
20561 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20562 dldir=$destdir/`dirname \$dlpath`~
20563 test -d \$dldir || mkdir -p \$dldir~
20564 $install_prog $dir/$dlname \$dldir/$dlname~
20565 chmod a+x \$dldir/$dlname~
20566 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20567 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20569 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20570 dlpath=$dir/\$dldll~
20572 shlibpath_overrides_runpath
=yes
20576 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20577 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20581 # MinGW DLLs use traditional 'lib' prefix
20582 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20585 # pw32 DLLs use 'pw' prefix rather than 'lib'
20586 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20592 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20595 dynamic_linker
='Win32 ld.exe'
20596 # FIXME: first we should search . and the directory the executable is in
20600 darwin
* | rhapsody
*)
20601 dynamic_linker
="$host_os dyld"
20602 version_type
=darwin
20605 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20606 soname_spec
='${libname}${release}${major}$shared_ext'
20607 shlibpath_overrides_runpath
=yes
20608 shlibpath_var
=DYLD_LIBRARY_PATH
20609 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20611 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20618 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20619 soname_spec
='${libname}${release}${shared_ext}$major'
20620 shlibpath_var
=LD_LIBRARY_PATH
20623 freebsd
* | dragonfly
*)
20624 # DragonFly does not have aout. When/if they implement a new
20625 # versioning mechanism, adjust this.
20626 if test -x /usr
/bin
/objformat
; then
20627 objformat
=`/usr/bin/objformat`
20630 freebsd
[23].
*) objformat
=aout
;;
20631 *) objformat
=elf
;;
20634 version_type
=freebsd-
$objformat
20635 case $version_type in
20637 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20642 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20646 shlibpath_var
=LD_LIBRARY_PATH
20649 shlibpath_overrides_runpath
=yes
20651 freebsd3.
[01]* | freebsdelf3.
[01]*)
20652 shlibpath_overrides_runpath
=yes
20653 hardcode_into_libs
=yes
20655 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20656 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20657 shlibpath_overrides_runpath
=no
20658 hardcode_into_libs
=yes
20660 *) # from 4.6 on, and DragonFly
20661 shlibpath_overrides_runpath
=yes
20662 hardcode_into_libs
=yes
20671 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20672 soname_spec
='${libname}${release}${shared_ext}$major'
20673 shlibpath_var
=LD_LIBRARY_PATH
20674 hardcode_into_libs
=yes
20681 dynamic_linker
="$host_os runtime_loader"
20682 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20683 soname_spec
='${libname}${release}${shared_ext}$major'
20684 shlibpath_var
=LIBRARY_PATH
20685 shlibpath_overrides_runpath
=yes
20686 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20687 hardcode_into_libs
=yes
20690 hpux9
* | hpux10
* | hpux11
*)
20691 # Give a soname corresponding to the major version so that dld.sl refuses to
20692 # link against other versions.
20699 hardcode_into_libs
=yes
20700 dynamic_linker
="$host_os dld.so"
20701 shlibpath_var
=LD_LIBRARY_PATH
20702 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20703 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20704 soname_spec
='${libname}${release}${shared_ext}$major'
20705 if test "X$HPUX_IA64_MODE" = X32
; then
20706 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20708 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20710 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20714 hardcode_into_libs
=yes
20715 dynamic_linker
="$host_os dld.sl"
20716 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20717 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20718 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20719 soname_spec
='${libname}${release}${shared_ext}$major'
20720 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20721 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20725 dynamic_linker
="$host_os dld.sl"
20726 shlibpath_var
=SHLIB_PATH
20727 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20728 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20729 soname_spec
='${libname}${release}${shared_ext}$major'
20732 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20733 postinstall_cmds
='chmod 555 $lib'
20734 # or fails outright, so override atomically:
20735 install_override_mode
=555
20742 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20743 soname_spec
='${libname}${release}${shared_ext}$major'
20744 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20745 shlibpath_var
=LD_LIBRARY_PATH
20746 shlibpath_overrides_runpath
=no
20747 hardcode_into_libs
=yes
20750 irix5
* | irix6
* | nonstopux
*)
20752 nonstopux
*) version_type
=nonstopux
;;
20754 if test "$lt_cv_prog_gnu_ld" = yes; then
20762 soname_spec
='${libname}${release}${shared_ext}$major'
20763 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20765 irix5
* | nonstopux
*)
20766 libsuff
= shlibsuff
=
20769 case $LD in # libtool.m4 will add one of these switches to LD
20770 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20771 libsuff
= shlibsuff
= libmagic
=32-bit;;
20772 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20773 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20774 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20775 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20776 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20780 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20781 shlibpath_overrides_runpath
=no
20782 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20783 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20784 hardcode_into_libs
=yes
20787 # No shared lib support for Linux oldld, aout, or coff.
20788 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20792 # This must be Linux ELF.
20793 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20797 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20798 soname_spec
='${libname}${release}${shared_ext}$major'
20799 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20800 shlibpath_var
=LD_LIBRARY_PATH
20801 shlibpath_overrides_runpath
=no
20803 # Some binutils ld are patched to set DT_RUNPATH
20804 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20805 $as_echo_n "(cached) " >&6
20807 lt_cv_shlibpath_overrides_runpath
=no
20808 save_LDFLAGS
=$LDFLAGS
20809 save_libdir
=$libdir
20810 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20811 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20813 /* end confdefs.h. */
20823 if ac_fn_cxx_try_link
"$LINENO"; then :
20824 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20825 lt_cv_shlibpath_overrides_runpath
=yes
20828 rm -f core conftest.err conftest.
$ac_objext \
20829 conftest
$ac_exeext conftest.
$ac_ext
20830 LDFLAGS
=$save_LDFLAGS
20831 libdir
=$save_libdir
20835 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20837 # This implies no fast_install, which is unacceptable.
20838 # Some rework will be needed to allow for fast_install
20839 # before this can be enabled.
20840 hardcode_into_libs
=yes
20842 # Append ld.so.conf contents to the search path
20843 if test -f /etc
/ld.so.conf
; then
20844 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' ' '`
20845 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20848 # We used to test for /lib/ld.so.1 and disable shared libraries on
20849 # powerpc, because MkLinux only supported shared libraries with the
20850 # GNU dynamic linker. Since this was broken with cross compilers,
20851 # most powerpc-linux boxes support dynamic linking these days and
20852 # people can always --disable-shared, the test was removed, and we
20853 # assume the GNU/Linux dynamic linker is in use.
20854 dynamic_linker
='GNU/Linux ld.so'
20861 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20862 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20863 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20864 dynamic_linker
='NetBSD (a.out) ld.so'
20866 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20867 soname_spec
='${libname}${release}${shared_ext}$major'
20868 dynamic_linker
='NetBSD ld.elf_so'
20870 shlibpath_var
=LD_LIBRARY_PATH
20871 shlibpath_overrides_runpath
=yes
20872 hardcode_into_libs
=yes
20877 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20878 shlibpath_var
=LD_LIBRARY_PATH
20879 shlibpath_overrides_runpath
=yes
20886 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20887 soname_spec
='${libname}${release}${shared_ext}$major'
20888 shlibpath_var
=LD_LIBRARY_PATH
20889 shlibpath_overrides_runpath
=no
20890 hardcode_into_libs
=yes
20891 dynamic_linker
='ldqnx.so'
20896 sys_lib_dlsearch_path_spec
="/usr/lib"
20898 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20900 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20901 *) need_version
=no
;;
20903 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20904 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20905 shlibpath_var
=LD_LIBRARY_PATH
20906 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20908 openbsd2.
[89] | openbsd2.
[89].
*)
20909 shlibpath_overrides_runpath
=no
20912 shlibpath_overrides_runpath
=yes
20916 shlibpath_overrides_runpath
=yes
20921 libname_spec
='$name'
20924 library_names_spec
='$libname${shared_ext} $libname.a'
20925 dynamic_linker
='OS/2 ld.exe'
20926 shlibpath_var
=LIBPATH
20929 osf3
* | osf4
* | osf5
*)
20933 soname_spec
='${libname}${release}${shared_ext}$major'
20934 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20935 shlibpath_var
=LD_LIBRARY_PATH
20936 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20937 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20948 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20949 soname_spec
='${libname}${release}${shared_ext}$major'
20950 shlibpath_var
=LD_LIBRARY_PATH
20951 shlibpath_overrides_runpath
=yes
20952 hardcode_into_libs
=yes
20953 # ldd complains unless libraries are executable
20954 postinstall_cmds
='chmod +x $lib'
20959 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20960 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20961 shlibpath_var
=LD_LIBRARY_PATH
20962 shlibpath_overrides_runpath
=yes
20963 if test "$with_gnu_ld" = yes; then
20971 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20972 soname_spec
='${libname}${release}${shared_ext}$major'
20973 shlibpath_var
=LD_LIBRARY_PATH
20974 case $host_vendor in
20976 shlibpath_overrides_runpath
=no
20978 runpath_var
=LD_RUN_PATH
20986 shlibpath_overrides_runpath
=no
20987 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20993 if test -d /usr
/nec
;then
20995 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20996 soname_spec
='$libname${shared_ext}.$major'
20997 shlibpath_var
=LD_LIBRARY_PATH
21001 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21002 version_type
=freebsd-elf
21005 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21006 soname_spec
='${libname}${release}${shared_ext}$major'
21007 shlibpath_var
=LD_LIBRARY_PATH
21008 shlibpath_overrides_runpath
=yes
21009 hardcode_into_libs
=yes
21010 if test "$with_gnu_ld" = yes; then
21011 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21013 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21016 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21020 sys_lib_dlsearch_path_spec
='/usr/lib'
21024 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21028 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21029 shlibpath_var
=LD_LIBRARY_PATH
21030 shlibpath_overrides_runpath
=no
21031 hardcode_into_libs
=yes
21036 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21037 soname_spec
='${libname}${release}${shared_ext}$major'
21038 shlibpath_var
=LD_LIBRARY_PATH
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21046 $as_echo "$dynamic_linker" >&6; }
21047 test "$dynamic_linker" = no
&& can_build_shared
=no
21049 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21050 if test "$GCC" = yes; then
21051 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21054 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21055 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21057 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21058 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21099 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21100 hardcode_action_CXX
=
21101 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21102 test -n "$runpath_var_CXX" ||
21103 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21105 # We can hardcode non-existent directories.
21106 if test "$hardcode_direct_CXX" != no
&&
21107 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21108 # have to relink, otherwise we might link with an installed library
21109 # when we should be linking with a yet-to-be-installed one
21110 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21111 test "$hardcode_minus_L_CXX" != no
; then
21112 # Linking always hardcodes the temporary library directory.
21113 hardcode_action_CXX
=relink
21115 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21116 hardcode_action_CXX
=immediate
21119 # We cannot hardcode anything, or else we can only hardcode existing
21121 hardcode_action_CXX
=unsupported
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21124 $as_echo "$hardcode_action_CXX" >&6; }
21126 if test "$hardcode_action_CXX" = relink ||
21127 test "$inherit_rpath_CXX" = yes; then
21128 # Fast installation is not supported
21129 enable_fast_install
=no
21130 elif test "$shlibpath_overrides_runpath" = yes ||
21131 test "$enable_shared" = no
; then
21132 # Fast installation is not necessary
21133 enable_fast_install
=needless
21142 fi # test -n "$compiler"
21148 with_gnu_ld
=$lt_save_with_gnu_ld
21149 lt_cv_path_LDCXX
=$lt_cv_path_LD
21150 lt_cv_path_LD
=$lt_save_path_LD
21151 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21152 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21153 fi # test "$_lt_caught_CXX_error" != yes
21156 ac_cpp
='$CPP $CPPFLAGS'
21157 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21158 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21159 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21176 # Only expand once:
21182 # Identify the assembler which will work hand-in-glove with the newly
21183 # built GCC, so that we can examine its features. This is the assembler
21184 # which will be driven by the driver program.
21186 # If build != host, and we aren't building gas in-tree, we identify a
21187 # build->target assembler and hope that it will have the same features
21188 # as the host->target assembler we'll be using.
21189 gcc_cv_gas_major_version
=
21190 gcc_cv_gas_minor_version
=
21191 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21193 if test "${gcc_cv_as+set}" = set; then :
21197 if test -x "$DEFAULT_ASSEMBLER"; then
21198 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21199 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21200 && test -f ..
/gas
/Makefile \
21201 && test x
$build = x
$host; then
21202 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21203 elif test -x as
$build_exeext; then
21204 # Build using assembler in the current directory.
21205 gcc_cv_as
=.
/as
$build_exeext
21206 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21207 gcc_cv_as
="$AS_FOR_TARGET"
21209 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21210 set dummy
$AS_FOR_TARGET; ac_word
=$2
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21212 $as_echo_n "checking for $ac_word... " >&6; }
21213 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21214 $as_echo_n "(cached) " >&6
21218 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21222 for as_dir
in $PATH
21225 test -z "$as_dir" && as_dir
=.
21226 for ac_exec_ext
in '' $ac_executable_extensions; do
21227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21228 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21239 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21240 if test -n "$gcc_cv_as"; then
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21242 $as_echo "$gcc_cv_as" >&6; }
21244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21245 $as_echo "no" >&6; }
21252 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21254 case "$ORIGINAL_AS_FOR_TARGET" in
21255 .
/as | .
/as
$build_exeext) ;;
21256 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21261 $as_echo_n "checking what assembler to use... " >&6; }
21262 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21263 # Single tree build which includes gas. We want to prefer it
21264 # over whatever linker top-level may have detected, since
21265 # we'll use what we're building after installation anyway.
21266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21267 $as_echo "newly built gas" >&6; }
21269 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21270 for f
in $gcc_cv_as_bfd_srcdir/configure \
21271 $gcc_cv_as_gas_srcdir/configure \
21272 $gcc_cv_as_gas_srcdir/configure.
in \
21273 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21274 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21275 if test x
$gcc_cv_gas_version != x
; then
21279 case $gcc_cv_gas_version in
21281 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21283 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21284 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21285 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21286 case $gcc_cv_gas_patch_version in
21287 "") gcc_cv_gas_patch_version
="0" ;;
21289 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21290 + $gcc_cv_gas_minor_version \) \* 1000 \
21291 + $gcc_cv_gas_patch_version`
21293 in_tree_gas_is_elf
=no
21294 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21295 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21296 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21298 in_tree_gas_is_elf
=yes
21301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21302 $as_echo "$gcc_cv_as" >&6; }
21306 # Identify the linker which will work hand-in-glove with the newly
21307 # built GCC, so that we can examine its features. This is the linker
21308 # which will be driven by the driver program.
21310 # If build != host, and we aren't building gas in-tree, we identify a
21311 # build->target linker and hope that it will have the same features
21312 # as the host->target linker we'll be using.
21313 gcc_cv_gld_major_version
=
21314 gcc_cv_gld_minor_version
=
21315 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21316 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21318 if test "${gcc_cv_ld+set}" = set; then :
21322 if test -x "$DEFAULT_LINKER"; then
21323 gcc_cv_ld
="$DEFAULT_LINKER"
21324 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21325 && test -f ..
/ld
/Makefile \
21326 && test x
$build = x
$host; then
21327 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21328 elif test -x collect-ld
$build_exeext; then
21329 # Build using linker in the current directory.
21330 gcc_cv_ld
=.
/collect-ld
$build_exeext
21331 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21332 gcc_cv_ld
="$LD_FOR_TARGET"
21334 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21335 set dummy
$LD_FOR_TARGET; ac_word
=$2
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21337 $as_echo_n "checking for $ac_word... " >&6; }
21338 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21339 $as_echo_n "(cached) " >&6
21343 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21347 for as_dir
in $PATH
21350 test -z "$as_dir" && as_dir
=.
21351 for ac_exec_ext
in '' $ac_executable_extensions; do
21352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21353 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21364 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21365 if test -n "$gcc_cv_ld"; then
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21367 $as_echo "$gcc_cv_ld" >&6; }
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21370 $as_echo "no" >&6; }
21377 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21378 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21379 # if the PLUGIN_LD is set ld-new, just have it as ld
21380 # as that is the installed named.
21381 if test x
$PLUGIN_LD_SUFFIX == xld-new \
21382 ||
test x
$PLUGIN_LD_SUFFIX == xcollect-ld
; then
21383 PLUGIN_LD_SUFFIX
=ld
21386 # Check whether --with-plugin-ld was given.
21387 if test "${with_plugin_ld+set}" = set; then :
21388 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21389 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21390 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21396 cat >>confdefs.h
<<_ACEOF
21397 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21401 # Check to see if we are using gold instead of ld
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21403 $as_echo_n "checking whether we are using gold... " >&6; }
21405 if test x
$gcc_cv_ld != x
; then
21406 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21407 |
grep "GNU gold" > /dev
/null
; then
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21412 $as_echo "$ld_is_gold" >&6; }
21414 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21416 case "$ORIGINAL_LD_FOR_TARGET" in
21417 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21418 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21423 $as_echo_n "checking what linker to use... " >&6; }
21424 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21425 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21426 # Single tree build which includes ld. We want to prefer it
21427 # over whatever linker top-level may have detected, since
21428 # we'll use what we're building after installation anyway.
21429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21430 $as_echo "newly built ld" >&6; }
21432 in_tree_ld_is_elf
=no
21433 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21434 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21435 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21436 in_tree_ld_is_elf
=yes
21437 elif test "$ld_is_gold" = yes; then
21438 in_tree_ld_is_elf
=yes
21440 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
21442 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21443 if test x
$gcc_cv_gld_version != x
; then
21447 case $gcc_cv_gld_version in
21449 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21451 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21452 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21455 $as_echo "$gcc_cv_ld" >&6; }
21459 # Figure out what nm we will be using.
21460 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21461 if test "${gcc_cv_nm+set}" = set; then :
21465 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21466 && test -f ..
/binutils
/Makefile \
21467 && test x
$build = x
$host; then
21468 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21469 elif test -x nm
$build_exeext; then
21470 gcc_cv_nm
=.
/nm
$build_exeext
21471 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21472 gcc_cv_nm
="$NM_FOR_TARGET"
21474 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21475 set dummy
$NM_FOR_TARGET; ac_word
=$2
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21477 $as_echo_n "checking for $ac_word... " >&6; }
21478 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21479 $as_echo_n "(cached) " >&6
21483 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21487 for as_dir
in $PATH
21490 test -z "$as_dir" && as_dir
=.
21491 for ac_exec_ext
in '' $ac_executable_extensions; do
21492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21493 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21504 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21505 if test -n "$gcc_cv_nm"; then
21506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21507 $as_echo "$gcc_cv_nm" >&6; }
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21510 $as_echo "no" >&6; }
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21518 $as_echo_n "checking what nm to use... " >&6; }
21519 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21520 # Single tree build which includes binutils.
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21522 $as_echo "newly built nm" >&6; }
21525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21526 $as_echo "$gcc_cv_nm" >&6; }
21530 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21532 case "$ORIGINAL_NM_FOR_TARGET" in
21533 .
/nm | .
/nm
$build_exeext) ;;
21534 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21539 # Figure out what objdump we will be using.
21540 if test "${gcc_cv_objdump+set}" = set; then :
21544 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21545 && test -f ..
/binutils
/Makefile \
21546 && test x
$build = x
$host; then
21547 # Single tree build which includes binutils.
21548 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21549 elif test -x objdump
$build_exeext; then
21550 gcc_cv_objdump
=.
/objdump
$build_exeext
21551 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21552 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21554 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21555 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21557 $as_echo_n "checking for $ac_word... " >&6; }
21558 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21559 $as_echo_n "(cached) " >&6
21561 case $gcc_cv_objdump in
21563 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21567 for as_dir
in $PATH
21570 test -z "$as_dir" && as_dir
=.
21571 for ac_exec_ext
in '' $ac_executable_extensions; do
21572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21573 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21584 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21585 if test -n "$gcc_cv_objdump"; then
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21587 $as_echo "$gcc_cv_objdump" >&6; }
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21590 $as_echo "no" >&6; }
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21598 $as_echo_n "checking what objdump to use... " >&6; }
21599 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21600 # Single tree build which includes binutils.
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21602 $as_echo "newly built objdump" >&6; }
21603 elif test x
$gcc_cv_objdump = x
; then
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21605 $as_echo "not found" >&6; }
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21608 $as_echo "$gcc_cv_objdump" >&6; }
21611 # Figure out what readelf we will be using.
21612 if test "${gcc_cv_readelf+set}" = set; then :
21616 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21617 && test -f ..
/binutils
/Makefile \
21618 && test x
$build = x
$host; then
21619 # Single tree build which includes binutils.
21620 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21621 elif test -x readelf
$build_exeext; then
21622 gcc_cv_readelf
=.
/readelf
$build_exeext
21624 # Extract the first word of "readelf", so it can be a program name with args.
21625 set dummy readelf
; ac_word
=$2
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21627 $as_echo_n "checking for $ac_word... " >&6; }
21628 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21629 $as_echo_n "(cached) " >&6
21631 case $gcc_cv_readelf in
21633 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21637 for as_dir
in $PATH
21640 test -z "$as_dir" && as_dir
=.
21641 for ac_exec_ext
in '' $ac_executable_extensions; do
21642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21643 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21654 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21655 if test -n "$gcc_cv_readelf"; then
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21657 $as_echo "$gcc_cv_readelf" >&6; }
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21660 $as_echo "no" >&6; }
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21668 $as_echo_n "checking what readelf to use... " >&6; }
21669 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21670 # Single tree build which includes binutils.
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21672 $as_echo "newly built readelf" >&6; }
21673 elif test x
$gcc_cv_readelf = x
; then
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21675 $as_echo "not found" >&6; }
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21678 $as_echo "$gcc_cv_readelf" >&6; }
21681 # Figure out what assembler alignment features are present.
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21683 $as_echo_n "checking assembler flags... " >&6; }
21684 if test "${gcc_cv_as_flags+set}" = set; then :
21685 $as_echo_n "(cached) " >&6
21688 i
[34567]86-*-linux*)
21689 gcc_cv_as_flags
="--32"
21691 powerpc
*-*-darwin*)
21692 gcc_cv_as_flags
="-arch ppc"
21695 gcc_cv_as_flags
=" "
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21700 $as_echo "$gcc_cv_as_flags" >&6; }
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21703 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21704 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21705 $as_echo_n "(cached) " >&6
21707 gcc_cv_as_balign_and_p2align
=no
21708 if test $in_tree_gas = yes; then
21709 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21710 then gcc_cv_as_balign_and_p2align
=yes
21712 elif test x
$gcc_cv_as != x
; then
21713 $as_echo '.balign 4
21714 .p2align 2' > conftest.s
21715 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21717 (eval $ac_try) 2>&5
21719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21720 test $ac_status = 0; }; }
21722 gcc_cv_as_balign_and_p2align
=yes
21724 echo "configure: failed program was" >&5
21727 rm -f conftest.o conftest.s
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21731 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21732 if test $gcc_cv_as_balign_and_p2align = yes; then
21734 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21739 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21740 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21741 $as_echo_n "(cached) " >&6
21743 gcc_cv_as_max_skip_p2align
=no
21744 if test $in_tree_gas = yes; then
21745 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21746 then gcc_cv_as_max_skip_p2align
=yes
21748 elif test x
$gcc_cv_as != x
; then
21749 $as_echo '.p2align 4,,7' > conftest.s
21750 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21752 (eval $ac_try) 2>&5
21754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21755 test $ac_status = 0; }; }
21757 gcc_cv_as_max_skip_p2align
=yes
21759 echo "configure: failed program was" >&5
21762 rm -f conftest.o conftest.s
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21766 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21767 if test $gcc_cv_as_max_skip_p2align = yes; then
21769 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21774 $as_echo_n "checking assembler for .literal16... " >&6; }
21775 if test "${gcc_cv_as_literal16+set}" = set; then :
21776 $as_echo_n "(cached) " >&6
21778 gcc_cv_as_literal16
=no
21779 if test $in_tree_gas = yes; then
21780 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21781 then gcc_cv_as_literal16
=yes
21783 elif test x
$gcc_cv_as != x
; then
21784 $as_echo '.literal16' > conftest.s
21785 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21787 (eval $ac_try) 2>&5
21789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21790 test $ac_status = 0; }; }
21792 gcc_cv_as_literal16
=yes
21794 echo "configure: failed program was" >&5
21797 rm -f conftest.o conftest.s
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21801 $as_echo "$gcc_cv_as_literal16" >&6; }
21802 if test $gcc_cv_as_literal16 = yes; then
21804 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21809 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21810 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21811 $as_echo_n "(cached) " >&6
21813 gcc_cv_as_subsection_m1
=no
21814 if test $in_tree_gas = yes; then
21815 if test $in_tree_gas_is_elf = yes \
21816 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21817 then gcc_cv_as_subsection_m1
=yes
21819 elif test x
$gcc_cv_as != x
; then
21820 $as_echo 'conftest_label1: .word 0
21822 conftest_label2: .word 0
21823 .previous' > conftest.s
21824 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21826 (eval $ac_try) 2>&5
21828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21829 test $ac_status = 0; }; }
21831 if test x
$gcc_cv_nm != x
; then
21832 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21833 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21834 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21836 else gcc_cv_as_subsection_m1
=yes
21838 rm -f conftest.nm1 conftest.nm2
21841 echo "configure: failed program was" >&5
21844 rm -f conftest.o conftest.s
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21848 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21849 if test $gcc_cv_as_subsection_m1 = yes; then
21851 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21856 $as_echo_n "checking assembler for .weak... " >&6; }
21857 if test "${gcc_cv_as_weak+set}" = set; then :
21858 $as_echo_n "(cached) " >&6
21861 if test $in_tree_gas = yes; then
21862 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21863 then gcc_cv_as_weak
=yes
21865 elif test x
$gcc_cv_as != x
; then
21866 $as_echo ' .weak foobar' > conftest.s
21867 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21869 (eval $ac_try) 2>&5
21871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21872 test $ac_status = 0; }; }
21876 echo "configure: failed program was" >&5
21879 rm -f conftest.o conftest.s
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21883 $as_echo "$gcc_cv_as_weak" >&6; }
21884 if test $gcc_cv_as_weak = yes; then
21886 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21891 $as_echo_n "checking assembler for .weakref... " >&6; }
21892 if test "${gcc_cv_as_weakref+set}" = set; then :
21893 $as_echo_n "(cached) " >&6
21895 gcc_cv_as_weakref
=no
21896 if test $in_tree_gas = yes; then
21897 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21898 then gcc_cv_as_weakref
=yes
21900 elif test x
$gcc_cv_as != x
; then
21901 $as_echo ' .weakref foobar, barfnot' > conftest.s
21902 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21904 (eval $ac_try) 2>&5
21906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21907 test $ac_status = 0; }; }
21909 gcc_cv_as_weakref
=yes
21911 echo "configure: failed program was" >&5
21914 rm -f conftest.o conftest.s
21917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21918 $as_echo "$gcc_cv_as_weakref" >&6; }
21919 if test $gcc_cv_as_weakref = yes; then
21921 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21926 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21927 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21928 $as_echo_n "(cached) " >&6
21930 gcc_cv_as_nsubspa_comdat
=no
21931 if test $in_tree_gas = yes; then
21932 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21933 then gcc_cv_as_nsubspa_comdat
=yes
21935 elif test x
$gcc_cv_as != x
; then
21936 $as_echo ' .SPACE $TEXT$
21937 .NSUBSPA $CODE$,COMDAT' > conftest.s
21938 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21940 (eval $ac_try) 2>&5
21942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21943 test $ac_status = 0; }; }
21945 gcc_cv_as_nsubspa_comdat
=yes
21947 echo "configure: failed program was" >&5
21950 rm -f conftest.o conftest.s
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21954 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21955 if test $gcc_cv_as_nsubspa_comdat = yes; then
21957 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21961 # .hidden needs to be supported in both the assembler and the linker,
21962 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21963 # This is irritatingly difficult to feature test for; we have to check the
21964 # date string after the version number. If we've got an in-tree
21965 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21967 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21969 $as_echo_n "checking assembler for .hidden... " >&6; }
21970 if test "${gcc_cv_as_hidden+set}" = set; then :
21971 $as_echo_n "(cached) " >&6
21973 gcc_cv_as_hidden
=no
21974 if test $in_tree_gas = yes; then
21975 if test $in_tree_gas_is_elf = yes \
21976 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21977 then gcc_cv_as_hidden
=yes
21979 elif test x
$gcc_cv_as != x
; then
21980 $as_echo ' .hidden foobar
21981 foobar:' > conftest.s
21982 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21984 (eval $ac_try) 2>&5
21986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21987 test $ac_status = 0; }; }
21990 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21991 # STV_HIDDEN, so disable .hidden support if so.
21992 case "${target}" in
21993 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
21994 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
21995 cat > conftest.s
<<EOF
22000 .set default,hidden
22002 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22003 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22004 grep '\.hidden default' > /dev
/null
; then
22005 gcc_cv_as_hidden
=no
22007 gcc_cv_as_hidden
=yes
22010 # Assume bug is present if objdump is missing.
22011 gcc_cv_as_hidden
=no
22015 gcc_cv_as_hidden
=yes
22019 echo "configure: failed program was" >&5
22022 rm -f conftest.o conftest.s
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22026 $as_echo "$gcc_cv_as_hidden" >&6; }
22028 case "${target}" in
22030 # Darwin as has some visibility support, though with a different syntax.
22031 gcc_cv_as_hidden
=yes
22035 # gnu_indirect_function type is an extension proposed at
22036 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22037 # selection of function implementation
22038 # Check whether --enable-gnu-indirect-function was given.
22039 if test "${enable_gnu_indirect_function+set}" = set; then :
22040 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22042 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22043 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22046 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22049 if test x
$enable_gnu_indirect_function = xyes
; then
22051 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22055 if test $in_tree_ld != yes ; then
22056 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22057 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22058 if test x
"$ld_is_gold" = xyes
; then
22059 # GNU gold --version looks like this:
22061 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22063 # We extract the binutils version which is more familiar and specific
22064 # than the gold version.
22065 ld_vers
=`echo $ld_ver | sed -n \
22066 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22068 # GNU ld --version looks like this:
22070 # GNU ld (GNU Binutils) 2.21.51.20110225
22071 ld_vers
=`echo $ld_ver | sed -n \
22072 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22074 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'`
22075 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22076 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22077 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22079 case "${target}" in
22081 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22084 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22085 # /usr/ccs/bin/ld has been configured.
22086 ld_ver
=`$gcc_cv_ld -V 2>&1`
22087 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22088 ld_vers
=`echo $ld_ver | sed -n \
22089 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22090 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22091 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22099 $as_echo_n "checking linker for .hidden support... " >&6; }
22100 if test "${gcc_cv_ld_hidden+set}" = set; then :
22101 $as_echo_n "(cached) " >&6
22103 if test $in_tree_ld = yes ; then
22104 gcc_cv_ld_hidden
=no
22105 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 \
22106 && test $in_tree_ld_is_elf = yes; then
22107 gcc_cv_ld_hidden
=yes
22110 gcc_cv_ld_hidden
=yes
22111 if test x
"$ld_is_gold" = xyes
; then
22113 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22114 case "${target}" in
22115 mmix-knuth-mmixware
)
22116 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22117 gcc_cv_ld_hidden
=no
22120 if test 0"$ld_date" -lt 20020404; then
22121 if test -n "$ld_date"; then
22122 # If there was date string, but was earlier than 2002-04-04, fail
22123 gcc_cv_ld_hidden
=no
22124 elif test -z "$ld_vers"; then
22125 # If there was no date string nor ld version number, something is wrong
22126 gcc_cv_ld_hidden
=no
22128 test -z "$ld_vers_patch" && ld_vers_patch
=0
22129 if test "$ld_vers_major" -lt 2; then
22130 gcc_cv_ld_hidden
=no
22131 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22132 gcc_cv_ld_hidden
="no"
22133 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22134 gcc_cv_ld_hidden
=no
22139 case "${target}" in
22141 # Darwin ld has some visibility support.
22142 gcc_cv_ld_hidden
=yes
22144 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22145 gcc_cv_ld_hidden
=yes
22147 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22148 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22149 # .symbolic was only added in Solaris 9 12/02.
22150 gcc_cv_ld_hidden
=yes
22153 gcc_cv_ld_hidden
=no
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22160 $as_echo "$gcc_cv_ld_hidden" >&6; }
22161 libgcc_visibility
=no
22164 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22165 libgcc_visibility
=yes
22167 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22172 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22173 gcc_cv_ld_ro_rw_mix
=unknown
22174 if test $in_tree_ld = yes ; then
22175 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 \
22176 && test $in_tree_ld_is_elf = yes; then
22177 gcc_cv_ld_ro_rw_mix
=read-write
22179 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22180 echo '.section myfoosect, "a"' > conftest1.s
22181 echo '.section myfoosect, "aw"' > conftest2.s
22182 echo '.byte 1' >> conftest2.s
22183 echo '.section myfoosect, "a"' > conftest3.s
22184 echo '.byte 0' >> conftest3.s
22185 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22186 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22187 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22188 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22189 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22190 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22191 | sed -e '/myfoosect/!d' -e N`
22192 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22193 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22194 gcc_cv_ld_ro_rw_mix
=read-only
22196 gcc_cv_ld_ro_rw_mix
=read-write
22200 rm -f conftest.
* conftest
[123].
*
22202 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22204 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22208 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22210 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22211 case "${target}" in
22214 # Solaris 2 ld -V output looks like this for a regular version:
22216 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22218 # but test versions add stuff at the end:
22220 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22222 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22223 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22224 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22225 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22226 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22227 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22233 # Check whether --enable-initfini-array was given.
22234 if test "${enable_initfini_array+set}" = set; then :
22235 enableval
=$enable_initfini_array;
22238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22239 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22240 if test "${gcc_cv_initfini_array+set}" = set; then :
22241 $as_echo_n "(cached) " >&6
22243 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22244 case "${target}" in
22246 if test "$cross_compiling" = yes; then :
22247 gcc_cv_initfini_array
=no
22249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22250 /* end confdefs.h. */
22253 #error Not an ELF OS
22255 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22256 if it can be used. */
22258 int main (void) { return x; }
22259 int foo (void) { x = 0; }
22260 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22263 if ac_fn_c_try_run
"$LINENO"; then :
22264 gcc_cv_initfini_array
=yes
22266 gcc_cv_initfini_array
=no
22268 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22269 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22273 gcc_cv_initfini_array
=no
22274 if test $in_tree_ld = yes ; then
22275 if test "$gcc_cv_gld_major_version" -eq 2 \
22276 -a "$gcc_cv_gld_minor_version" -ge 22 \
22277 -o "$gcc_cv_gld_major_version" -gt 2 \
22278 && test $in_tree_ld_is_elf = yes; then
22279 gcc_cv_initfini_array
=yes
22281 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22282 cat > conftest.s
<<\EOF
22283 .section .dtors
,"a",%progbits
22285 .byte
'A', 'A', 'A', 'A'
22286 .section .ctors
,"a",%progbits
22288 .byte
'B', 'B', 'B', 'B'
22289 .section .fini_array
.65530,"a",%progbits
22291 .byte
'C', 'C', 'C', 'C'
22292 .section .init_array
.65530,"a",%progbits
22294 .byte
'D', 'D', 'D', 'D'
22295 .section .dtors
.64528,"a",%progbits
22297 .byte
'E', 'E', 'E', 'E'
22298 .section .ctors
.64528,"a",%progbits
22300 .byte
'F', 'F', 'F', 'F'
22301 .section .fini_array
.01005,"a",%progbits
22303 .byte
'G', 'G', 'G', 'G'
22304 .section .init_array
.01005,"a",%progbits
22306 .byte
'H', 'H', 'H', 'H'
22311 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22312 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22313 && $gcc_cv_objdump -s -j .init_array conftest \
22314 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22315 && $gcc_cv_objdump -s -j .fini_array conftest \
22316 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22317 gcc_cv_initfini_array
=yes
22319 rm -f conftest conftest.
*
22321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22322 /* end confdefs.h. */
22325 # error Not an ELF OS
22327 #include <stdlib.h>
22328 #if defined __GLIBC_PREREQ
22329 # if __GLIBC_PREREQ (2, 4)
22331 # error GLIBC 2.4 required
22334 # if defined __sun__ && defined __svr4__
22335 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22337 # error The C library not known to support .init_array/.fini_array
22342 if ac_fn_c_try_cpp
"$LINENO"; then :
22345 gcc_cv_initfini_array
=no
22347 rm -f conftest.err conftest.
$ac_ext;;
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22351 $as_echo_n "checking cross compile... guessing... " >&6; }
22352 gcc_cv_initfini_array
=no
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22356 $as_echo "$gcc_cv_initfini_array" >&6; }
22357 enable_initfini_array
=$gcc_cv_initfini_array
22361 if test $enable_initfini_array = yes; then
22363 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22367 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22369 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22370 if test "${gcc_cv_as_leb128+set}" = set; then :
22371 $as_echo_n "(cached) " >&6
22373 gcc_cv_as_leb128
=no
22374 if test $in_tree_gas = yes; then
22375 if test $in_tree_gas_is_elf = yes \
22376 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22377 then gcc_cv_as_leb128
=yes
22379 elif test x
$gcc_cv_as != x
; then
22386 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22388 (eval $ac_try) 2>&5
22390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22391 test $ac_status = 0; }; }
22393 # GAS versions before 2.11 do not support uleb128,
22394 # despite appearing to.
22395 # ??? There exists an elf-specific test that will crash
22396 # the assembler. Perhaps it's better to figure out whether
22397 # arbitrary sections are supported and try the test.
22398 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22399 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22400 as_vers
=`echo $as_ver | sed -n \
22401 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22402 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22403 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22404 if test $as_major -eq 2 && test $as_minor -lt 11
22406 else gcc_cv_as_leb128
=yes
22410 echo "configure: failed program was" >&5
22413 rm -f conftest.o conftest.s
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22417 $as_echo "$gcc_cv_as_leb128" >&6; }
22418 if test $gcc_cv_as_leb128 = yes; then
22420 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22424 # Check if we have assembler support for unwind directives.
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22426 $as_echo_n "checking assembler for cfi directives... " >&6; }
22427 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22428 $as_echo_n "(cached) " >&6
22430 gcc_cv_as_cfi_directive
=no
22431 if test x
$gcc_cv_as != x
; then
22437 .cfi_escape 1, 2, 3, 4, 5
22438 .cfi_endproc' > conftest.s
22439 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22441 (eval $ac_try) 2>&5
22443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22444 test $ac_status = 0; }; }
22448 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22449 # read-only and read-write sections, we need to make sure that the
22450 # assembler used emits read-write .eh_frame sections.
22451 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22452 if test "x$gcc_cv_objdump" != x
; then
22453 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22454 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22455 gcc_cv_as_cfi_directive
=no
22458 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22459 # On Solaris/x86, make sure that GCC and gas agree on using
22460 # read-only .eh_frame sections for 64-bit.
22461 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22462 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22463 sed -e /.eh_frame
/!d
-e N | \
22464 grep READONLY
> /dev
/null
; then
22465 gcc_cv_as_cfi_directive
=yes
22467 gcc_cv_as_cfi_directive
=no
22471 gcc_cv_as_cfi_directive
=yes
22476 # no objdump, err on the side of caution
22477 gcc_cv_as_cfi_directive
=no
22480 gcc_cv_as_cfi_directive
=yes
22484 gcc_cv_as_cfi_directive
=yes
22488 echo "configure: failed program was" >&5
22491 rm -f conftest.o conftest.s
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22495 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22497 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22499 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22500 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22501 $as_echo_n "(cached) " >&6
22503 gcc_cv_as_cfi_advance_working
=no
22504 if test x
$gcc_cv_as != x
; then
22507 .cfi_adjust_cfa_offset 64
22509 .cfi_adjust_cfa_offset 128
22510 .cfi_endproc' > conftest.s
22511 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22513 (eval $ac_try) 2>&5
22515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22516 test $ac_status = 0; }; }
22519 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22520 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22521 gcc_cv_as_cfi_advance_working
=yes
22525 echo "configure: failed program was" >&5
22528 rm -f conftest.o conftest.s
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22532 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22535 # no objdump, err on the side of caution
22536 gcc_cv_as_cfi_advance_working
=no
22540 cat >>confdefs.h
<<_ACEOF
22541 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22542 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22548 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22549 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22550 $as_echo_n "(cached) " >&6
22552 gcc_cv_as_cfi_personality_directive
=no
22553 if test x
$gcc_cv_as != x
; then
22556 .cfi_personality 0, symbol
22557 .cfi_endproc' > conftest.s
22558 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22560 (eval $ac_try) 2>&5
22562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22563 test $ac_status = 0; }; }
22565 gcc_cv_as_cfi_personality_directive
=yes
22567 echo "configure: failed program was" >&5
22570 rm -f conftest.o conftest.s
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22574 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22577 cat >>confdefs.h
<<_ACEOF
22578 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22579 then echo 1; else echo 0; fi`
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22584 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22585 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22586 $as_echo_n "(cached) " >&6
22588 gcc_cv_as_cfi_sections_directive
=no
22589 if test x
$gcc_cv_as != x
; then
22591 .cfi_sections .debug_frame, .eh_frame
22593 .cfi_endproc' > conftest.s
22594 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22596 (eval $ac_try) 2>&5
22598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22599 test $ac_status = 0; }; }
22602 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22603 # Need to check that we generated the correct relocation for the
22604 # .debug_frame section. This was fixed for binutils 2.21.
22605 gcc_cv_as_cfi_sections_directive
=no
22606 if test "x$gcc_cv_objdump" != x
; then
22607 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22608 grep secrel
> /dev
/null
; then
22609 gcc_cv_as_cfi_sections_directive
=yes
22614 gcc_cv_as_cfi_sections_directive
=yes
22618 echo "configure: failed program was" >&5
22621 rm -f conftest.o conftest.s
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22625 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22629 cat >>confdefs.h
<<_ACEOF
22630 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22631 then echo 1; else echo 0; fi`
22635 # GAS versions up to and including 2.11.0 may mis-optimize
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22638 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22639 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22640 $as_echo_n "(cached) " >&6
22642 gcc_cv_as_eh_frame
=no
22643 if test $in_tree_gas = yes; then
22644 if test $in_tree_gas_is_elf = yes \
22645 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22646 then gcc_cv_as_eh_frame
=yes
22648 elif test x
$gcc_cv_as != x
; then
22655 .section .eh_frame,"aw",@progbits
22657 .4byte .LECIE1-.LSCIE1
22671 .4byte .LEFDE1-.LASFDE1
22673 .4byte .LASFDE1-__FRAME_BEGIN__
22680 .LEFDE1:' > conftest.s
22681 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22683 (eval $ac_try) 2>&5
22685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22686 test $ac_status = 0; }; }
22688 cat > conftest.lit
<<EOF
22689 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22690 0010 01000000 12000000 18000000 00000000 ................
22691 0020 08000000 04080000 0044 .........D
22693 cat > conftest.big
<<EOF
22694 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22695 0010 00000001 00000012 00000018 00000000 ................
22696 0020 00000008 04000000 0844 .........D
22698 # If the assembler didn't choke, and we can objdump,
22699 # and we got the correct data, then succeed.
22700 # The text in the here-document typically retains its unix-style line
22701 # endings, while the output of objdump will use host line endings.
22702 # Therefore, use diff -b for the comparisons.
22703 if test x
$gcc_cv_objdump != x \
22704 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22705 |
tail -3 > conftest.got \
22706 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22707 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22709 gcc_cv_as_eh_frame
=yes
22710 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22712 (eval $ac_try) 2>&5
22714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22715 test $ac_status = 0; }; }; then
22716 gcc_cv_as_eh_frame
=buggy
22718 # Uh oh, what do we do now?
22719 gcc_cv_as_eh_frame
=no
22722 echo "configure: failed program was" >&5
22725 rm -f conftest.o conftest.s
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22729 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22732 if test $gcc_cv_as_eh_frame = buggy
; then
22734 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22739 $as_echo_n "checking assembler for section merging support... " >&6; }
22740 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22741 $as_echo_n "(cached) " >&6
22743 gcc_cv_as_shf_merge
=no
22744 if test $in_tree_gas = yes; then
22745 if test $in_tree_gas_is_elf = yes \
22746 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22747 then gcc_cv_as_shf_merge
=yes
22749 elif test x
$gcc_cv_as != x
; then
22750 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22751 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22753 (eval $ac_try) 2>&5
22755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22756 test $ac_status = 0; }; }
22758 gcc_cv_as_shf_merge
=yes
22760 echo "configure: failed program was" >&5
22763 rm -f conftest.o conftest.s
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22767 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22769 if test $gcc_cv_as_shf_merge = no
; then
22770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22771 $as_echo_n "checking assembler for section merging support... " >&6; }
22772 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22773 $as_echo_n "(cached) " >&6
22775 gcc_cv_as_shf_merge
=no
22776 if test $in_tree_gas = yes; then
22777 if test $in_tree_gas_is_elf = yes \
22778 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22779 then gcc_cv_as_shf_merge
=yes
22781 elif test x
$gcc_cv_as != x
; then
22782 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22783 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22785 (eval $ac_try) 2>&5
22787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22788 test $ac_status = 0; }; }
22790 gcc_cv_as_shf_merge
=yes
22792 echo "configure: failed program was" >&5
22795 rm -f conftest.o conftest.s
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22799 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22803 cat >>confdefs.h
<<_ACEOF
22804 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22809 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22810 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22811 $as_echo_n "(cached) " >&6
22813 gcc_cv_as_comdat_group
=no
22814 if test $in_tree_gas = yes; then
22815 if test $in_tree_gas_is_elf = yes \
22816 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22817 then gcc_cv_as_comdat_group
=yes
22819 elif test x
$gcc_cv_as != x
; then
22820 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22821 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22823 (eval $ac_try) 2>&5
22825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22826 test $ac_status = 0; }; }
22828 gcc_cv_as_comdat_group
=yes
22830 echo "configure: failed program was" >&5
22833 rm -f conftest.o conftest.s
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22837 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22839 if test $gcc_cv_as_comdat_group = yes; then
22840 gcc_cv_as_comdat_group_percent
=no
22841 gcc_cv_as_comdat_group_group
=no
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22844 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22845 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22846 $as_echo_n "(cached) " >&6
22848 gcc_cv_as_comdat_group_percent
=no
22849 if test $in_tree_gas = yes; then
22850 if test $in_tree_gas_is_elf = yes \
22851 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22852 then gcc_cv_as_comdat_group_percent
=yes
22854 elif test x
$gcc_cv_as != x
; then
22855 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22856 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22858 (eval $ac_try) 2>&5
22860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22861 test $ac_status = 0; }; }
22863 gcc_cv_as_comdat_group_percent
=yes
22865 echo "configure: failed program was" >&5
22868 rm -f conftest.o conftest.s
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22872 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22874 if test $gcc_cv_as_comdat_group_percent = yes; then
22875 gcc_cv_as_comdat_group_group
=no
22877 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22878 gcc_cv_as_comdat_group_group
=no
22880 case "${target}" in
22881 # Sun as uses a completely different syntax.
22883 case "${target}" in
22884 sparc
*-*-solaris2*)
22886 .group foo,".text%foo",#comdat
22887 .section ".text%foo", #alloc,#execinstr,#progbits
22892 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22894 .group foo,.text%foo,#comdat
22895 .section .text%foo, "ax", @progbits
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22902 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22903 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22904 $as_echo_n "(cached) " >&6
22906 gcc_cv_as_comdat_group_group
=no
22907 if test x
$gcc_cv_as != x
; then
22908 $as_echo "$conftest_s" > conftest.s
22909 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22911 (eval $ac_try) 2>&5
22913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22914 test $ac_status = 0; }; }
22916 gcc_cv_as_comdat_group_group
=yes
22918 echo "configure: failed program was" >&5
22921 rm -f conftest.o conftest.s
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22925 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22931 if test x
"$ld_is_gold" = xyes
; then
22933 elif test $in_tree_ld = yes ; then
22935 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 \
22936 && test $in_tree_ld_is_elf = yes; then
22939 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22941 if test 0"$ld_date" -lt 20050308; then
22942 if test -n "$ld_date"; then
22943 # If there was date string, but was earlier than 2005-03-08, fail
22945 elif test "$ld_vers_major" -lt 2; then
22947 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22952 case "${target}" in
22953 *-*-solaris2.1
[1-9]*)
22955 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22956 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22959 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22960 # least ld version 1.2267.
22961 if test "$ld_vers_major" -gt 1; then
22963 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
22965 elif test "$ld_vers_minor" -ge 2267; then
22970 # Assume linkers other than GNU ld don't support COMDAT group.
22975 # Allow overriding the automatic COMDAT group tests above.
22976 # Check whether --enable-comdat was given.
22977 if test "${enable_comdat+set}" = set; then :
22978 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
22981 if test $comdat_group = no
; then
22982 gcc_cv_as_comdat_group
=no
22983 gcc_cv_as_comdat_group_percent
=no
22984 gcc_cv_as_comdat_group_group
=no
22987 cat >>confdefs.h
<<_ACEOF
22988 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22989 || test $gcc_cv_as_comdat_group_percent = yes \
22990 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22995 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22996 if test "${gcc_cv_as_discriminator+set}" = set; then :
22997 $as_echo_n "(cached) " >&6
22999 gcc_cv_as_discriminator
=no
23000 if test $in_tree_gas = yes; then
23001 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23002 then gcc_cv_as_discriminator
=yes
23004 elif test x
$gcc_cv_as != x
; then
23007 .loc 1 1 0 discriminator 1' > conftest.s
23008 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23010 (eval $ac_try) 2>&5
23012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23013 test $ac_status = 0; }; }
23015 gcc_cv_as_discriminator
=yes
23017 echo "configure: failed program was" >&5
23020 rm -f conftest.o conftest.s
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23024 $as_echo "$gcc_cv_as_discriminator" >&6; }
23025 if test $gcc_cv_as_discriminator = yes; then
23027 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23031 # Thread-local storage - the check is heavily parameterized.
23039 .section ".tdata","awT",@progbits
23042 ldq $27,__tls_get_addr($29) !literal!1
23043 lda $16,foo($29) !tlsgd!1
23044 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23045 ldq $27,__tls_get_addr($29) !literal!2
23046 lda $16,foo($29) !tlsldm!2
23047 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23048 ldq $1,foo($29) !gotdtprel
23049 ldah $2,foo($29) !dtprelhi
23050 lda $3,foo($2) !dtprello
23051 lda $4,foo($29) !dtprel
23052 ldq $1,foo($29) !gottprel
23053 ldah $2,foo($29) !tprelhi
23054 lda $3,foo($2) !tprello
23055 lda $4,foo($29) !tprel'
23058 tls_as_opt
=--fatal-warnings
23060 cris-
*-*|crisv32-
*-*)
23062 .section ".tdata","awT",@progbits
23069 tls_as_opt
=--fatal-warnings
23073 .section ".tdata","awT",@progbits
23076 call #gettlsoff(x)'
23085 .section ".tdata","awT",@progbits
23089 addil LT%foo-$tls_gdidx$,gp
23090 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23093 addil LT%foo-$tls_ldidx$,gp
23095 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23096 addil LR%foo-$tls_dtpoff$,%ret0
23097 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23099 addil LT%foo-$tls_ieoff$,gp
23100 ldw RT%foo-$tls_ieoff$(%r1),%t2
23103 addil LR%foo-$tls_leoff$,%t1
23104 ldo RR%foo-$tls_leoff$(%r1),%t2'
23107 tls_as_opt
=--fatal-warnings
23111 .section ".tdata","awT",%progbits
23114 .word foo(gottpoff)
23122 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23124 i
[34567]86-*-solaris2.
*)
23126 tga_func
=___tls_get_addr
23128 x86_64-
*-solaris2.1
[0-9]*)
23130 tga_func
=__tls_get_addr
23136 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23138 .section .tdata,"awt",@progbits'
23142 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23146 .section ".tdata","awT",@progbits'
23149 tls_as_opt
="--fatal-warnings"
23151 conftest_s
="$conftest_s
23155 leal foo@tlsgd(,%ebx,1), %eax
23156 leal foo@tlsldm(%ebx), %eax
23157 leal foo@dtpoff(%eax), %edx
23158 movl foo@gottpoff(%ebx), %eax
23159 subl foo@gottpoff(%ebx), %eax
23160 addl foo@gotntpoff(%ebx), %eax
23161 movl foo@indntpoff, %eax
23162 movl \$foo@tpoff, %eax
23163 subl \$foo@tpoff, %eax
23164 leal foo@ntpoff(%ecx), %eax"
23168 .section ".tdata","awT",@progbits
23172 leaq foo@TLSGD(%rip), %rdi
23173 leaq foo@TLSLD(%rip), %rdi
23174 leaq foo@DTPOFF(%rax), %rdx
23175 movq foo@GOTTPOFF(%rip), %rax
23176 movq $foo@TPOFF, %rax'
23179 tls_as_opt
=--fatal-warnings
23183 .section ".tdata","awT",@progbits
23186 addl r16 = @ltoff(@dtpmod(foo#)), gp
23187 addl r17 = @ltoff(@dtprel(foo#)), gp
23188 addl r18 = @ltoff(@tprel(foo#)), gp
23189 addl r19 = @dtprel(foo#), gp
23190 adds r21 = @dtprel(foo#), r13
23191 movl r23 = @dtprel(foo#)
23192 addl r20 = @tprel(foo#), gp
23193 adds r22 = @tprel(foo#), r13
23194 movl r24 = @tprel(foo#)'
23197 tls_as_opt
=--fatal-warnings
23201 .section .tdata,"awT",@progbits
23205 addiu $4, $28, %tlsgd(x)
23206 addiu $4, $28, %tlsldm(x)
23207 lui $4, %dtprel_hi(x)
23208 addiu $4, $4, %dtprel_lo(x)
23209 lw $4, %gottprel(x)($28)
23210 lui $4, %tprel_hi(x)
23211 addiu $4, $4, %tprel_lo(x)'
23214 tls_as_opt
='-32 --fatal-warnings'
23218 .section .tdata,"awT",@progbits
23223 move.l x@TLSGD(%a5),%a0
23224 move.l x@TLSLDM(%a5),%a0
23225 move.l x@TLSLDO(%a5),%a0
23226 move.l x@TLSIE(%a5),%a0
23227 move.l x@TLSLE(%a5),%a0'
23230 tls_as_opt
='--fatal-warnings'
23234 .section ".tdata","awT",%progbits
23238 add x0, x0, #:tlsgd_lo12:x
23243 tls_as_opt
='--fatal-warnings'
23247 .section ".tdata","awT",@progbits
23255 addi 3,31,ld0@got@tlsgd
23257 addi 3,31,x1@got@tlsld
23260 addis 9,3,x2@dtprel@ha
23261 addi 9,9,x2@dtprel@l
23262 lwz 9,x3@got@tprel(31)
23265 addis 9,2,x2@tprel@ha
23266 addi 9,9,x2@tprel@l'
23269 tls_as_opt
="-a32 --fatal-warnings"
23273 .section ".tdata","awT",@progbits
23281 addi 3,2,ld0@got@tlsgd
23287 addi 3,2,x1@got@tlsld
23293 addis 9,3,x2@dtprel@ha
23294 addi 9,9,x2@dtprel@l
23297 ld 9,x3@got@dtprel(2)
23303 tls_as_opt
="-a64 --fatal-warnings"
23307 .section ".tdata","awT",@progbits
23314 .long foo@GOTNTPOFF
23315 .long foo@INDNTPOFF
23316 l %r1,foo@GOTNTPOFF(%r12)
23317 l %r1,0(%r1):tls_load:foo
23318 bas %r14,0(%r1,%r13):tls_gdcall:foo
23319 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23322 tls_as_opt
="-m31 --fatal-warnings"
23326 .section ".tdata","awT",@progbits
23333 .quad foo@GOTNTPOFF
23334 lg %r1,foo@GOTNTPOFF(%r12)
23335 larl %r1,foo@INDNTPOFF
23336 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23337 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23340 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23342 sh-
*-* | sh
[34]-*-*)
23344 .section ".tdata","awT",@progbits
23354 tls_as_opt
=--fatal-warnings
23358 sparc
*-sun-solaris2.
*)
23360 tga_func
=__tls_get_addr
23366 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23368 .section ".tdata",#alloc,#write,#tls'
23373 .section ".tdata","awT",@progbits'
23376 tls_as_opt
="-32 --fatal-warnings"
23378 conftest_s
="$conftest_s
23381 sethi %tgd_hi22(foo), %o0
23382 add %o0, %tgd_lo10(foo), %o1
23383 add %l7, %o1, %o0, %tgd_add(foo)
23384 call __tls_get_addr, %tgd_call(foo)
23385 sethi %tldm_hi22(foo), %l1
23386 add %l1, %tldm_lo10(foo), %l2
23387 add %l7, %l2, %o0, %tldm_add(foo)
23388 call __tls_get_addr, %tldm_call(foo)
23389 sethi %tldo_hix22(foo), %l3
23390 xor %l3, %tldo_lox10(foo), %l4
23391 add %o0, %l4, %l5, %tldo_add(foo)
23392 sethi %tie_hi22(foo), %o3
23393 add %o3, %tie_lo10(foo), %o3
23394 ld [%l7 + %o3], %o2, %tie_ld(foo)
23395 add %g7, %o2, %o4, %tie_add(foo)
23396 sethi %tle_hix22(foo), %l1
23397 xor %l1, %tle_lox10(foo), %o5
23398 ld [%g7 + %o5], %o1"
23402 .section ".tdata","awT",@progbits
23405 addli r0, zero, tls_gd(foo)
23406 auli r0, zero, tls_gd_ha16(foo)
23407 addli r0, r0, tls_gd_lo16(foo)
23409 addli r0, zero, tls_ie(foo)
23410 auli r0, r0, tls_ie_ha16(foo)
23411 addli r0, r0, tls_ie_lo16(foo)'
23414 tls_as_opt
="--fatal-warnings"
23418 .section ".tdata","awT",@progbits
23421 shl16insli r0, zero, hw0_last_tls_gd(foo)
23422 shl16insli r0, zero, hw1_last_tls_gd(foo)
23423 shl16insli r0, r0, hw0_tls_gd(foo)
23425 shl16insli r0, zero, hw1_last_tls_ie(foo)
23426 shl16insli r0, r0, hw0_tls_ie(foo)'
23429 tls_as_opt
="--fatal-warnings"
23433 .section ".tdata","awT",@progbits
23436 movi a8, foo@TLSFUNC
23437 movi a10, foo@TLSARG
23438 callx8.tls a8, foo@TLSCALL'
23444 if test "x$enable_tls" = xno
; then
23445 : # TLS explicitly disabled.
23446 elif test "x$enable_tls" = xyes
; then
23447 set_have_as_tls
=yes # TLS explicitly enabled.
23448 elif test -z "$tls_first_major"; then
23449 : # If we don't have a check, assume no support.
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23452 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23453 if test "${gcc_cv_as_tls+set}" = set; then :
23454 $as_echo_n "(cached) " >&6
23457 if test $in_tree_gas = yes; then
23458 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23459 then gcc_cv_as_tls
=yes
23461 elif test x
$gcc_cv_as != x
; then
23462 $as_echo "$conftest_s" > conftest.s
23463 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23465 (eval $ac_try) 2>&5
23467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23468 test $ac_status = 0; }; }
23472 echo "configure: failed program was" >&5
23475 rm -f conftest.o conftest.s
23478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23479 $as_echo "$gcc_cv_as_tls" >&6; }
23480 if test $gcc_cv_as_tls = yes; then
23481 set_have_as_tls
=yes
23485 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23486 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23487 # Sun style that Sun ld and GCC don't support any longer.
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23490 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23492 # Check ld and ld.so.1 TLS support.
23493 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23494 # Assume all interesting versions of GNU ld have TLS support.
23495 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23499 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23501 min_tls_ld_vers_minor
=374
23503 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23504 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23505 min_tls_ld_vers_minor
=343
23508 if test "$ld_vers_major" -gt 1 || \
23509 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23516 $as_echo "$ld_tls_support" >&6; }
23519 save_LDFLAGS
="$LDFLAGS"
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23524 $as_echo_n "checking library containing $tga_func... " >&6; }
23525 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23526 # (32-bit x86) only lived in libthread, so check for that. Keep
23527 # set_have_as_tls if found, disable if not.
23528 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23530 $as_echo_n "checking for library containing $tga_func... " >&6; }
23531 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23532 $as_echo_n "(cached) " >&6
23534 ac_func_search_save_LIBS
=$LIBS
23535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23536 /* end confdefs.h. */
23538 /* Override any GCC internal prototype to avoid an error.
23539 Use char because int might match the return type of a GCC
23540 builtin and then its argument prototype would still apply. */
23548 return $tga_func ();
23553 for ac_lib
in '' thread
; do
23554 if test -z "$ac_lib"; then
23555 ac_res
="none required"
23558 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23560 if ac_fn_c_try_link
"$LINENO"; then :
23561 eval "$as_ac_Search=\$ac_res"
23563 rm -f core conftest.err conftest.
$ac_objext \
23565 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23569 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23572 eval "$as_ac_Search=no"
23574 rm conftest.
$ac_ext
23575 LIBS
=$ac_func_search_save_LIBS
23577 eval ac_res
=\$
$as_ac_Search
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23579 $as_echo "$ac_res" >&6; }
23580 eval ac_res
=\$
$as_ac_Search
23581 if test "$ac_res" != no
; then :
23582 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23588 # Clear LIBS if we cannot support TLS.
23589 if test $set_have_as_tls = no
; then
23592 # Always define LIB_TLS_SPEC, even without TLS support.
23594 cat >>confdefs.h
<<_ACEOF
23595 #define LIB_TLS_SPEC "$LIBS"
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23599 $as_echo "$LIBS" >&6; }
23602 LDFLAGS
="$save_LDFLAGS"
23605 if test $set_have_as_tls = yes ; then
23607 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23611 # Target-specific assembler checks.
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23614 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23615 gcc_cv_ld_static_dynamic
=no
23616 gcc_cv_ld_static_option
='-Bstatic'
23617 gcc_cv_ld_dynamic_option
='-Bdynamic'
23618 if test $in_tree_ld = yes ; then
23619 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
23620 gcc_cv_ld_static_dynamic
=yes
23622 elif test x
$gcc_cv_ld != x
; then
23623 # Check if linker supports -Bstatic/-Bdynamic option
23624 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23625 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23626 gcc_cv_ld_static_dynamic
=yes
23629 # HP-UX ld uses -a flags to select between shared and archive.
23631 if test x
"$gnu_ld" = xno
; then
23632 gcc_cv_ld_static_dynamic
=yes
23633 gcc_cv_ld_static_option
="-aarchive_shared"
23634 gcc_cv_ld_dynamic_option
="-adefault"
23637 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23639 gcc_cv_ld_static_dynamic
=yes
23644 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23646 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23649 cat >>confdefs.h
<<_ACEOF
23650 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23654 cat >>confdefs.h
<<_ACEOF
23655 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23660 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23662 if test x
"$demangler_in_ld" = xyes
; then
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23664 $as_echo_n "checking linker --demangle support... " >&6; }
23665 gcc_cv_ld_demangle
=no
23666 if test $in_tree_ld = yes; then
23667 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 \
23668 gcc_cv_ld_demangle
=yes
23670 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23671 # Check if the GNU linker supports --demangle option
23672 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23673 gcc_cv_ld_demangle
=yes
23676 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23678 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23682 $as_echo "$gcc_cv_ld_demangle" >&6; }
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23686 $as_echo_n "checking linker plugin support... " >&6; }
23687 gcc_cv_lto_plugin
=0
23688 if test -f liblto_plugin.la
; then
23689 save_ld_ver
="$ld_ver"
23690 save_ld_vers_major
="$ld_vers_major"
23691 save_ld_vers_minor
="$ld_vers_minor"
23692 save_ld_is_gold
="$ld_is_gold"
23696 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23698 # FIXME: ld_is_gold?
23699 ld_vers_major
="$gcc_cv_gld_major_version"
23700 ld_vers_minor
="$gcc_cv_gld_minor_version"
23702 # Determine plugin linker version.
23703 # FIXME: Partial duplicate from above, generalize.
23704 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23705 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23706 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23708 ld_vers
=`echo $ld_ver | sed -n \
23709 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23711 ld_vers
=`echo $ld_ver | sed -n \
23712 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23714 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23715 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23719 # Determine plugin support.
23720 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23721 # Require GNU ld or gold 2.21+ for plugin support by default.
23722 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23723 gcc_cv_lto_plugin
=2
23724 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23725 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23726 gcc_cv_lto_plugin
=1
23730 ld_ver
="$save_ld_ver"
23731 ld_vers_major
="$save_ld_vers_major"
23732 ld_vers_minor
="$save_ld_vers_minor"
23733 ld_is_gold
="$save_ld_is_gold"
23736 cat >>confdefs.h
<<_ACEOF
23737 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23741 $as_echo "$gcc_cv_lto_plugin" >&6; }
23744 # All TARGET_ABI_OSF targets.
23745 alpha
*-*-linux* | alpha
*-*-*bsd
*)
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23747 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23748 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23749 $as_echo_n "(cached) " >&6
23751 gcc_cv_as_alpha_explicit_relocs
=no
23752 if test $in_tree_gas = yes; then
23753 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23754 then gcc_cv_as_alpha_explicit_relocs
=yes
23756 elif test x
$gcc_cv_as != x
; then
23757 $as_echo ' .set nomacro
23759 extbl $3, $2, $3 !lituse_bytoff!1
23760 ldq $2, a($29) !literal!1
23761 ldq $4, b($29) !literal!2
23762 ldq_u $3, 0($2) !lituse_base!1
23763 ldq $27, f($29) !literal!5
23764 jsr $26, ($27), f !lituse_jsr!5
23765 ldah $29, 0($26) !gpdisp!3
23766 lda $0, c($29) !gprel
23767 ldah $1, d($29) !gprelhigh
23768 lda $1, d($1) !gprellow
23769 lda $29, 0($29) !gpdisp!3' > conftest.s
23770 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23772 (eval $ac_try) 2>&5
23774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23775 test $ac_status = 0; }; }
23777 gcc_cv_as_alpha_explicit_relocs
=yes
23779 echo "configure: failed program was" >&5
23782 rm -f conftest.o conftest.s
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23786 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23787 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23789 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23793 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23794 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23795 $as_echo_n "(cached) " >&6
23797 gcc_cv_as_alpha_jsrdirect_relocs
=no
23798 if test $in_tree_gas = yes; then
23799 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23800 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23802 elif test x
$gcc_cv_as != x
; then
23803 $as_echo ' .set nomacro
23805 ldq $27, a($29) !literal!1
23806 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23807 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23809 (eval $ac_try) 2>&5
23811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23812 test $ac_status = 0; }; }
23814 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23816 echo "configure: failed program was" >&5
23819 rm -f conftest.o conftest.s
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23823 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23824 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23826 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23833 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23834 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23835 $as_echo_n "(cached) " >&6
23837 gcc_cv_as_cris_no_mul_bug
=no
23838 if test $in_tree_gas = yes; then
23839 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23840 then gcc_cv_as_cris_no_mul_bug
=yes
23842 elif test x
$gcc_cv_as != x
; then
23843 $as_echo '.text' > conftest.s
23844 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23846 (eval $ac_try) 2>&5
23848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23849 test $ac_status = 0; }; }
23851 gcc_cv_as_cris_no_mul_bug
=yes
23853 echo "configure: failed program was" >&5
23856 rm -f conftest.o conftest.s
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23860 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23861 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23863 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23870 $as_echo_n "checking assembler for .register... " >&6; }
23871 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23872 $as_echo_n "(cached) " >&6
23874 gcc_cv_as_sparc_register_op
=no
23875 if test x
$gcc_cv_as != x
; then
23876 $as_echo '.register %g2, #scratch' > conftest.s
23877 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23879 (eval $ac_try) 2>&5
23881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23882 test $ac_status = 0; }; }
23884 gcc_cv_as_sparc_register_op
=yes
23886 echo "configure: failed program was" >&5
23889 rm -f conftest.o conftest.s
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23893 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23894 if test $gcc_cv_as_sparc_register_op = yes; then
23896 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23901 $as_echo_n "checking assembler for -relax option... " >&6; }
23902 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23903 $as_echo_n "(cached) " >&6
23905 gcc_cv_as_sparc_relax
=no
23906 if test x
$gcc_cv_as != x
; then
23907 $as_echo '.text' > conftest.s
23908 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23910 (eval $ac_try) 2>&5
23912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23913 test $ac_status = 0; }; }
23915 gcc_cv_as_sparc_relax
=yes
23917 echo "configure: failed program was" >&5
23920 rm -f conftest.o conftest.s
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23924 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23925 if test $gcc_cv_as_sparc_relax = yes; then
23927 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23932 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23933 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23934 $as_echo_n "(cached) " >&6
23936 gcc_cv_as_sparc_gotdata_op
=no
23937 if test x
$gcc_cv_as != x
; then
23943 sethi %gdop_hix22(foo), %g1
23944 xor %g1, %gdop_lox10(foo), %g1
23945 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23946 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23948 (eval $ac_try) 2>&5
23950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23951 test $ac_status = 0; }; }
23953 if test x
$gcc_cv_ld != x \
23954 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23955 if test x
$gcc_cv_objdump != x
; then
23956 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
23957 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
23958 gcc_cv_as_sparc_gotdata_op
=no
23960 gcc_cv_as_sparc_gotdata_op
=yes
23966 echo "configure: failed program was" >&5
23969 rm -f conftest.o conftest.s
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23973 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23974 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23976 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23981 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23982 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23983 $as_echo_n "(cached) " >&6
23985 gcc_cv_as_sparc_ua_pcrel
=no
23986 if test x
$gcc_cv_as != x
; then
23993 .uaword %r_disp32(foo)' > conftest.s
23994 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23996 (eval $ac_try) 2>&5
23998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23999 test $ac_status = 0; }; }
24001 if test x
$gcc_cv_ld != x \
24002 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24003 gcc_cv_as_sparc_ua_pcrel
=yes
24007 echo "configure: failed program was" >&5
24010 rm -f conftest.o conftest.s
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24014 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24015 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24017 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24021 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24022 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24023 $as_echo_n "(cached) " >&6
24025 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24026 if test x
$gcc_cv_as != x
; then
24030 .uaword %r_disp32(foo)
24031 .byte 0x32, 0x33, 0x34
24035 .skip 4' > conftest.s
24036 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24038 (eval $ac_try) 2>&5
24040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24041 test $ac_status = 0; }; }
24043 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24044 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24045 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24046 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24047 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24048 |
grep 'DISP32' > /dev
/null
2>&1; then
24051 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24056 echo "configure: failed program was" >&5
24059 rm -f conftest.o conftest.s
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24063 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24064 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24066 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24070 fi # unaligned pcrel relocs
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24073 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24074 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24075 $as_echo_n "(cached) " >&6
24077 gcc_cv_as_sparc_offsetable_lo10
=no
24078 if test x
$gcc_cv_as != x
; then
24080 or %g1, %lo(ab) + 12, %g1
24081 or %g1, %lo(ab + 12), %g1' > conftest.s
24082 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24084 (eval $ac_try) 2>&5
24086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24087 test $ac_status = 0; }; }
24089 if test x
$gcc_cv_objdump != x \
24090 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24091 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24092 gcc_cv_as_sparc_offsetable_lo10
=yes
24095 echo "configure: failed program was" >&5
24098 rm -f conftest.o conftest.s
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24102 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24103 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24105 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24110 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24111 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24112 $as_echo_n "(cached) " >&6
24114 gcc_cv_as_sparc_fmaf
=no
24115 if test x
$gcc_cv_as != x
; then
24117 .register %g2, #scratch
24118 .register %g3, #scratch
24120 fmaddd %f0, %f2, %f4, %f6
24121 addxccc %g1, %g2, %g3
24122 fsrl32 %f2, %f4, %f8
24123 fnaddd %f10, %f12, %f14' > conftest.s
24124 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24126 (eval $ac_try) 2>&5
24128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24129 test $ac_status = 0; }; }
24131 gcc_cv_as_sparc_fmaf
=yes
24133 echo "configure: failed program was" >&5
24136 rm -f conftest.o conftest.s
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24140 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24141 if test $gcc_cv_as_sparc_fmaf = yes; then
24143 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24148 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24149 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24150 $as_echo_n "(cached) " >&6
24152 gcc_cv_as_sparc_sparc4
=no
24153 if test x
$gcc_cv_as != x
; then
24155 .register %g2, #scratch
24156 .register %g3, #scratch
24159 1: cwbneg %g2, %g3, 1f
24162 aes_kexpand0 %f4, %f6, %f8
24163 des_round %f38, %f40, %f42, %f44
24164 camellia_f %f54, %f56, %f58, %f60
24165 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24166 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24168 (eval $ac_try) 2>&5
24170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24171 test $ac_status = 0; }; }
24173 gcc_cv_as_sparc_sparc4
=yes
24175 echo "configure: failed program was" >&5
24178 rm -f conftest.o conftest.s
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24182 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24183 if test $gcc_cv_as_sparc_sparc4 = yes; then
24185 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24190 i
[34567]86-*-* | x86_64-
*-*)
24193 # Full C++ conformance when using a shared libstdc++-v3 requires some
24194 # support from the Cygwin DLL, which in more recent versions exports
24195 # wrappers to aid in interposing and redirecting operators new, delete,
24196 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24197 # are configuring for a version of Cygwin that exports the wrappers.
24198 if test x
$host = x
$target; then
24199 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24200 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24201 gcc_ac_cygwin_dll_wrappers
=yes
24203 gcc_ac_cygwin_dll_wrappers
=no
24207 # Can't check presence of libc functions during cross-compile, so
24208 # we just have to assume we're building for an up-to-date target.
24209 gcc_ac_cygwin_dll_wrappers
=yes
24212 cat >>confdefs.h
<<_ACEOF
24213 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24218 cygwin
* | pe | mingw32
* | interix
*)
24219 # Recent binutils allows the three-operand form of ".comm" on PE. This
24220 # definition is used unconditionally to initialise the default state of
24221 # the target option variable that governs usage of the feature.
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24223 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24224 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24225 $as_echo_n "(cached) " >&6
24227 gcc_cv_as_comm_has_align
=no
24228 if test $in_tree_gas = yes; then
24229 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24230 then gcc_cv_as_comm_has_align
=yes
24232 elif test x
$gcc_cv_as != x
; then
24233 $as_echo '.comm foo,1,32' > conftest.s
24234 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24236 (eval $ac_try) 2>&5
24238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24239 test $ac_status = 0; }; }
24241 gcc_cv_as_comm_has_align
=yes
24243 echo "configure: failed program was" >&5
24246 rm -f conftest.o conftest.s
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24250 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24253 cat >>confdefs.h
<<_ACEOF
24254 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24257 # Used for DWARF 2 in PE
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24259 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24260 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24261 $as_echo_n "(cached) " >&6
24263 gcc_cv_as_ix86_pe_secrel32
=no
24264 if test $in_tree_gas = yes; then
24265 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24266 then gcc_cv_as_ix86_pe_secrel32
=yes
24268 elif test x
$gcc_cv_as != x
; then
24272 .secrel32 foo' > conftest.s
24273 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24275 (eval $ac_try) 2>&5
24277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24278 test $ac_status = 0; }; }
24280 if test x
$gcc_cv_ld != x \
24281 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24282 gcc_cv_as_ix86_pe_secrel32
=yes
24286 echo "configure: failed program was" >&5
24289 rm -f conftest.o conftest.s
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24293 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24294 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24296 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24299 # Test if the assembler supports the extended form of the .section
24300 # directive that specifies section alignment. LTO support uses this,
24301 # but normally only after installation, so we warn but don't fail the
24302 # configure if LTO is enabled but the assembler does not support it.
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24304 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24305 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24306 $as_echo_n "(cached) " >&6
24308 gcc_cv_as_section_has_align
=no
24309 if test $in_tree_gas = yes; then
24310 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24311 then gcc_cv_as_section_has_align
=yes
24313 elif test x
$gcc_cv_as != x
; then
24314 $as_echo '.section lto_test,"dr0"' > conftest.s
24315 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24317 (eval $ac_try) 2>&5
24319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24320 test $ac_status = 0; }; }
24322 gcc_cv_as_section_has_align
=yes
24324 echo "configure: failed program was" >&5
24327 rm -f conftest.o conftest.s
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24331 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24333 if test x
$gcc_cv_as_section_has_align != xyes
; then
24334 case ",$enable_languages," in
24336 { $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
24337 $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;}
24341 # Test if the assembler supports the section flag 'e' for specifying
24342 # an excluded section.
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24344 $as_echo_n "checking assembler for .section with e... " >&6; }
24345 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24346 $as_echo_n "(cached) " >&6
24348 gcc_cv_as_section_has_e
=no
24349 if test $in_tree_gas = yes; then
24350 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24351 then gcc_cv_as_section_has_e
=yes
24353 elif test x
$gcc_cv_as != x
; then
24354 $as_echo '.section foo1,"e"
24355 .byte 0,0,0,0' > conftest.s
24356 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24358 (eval $ac_try) 2>&5
24360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24361 test $ac_status = 0; }; }
24363 gcc_cv_as_section_has_e
=yes
24365 echo "configure: failed program was" >&5
24368 rm -f conftest.o conftest.s
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24372 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24375 cat >>confdefs.h
<<_ACEOF
24376 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24383 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24384 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24385 $as_echo_n "(cached) " >&6
24387 gcc_cv_as_ix86_filds
=no
24388 if test x
$gcc_cv_as != x
; then
24389 $as_echo 'filds mem; fists mem' > conftest.s
24390 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24392 (eval $ac_try) 2>&5
24394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24395 test $ac_status = 0; }; }
24397 gcc_cv_as_ix86_filds
=yes
24399 echo "configure: failed program was" >&5
24402 rm -f conftest.o conftest.s
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24406 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24407 if test $gcc_cv_as_ix86_filds = yes; then
24409 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24414 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24415 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24416 $as_echo_n "(cached) " >&6
24418 gcc_cv_as_ix86_fildq
=no
24419 if test x
$gcc_cv_as != x
; then
24420 $as_echo 'fildq mem; fistpq mem' > conftest.s
24421 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24423 (eval $ac_try) 2>&5
24425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24426 test $ac_status = 0; }; }
24428 gcc_cv_as_ix86_fildq
=yes
24430 echo "configure: failed program was" >&5
24433 rm -f conftest.o conftest.s
24436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24437 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24438 if test $gcc_cv_as_ix86_fildq = yes; then
24440 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24445 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24446 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24447 $as_echo_n "(cached) " >&6
24449 gcc_cv_as_ix86_cmov_sun_syntax
=no
24450 if test x
$gcc_cv_as != x
; then
24451 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24452 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24454 (eval $ac_try) 2>&5
24456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24457 test $ac_status = 0; }; }
24459 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24461 echo "configure: failed program was" >&5
24464 rm -f conftest.o conftest.s
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24468 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24469 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24471 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24476 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24477 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24478 $as_echo_n "(cached) " >&6
24480 gcc_cv_as_ix86_ffreep
=no
24481 if test x
$gcc_cv_as != x
; then
24482 $as_echo 'ffreep %st(1)' > conftest.s
24483 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24485 (eval $ac_try) 2>&5
24487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24488 test $ac_status = 0; }; }
24490 gcc_cv_as_ix86_ffreep
=yes
24492 echo "configure: failed program was" >&5
24495 rm -f conftest.o conftest.s
24498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24499 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24500 if test $gcc_cv_as_ix86_ffreep = yes; then
24502 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24507 $as_echo_n "checking assembler for .quad directive... " >&6; }
24508 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24509 $as_echo_n "(cached) " >&6
24511 gcc_cv_as_ix86_quad
=no
24512 if test x
$gcc_cv_as != x
; then
24513 $as_echo '.quad 0' > conftest.s
24514 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24516 (eval $ac_try) 2>&5
24518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24519 test $ac_status = 0; }; }
24521 gcc_cv_as_ix86_quad
=yes
24523 echo "configure: failed program was" >&5
24526 rm -f conftest.o conftest.s
24529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24530 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24531 if test $gcc_cv_as_ix86_quad = yes; then
24533 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24538 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24539 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24540 $as_echo_n "(cached) " >&6
24542 gcc_cv_as_ix86_sahf
=no
24543 if test x
$gcc_cv_as != x
; then
24546 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24548 (eval $ac_try) 2>&5
24550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24551 test $ac_status = 0; }; }
24553 gcc_cv_as_ix86_sahf
=yes
24555 echo "configure: failed program was" >&5
24558 rm -f conftest.o conftest.s
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24562 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24563 if test $gcc_cv_as_ix86_sahf = yes; then
24565 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24570 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24571 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24572 $as_echo_n "(cached) " >&6
24574 gcc_cv_as_ix86_hle
=no
24575 if test x
$gcc_cv_as != x
; then
24576 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24577 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24579 (eval $ac_try) 2>&5
24581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24582 test $ac_status = 0; }; }
24584 gcc_cv_as_ix86_hle
=yes
24586 echo "configure: failed program was" >&5
24589 rm -f conftest.o conftest.s
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24593 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24594 if test $gcc_cv_as_ix86_hle = yes; then
24596 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24601 $as_echo_n "checking assembler for swap suffix... " >&6; }
24602 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24603 $as_echo_n "(cached) " >&6
24605 gcc_cv_as_ix86_swap
=no
24606 if test x
$gcc_cv_as != x
; then
24607 $as_echo 'movl.s %esp, %ebp' > conftest.s
24608 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24610 (eval $ac_try) 2>&5
24612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24613 test $ac_status = 0; }; }
24615 gcc_cv_as_ix86_swap
=yes
24617 echo "configure: failed program was" >&5
24620 rm -f conftest.o conftest.s
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24624 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24625 if test $gcc_cv_as_ix86_swap = yes; then
24627 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24632 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24633 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24634 $as_echo_n "(cached) " >&6
24636 gcc_cv_as_ix86_diff_sect_delta
=no
24637 if test x
$gcc_cv_as != x
; then
24638 $as_echo '.section .rodata
24644 .L2: nop' > conftest.s
24645 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24647 (eval $ac_try) 2>&5
24649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24650 test $ac_status = 0; }; }
24652 gcc_cv_as_ix86_diff_sect_delta
=yes
24654 echo "configure: failed program was" >&5
24657 rm -f conftest.o conftest.s
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24661 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24662 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24664 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24668 # These two are used unconditionally by i386.[ch]; it is to be defined
24669 # to 1 if the feature is present, 0 otherwise.
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24671 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24672 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24673 $as_echo_n "(cached) " >&6
24675 gcc_cv_as_ix86_gotoff_in_data
=no
24676 if test $in_tree_gas = yes; then
24677 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24678 then gcc_cv_as_ix86_gotoff_in_data
=yes
24680 elif test x
$gcc_cv_as != x
; then
24685 .long .L0@GOTOFF' > conftest.s
24686 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24688 (eval $ac_try) 2>&5
24690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24691 test $ac_status = 0; }; }
24693 gcc_cv_as_ix86_gotoff_in_data
=yes
24695 echo "configure: failed program was" >&5
24698 rm -f conftest.o conftest.s
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24702 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24705 cat >>confdefs.h
<<_ACEOF
24706 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24711 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24712 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24713 $as_echo_n "(cached) " >&6
24715 gcc_cv_as_ix86_rep_lock_prefix
=no
24716 if test x
$gcc_cv_as != x
; then
24717 $as_echo 'rep movsl
24722 lock addl %edi, (%eax,%esi)
24723 lock orl $0, (%esp)' > conftest.s
24724 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24726 (eval $ac_try) 2>&5
24728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24729 test $ac_status = 0; }; }
24731 gcc_cv_as_ix86_rep_lock_prefix
=yes
24733 echo "configure: failed program was" >&5
24736 rm -f conftest.o conftest.s
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24740 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24741 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24743 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24748 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24749 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24750 $as_echo_n "(cached) " >&6
24752 gcc_cv_as_ix86_tlsgdplt
=no
24753 if test x
$gcc_cv_as != x
; then
24754 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24755 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24757 (eval $ac_try) 2>&5
24759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24760 test $ac_status = 0; }; }
24762 if test x
$gcc_cv_ld != x \
24763 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24764 gcc_cv_as_ix86_tlsgdplt
=yes
24768 echo "configure: failed program was" >&5
24771 rm -f conftest.o conftest.s
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24775 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24776 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24778 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24783 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24784 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24785 $as_echo_n "(cached) " >&6
24787 gcc_cv_as_ix86_tlsldmplt
=no
24788 if test x
$gcc_cv_as != x
; then
24790 call tls_ld@tlsldmplt' > conftest.s
24791 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24793 (eval $ac_try) 2>&5
24795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24796 test $ac_status = 0; }; }
24798 if test x
$gcc_cv_ld != x \
24799 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24800 gcc_cv_as_ix86_tlsldmplt
=yes
24804 echo "configure: failed program was" >&5
24807 rm -f conftest.o conftest.s
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24811 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24812 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24814 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24822 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24823 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24824 $as_echo_n "(cached) " >&6
24826 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24827 if test $in_tree_gas = yes; then
24828 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24829 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24831 elif test x
$gcc_cv_as != x
; then
24833 addl r15 = @ltoffx(x#), gp
24835 ld8.mov r16 = [r15], x#' > conftest.s
24836 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24838 (eval $ac_try) 2>&5
24840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24841 test $ac_status = 0; }; }
24843 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24845 echo "configure: failed program was" >&5
24848 rm -f conftest.o conftest.s
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24852 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24853 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24855 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24863 *-*-aix*) conftest_s
=' .machine "pwr5"
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24868 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24869 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24870 $as_echo_n "(cached) " >&6
24872 gcc_cv_as_machine_directive
=no
24873 if test x
$gcc_cv_as != x
; then
24874 $as_echo ' .machine ppc7400' > conftest.s
24875 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24877 (eval $ac_try) 2>&5
24879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24880 test $ac_status = 0; }; }
24882 gcc_cv_as_machine_directive
=yes
24884 echo "configure: failed program was" >&5
24887 rm -f conftest.o conftest.s
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24891 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24893 if test x
$gcc_cv_as_machine_directive != xyes
; then
24894 echo "*** This target requires an assembler supporting \".machine\"" >&2
24895 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
24896 test x
$build = x
$target && exit 1
24900 *) conftest_s
=' .machine power4
24905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24906 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24907 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24908 $as_echo_n "(cached) " >&6
24910 gcc_cv_as_powerpc_mfcrf
=no
24911 if test $in_tree_gas = yes; then
24912 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24913 then gcc_cv_as_powerpc_mfcrf
=yes
24915 elif test x
$gcc_cv_as != x
; then
24916 $as_echo "$conftest_s" > conftest.s
24917 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24919 (eval $ac_try) 2>&5
24921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24922 test $ac_status = 0; }; }
24924 gcc_cv_as_powerpc_mfcrf
=yes
24926 echo "configure: failed program was" >&5
24929 rm -f conftest.o conftest.s
24932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24933 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24934 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24936 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24941 *-*-aix*) conftest_s
=' .machine "pwr5"
24944 *) conftest_s
=' .machine power5
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24950 $as_echo_n "checking assembler for popcntb support... " >&6; }
24951 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24952 $as_echo_n "(cached) " >&6
24954 gcc_cv_as_powerpc_popcntb
=no
24955 if test $in_tree_gas = yes; then
24956 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24957 then gcc_cv_as_powerpc_popcntb
=yes
24959 elif test x
$gcc_cv_as != x
; then
24960 $as_echo "$conftest_s" > conftest.s
24961 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24963 (eval $ac_try) 2>&5
24965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24966 test $ac_status = 0; }; }
24968 gcc_cv_as_powerpc_popcntb
=yes
24970 echo "configure: failed program was" >&5
24973 rm -f conftest.o conftest.s
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24977 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24978 if test $gcc_cv_as_powerpc_popcntb = yes; then
24980 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24985 *-*-aix*) conftest_s
=' .machine "pwr5x"
24988 *) conftest_s
=' .machine power5
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24994 $as_echo_n "checking assembler for fp round support... " >&6; }
24995 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24996 $as_echo_n "(cached) " >&6
24998 gcc_cv_as_powerpc_fprnd
=no
24999 if test $in_tree_gas = yes; then
25000 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25001 then gcc_cv_as_powerpc_fprnd
=yes
25003 elif test x
$gcc_cv_as != x
; then
25004 $as_echo "$conftest_s" > conftest.s
25005 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25007 (eval $ac_try) 2>&5
25009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25010 test $ac_status = 0; }; }
25012 gcc_cv_as_powerpc_fprnd
=yes
25014 echo "configure: failed program was" >&5
25017 rm -f conftest.o conftest.s
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25021 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25022 if test $gcc_cv_as_powerpc_fprnd = yes; then
25024 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25029 *-*-aix*) conftest_s
=' .machine "pwr6"
25032 *) conftest_s
=' .machine power6
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25038 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25039 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25040 $as_echo_n "(cached) " >&6
25042 gcc_cv_as_powerpc_mfpgpr
=no
25043 if test $in_tree_gas = yes; then
25044 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25045 then gcc_cv_as_powerpc_mfpgpr
=yes
25047 elif test x
$gcc_cv_as != x
; then
25048 $as_echo "$conftest_s" > conftest.s
25049 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25051 (eval $ac_try) 2>&5
25053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25054 test $ac_status = 0; }; }
25056 gcc_cv_as_powerpc_mfpgpr
=yes
25058 echo "configure: failed program was" >&5
25061 rm -f conftest.o conftest.s
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25065 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25066 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25068 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25073 *-*-aix*) conftest_s
=' .csect .text[PR]
25075 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25079 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25080 *) conftest_s
=' .text
25082 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25086 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25087 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25088 $as_echo_n "(cached) " >&6
25090 gcc_cv_as_powerpc_rel16
=no
25091 if test $in_tree_gas = yes; then
25092 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25093 then gcc_cv_as_powerpc_rel16
=yes
25095 elif test x
$gcc_cv_as != x
; then
25096 $as_echo "$conftest_s" > conftest.s
25097 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25099 (eval $ac_try) 2>&5
25101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25102 test $ac_status = 0; }; }
25104 gcc_cv_as_powerpc_rel16
=yes
25106 echo "configure: failed program was" >&5
25109 rm -f conftest.o conftest.s
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25113 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25114 if test $gcc_cv_as_powerpc_rel16 = yes; then
25116 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25121 *-*-aix*) conftest_s
=' .machine "pwr6"
25124 *) conftest_s
=' .machine power6
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25130 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25131 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25132 $as_echo_n "(cached) " >&6
25134 gcc_cv_as_powerpc_cmpb
=no
25135 if test $in_tree_gas = yes; then
25136 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25137 then gcc_cv_as_powerpc_cmpb
=yes
25139 elif test x
$gcc_cv_as != x
; then
25140 $as_echo "$conftest_s" > conftest.s
25141 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25143 (eval $ac_try) 2>&5
25145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25146 test $ac_status = 0; }; }
25148 gcc_cv_as_powerpc_cmpb
=yes
25150 echo "configure: failed program was" >&5
25153 rm -f conftest.o conftest.s
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25157 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25158 if test $gcc_cv_as_powerpc_cmpb = yes; then
25160 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25165 *-*-aix*) conftest_s
=' .machine "pwr6"
25168 *) conftest_s
=' .machine power6
25173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25174 $as_echo_n "checking assembler for decimal float support... " >&6; }
25175 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25176 $as_echo_n "(cached) " >&6
25178 gcc_cv_as_powerpc_dfp
=no
25179 if test $in_tree_gas = yes; then
25180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25181 then gcc_cv_as_powerpc_dfp
=yes
25183 elif test x
$gcc_cv_as != x
; then
25184 $as_echo "$conftest_s" > conftest.s
25185 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25187 (eval $ac_try) 2>&5
25189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25190 test $ac_status = 0; }; }
25192 gcc_cv_as_powerpc_dfp
=yes
25194 echo "configure: failed program was" >&5
25197 rm -f conftest.o conftest.s
25200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25201 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25202 if test $gcc_cv_as_powerpc_dfp = yes; then
25204 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25209 *-*-aix*) conftest_s
=' .machine "pwr7"
25212 *) conftest_s
=' .machine power7
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25218 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25219 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25220 $as_echo_n "(cached) " >&6
25222 gcc_cv_as_powerpc_vsx
=no
25223 if test $in_tree_gas = yes; then
25224 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25225 then gcc_cv_as_powerpc_vsx
=yes
25227 elif test x
$gcc_cv_as != x
; then
25228 $as_echo "$conftest_s" > conftest.s
25229 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25231 (eval $ac_try) 2>&5
25233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25234 test $ac_status = 0; }; }
25236 gcc_cv_as_powerpc_vsx
=yes
25238 echo "configure: failed program was" >&5
25241 rm -f conftest.o conftest.s
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25245 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25246 if test $gcc_cv_as_powerpc_vsx = yes; then
25248 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25253 *-*-aix*) conftest_s
=' .machine "pwr7"
25256 *) conftest_s
=' .machine power7
25261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25262 $as_echo_n "checking assembler for popcntd support... " >&6; }
25263 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25264 $as_echo_n "(cached) " >&6
25266 gcc_cv_as_powerpc_popcntd
=no
25267 if test $in_tree_gas = yes; then
25268 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25269 then gcc_cv_as_powerpc_popcntd
=yes
25271 elif test x
$gcc_cv_as != x
; then
25272 $as_echo "$conftest_s" > conftest.s
25273 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25275 (eval $ac_try) 2>&5
25277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25278 test $ac_status = 0; }; }
25280 gcc_cv_as_powerpc_popcntd
=yes
25282 echo "configure: failed program was" >&5
25285 rm -f conftest.o conftest.s
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25289 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25290 if test $gcc_cv_as_powerpc_popcntd = yes; then
25292 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25297 *-*-aix*) conftest_s
=' .machine "pwr8"
25298 .csect .text[PR]';;
25299 *) conftest_s
=' .machine power8
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25304 $as_echo_n "checking assembler for power8 support... " >&6; }
25305 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25306 $as_echo_n "(cached) " >&6
25308 gcc_cv_as_powerpc_power8
=no
25309 if test $in_tree_gas = yes; then
25310 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25311 then gcc_cv_as_powerpc_power8
=yes
25313 elif test x
$gcc_cv_as != x
; then
25314 $as_echo "$conftest_s" > conftest.s
25315 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25317 (eval $ac_try) 2>&5
25319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25320 test $ac_status = 0; }; }
25322 gcc_cv_as_powerpc_power8
=yes
25324 echo "configure: failed program was" >&5
25327 rm -f conftest.o conftest.s
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25331 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25332 if test $gcc_cv_as_powerpc_power8 = yes; then
25334 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25339 *-*-aix*) conftest_s
=' .csect .text[PR]
25341 *) conftest_s
=' .text
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25346 $as_echo_n "checking assembler for lwsync support... " >&6; }
25347 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25348 $as_echo_n "(cached) " >&6
25350 gcc_cv_as_powerpc_lwsync
=no
25351 if test $in_tree_gas = yes; then
25352 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25353 then gcc_cv_as_powerpc_lwsync
=yes
25355 elif test x
$gcc_cv_as != x
; then
25356 $as_echo "$conftest_s" > conftest.s
25357 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25359 (eval $ac_try) 2>&5
25361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25362 test $ac_status = 0; }; }
25364 gcc_cv_as_powerpc_lwsync
=yes
25366 echo "configure: failed program was" >&5
25369 rm -f conftest.o conftest.s
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25373 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25374 if test $gcc_cv_as_powerpc_lwsync = yes; then
25376 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25381 *-*-aix*) conftest_s
=' .machine "476"
25384 *) conftest_s
=' .machine "476"
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25390 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25391 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25392 $as_echo_n "(cached) " >&6
25394 gcc_cv_as_powerpc_dci
=no
25395 if test $in_tree_gas = yes; then
25396 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25397 then gcc_cv_as_powerpc_dci
=yes
25399 elif test x
$gcc_cv_as != x
; then
25400 $as_echo "$conftest_s" > conftest.s
25401 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25403 (eval $ac_try) 2>&5
25405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25406 test $ac_status = 0; }; }
25408 gcc_cv_as_powerpc_dci
=yes
25410 echo "configure: failed program was" >&5
25413 rm -f conftest.o conftest.s
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25417 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25418 if test $gcc_cv_as_powerpc_dci = yes; then
25420 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25425 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25426 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25427 $as_echo_n "(cached) " >&6
25429 gcc_cv_as_powerpc_gnu_attribute
=no
25430 if test $in_tree_gas = yes; then
25431 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25432 then gcc_cv_as_powerpc_gnu_attribute
=yes
25434 elif test x
$gcc_cv_as != x
; then
25435 $as_echo '.gnu_attribute 4,1' > conftest.s
25436 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25438 (eval $ac_try) 2>&5
25440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25441 test $ac_status = 0; }; }
25443 gcc_cv_as_powerpc_gnu_attribute
=yes
25445 echo "configure: failed program was" >&5
25448 rm -f conftest.o conftest.s
25451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25452 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25453 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25455 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25460 $as_echo_n "checking assembler for tls marker support... " >&6; }
25461 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25462 $as_echo_n "(cached) " >&6
25464 gcc_cv_as_powerpc_tls_markers
=no
25465 if test $in_tree_gas = yes; then
25466 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25467 then gcc_cv_as_powerpc_tls_markers
=yes
25469 elif test x
$gcc_cv_as != x
; then
25470 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25471 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25473 (eval $ac_try) 2>&5
25475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25476 test $ac_status = 0; }; }
25478 gcc_cv_as_powerpc_tls_markers
=yes
25480 echo "configure: failed program was" >&5
25483 rm -f conftest.o conftest.s
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25487 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25488 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25490 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25497 $as_echo_n "checking assembler for .ref support... " >&6; }
25498 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25499 $as_echo_n "(cached) " >&6
25501 gcc_cv_as_aix_ref
=no
25502 if test $in_tree_gas = yes; then
25503 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25504 then gcc_cv_as_aix_ref
=yes
25506 elif test x
$gcc_cv_as != x
; then
25507 $as_echo ' .csect stuff[rw]
25513 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25515 (eval $ac_try) 2>&5
25517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25518 test $ac_status = 0; }; }
25520 gcc_cv_as_aix_ref
=yes
25522 echo "configure: failed program was" >&5
25525 rm -f conftest.o conftest.s
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25529 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25530 if test $gcc_cv_as_aix_ref = yes; then
25532 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25541 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25542 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25543 $as_echo_n "(cached) " >&6
25545 gcc_cv_as_mips_explicit_relocs
=no
25546 if test $in_tree_gas = yes; then
25547 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25548 then gcc_cv_as_mips_explicit_relocs
=yes
25550 elif test x
$gcc_cv_as != x
; then
25551 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25552 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25554 (eval $ac_try) 2>&5
25556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25557 test $ac_status = 0; }; }
25559 gcc_cv_as_mips_explicit_relocs
=yes
25561 echo "configure: failed program was" >&5
25564 rm -f conftest.o conftest.s
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25568 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25569 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25570 if test x
$target_cpu_default = x
25571 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25572 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25576 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25577 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25578 $as_echo_n "(cached) " >&6
25580 gcc_cv_as_mips_no_shared
=no
25581 if test $in_tree_gas = yes; then
25582 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25583 then gcc_cv_as_mips_no_shared
=yes
25585 elif test x
$gcc_cv_as != x
; then
25586 $as_echo 'nop' > conftest.s
25587 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25589 (eval $ac_try) 2>&5
25591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25592 test $ac_status = 0; }; }
25594 gcc_cv_as_mips_no_shared
=yes
25596 echo "configure: failed program was" >&5
25599 rm -f conftest.o conftest.s
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25603 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25604 if test $gcc_cv_as_mips_no_shared = yes; then
25606 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25611 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25612 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25613 $as_echo_n "(cached) " >&6
25615 gcc_cv_as_mips_gnu_attribute
=no
25616 if test $in_tree_gas = yes; then
25617 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25618 then gcc_cv_as_mips_gnu_attribute
=yes
25620 elif test x
$gcc_cv_as != x
; then
25621 $as_echo '.gnu_attribute 4,1' > conftest.s
25622 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25624 (eval $ac_try) 2>&5
25626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25627 test $ac_status = 0; }; }
25629 gcc_cv_as_mips_gnu_attribute
=yes
25631 echo "configure: failed program was" >&5
25634 rm -f conftest.o conftest.s
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25638 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25639 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25641 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25646 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25647 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25648 $as_echo_n "(cached) " >&6
25650 gcc_cv_as_mips_dtprelword
=no
25651 if test $in_tree_gas = yes; then
25652 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25653 then gcc_cv_as_mips_dtprelword
=yes
25655 elif test x
$gcc_cv_as != x
; then
25656 $as_echo '.section .tdata,"awT",@progbits
25660 .dtprelword x+0x8000' > conftest.s
25661 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25663 (eval $ac_try) 2>&5
25665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25666 test $ac_status = 0; }; }
25668 gcc_cv_as_mips_dtprelword
=yes
25670 echo "configure: failed program was" >&5
25673 rm -f conftest.o conftest.s
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25677 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25678 if test $gcc_cv_as_mips_dtprelword = yes; then
25680 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25685 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25686 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25687 $as_echo_n "(cached) " >&6
25689 gcc_cv_as_mips_dspr1_mult
=no
25690 if test x
$gcc_cv_as != x
; then
25691 $as_echo ' .set mips32r2
25699 multu $ac3,$4,$5' > conftest.s
25700 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25702 (eval $ac_try) 2>&5
25704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25705 test $ac_status = 0; }; }
25707 gcc_cv_as_mips_dspr1_mult
=yes
25709 echo "configure: failed program was" >&5
25712 rm -f conftest.o conftest.s
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25716 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25717 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25719 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25724 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25725 gcc_cv_as_ld_jalr_reloc
=no
25726 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25727 if test $in_tree_ld = yes ; then
25728 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 \
25729 && test $in_tree_ld_is_elf = yes; then
25730 gcc_cv_as_ld_jalr_reloc
=yes
25732 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25733 echo ' .ent x' > conftest.s
25734 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25735 echo ' ld $25,%call16(y)($28)' >> conftest.s
25736 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25737 echo '1: jalr $25' >> conftest.s
25738 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25739 echo '1: jalr $25' >> conftest.s
25740 echo ' .end x' >> conftest.s
25741 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25742 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25743 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25744 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25745 gcc_cv_as_ld_jalr_reloc
=yes
25751 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25752 if test x
$target_cpu_default = x
; then
25753 target_cpu_default
=MASK_RELAX_PIC_CALLS
25755 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25759 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25762 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25763 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25764 $as_echo_n "(cached) " >&6
25766 gcc_cv_ld_mips_personality_relaxation
=no
25767 if test $in_tree_ld = yes ; then
25768 if test "$gcc_cv_gld_major_version" -eq 2 \
25769 -a "$gcc_cv_gld_minor_version" -ge 21 \
25770 -o "$gcc_cv_gld_major_version" -gt 2; then
25771 gcc_cv_ld_mips_personality_relaxation
=yes
25773 elif test x
$gcc_cv_as != x \
25774 -a x
$gcc_cv_ld != x \
25775 -a x
$gcc_cv_readelf != x
; then
25776 cat > conftest.s
<<EOF
25778 .cfi_personality 0x80,indirect_ptr
25785 .section .data,"aw",@progbits
25789 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25790 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25791 if $gcc_cv_readelf -d conftest
2>&1 \
25792 |
grep TEXTREL
> /dev
/null
2>&1; then
25794 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25795 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25798 gcc_cv_ld_mips_personality_relaxation
=yes
25802 rm -f conftest.s conftest.o conftest
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25805 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25806 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25808 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25814 # Mips and HP-UX need the GNU assembler.
25815 # Linux on IA64 might be able to use the Intel assembler.
25818 mips
*-*-* |
*-*-hpux* )
25819 if test x
$gas_flag = xyes \
25820 ||
test x
"$host" != x
"$build" \
25821 ||
test ! -x "$gcc_cv_as" \
25822 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25825 echo "*** This configuration requires the GNU assembler" >&2
25831 # ??? Not all targets support dwarf2 debug_line, even within a version
25832 # of gas. Moreover, we need to emit a valid instruction to trigger any
25833 # info to the output file. So, as supported targets are added to gas 2.11,
25834 # add some instruction here to (also) show we expect this might work.
25835 # ??? Once 2.11 is released, probably need to add first known working
25836 # version to the per-target configury.
25837 case "$cpu_type" in
25838 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25839 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa
)
25849 if test x
"$insn" != x
; then
25851 .file 1 \"conftest.s\"
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25855 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25856 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25857 $as_echo_n "(cached) " >&6
25859 gcc_cv_as_dwarf2_debug_line
=no
25860 if test $in_tree_gas = yes; then
25861 if test $in_tree_gas_is_elf = yes \
25862 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25863 then gcc_cv_as_dwarf2_debug_line
=yes
25865 elif test x
$gcc_cv_as != x
; then
25866 $as_echo "$conftest_s" > conftest.s
25867 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25869 (eval $ac_try) 2>&5
25871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25872 test $ac_status = 0; }; }
25874 if test x
$gcc_cv_objdump != x \
25875 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
25876 |
grep debug_line
> /dev
/null
2>&1; then
25877 gcc_cv_as_dwarf2_debug_line
=yes
25880 echo "configure: failed program was" >&5
25883 rm -f conftest.o conftest.s
25886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25887 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25890 # The .debug_line file table must be in the exact order that
25891 # we specified the files, since these indices are also used
25892 # by DW_AT_decl_file. Approximate this test by testing if
25893 # the assembler bitches if the same index is assigned twice.
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25895 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25896 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25897 $as_echo_n "(cached) " >&6
25899 gcc_cv_as_dwarf2_file_buggy
=no
25900 if test x
$gcc_cv_as != x
; then
25901 $as_echo ' .file 1 "foo.s"
25902 .file 1 "bar.s"' > conftest.s
25903 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25905 (eval $ac_try) 2>&5
25907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25908 test $ac_status = 0; }; }
25910 gcc_cv_as_dwarf2_file_buggy
=yes
25912 echo "configure: failed program was" >&5
25915 rm -f conftest.o conftest.s
25918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25919 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25922 if test $gcc_cv_as_dwarf2_debug_line = yes \
25923 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
25925 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25930 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25931 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25932 $as_echo_n "(cached) " >&6
25934 gcc_cv_as_gdwarf2_flag
=no
25935 if test $in_tree_gas = yes; then
25936 if test $in_tree_gas_is_elf = yes \
25937 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25938 then gcc_cv_as_gdwarf2_flag
=yes
25940 elif test x
$gcc_cv_as != x
; then
25941 $as_echo "$insn" > conftest.s
25942 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25944 (eval $ac_try) 2>&5
25946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25947 test $ac_status = 0; }; }
25949 gcc_cv_as_gdwarf2_flag
=yes
25951 echo "configure: failed program was" >&5
25954 rm -f conftest.o conftest.s
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25958 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25959 if test $gcc_cv_as_gdwarf2_flag = yes; then
25961 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25966 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25967 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25968 $as_echo_n "(cached) " >&6
25970 gcc_cv_as_gstabs_flag
=no
25971 if test $in_tree_gas = yes; then
25972 if test $in_tree_gas_is_elf = yes \
25973 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25974 then gcc_cv_as_gstabs_flag
=yes
25976 elif test x
$gcc_cv_as != x
; then
25977 $as_echo "$insn" > conftest.s
25978 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25980 (eval $ac_try) 2>&5
25982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25983 test $ac_status = 0; }; }
25985 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25986 # and warns about it, but still exits successfully. So check for
25988 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25990 (eval $ac_try) 2>&5
25992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25993 test $ac_status = 0; }; }
25995 else gcc_cv_as_gstabs_flag
=yes
25998 echo "configure: failed program was" >&5
26001 rm -f conftest.o conftest.s
26004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26005 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26006 if test $gcc_cv_as_gstabs_flag = yes; then
26008 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26013 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26014 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26015 $as_echo_n "(cached) " >&6
26017 gcc_cv_as_debug_prefix_map_flag
=no
26018 if test $in_tree_gas = yes; then
26019 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26020 then gcc_cv_as_debug_prefix_map_flag
=yes
26022 elif test x
$gcc_cv_as != x
; then
26023 $as_echo "$insn" > conftest.s
26024 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26026 (eval $ac_try) 2>&5
26028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26029 test $ac_status = 0; }; }
26031 gcc_cv_as_debug_prefix_map_flag
=yes
26033 echo "configure: failed program was" >&5
26036 rm -f conftest.o conftest.s
26039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26040 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26041 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26043 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26049 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26050 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26051 $as_echo_n "(cached) " >&6
26053 gcc_cv_as_lcomm_with_alignment
=no
26054 if test x
$gcc_cv_as != x
; then
26055 $as_echo '.lcomm bar,4,16' > conftest.s
26056 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26058 (eval $ac_try) 2>&5
26060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26061 test $ac_status = 0; }; }
26063 gcc_cv_as_lcomm_with_alignment
=yes
26065 echo "configure: failed program was" >&5
26068 rm -f conftest.o conftest.s
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26072 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26073 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26075 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26079 # Check whether --enable-gnu-unique-object was given.
26080 if test "${enable_gnu_unique_object+set}" = set; then :
26081 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26083 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26084 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26088 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26089 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26090 $as_echo_n "(cached) " >&6
26092 gcc_cv_as_gnu_unique_object
=no
26093 if test $in_tree_gas = yes; then
26094 if test $in_tree_gas_is_elf = yes \
26095 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26096 then gcc_cv_as_gnu_unique_object
=yes
26098 elif test x
$gcc_cv_as != x
; then
26099 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26100 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26102 (eval $ac_try) 2>&5
26104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26105 test $ac_status = 0; }; }
26107 gcc_cv_as_gnu_unique_object
=yes
26109 echo "configure: failed program was" >&5
26112 rm -f conftest.o conftest.s
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26116 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26117 if test $gcc_cv_as_gnu_unique_object = yes; then
26118 # We need to unquote above to to use the definition from config.gcc.
26119 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26120 if test x
$host = x
$build -a x
$host = x
$target &&
26121 ldd
--version 2>/dev
/null
&&
26122 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26123 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26124 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26125 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26126 if test "$glibcnum" -ge 2011 ; then
26127 enable_gnu_unique_object
=yes
26133 if test x
$enable_gnu_unique_object = xyes
; then
26135 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26140 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26141 if test "${gcc_cv_as_line_zero+set}" = set; then :
26142 $as_echo_n "(cached) " >&6
26144 gcc_cv_as_line_zero
=no
26145 if test $in_tree_gas = yes; then
26146 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26147 then gcc_cv_as_line_zero
=yes
26149 elif test "x$gcc_cv_as" != x
; then
26150 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26151 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26153 (eval $ac_try) 2>&5
26155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26156 test $ac_status = 0; }; } &&
26157 test "x`cat conftest.out`" = x
26159 gcc_cv_as_line_zero
=yes
26161 echo "configure: failed program was" >&5
26163 echo "configure: error output was" >&5
26164 cat conftest.out
>&5
26166 rm -f conftest.o conftest.s conftest.out
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26170 $as_echo "$gcc_cv_as_line_zero" >&6; }
26171 if test "x$gcc_cv_as_line_zero" = xyes
; then
26173 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26178 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26179 gcc_cv_ld_eh_frame_hdr
=no
26180 if test $in_tree_ld = yes ; then
26181 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 \
26182 && test $in_tree_ld_is_elf = yes; then
26183 gcc_cv_ld_eh_frame_hdr
=yes
26185 elif test x
$gcc_cv_ld != x
; then
26186 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26187 # Check if linker supports --eh-frame-hdr option
26188 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26189 gcc_cv_ld_eh_frame_hdr
=yes
26194 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26195 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26196 gcc_cv_ld_eh_frame_hdr
=yes
26203 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26205 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26209 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26212 $as_echo_n "checking linker position independent executable support... " >&6; }
26214 if test $in_tree_ld = yes ; then
26215 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 \
26216 && test $in_tree_ld_is_elf = yes; then
26219 elif test x
$gcc_cv_ld != x
; then
26220 # Check if linker supports -pie option
26221 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26225 if test x
"$gcc_cv_ld_pie" = xyes
; then
26227 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26231 $as_echo "$gcc_cv_ld_pie" >&6; }
26233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26234 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26235 gcc_cv_ld_eh_gc_sections
=no
26236 if test $in_tree_ld = yes ; then
26237 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 \
26238 && test $in_tree_ld_is_elf = yes; then
26239 gcc_cv_ld_eh_gc_sections
=yes
26241 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26242 cat > conftest.s
<<EOF
26245 .type _start, @function
26248 .size _start, .-_start
26249 .section .text.foo,"ax",@progbits
26250 .type foo, @function
26254 .section .gcc_except_table.foo,"a",@progbits
26257 .section .eh_frame,"a",@progbits
26260 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26261 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26262 |
grep "gc-sections option ignored" > /dev
/null
; then
26263 gcc_cv_ld_eh_gc_sections
=no
26264 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26265 |
grep gcc_except_table
> /dev
/null
; then
26266 gcc_cv_ld_eh_gc_sections
=yes
26267 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26268 if test x
$gcc_cv_as_comdat_group != xyes
; then
26269 gcc_cv_ld_eh_gc_sections
=no
26270 cat > conftest.s
<<EOF
26273 .type _start, @function
26276 .size _start, .-_start
26277 .section .gnu.linkonce.t.foo,"ax",@progbits
26278 .type foo, @function
26282 .section .gcc_except_table.foo,"a",@progbits
26285 .section .eh_frame,"a",@progbits
26288 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26289 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26290 |
grep "gc-sections option ignored" > /dev
/null
; then
26291 gcc_cv_ld_eh_gc_sections
=no
26292 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26293 |
grep gcc_except_table
> /dev
/null
; then
26294 gcc_cv_ld_eh_gc_sections
=yes
26300 rm -f conftest.s conftest.o conftest
26304 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26305 gcc_cv_ld_eh_gc_sections
=no
26308 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26310 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26314 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26317 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26318 gcc_cv_ld_eh_gc_sections_bug
=no
26319 if test $in_tree_ld = yes ; then
26320 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 \
26321 && test $in_tree_ld_is_elf = yes; then
26322 gcc_cv_ld_eh_gc_sections_bug
=yes
26324 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
26325 gcc_cv_ld_eh_gc_sections_bug
=yes
26326 cat > conftest.s
<<EOF
26329 .type _start, @function
26332 .size _start, .-_start
26333 .section .text.startup.foo,"ax",@progbits
26334 .type foo, @function
26338 .section .gcc_except_table.foo,"a",@progbits
26341 .section .eh_frame,"a",@progbits
26344 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26345 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26346 |
grep "gc-sections option ignored" > /dev
/null
; then
26348 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26349 |
grep gcc_except_table
> /dev
/null
; then
26350 gcc_cv_ld_eh_gc_sections_bug
=no
26353 rm -f conftest.s conftest.o conftest
26355 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26357 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26361 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26368 $as_echo_n "checking linker --as-needed support... " >&6; }
26369 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26370 $as_echo_n "(cached) " >&6
26372 gcc_cv_ld_as_needed
=no
26373 if test $in_tree_ld = yes ; then
26374 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 \
26375 && test $in_tree_ld_is_elf = yes; then
26376 gcc_cv_ld_as_needed
=yes
26378 elif test x
$gcc_cv_ld != x
; then
26379 # Check if linker supports --as-needed and --no-as-needed options
26380 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26381 gcc_cv_ld_as_needed
=yes
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26387 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26388 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26390 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26394 case "$target:$tm_file" in
26395 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26398 emul_name
="-melf64ppc"
26401 emul_name
="-melf64ppc_fbsd"
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26405 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26406 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26407 $as_echo_n "(cached) " >&6
26409 gcc_cv_ld_no_dot_syms
=no
26410 if test x
"$ld_is_gold" = xyes
; then
26411 gcc_cv_ld_no_dot_syms
=yes
26412 elif test $in_tree_ld = yes ; then
26413 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
26414 gcc_cv_ld_no_dot_syms
=yes
26416 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26417 cat > conftest1.s
<<EOF
26421 cat > conftest2.s
<<EOF
26422 .section ".opd","aw"
26425 .type foo,@function
26427 .quad .LEfoo,.TOC.@tocbase,0
26433 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26434 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26435 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26436 gcc_cv_ld_no_dot_syms
=yes
26438 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26443 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26444 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26446 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26451 $as_echo_n "checking linker large toc support... " >&6; }
26452 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26453 $as_echo_n "(cached) " >&6
26455 gcc_cv_ld_large_toc
=no
26456 if test x
"$ld_is_gold" = xyes
; then
26457 gcc_cv_ld_large_toc
=yes
26458 elif test $in_tree_ld = yes ; then
26459 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
26460 gcc_cv_ld_large_toc
=yes
26462 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26463 cat > conftest.s
<<EOF
26464 .section ".tbss","awT",@nobits
26470 addis 9,13,ie0@got@tprel@ha
26471 ld 9,ie0@got@tprel@l(9)
26473 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26474 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26475 gcc_cv_ld_large_toc
=yes
26477 rm -f conftest conftest.o conftest.s
26481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26482 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26483 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26485 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26494 $as_echo_n "checking linker large toc support... " >&6; }
26495 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26496 $as_echo_n "(cached) " >&6
26498 gcc_cv_ld_large_toc
=no
26499 if test x
$gcc_cv_as != x
; then
26500 cat > conftest.s
<<EOF
26510 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
26511 gcc_cv_ld_large_toc
=yes
26513 rm -f conftest conftest.o conftest.s
26517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26518 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26519 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26521 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26528 $as_echo_n "checking linker --build-id support... " >&6; }
26529 if test "${gcc_cv_ld_buildid+set}" = set; then :
26530 $as_echo_n "(cached) " >&6
26532 gcc_cv_ld_buildid
=no
26533 if test $in_tree_ld = yes ; then
26534 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26535 "$gcc_cv_gld_minor_version" -ge 18 -o \
26536 "$gcc_cv_gld_major_version" -gt 2 \
26537 && test $in_tree_ld_is_elf = yes; then
26538 gcc_cv_ld_buildid
=yes
26540 elif test x
$gcc_cv_ld != x
; then
26541 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26542 gcc_cv_ld_buildid
=yes
26546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26547 $as_echo "$gcc_cv_ld_buildid" >&6; }
26548 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26550 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26554 # Check whether --enable-linker-build-id was given.
26555 if test "${enable_linker_build_id+set}" = set; then :
26556 enableval
=$enable_linker_build_id;
26558 enable_linker_build_id
=no
26562 if test x
"$enable_linker_build_id" = xyes
; then
26563 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26565 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26569 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26573 # In binutils 2.21, GNU ld gained support for new emulations fully
26574 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26576 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26577 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26578 $as_echo_n "(cached) " >&6
26580 gcc_cv_ld_sol2_emulation
=no
26581 if test $in_tree_ld = yes ; then
26582 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26583 "$gcc_cv_gld_minor_version" -ge 21 -o \
26584 "$gcc_cv_gld_major_version" -gt 2 \
26585 && test $in_tree_ld_is_elf = yes; then
26586 gcc_cv_ld_sol2_emulation
=yes
26588 elif test x
$gcc_cv_ld != x
; then
26589 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26590 grep _sol2
> /dev
/null
; then
26591 gcc_cv_ld_sol2_emulation
=yes
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26596 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26597 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26599 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26604 $as_echo_n "checking linker --sysroot support... " >&6; }
26605 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26606 $as_echo_n "(cached) " >&6
26608 gcc_cv_ld_sysroot
=no
26609 if test $in_tree_ld = yes ; then
26610 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
26611 gcc_cv_ld_sysroot
=yes
26613 elif test x
$gcc_cv_ld != x
; then
26614 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26615 gcc_cv_ld_sysroot
=yes
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26620 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26621 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26623 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26627 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26628 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26629 && test "$prefix" != "NONE"; then
26631 cat >>confdefs.h
<<_ACEOF
26632 #define PREFIX_INCLUDE_DIR "$prefix/include"
26637 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26638 if test "x$with_headers" != x
; then
26639 target_header_dir
=$with_headers
26640 elif test "x$with_sysroot" = x
; then
26641 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
26642 elif test "x$with_build_sysroot" != "x"; then
26643 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26644 elif test "x$with_sysroot" = xyes
; then
26645 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26647 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26650 target_header_dir
=${native_system_header_dir}
26653 # Test for stack protector support in target C library.
26654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26655 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26656 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26657 $as_echo_n "(cached) " >&6
26659 gcc_cv_libc_provides_ssp
=no
26661 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26662 # glibc 2.4 and later provides __stack_chk_fail and
26663 # either __stack_chk_guard, or TLS access to stack guard canary.
26664 if test -f $target_header_dir/features.h \
26665 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26666 $target_header_dir/features.h
> /dev
/null
; then
26667 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26668 $target_header_dir/features.h
> /dev
/null
; then
26669 gcc_cv_libc_provides_ssp
=yes
26670 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26671 $target_header_dir/features.h
> /dev
/null \
26672 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26673 $target_header_dir/features.h
> /dev
/null
; then
26674 gcc_cv_libc_provides_ssp
=yes
26675 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26676 $target_header_dir/features.h
> /dev
/null
&& \
26677 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26678 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26679 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26680 gcc_cv_libc_provides_ssp
=yes
26682 # all versions of Bionic support stack protector
26683 elif test -f $target_header_dir/sys
/cdefs.h \
26684 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26685 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
26686 gcc_cv_libc_provides_ssp
=yes
26690 # Avoid complicated tests (see
26691 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26692 # simply assert that glibc does provide this, which is true for all
26693 # realistically usable GNU/Hurd configurations.
26694 gcc_cv_libc_provides_ssp
=yes;;
26695 *-*-darwin* |
*-*-freebsd*)
26696 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26697 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26698 gcc_cv_libc_provides_ssp
=yes
26700 echo "no __stack_chk_fail on this target"
26704 *) gcc_cv_libc_provides_ssp
=no
;;
26707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26708 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26710 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26712 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26716 # Test for <sys/sdt.h> on the target.
26718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26719 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26721 if test -f $target_header_dir/sys
/sdt.h
; then
26724 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26728 $as_echo "$have_sys_sdt_h" >&6; }
26730 # Check if TFmode long double should be used by default or not.
26731 # Some glibc targets used DFmode long double, but with glibc 2.4
26732 # and later they can use TFmode.
26734 powerpc
*-*-linux* | \
26735 sparc
*-*-linux* | \
26739 # Check whether --with-long-double-128 was given.
26740 if test "${with_long_double_128+set}" = set; then :
26741 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26743 gcc_cv_target_ldbl128
=no
26744 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26745 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26746 && gcc_cv_target_ldbl128
=yes
26752 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26754 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26759 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26760 gcc_cv_target_dl_iterate_phdr
=unknown
26762 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26763 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26764 # libdl there, both complicating its use and breaking compatibility
26765 # between Solaris 10 updates.
26766 *-*-solaris2.1
[1-9]*)
26767 # <link.h> needs both a dl_iterate_phdr declaration and support for
26768 # compilation with largefile support.
26769 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26770 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26771 gcc_cv_target_dl_iterate_phdr
=yes
26773 gcc_cv_target_dl_iterate_phdr
=no
26778 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26780 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26784 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26786 # Find out what GC implementation we want, or may, use.
26788 # Check whether --with-gc was given.
26789 if test "${with_gc+set}" = set; then :
26790 withval
=$with_gc; case "$withval" in
26797 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26801 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
26809 echo "Using $GGC for garbage collection."
26811 # Libraries to use on the host. This will normally be set by the top
26812 # level Makefile. Here we simply capture the value for our Makefile.
26813 if test -z "${HOST_LIBS+set}"; then
26818 # Use the system's zlib library.
26820 zlibinc
="-I\$(srcdir)/../zlib"
26822 # Check whether --with-system-zlib was given.
26823 if test "${with_system_zlib+set}" = set; then :
26824 withval
=$with_system_zlib; zlibdir
=
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26834 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26835 # Check whether --enable-maintainer-mode was given.
26836 if test "${enable_maintainer_mode+set}" = set; then :
26837 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26844 $as_echo "$maintainer_mode" >&6; }
26846 if test "$maintainer_mode" = "yes"; then
26856 # Make empty files to contain the specs and options for each language.
26857 # Then add #include lines to for a compiler that has specs and/or options.
26863 # These (without "all_") are set in each config-lang.in.
26864 # `language' must be a single word so is spelled singularly.
26867 all_outputs
='Makefile'
26868 # List of language makefile fragments.
26869 all_lang_makefrags
=
26870 # Additional files for gengtype
26871 all_gtfiles
="$target_gtfiles"
26873 # These are the languages that are set in --enable-languages,
26874 # and are available in the GCC tree.
26875 all_selected_languages
=
26877 # Add the language fragments.
26878 # Languages are added via two mechanisms. Some information must be
26879 # recorded in makefile variables, these are defined in config-lang.in.
26880 # We accumulate them and plug them into the main Makefile.
26881 # The other mechanism is a set of hooks for each of the main targets
26882 # like `clean', `install', etc.
26884 language_hooks
="Make-hooks"
26886 for lang
in ${srcdir}/*/config-lang.
in
26888 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26890 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26891 if test "x$lang_alias" = x
26893 echo "$lang doesn't set \$language." 1>&2
26896 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26897 subdirs
="$subdirs $subdir"
26899 # $gcc_subdir is where the gcc integration files are to be found
26900 # for a language, both for internal compiler purposes (compiler
26901 # sources implementing front-end to GCC tree converters), and for
26902 # build infrastructure purposes (Make-lang.in, etc.)
26904 # This will be <subdir> (relative to $srcdir) if a line like
26905 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26906 # is found in <langdir>/config-lang.in, and will remain <langdir>
26909 # Except for the language alias (fetched above), the regular
26910 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26911 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26912 # only this and the language alias.
26914 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26915 if [ "$gcc_subdir" = "" ]; then
26916 gcc_subdir
="$subdir"
26919 case ",$enable_languages," in
26921 all_selected_languages
="$all_selected_languages $lang_alias"
26922 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
26923 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26934 .
${srcdir}/$gcc_subdir/config-lang.
in
26935 if test "x$language" = x
26937 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26942 case ",$enable_languages," in
26943 *,$lang_alias,*) ;;
26945 for i
in $subdir_requires; do
26946 test -f "${srcdir}/$i/config-lang.in" && continue
26954 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26955 if test -f $srcdir/$gcc_subdir/lang.opt
; then
26956 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26957 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26959 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
26960 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26962 all_languages
="$all_languages $language"
26963 all_compilers
="$all_compilers $compilers"
26964 all_outputs
="$all_outputs $outputs"
26965 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
26966 case ",$enable_languages," in
26969 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26979 for language
in $all_selected_languages
26981 check_languages
="$check_languages check-$language"
26984 # We link each language in with a set of hooks, reached indirectly via
26985 # lang.${target}. Only do so for selected languages.
26989 target_list
="all.cross start.encap rest.encap tags \
26990 install-common install-man install-info install-pdf install-html dvi \
26991 pdf html uninstall info man srcextra srcman srcinfo \
26992 mostlyclean clean distclean maintainer-clean install-plugin"
26994 for t
in $target_list
26997 for lang
in $all_selected_languages
27001 echo "lang.$t: $x" >> Make-hooks
27005 # Option include files
27008 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27009 option_includes
="option-includes.mk"
27018 echo "dir ." > .gdbinit
27019 echo "dir ${srcdir}" >> .gdbinit
27020 if test x
$gdb_needs_out_file_path = xyes
27022 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27024 if test "x$subdirs" != x
; then
27027 echo "dir ${srcdir}/$s" >> .gdbinit
27030 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27032 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27036 # Find a directory in which to install a shared libgcc.
27038 # Check whether --enable-version-specific-runtime-libs was given.
27039 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27040 enableval
=$enable_version_specific_runtime_libs;
27044 # Substitute configuration variables
27108 if test x
${build} = x
${host} ; then
27109 if test x
${host} = x
${target} ; then
27110 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27112 echo "Links are now set up to build a cross-compiler" 1>&2
27113 echo " from ${host} to ${target}." 1>&2
27116 if test x
${host} = x
${target} ; then
27117 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27118 echo " for ${target}." 1>&2
27120 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27121 echo " from ${host} to ${target}." 1>&2
27133 if test "x${CLOOGLIBS}" != "x" ; then
27135 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27139 # Check for plugin support
27140 # Check whether --enable-plugin was given.
27141 if test "${enable_plugin+set}" = set; then :
27142 enableval
=$enable_plugin; enable_plugin
=$enableval
27144 enable_plugin
=yes; default_plugin
=yes
27152 if test x
$build = x
$host; then
27153 export_sym_check
="nm${exeext} -g"
27154 elif test x
$host = x
$target; then
27155 export_sym_check
="$gcc_cv_nm -g"
27161 if test x
$build = x
$host; then
27162 export_sym_check
="objdump${exeext} -T"
27163 elif test x
$host = x
$target; then
27164 export_sym_check
="$gcc_cv_objdump -T"
27171 if test x
"$enable_plugin" = x
"yes"; then
27173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27174 $as_echo_n "checking for exported symbols... " >&6; }
27175 if test "x$export_sym_check" != x
; then
27176 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27177 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27178 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27179 : # No need to use a flag
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27181 $as_echo "yes" >&6; }
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27184 $as_echo "yes" >&6; }
27185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27186 $as_echo_n "checking for -rdynamic... " >&6; }
27187 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27188 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27189 plugin_rdynamic
=yes
27190 pluginlibs
="-rdynamic"
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27196 $as_echo "$plugin_rdynamic" >&6; }
27199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27200 $as_echo "unable to check" >&6; }
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27206 $as_echo_n "checking for library containing dlopen... " >&6; }
27207 if test "${ac_cv_search_dlopen+set}" = set; then :
27208 $as_echo_n "(cached) " >&6
27210 ac_func_search_save_LIBS
=$LIBS
27211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27212 /* end confdefs.h. */
27214 /* Override any GCC internal prototype to avoid an error.
27215 Use char because int might match the return type of a GCC
27216 builtin and then its argument prototype would still apply. */
27229 for ac_lib
in '' dl
; do
27230 if test -z "$ac_lib"; then
27231 ac_res
="none required"
27234 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27236 if ac_fn_c_try_link
"$LINENO"; then :
27237 ac_cv_search_dlopen
=$ac_res
27239 rm -f core conftest.err conftest.
$ac_objext \
27241 if test "${ac_cv_search_dlopen+set}" = set; then :
27245 if test "${ac_cv_search_dlopen+set}" = set; then :
27248 ac_cv_search_dlopen
=no
27250 rm conftest.
$ac_ext
27251 LIBS
=$ac_func_search_save_LIBS
27253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27254 $as_echo "$ac_cv_search_dlopen" >&6; }
27255 ac_res
=$ac_cv_search_dlopen
27256 if test "$ac_res" != no
; then :
27257 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27261 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27262 pluginlibs
="$pluginlibs -ldl"
27266 # Check that we can build shared objects with -fPIC -shared
27267 saved_LDFLAGS
="$LDFLAGS"
27268 saved_CFLAGS
="$CFLAGS"
27271 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27272 CFLAGS
="$CFLAGS -fPIC"
27273 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27276 CFLAGS
="$CFLAGS -fPIC"
27277 LDFLAGS
="$LDFLAGS -fPIC -shared"
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27281 $as_echo_n "checking for -fPIC -shared... " >&6; }
27282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27283 /* end confdefs.h. */
27293 if ac_fn_c_try_link
"$LINENO"; then :
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27295 $as_echo "yes" >&6; }; have_pic_shared
=yes
27297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27298 $as_echo "no" >&6; }; have_pic_shared
=no
27300 rm -f core conftest.err conftest.
$ac_objext \
27301 conftest
$ac_exeext conftest.
$ac_ext
27302 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27306 LDFLAGS
="$saved_LDFLAGS"
27307 CFLAGS
="$saved_CFLAGS"
27309 # If plugin support had been requested but not available, fail.
27310 if test x
"$enable_plugin" = x
"no" ; then
27311 if test x
"$default_plugin" != x
"yes"; then
27313 Building GCC with plugin support requires a host that supports
27314 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27321 if test x
"$enable_plugin" = x
"yes"; then
27323 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27328 # Check whether --enable-libquadmath-support was given.
27329 if test "${enable_libquadmath_support+set}" = set; then :
27330 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27332 ENABLE_LIBQUADMATH_SUPPORT
=yes
27335 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27337 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27342 # Specify what hash style to use by default.
27344 # Check whether --with-linker-hash-style was given.
27345 if test "${with_linker_hash_style+set}" = set; then :
27346 withval
=$with_linker_hash_style; case x
"$withval" in
27348 LINKER_HASH_STYLE
=sysv
27351 LINKER_HASH_STYLE
=gnu
27354 LINKER_HASH_STYLE
=both
27357 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27361 LINKER_HASH_STYLE
=''
27364 if test x
"${LINKER_HASH_STYLE}" != x
; then
27366 cat >>confdefs.h
<<_ACEOF
27367 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27372 # Configure the subdirectories
27373 # AC_CONFIG_SUBDIRS($subdirs)
27375 # Create the Makefile
27376 # and configure language subdirectories
27377 ac_config_files
="$ac_config_files $all_outputs"
27380 ac_config_commands
="$ac_config_commands default"
27382 cat >confcache
<<\_ACEOF
27383 # This file is a shell script that caches the results of configure
27384 # tests run on this system so they can be shared between configure
27385 # scripts and configure runs, see configure's option --config-cache.
27386 # It is not useful on other systems. If it contains results you don't
27387 # want to keep, you may remove or edit it.
27389 # config.status only pays attention to the cache file if you give it
27390 # the --recheck option to rerun configure.
27392 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27393 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27394 # following values.
27398 # The following way of writing the cache mishandles newlines in values,
27399 # but we know of no workaround that is simple, portable, and efficient.
27400 # So, we kill variables containing newlines.
27401 # Ultrix sh set writes to stderr and can't be redirected directly,
27402 # and sets the high bit in the cache file unless we assign to the vars.
27404 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27405 eval ac_val
=\$
$ac_var
27409 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27410 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27413 _ | IFS | as_nl
) ;; #(
27414 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27415 *) { eval $ac_var=; unset $ac_var;} ;;
27421 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27422 *${as_nl}ac_space
=\
*)
27423 # `set' does not quote correctly, so add quotes: double-quote
27424 # substitution turns \\\\ into \\, and sed turns \\ into \.
27427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27430 # `set' quotes correctly as required by POSIX, so do not add quotes.
27431 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27440 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27442 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27444 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27445 if test -w "$cache_file"; then
27446 test "x$cache_file" != "x/dev/null" &&
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27448 $as_echo "$as_me: updating cache $cache_file" >&6;}
27449 cat confcache
>$cache_file
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27452 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27457 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27458 # Let make expand exec_prefix.
27459 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27461 DEFS
=-DHAVE_CONFIG_H
27465 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27466 # 1. Remove the extension, and $U if already installed.
27467 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27468 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27469 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27470 # will be set to the directory where LIBOBJS objects are built.
27471 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27472 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27474 LIBOBJS
=$ac_libobjs
27476 LTLIBOBJS
=$ac_ltlibobjs
27481 : ${CONFIG_STATUS=./config.status}
27483 ac_clean_files_save
=$ac_clean_files
27484 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27486 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27488 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27490 # Generated by $as_me.
27491 # Run this file to recreate the current configuration.
27492 # Compiler output produced by configure, useful for debugging
27493 # configure, is in config.log if it exists.
27496 ac_cs_recheck=false
27499 SHELL=\${CONFIG_SHELL-$SHELL}
27502 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27503 ## -------------------- ##
27504 ## M4sh Initialization. ##
27505 ## -------------------- ##
27507 # Be more Bourne compatible
27508 DUALCASE
=1; export DUALCASE
# for MKS sh
27509 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27512 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27513 # is contrary to our usage. Disable this feature.
27514 alias -g '${1+"$@"}'='"$@"'
27515 setopt NO_GLOB_SUBST
27517 case `(set -o) 2>/dev/null` in #(
27529 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27530 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27531 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27532 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27533 # Prefer a ksh shell builtin over an external printf program on Solaris,
27534 # but without wasting forks for bash or zsh.
27535 if test -z "$BASH_VERSION$ZSH_VERSION" \
27536 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27537 as_echo='print
-r --'
27538 as_echo_n='print
-rn --'
27539 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27540 as_echo='printf %s
\n'
27541 as_echo_n='printf %s
'
27543 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27544 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27545 as_echo_n='/usr
/ucb
/echo -n'
27547 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27548 as_echo_n_body='eval
27552 expr "X$arg" : "X\\(.*\\)$as_nl";
27553 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27555 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27557 export as_echo_n_body
27558 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27560 export as_echo_body
27561 as_echo='sh
-c $as_echo_body as_echo
'
27564 # The user is always right.
27565 if test "${PATH_SEPARATOR+set}" != set; then
27567 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27568 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27575 # We need space, tab and new line, in precisely that order. Quoting is
27576 # there to prevent editors from complaining about space-tab.
27577 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27578 # splitting by setting IFS to empty value.)
27581 # Find who we are. Look in the path if we contain no directory separator.
27583 *[\\/]* ) as_myself=$0 ;;
27584 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27585 for as_dir in $PATH
27588 test -z "$as_dir" && as_dir=.
27589 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27595 # We did not find ourselves, most probably we were run as `sh COMMAND'
27596 # in which case we are not to be found in the path.
27597 if test "x$as_myself" = x
; then
27600 if test ! -f "$as_myself"; then
27601 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27605 # Unset variables that we do not need and which cause bugs (e.g. in
27606 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27607 # suppresses any "Segmentation fault" message there. '((' could
27608 # trigger a bug in pdksh 5.2.14.
27609 for as_var
in BASH_ENV ENV MAIL MAILPATH
27610 do eval test x\
${$as_var+set} = xset \
27611 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27624 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27627 # as_fn_error ERROR [LINENO LOG_FD]
27628 # ---------------------------------
27629 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27630 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27631 # script with status $?, using 1 if that was 0.
27634 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27636 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27637 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27639 $as_echo "$as_me: error: $1" >&2
27640 as_fn_exit
$as_status
27644 # as_fn_set_status STATUS
27645 # -----------------------
27646 # Set $? to STATUS, without forking.
27647 as_fn_set_status
()
27650 } # as_fn_set_status
27652 # as_fn_exit STATUS
27653 # -----------------
27654 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27658 as_fn_set_status
$1
27664 # Portably unset VAR.
27667 { eval $1=; unset $1;}
27669 as_unset
=as_fn_unset
27670 # as_fn_append VAR VALUE
27671 # ----------------------
27672 # Append the text in VALUE to the end of the definition contained in VAR. Take
27673 # advantage of any shell optimizations that allow amortized linear growth over
27674 # repeated appends, instead of the typical quadratic growth present in naive
27676 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27677 eval 'as_fn_append ()
27688 # as_fn_arith ARG...
27689 # ------------------
27690 # Perform arithmetic evaluation on the ARGs, and store the result in the
27691 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27692 # must be portable across $(()) and expr.
27693 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27694 eval 'as_fn_arith ()
27701 as_val
=`expr "$@" || test $? -eq 1`
27706 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27707 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27713 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27714 as_basename
=basename
27719 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27725 as_me
=`$as_basename -- "$0" ||
27726 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27727 X"$0" : 'X\(//\)$' \| \
27728 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27730 sed '/^.*\/\([^/][^/]*\)\/*$/{
27744 # Avoid depending upon Character Ranges.
27745 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27746 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27747 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27748 as_cr_digits
='0123456789'
27749 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27751 ECHO_C
= ECHO_N
= ECHO_T
=
27752 case `echo -n x` in #(((((
27754 case `echo 'xy\c'` in
27755 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27757 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27764 rm -f conf$$ conf$$.exe conf$$.
file
27765 if test -d conf$$.dir
; then
27766 rm -f conf$$.dir
/conf$$.
file
27769 mkdir conf$$.dir
2>/dev
/null
27771 if (echo >conf$$.
file) 2>/dev
/null
; then
27772 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27774 # ... but there are two gotchas:
27775 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27776 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27777 # In both cases, we have to default to `cp -p'.
27778 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27780 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27788 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27789 rmdir conf$$.dir
2>/dev
/null
27794 # Create "$as_dir" as a directory, including parents if necessary.
27799 -*) as_dir
=.
/$as_dir;;
27801 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27805 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27806 *) as_qdir
=$as_dir;;
27808 as_dirs
="'$as_qdir' $as_dirs"
27809 as_dir
=`$as_dirname -- "$as_dir" ||
27810 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27811 X"$as_dir" : 'X\(//\)[^/]' \| \
27812 X"$as_dir" : 'X\(//\)$' \| \
27813 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27814 $as_echo X"$as_dir" |
27815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27819 /^X\(\/\/\)[^/].*/{
27832 test -d "$as_dir" && break
27834 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27835 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27839 if mkdir
-p .
2>/dev
/null
; then
27840 as_mkdir_p
='mkdir -p "$as_dir"'
27842 test -d .
/-p && rmdir .
/-p
27846 if test -x / >/dev
/null
2>&1; then
27847 as_test_x
='test -x'
27849 if ls -dL / >/dev
/null
2>&1; then
27856 if test -d "$1"; then
27862 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27863 ???[sx]*):;;*)false;;esac;fi
27867 as_executable_p
=$as_test_x
27869 # Sed expression to map a string onto a valid CPP name.
27870 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27872 # Sed expression to map a string onto a valid variable name.
27873 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27877 ## ----------------------------------- ##
27878 ## Main body of $CONFIG_STATUS script. ##
27879 ## ----------------------------------- ##
27881 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27884 # Save the log message, to keep $0 and so on meaningful, and to
27885 # report actual input values of CONFIG_FILES etc. instead of their
27886 # values after options handling.
27888 This file was extended by $as_me, which was
27889 generated by GNU Autoconf 2.64. Invocation command line was
27891 CONFIG_FILES = $CONFIG_FILES
27892 CONFIG_HEADERS = $CONFIG_HEADERS
27893 CONFIG_LINKS = $CONFIG_LINKS
27894 CONFIG_COMMANDS = $CONFIG_COMMANDS
27897 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27902 case $ac_config_files in *"
27903 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27906 case $ac_config_headers in *"
27907 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27912 # Files that config.status was made for.
27913 config_files="$ac_config_files"
27914 config_headers="$ac_config_headers"
27915 config_commands="$ac_config_commands"
27919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27921 \`$as_me' instantiates files and other configuration actions
27922 from templates according to the current configuration. Unless the files
27923 and actions are specified as TAGs, all are instantiated by default.
27925 Usage: $0 [OPTION]... [TAG]...
27927 -h, --help print this help, then exit
27928 -V, --version print version number and configuration settings, then exit
27929 -q, --quiet, --silent
27930 do not print progress messages
27931 -d, --debug don't remove temporary files
27932 --recheck update $as_me by reconfiguring in the same conditions
27933 --file=FILE[:TEMPLATE]
27934 instantiate the configuration file FILE
27935 --header=FILE[:TEMPLATE]
27936 instantiate the configuration header FILE
27938 Configuration files:
27941 Configuration headers:
27944 Configuration commands:
27947 Report bugs to the package provider."
27950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27953 configured by $0, generated by GNU Autoconf 2.64,
27954 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27956 Copyright (C) 2009 Free Software Foundation, Inc.
27957 This config.status script is free software; the Free Software Foundation
27958 gives unlimited permission to copy, distribute and modify it."
27963 test -n "\$AWK" || AWK=awk
27966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27967 # The default lists apply if the user does not specify any file.
27973 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27974 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27985 # Handling of the options.
27986 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27988 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27989 $as_echo "$ac_cs_version"; exit ;;
27990 --debug |
--debu |
--deb |
--de |
--d |
-d )
27992 --file |
--fil |
--fi |
--f )
27995 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27997 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27998 ac_need_defaults
=false
;;
27999 --header |
--heade |
--head |
--hea )
28002 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28004 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28005 ac_need_defaults
=false
;;
28007 # Conflict between --help and --header
28008 as_fn_error
"ambiguous option: \`$1'
28009 Try \`$0 --help' for more information.";;
28010 --help |
--hel |
-h )
28011 $as_echo "$ac_cs_usage"; exit ;;
28012 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28013 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28016 # This is an error.
28017 -*) as_fn_error
"unrecognized option: \`$1'
28018 Try \`$0 --help' for more information." ;;
28020 *) as_fn_append ac_config_targets
" $1"
28021 ac_need_defaults
=false
;;
28027 ac_configure_extra_args
=
28029 if $ac_cs_silent; then
28031 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28036 if \$ac_cs_recheck; then
28037 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28039 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28040 CONFIG_SHELL='$SHELL'
28041 export CONFIG_SHELL
28046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28050 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28051 ## Running $as_me. ##
28057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28067 # Handling of arguments.
28068 for ac_config_target
in $ac_config_targets
28070 case $ac_config_target in
28071 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28072 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28073 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28074 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28075 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28076 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28078 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28083 # If the user did not use the arguments to specify the items to instantiate,
28084 # then the envvar interface is used. Set only those that are not.
28085 # We use the long form for the default assignment because of an extremely
28086 # bizarre bug on SunOS 4.1.3.
28087 if $ac_need_defaults; then
28088 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28089 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28090 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28093 # Have a temporary directory for convenience. Make it in the build tree
28094 # simply because there is no reason against having it here, and in addition,
28095 # creating and moving files from /tmp can sometimes cause problems.
28096 # Hook for its removal unless debugging.
28097 # Note that there is a small window in which the directory will not be cleaned:
28098 # after its creation but before its name has been assigned to `$tmp'.
28102 trap 'exit_status=$?
28103 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28105 trap 'as_fn_exit 1' 1 2 13 15
28107 # Create a (secure) tmp directory for tmp files.
28110 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28111 test -n "$tmp" && test -d "$tmp"
28114 tmp
=.
/conf$$
-$RANDOM
28115 (umask 077 && mkdir
"$tmp")
28116 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28118 # Set up the scripts for CONFIG_FILES section.
28119 # No need to generate them if there are no CONFIG_FILES.
28120 # This happens for instance with `./config.status config.h'.
28121 if test -n "$CONFIG_FILES"; then
28123 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28124 ac_cs_awk_getline
=:
28125 ac_cs_awk_pipe_init
=
28126 ac_cs_awk_read_file
='
28127 while ((getline aline < (F[key])) > 0)
28130 ac_cs_awk_pipe_fini
=
28132 ac_cs_awk_getline
=false
28133 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28134 ac_cs_awk_read_file
='
28136 print "cat " F[key] " &&"
28137 '$ac_cs_awk_pipe_init
28138 # The final `:' finishes the AND list.
28139 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28141 ac_cr
=`echo X | tr X '\015'`
28142 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28143 # But we know of no other shell where ac_cr would be empty at this
28144 # point, so we can use a bashism as a fallback.
28145 if test "x$ac_cr" = x
; then
28146 eval ac_cr
=\$
\'\\r
\'
28148 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28149 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28152 ac_cs_awk_cr
=$ac_cr
28155 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28158 # Create commands to substitute file output variables.
28160 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28161 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28162 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28165 } >conf$
$files.sh
&&
28166 . .
/conf$
$files.sh ||
28167 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28168 rm -f conf$
$files.sh
28171 echo "cat >conf$$subs.awk <<_ACEOF" &&
28172 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28174 } >conf$$subs.sh ||
28175 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28176 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28178 for ac_last_try in false false false false false :; do
28179 . ./conf$$subs.sh ||
28180 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28182 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28183 if test $ac_delim_n = $ac_delim_num; then
28185 elif $ac_last_try; then
28186 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28188 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28191 rm -f conf$$subs.sh
28193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28194 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28198 s/^/S["/; s
/!.
*/"]=/
28208 s/\(.\{148\}\).*/\1/
28210 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28215 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28222 s/\(.\{148\}\).*/\1/
28224 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28228 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28233 ' <conf$$subs.awk | sed '
28238 ' >>$CONFIG_STATUS || ac_write_fail=1
28239 rm -f conf$$subs.awk
28240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28242 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28243 for (key in S) S_is_set[key] = 1
28245 \$ac_cs_awk_pipe_init
28249 nfields = split(line, field, "@
")
28251 len = length(field[1])
28252 for (i = 2; i < nfields; i++) {
28254 keylen = length(key)
28255 if (S_is_set[key]) {
28257 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28258 len += length(value) + length(field[++i])
28263 if (nfields == 3 && !substed) {
28265 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28266 \$ac_cs_awk_read_file
28272 \$ac_cs_awk_pipe_fini
28275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28276 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28277 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28280 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28281 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28284 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28285 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28286 # trailing colons and then remove the whole line if VPATH becomes empty
28287 # (actually we leave an empty line to preserve line numbers).
28288 if test "x
$srcdir" = x.; then
28289 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28290 s/:*\$(srcdir):*/:/
28291 s/:*\${srcdir}:*/:/
28293 s/^\([^=]*=[ ]*\):*/\1/
28299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28300 fi # test -n "$CONFIG_FILES"
28302 # Set up the scripts for CONFIG_HEADERS section.
28303 # No need to generate them if there are no CONFIG_HEADERS.
28304 # This happens for instance with `./config.status Makefile'.
28305 if test -n "$CONFIG_HEADERS"; then
28306 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28310 # Transform confdefs.h into an awk script `defines.awk', embedded as
28311 # here-document in config.status, that substitutes the proper values into
28312 # config.h.in to produce config.h.
28314 # Create a delimiter string that does not exist in confdefs.h, to ease
28315 # handling of long lines.
28317 for ac_last_try in false false :; do
28318 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28319 if test -z "$ac_t"; then
28321 elif $ac_last_try; then
28322 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28324 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28328 # For the awk script, D is an array of macro values keyed by name,
28329 # likewise P contains macro parameters if any. Preserve backslash
28330 # newline sequences.
28332 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28334 s/.\{148\}/&'"$ac_delim"'/g
28337 s/^[ ]*#[ ]*define[ ][ ]*/ /
28344 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28346 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28350 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28351 D["\
1"]=" \
3\\\\\\n
"\\/p
28353 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28358 s/.\{148\}/&'"$ac_delim"'/g
28363 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28366 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28368 ' <confdefs.h | sed '
28369 s/'"$ac_delim"'/"\\\
28370 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28373 for (key in D) D_is_set[key] = 1
28376 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28378 split(line, arg, " ")
28379 if (arg[1] == "#") {
28383 defundef
= substr
(arg
[1], 2)
28386 split(mac1
, mac2
, "(") #)
28388 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28389 if (D_is_set
[macro
]) {
28390 # Preserve the white space surrounding the "#".
28391 print prefix
"define", macro P
[macro
] D
[macro
]
28394 # Replace #undef with comments. This is necessary, for example,
28395 # in the case of _POSIX_SOURCE, which is predefined and required
28396 # on some systems where configure will not decide to define it.
28397 if (defundef
== "undef") {
28398 print
"/*", prefix defundef
, macro
, "*/"
28406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28407 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28408 fi # test -n "$CONFIG_HEADERS"
28411 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28416 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28418 case $ac_mode$ac_tag in
28420 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28421 :[FH
]-) ac_tag
=-:-;;
28422 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28439 -) ac_f
="$tmp/stdin";;
28440 *) # Look for the file first in the build tree, then in the source tree
28441 # (if the path is not absolute). The absolute path cannot be DOS-style,
28442 # because $ac_f cannot contain `:'.
28446 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28448 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28450 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28451 as_fn_append ac_file_inputs
" '$ac_f'"
28454 # Let's still pretend it is `configure' which instantiates (i.e., don't
28455 # use $as_me), people would be surprised to read:
28456 # /* config.h. Generated by config.status. */
28457 configure_input
='Generated from '`
28458 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28460 if test x
"$ac_file" != x-
; then
28461 configure_input
="$ac_file. $configure_input"
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28463 $as_echo "$as_me: creating $ac_file" >&6;}
28465 # Neutralize special characters interpreted by sed in replacement strings.
28466 case $configure_input in #(
28467 *\
&* |
*\|
* |
*\\* )
28468 ac_sed_conf_input
=`$as_echo "$configure_input" |
28469 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28470 *) ac_sed_conf_input
=$configure_input;;
28474 *:-:* |
*:-) cat >"$tmp/stdin" \
28475 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28480 ac_dir
=`$as_dirname -- "$ac_file" ||
28481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28482 X"$ac_file" : 'X\(//\)[^/]' \| \
28483 X"$ac_file" : 'X\(//\)$' \| \
28484 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28485 $as_echo X"$ac_file" |
28486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28490 /^X\(\/\/\)[^/].*/{
28503 as_dir
="$ac_dir"; as_fn_mkdir_p
28507 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28509 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28510 # A ".." for each directory in $ac_dir_suffix.
28511 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28512 case $ac_top_builddir_sub in
28513 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28514 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28517 ac_abs_top_builddir
=$ac_pwd
28518 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28519 # for backward compatibility:
28520 ac_top_builddir
=$ac_top_build_prefix
28523 .
) # We are building in place.
28525 ac_top_srcdir
=$ac_top_builddir_sub
28526 ac_abs_top_srcdir
=$ac_pwd ;;
28527 [\\/]* | ?
:[\\/]* ) # Absolute name.
28528 ac_srcdir
=$srcdir$ac_dir_suffix;
28529 ac_top_srcdir
=$srcdir
28530 ac_abs_top_srcdir
=$srcdir ;;
28531 *) # Relative name.
28532 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28533 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28534 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28536 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28548 # If the template does not know about datarootdir, expand it.
28549 # FIXME: This hack should be removed a few years after 2.60.
28550 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28561 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28562 *datarootdir
*) ac_datarootdir_seen
=yes;;
28563 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28565 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28568 ac_datarootdir_hack='
28569 s&@datadir@&$datadir&g
28570 s&@docdir@&$docdir&g
28571 s&@infodir@&$infodir&g
28572 s&@localedir@&$localedir&g
28573 s&@mandir@&$mandir&g
28574 s&\\\${datarootdir}&$datarootdir&g' ;;
28578 # Neutralize VPATH when `$srcdir' = `.'.
28579 # Shell code in configure.ac might set extrasub.
28580 # FIXME: do we really want to maintain this feature?
28581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28582 ac_sed_extra="$ac_vpsub
28585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28587 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28588 s|@configure_input@|
$ac_sed_conf_input|
;t t
28589 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28590 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28591 s
&@srcdir@
&$ac_srcdir&;t t
28592 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28593 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28594 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28595 s
&@builddir@
&$ac_builddir&;t t
28596 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28597 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28598 $ac_datarootdir_hack
28600 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28601 if $ac_cs_awk_getline; then
28602 $AWK -f "$tmp/subs.
awk"
28604 $AWK -f "$tmp/subs.
awk" | $SHELL
28606 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28608 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28609 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28610 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28612 which seems to be undefined. Please make sure it is defined." >&5
28613 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28614 which seems to be undefined. Please make sure it is defined." >&2;}
28618 -) cat "$tmp/out" && rm -f "$tmp/out";;
28619 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28621 || as_fn_error "could not create $ac_file" "$LINENO" 5
28627 if test x"$ac_file" != x-; then
28629 $as_echo "/* $configure_input */" \
28630 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28631 } >"$tmp/config.h" \
28632 || as_fn_error "could not create $ac_file" "$LINENO" 5
28633 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28634 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28635 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28638 mv "$tmp/config.h" "$ac_file" \
28639 || as_fn_error "could not create $ac_file" "$LINENO" 5
28642 $as_echo "/* $configure_input */" \
28643 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28644 || as_fn_error "could not create -" "$LINENO" 5
28648 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28649 $as_echo "$as_me: executing $ac_file commands" >&6;}
28654 case $ac_file$ac_mode in
28655 "as":F) chmod +x as ;;
28656 "collect-ld":F) chmod +x collect-ld ;;
28657 "nm":F) chmod +x nm ;;
28659 case ${CONFIG_HEADERS} in
28660 *auto-host.h:config.in*)
28663 # Make sure all the subdirs exist.
28664 for d in $subdirs doc build common c-family
28666 test -d $d || mkdir $d
28676 ac_clean_files=$ac_clean_files_save
28678 test $ac_write_fail = 0 ||
28679 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28682 # configure is writing to config.log, and then calls config.status.
28683 # config.status does its own redirection, appending to config.log.
28684 # Unfortunately, on DOS this fails, as config.log is still kept open
28685 # by configure, so config.status won't be able to
write to it
; its
28686 # output is simply discarded. So we exec the FD to /dev/null,
28687 # effectively closing config.log, so it can be properly (re)opened and
28688 # appended to by config.status. When coming back to configure, we
28689 # need to make the FD available again.
28690 if test "$no_create" != yes; then
28692 ac_config_status_args
=
28693 test "$silent" = yes &&
28694 ac_config_status_args
="$ac_config_status_args --quiet"
28696 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28698 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28699 # would make configure fail if this is the last instruction.
28700 $ac_cs_success || as_fn_exit $?
28702 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28704 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}