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
771 valgrind_path_defines
845 program_transform_name
856 ac_subst_files
='option_includes
859 enable_option_checking
864 enable_generated_files_in_srcdir
874 enable_gather_detailed_mem_stats
885 with_native_system_header_dir
895 enable_sjlj_exceptions
897 enable_leading_mingw64_underscores
900 enable_win32_registry
906 enable_gnu_indirect_function
907 enable_initfini_array
909 enable_gnu_unique_object
910 enable_linker_build_id
914 enable_maintainer_mode
915 enable_version_specific_runtime_libs
917 enable_libquadmath_support
918 with_linker_hash_style
920 ac_precious_vars
='build_alias
941 # Initialize some variables set by options.
943 ac_init_version
=false
944 ac_unrecognized_opts
=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
955 program_transform_name
=s
,x
,x
,
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir
='${exec_prefix}/bin'
970 sbindir
='${exec_prefix}/sbin'
971 libexecdir
='${exec_prefix}/libexec'
972 datarootdir
='${prefix}/share'
973 datadir
='${datarootdir}'
974 sysconfdir
='${prefix}/etc'
975 sharedstatedir
='${prefix}/com'
976 localstatedir
='${prefix}/var'
977 includedir
='${prefix}/include'
978 oldincludedir
='/usr/include'
979 docdir
='${datarootdir}/doc/${PACKAGE}'
980 infodir
='${datarootdir}/info'
985 libdir
='${exec_prefix}/lib'
986 localedir
='${datarootdir}/locale'
987 mandir
='${datarootdir}/man'
993 # If the previous option needs an argument, assign it.
994 if test -n "$ac_prev"; then
995 eval $ac_prev=\
$ac_option
1001 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005 # Accept the important Cygnus configure options, so we can diagnose typos.
1007 case $ac_dashdash$ac_option in
1011 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1013 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1014 bindir
=$ac_optarg ;;
1016 -build |
--build |
--buil |
--bui |
--bu)
1017 ac_prev
=build_alias
;;
1018 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1019 build_alias
=$ac_optarg ;;
1021 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1022 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1023 ac_prev
=cache_file
;;
1024 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1025 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1026 cache_file
=$ac_optarg ;;
1028 --config-cache |
-C)
1029 cache_file
=config.cache
;;
1031 -datadir |
--datadir |
--datadi |
--datad)
1033 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1034 datadir
=$ac_optarg ;;
1036 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1037 |
--dataroo |
--dataro |
--datar)
1038 ac_prev
=datarootdir
;;
1039 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1040 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1041 datarootdir
=$ac_optarg ;;
1043 -disable-* |
--disable-*)
1044 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1047 as_fn_error
"invalid feature name: $ac_useropt"
1048 ac_useropt_orig
=$ac_useropt
1049 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1052 "enable_
$ac_useropt"
1054 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055 ac_unrecognized_sep
=', ';;
1057 eval enable_
$ac_useropt=no
;;
1059 -docdir |
--docdir |
--docdi |
--doc |
--do)
1061 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1062 docdir
=$ac_optarg ;;
1064 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1066 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1067 dvidir
=$ac_optarg ;;
1069 -enable-* |
--enable-*)
1070 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1073 as_fn_error
"invalid feature name: $ac_useropt"
1074 ac_useropt_orig
=$ac_useropt
1075 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "enable_
$ac_useropt"
1080 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081 ac_unrecognized_sep
=', ';;
1083 eval enable_
$ac_useropt=\
$ac_optarg ;;
1085 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1086 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1087 |
--exec |
--exe |
--ex)
1088 ac_prev
=exec_prefix
;;
1089 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1090 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1091 |
--exec=* |
--exe=* |
--ex=*)
1092 exec_prefix
=$ac_optarg ;;
1094 -gas |
--gas |
--ga |
--g)
1095 # Obsolete; use --with-gas.
1098 -help |
--help |
--hel |
--he |
-h)
1099 ac_init_help
=long
;;
1100 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1101 ac_init_help
=recursive
;;
1102 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1103 ac_init_help
=short
;;
1105 -host |
--host |
--hos |
--ho)
1106 ac_prev
=host_alias
;;
1107 -host=* |
--host=* |
--hos=* |
--ho=*)
1108 host_alias
=$ac_optarg ;;
1110 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1112 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1114 htmldir
=$ac_optarg ;;
1116 -includedir |
--includedir |
--includedi |
--included |
--include \
1117 |
--includ |
--inclu |
--incl |
--inc)
1118 ac_prev
=includedir
;;
1119 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1120 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1121 includedir
=$ac_optarg ;;
1123 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1125 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1126 infodir
=$ac_optarg ;;
1128 -libdir |
--libdir |
--libdi |
--libd)
1130 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1131 libdir
=$ac_optarg ;;
1133 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1134 |
--libexe |
--libex |
--libe)
1135 ac_prev
=libexecdir
;;
1136 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1137 |
--libexe=* |
--libex=* |
--libe=*)
1138 libexecdir
=$ac_optarg ;;
1140 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1141 ac_prev
=localedir
;;
1142 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1143 localedir
=$ac_optarg ;;
1145 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1146 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1147 ac_prev
=localstatedir
;;
1148 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1149 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1150 localstatedir
=$ac_optarg ;;
1152 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1154 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1155 mandir
=$ac_optarg ;;
1157 -nfp |
--nfp |
--nf)
1158 # Obsolete; use --without-fp.
1161 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1162 |
--no-cr |
--no-c |
-n)
1165 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1166 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1169 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1170 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1171 |
--oldin |
--oldi |
--old |
--ol |
--o)
1172 ac_prev
=oldincludedir
;;
1173 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1174 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1175 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1176 oldincludedir
=$ac_optarg ;;
1178 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1180 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1181 prefix
=$ac_optarg ;;
1183 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1184 |
--program-pre |
--program-pr |
--program-p)
1185 ac_prev
=program_prefix
;;
1186 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1187 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1188 program_prefix
=$ac_optarg ;;
1190 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1191 |
--program-suf |
--program-su |
--program-s)
1192 ac_prev
=program_suffix
;;
1193 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1194 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1195 program_suffix
=$ac_optarg ;;
1197 -program-transform-name |
--program-transform-name \
1198 |
--program-transform-nam |
--program-transform-na \
1199 |
--program-transform-n |
--program-transform- \
1200 |
--program-transform |
--program-transfor \
1201 |
--program-transfo |
--program-transf \
1202 |
--program-trans |
--program-tran \
1203 |
--progr-tra |
--program-tr |
--program-t)
1204 ac_prev
=program_transform_name
;;
1205 -program-transform-name=* |
--program-transform-name=* \
1206 |
--program-transform-nam=* |
--program-transform-na=* \
1207 |
--program-transform-n=* |
--program-transform-=* \
1208 |
--program-transform=* |
--program-transfor=* \
1209 |
--program-transfo=* |
--program-transf=* \
1210 |
--program-trans=* |
--program-tran=* \
1211 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1212 program_transform_name
=$ac_optarg ;;
1214 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1216 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1217 pdfdir
=$ac_optarg ;;
1219 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1221 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1224 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1225 |
-silent |
--silent |
--silen |
--sile |
--sil)
1228 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1230 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1232 sbindir
=$ac_optarg ;;
1234 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1235 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1236 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1238 ac_prev
=sharedstatedir
;;
1239 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1240 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1241 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1243 sharedstatedir
=$ac_optarg ;;
1245 -site |
--site |
--sit)
1247 -site=* |
--site=* |
--sit=*)
1250 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1252 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1253 srcdir
=$ac_optarg ;;
1255 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1256 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1257 ac_prev
=sysconfdir
;;
1258 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1259 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1260 sysconfdir
=$ac_optarg ;;
1262 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1263 ac_prev
=target_alias
;;
1264 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1265 target_alias
=$ac_optarg ;;
1267 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1270 -version |
--version |
--versio |
--versi |
--vers |
-V)
1271 ac_init_version
=: ;;
1274 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1277 as_fn_error
"invalid package name: $ac_useropt"
1278 ac_useropt_orig
=$ac_useropt
1279 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1284 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285 ac_unrecognized_sep
=', ';;
1287 eval with_
$ac_useropt=\
$ac_optarg ;;
1289 -without-* |
--without-*)
1290 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1293 as_fn_error
"invalid package name: $ac_useropt"
1294 ac_useropt_orig
=$ac_useropt
1295 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1300 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301 ac_unrecognized_sep
=', ';;
1303 eval with_
$ac_useropt=no
;;
1306 # Obsolete; use --with-x.
1309 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1310 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1311 ac_prev
=x_includes
;;
1312 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1313 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1314 x_includes
=$ac_optarg ;;
1316 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1317 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1318 ac_prev
=x_libraries
;;
1319 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1320 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1321 x_libraries
=$ac_optarg ;;
1323 -*) as_fn_error
"unrecognized option: \`$ac_option'
1324 Try \`$0 --help' for more information."
1328 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1329 # Reject names that are not valid shell variable names.
1330 case $ac_envvar in #(
1331 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1332 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1334 eval $ac_envvar=\
$ac_optarg
1335 export $ac_envvar ;;
1338 # FIXME: should be removed in autoconf 3.0.
1339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348 if test -n "$ac_prev"; then
1349 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1350 as_fn_error
"missing argument to $ac_option"
1353 if test -n "$ac_unrecognized_opts"; then
1354 case $enable_option_checking in
1356 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1357 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361 # Check all directory arguments for consistency.
1362 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363 datadir sysconfdir sharedstatedir localstatedir includedir \
1364 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365 libdir localedir mandir
1367 eval ac_val
=\$
$ac_var
1368 # Remove trailing slashes.
1371 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372 eval $ac_var=\
$ac_val;;
1374 # Be sure to have absolute directory names.
1376 [\\/$
]* | ?
:[\\/]* ) continue;;
1377 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1379 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1387 target
=$target_alias
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x
; then
1391 if test "x$build_alias" = x
; then
1392 cross_compiling
=maybe
1393 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394 If a cross compiler is detected then cross compile mode will be used." >&2
1395 elif test "x$build_alias" != "x$host_alias"; then
1401 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1403 test "$silent" = yes && exec 6>/dev
/null
1406 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di
=`ls -di .` &&
1408 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1409 as_fn_error
"working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 as_fn_error
"pwd does not report name of working directory"
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted
=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir
=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$as_myself" : 'X\(//\)[^/]' \| \
1421 X"$as_myself" : 'X\(//\)$' \| \
1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1446 ac_srcdir_defaulted
=no
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1450 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1452 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1464 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 for ac_var
in $ac_precious_vars; do
1467 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1469 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1474 # Report the --help message.
1476 if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
1480 \`configure' configures this package to adapt to many kinds of systems.
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE. See below for descriptions of some of the useful variables.
1487 Defaults for the options are specified in brackets.
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
1494 -q, --quiet, --silent do not print \`checking...' messages
1495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500 Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
1502 [$ac_default_prefix]
1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1511 For better control, use the options below.
1513 Fine tuning of the installation directories:
1514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520 --libdir=DIR object code libraries [EPREFIX/lib]
1521 --includedir=DIR C header files [PREFIX/include]
1522 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1525 --infodir=DIR info documentation [DATAROOTDIR/info]
1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1527 --mandir=DIR man documentation [DATAROOTDIR/man]
1528 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1529 --htmldir=DIR html documentation [DOCDIR]
1530 --dvidir=DIR dvi documentation [DOCDIR]
1531 --pdfdir=DIR pdf documentation [DOCDIR]
1532 --psdir=DIR ps documentation [DOCDIR]
1538 --program-prefix=PREFIX prepend PREFIX to installed program names
1539 --program-suffix=SUFFIX append SUFFIX to installed program names
1540 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1543 --build=BUILD configure
for building on BUILD
[guessed
]
1544 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1545 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1549 if test -n "$ac_init_help"; then
1554 --disable-option-checking ignore unrecognized
--enable/--with options
1555 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1556 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1557 --enable-generated-files-in-srcdir
1558 put copies of generated files
in source dir intended
1559 for creating
source tarballs
for users without
1560 texinfo bison or flex
1561 --disable-largefile omit support
for large files
1562 --enable-werror-always enable -Werror despite compiler version
1563 --enable-checking[=LIST
]
1564 enable expensive run-time checks. With LIST
, enable
1565 only specific categories of checks. Categories are
:
1566 yes,no
,all
,none
,release. Flags are
:
1567 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1568 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1569 --enable-coverage[=LEVEL
]
1570 enable compiler
's code coverage collection. Use to
1571 measure compiler performance and locate unused parts
1572 of the compiler. With LEVEL, specify optimization.
1573 Values are opt, noopt, default is noopt
1574 --enable-gather-detailed-mem-stats
1575 enable detailed memory allocation stats gathering
1576 --enable-multilib enable library support for multiple ABIs
1577 --enable-__cxa_atexit enable __cxa_atexit for C++
1578 --enable-decimal-float={no,yes,bid,dpd}
1579 enable decimal float extension to C. Selecting 'bid
'
1580 or 'dpd
' choses which decimal floating point format
1582 --enable-fixed-point enable fixed-point arithmetic extension to C
1583 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1585 --enable-tls enable or disable generation of tls code overriding
1586 the assembler check for tls support
1587 --enable-objc-gc enable the use of Boehm's garbage collector with the
1588 GNU Objective-C runtime
1589 --disable-shared don
't provide a shared libgcc
1590 --enable-languages=LIST specify which front-ends to build
1591 --disable-rpath do not hardcode runtime library paths
1592 --enable-sjlj-exceptions
1593 arrange to use setjmp/longjmp exception handling
1594 --enable-secureplt enable -msecure-plt by default for PowerPC
1595 --enable-leading-mingw64-underscores
1596 enable leading underscores on 64 bit mingw targets
1597 --enable-cld enable -mcld by default for 32bit x86
1598 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1600 --disable-win32-registry
1601 disable lookup of installation paths in the Registry
1603 --enable-win32-registry enable registry lookup (default)
1604 --enable-win32-registry=KEY
1605 use KEY instead of GCC version as the last portion
1607 --enable-shared[=PKGS] build shared libraries [default=yes]
1608 --enable-static[=PKGS] build static libraries [default=yes]
1609 --enable-fast-install[=PKGS]
1610 optimize for fast installation [default=yes]
1611 --disable-libtool-lock avoid locking (might break parallel builds)
1612 --enable-gnu-indirect-function
1613 enable the use of the @gnu_indirect_function to
1615 --enable-initfini-array use .init_array/.fini_array sections
1616 --enable-comdat enable COMDAT group support
1617 --enable-gnu-unique-object
1618 enable the use of the @gnu_unique_object ELF
1619 extension on glibc systems
1620 --enable-linker-build-id
1621 compiler will always pass --build-id to linker
1622 --enable-maintainer-mode
1623 enable make rules and dependencies not useful (and
1624 sometimes confusing) to the casual installer
1625 --enable-version-specific-runtime-libs
1626 specify that runtime libraries should be installed
1627 in a compiler-specific directory
1628 --enable-plugin enable plugin support
1629 --disable-libquadmath-support
1630 disable libquadmath support for Fortran
1633 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1634 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1635 --with-build-libsubdir=DIR Directory where to find libraries for build system
1636 --with-local-prefix=DIR specifies directory to put local include
1637 --with-gxx-include-dir=DIR
1638 specifies directory to put g++ header files
1639 --with-cpp-install-dir=DIR
1640 install the user visible C preprocessor in DIR
1641 (relative to PREFIX) as well as PREFIX/bin
1642 --with-gnu-ld arrange to work with GNU ld
1643 --with-ld arrange to use the specified ld (full pathname)
1644 --with-demangler-in-ld try to use demangler in GNU ld
1645 --with-gnu-as arrange to work with GNU as
1646 --with-as arrange to use the specified as (full pathname)
1647 --with-stabs arrange to use stabs instead of host debug format
1648 --with-dwarf2 force the default debug format to be DWARF 2
1649 --with-native-system-header-dir=dir
1650 use dir as the directory to look for standard
1651 system header files in. Defaults to /usr/include.
1652 --with-build-sysroot=sysroot
1653 use sysroot as the system root during the build
1654 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1655 --with-specs=SPECS add SPECS to driver command-line processing
1656 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1657 --with-bugurl=URL Direct users to URL to report a bug
1658 --with-multilib-list select multilibs (SH and x86-64 only)
1659 --with-gnu-ld assume the C compiler uses GNU ld default=no
1660 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1661 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1662 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1664 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1665 --with-plugin-ld=[ARG
] specify the plugin linker
1666 --with-long-double-128 use
128-bit long double by default
1667 --with-gc={page
,zone
} choose the garbage collection mechanism to use with
1669 --with-system-zlib use installed libz
1670 --with-linker-hash-style={sysv
,gnu
,both
}
1671 specify the linker
hash style
1673 Some influential environment variables
:
1674 CC C compiler
command
1675 CFLAGS C compiler flags
1676 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1677 nonstandard directory
<lib dir
>
1678 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1679 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1680 you have headers
in a nonstandard directory
<include dir
>
1681 CXX C
++ compiler
command
1682 CXXFLAGS C
++ compiler flags
1684 CXXCPP C
++ preprocessor
1685 GMPLIBS How to link GMP
1686 GMPINC How to
find GMP include files
1687 ISLLIBS How to link ISL
1688 ISLINC How to
find ISL include files
1689 CLOOGLIBS How to link CLOOG
1690 CLOOGINC How to
find CLOOG include files
1692 Use these variables to override the choices made by
`configure' or to help
1693 it to find libraries and programs with nonstandard names/locations.
1695 Report bugs to the package provider.
1700 if test "$ac_init_help" = "recursive"; then
1701 # If there are subdirs, report their specific --help.
1702 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1703 test -d "$ac_dir" ||
1704 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1709 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1712 # A ".." for each directory in $ac_dir_suffix.
1713 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1714 case $ac_top_builddir_sub in
1715 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1716 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719 ac_abs_top_builddir=$ac_pwd
1720 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1721 # for backward compatibility:
1722 ac_top_builddir=$ac_top_build_prefix
1725 .) # We are building in place.
1727 ac_top_srcdir=$ac_top_builddir_sub
1728 ac_abs_top_srcdir=$ac_pwd ;;
1729 [\\/]* | ?:[\\/]* ) # Absolute name.
1730 ac_srcdir=$srcdir$ac_dir_suffix;
1731 ac_top_srcdir=$srcdir
1732 ac_abs_top_srcdir=$srcdir ;;
1734 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1735 ac_top_srcdir=$ac_top_build_prefix$srcdir
1736 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1738 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1740 cd "$ac_dir" || { ac_status=$?; continue; }
1741 # Check for guested configure.
1742 if test -f "$ac_srcdir/configure.gnu"; then
1744 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1745 elif test -f "$ac_srcdir/configure"; then
1747 $SHELL "$ac_srcdir/configure" --help=recursive
1749 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1751 cd "$ac_pwd" || { ac_status=$?; break; }
1755 test -n "$ac_init_help" && exit $ac_status
1756 if $ac_init_version; then
1759 generated by GNU Autoconf 2.64
1761 Copyright (C) 2009 Free Software Foundation, Inc.
1762 This configure script is free software; the Free Software Foundation
1763 gives unlimited permission to copy, distribute and modify it.
1768 ## ------------------------ ##
1769 ## Autoconf initialization. ##
1770 ## ------------------------ ##
1772 # ac_fn_c_try_compile LINENO
1773 # --------------------------
1774 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1775 ac_fn_c_try_compile ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 rm -f conftest.$ac_objext
1779 if { { ac_try="$ac_compile"
1781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1782 *) ac_try_echo
=$ac_try;;
1784 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_compile") 2>conftest.err
1788 if test -s conftest.err
; then
1789 grep -v '^ *+' conftest.err
>conftest.er1
1790 cat conftest.er1
>&5
1791 mv -f conftest.er1 conftest.err
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && {
1795 test -z "$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 } && test -s conftest.
$ac_objext; then :
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.
$ac_ext >&5
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1808 } # ac_fn_c_try_compile
1810 # ac_fn_cxx_try_compile LINENO
1811 # ----------------------------
1812 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1813 ac_fn_cxx_try_compile
()
1815 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1816 rm -f conftest.
$ac_objext
1817 if { { ac_try
="$ac_compile"
1819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_compile") 2>conftest.err
1826 if test -s conftest.err; then
1827 grep -v '^ *+' conftest.err >conftest.er1
1828 cat conftest.er1 >&5
1829 mv -f conftest.er1 conftest.err
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && {
1833 test -z "$ac_cxx_werror_flag" ||
1834 test ! -s conftest.err
1835 } && test -s conftest.$ac_objext; then :
1838 $as_echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1843 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 } # ac_fn_cxx_try_compile
1848 # ac_fn_c_try_cpp LINENO
1849 # ----------------------
1850 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if { { ac_try="$ac_cpp conftest.$ac_ext"
1856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1857 *) ac_try_echo
=$ac_try;;
1859 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1863 if test -s conftest.err
; then
1864 grep -v '^ *+' conftest.err
>conftest.er1
1865 cat conftest.er1
>&5
1866 mv -f conftest.er1 conftest.err
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } >/dev
/null
&& {
1870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1871 test ! -s conftest.err
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.
$ac_ext >&5
1880 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1885 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1886 # -------------------------------------------------------
1887 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1888 # the include files in INCLUDES and setting the cache variable VAR
1890 ac_fn_c_check_header_mongrel
()
1892 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1893 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897 $as_echo_n "(cached) " >&6
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1903 # Is the header compilable?
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1905 $as_echo_n "checking $2 usability... " >&6; }
1906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1911 if ac_fn_c_try_compile
"$LINENO"; then :
1912 ac_header_compiler
=yes
1914 ac_header_compiler
=no
1916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1918 $as_echo "$ac_header_compiler" >&6; }
1920 # Is the header present?
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1922 $as_echo_n "checking $2 presence... " >&6; }
1923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1927 if ac_fn_c_try_cpp
"$LINENO"; then :
1928 ac_header_preproc
=yes
1930 ac_header_preproc
=no
1932 rm -f conftest.err conftest.
$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1934 $as_echo "$ac_header_preproc" >&6; }
1936 # So? What about this header?
1937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1940 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1946 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1948 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1950 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1952 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958 $as_echo_n "checking for $2... " >&6; }
1959 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1960 $as_echo_n "(cached) " >&6
1962 eval "$3=\$ac_header_compiler"
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1970 } # ac_fn_c_check_header_mongrel
1972 # ac_fn_c_try_run LINENO
1973 # ----------------------
1974 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1975 # that executables *can* be run.
1978 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1979 if { { ac_try
="$ac_link"
1981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_link") 2>&5
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1990 { { case "(($ac_try" in
1991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1992 *) ac_try_echo
=$ac_try;;
1994 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_try") 2>&5
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; }; }; then :
2002 $as_echo "$as_me: program exited with status $ac_status" >&5
2003 $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.
$ac_ext >&5
2006 ac_retval
=$ac_status
2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2014 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2015 # -------------------------------------------------------
2016 # Tests whether HEADER exists and can be compiled using the include files in
2017 # INCLUDES, setting the cache variable VAR accordingly.
2018 ac_fn_c_check_header_compile
()
2020 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2024 $as_echo_n "(cached) " >&6
2026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2031 if ac_fn_c_try_compile
"$LINENO"; then :
2036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2043 } # ac_fn_c_check_header_compile
2045 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2046 # --------------------------------------------
2047 # Tries to find the compile-time value of EXPR in a program that includes
2048 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2050 ac_fn_c_compute_int
()
2052 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2053 if test "$cross_compiling" = yes; then
2054 # Depending upon the size, compute the lo and hi bounds.
2055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2061 static int test_array [1 - 2 * !(($2) >= 0)];
2068 if ac_fn_c_try_compile
"$LINENO"; then :
2071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2077 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2084 if ac_fn_c_try_compile
"$LINENO"; then :
2085 ac_hi
=$ac_mid; break
2087 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2088 if test $ac_lo -le $ac_mid; then
2092 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2103 static int test_array [1 - 2 * !(($2) < 0)];
2110 if ac_fn_c_try_compile
"$LINENO"; then :
2113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2119 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2126 if ac_fn_c_try_compile
"$LINENO"; then :
2127 ac_lo
=$ac_mid; break
2129 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2130 if test $ac_mid -le $ac_hi; then
2134 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2144 # Binary search between lo and hi bounds.
2145 while test "x$ac_lo" != "x$ac_hi"; do
2146 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2153 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2160 if ac_fn_c_try_compile
"$LINENO"; then :
2163 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2168 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2175 static long int longval () { return $2; }
2176 static unsigned long int ulongval () { return $2; }
2183 FILE *f = fopen ("conftest.val", "w");
2188 long int i = longval ();
2191 fprintf (f, "%ld", i);
2195 unsigned long int i = ulongval ();
2198 fprintf (f, "%lu", i);
2200 /* Do not output a trailing newline, as this causes \r\n confusion
2201 on some platforms. */
2202 return ferror (f) || fclose (f) != 0;
2208 if ac_fn_c_try_run
"$LINENO"; then :
2209 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2213 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2214 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2218 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2221 } # ac_fn_c_compute_int
2223 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2224 # -------------------------------------------
2225 # Tests whether TYPE exists after having included INCLUDES, setting cache
2226 # variable VAR accordingly.
2227 ac_fn_c_check_type
()
2229 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2231 $as_echo_n "checking for $2... " >&6; }
2232 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2233 $as_echo_n "(cached) " >&6
2236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2248 if ac_fn_c_try_compile
"$LINENO"; then :
2249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2261 if ac_fn_c_try_compile
"$LINENO"; then :
2266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272 $as_echo "$ac_res" >&6; }
2273 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2275 } # ac_fn_c_check_type
2277 # ac_fn_c_find_intX_t LINENO BITS VAR
2278 # -----------------------------------
2279 # Finds a signed integer type with width BITS, setting cache variable VAR
2281 ac_fn_c_find_intX_t
()
2283 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2285 $as_echo_n "checking for int$2_t... " >&6; }
2286 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2287 $as_echo_n "(cached) " >&6
2290 for ac_type
in int
$2_t 'int' 'long int' \
2291 'long long int' 'short int' 'signed char'; do
2292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2294 $ac_includes_default
2298 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2305 if ac_fn_c_try_compile
"$LINENO"; then :
2306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2308 $ac_includes_default
2312 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2313 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2320 if ac_fn_c_try_compile
"$LINENO"; then :
2327 eval "$3=\$ac_type" ;;
2330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2334 if test "x$as_val" = x
""no
; then :
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2346 } # ac_fn_c_find_intX_t
2348 # ac_fn_c_try_link LINENO
2349 # -----------------------
2350 # Try to link conftest.$ac_ext, and return whether this succeeded.
2353 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2354 rm -f conftest.
$ac_objext conftest
$ac_exeext
2355 if { { ac_try
="$ac_link"
2357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2358 *) ac_try_echo=$ac_try;;
2360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2361 $as_echo "$ac_try_echo"; } >&5
2362 (eval "$ac_link") 2>conftest.err
2364 if test -s conftest.err; then
2365 grep -v '^ *+' conftest.err >conftest.er1
2366 cat conftest.er1 >&5
2367 mv -f conftest.er1 conftest.err
2369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2370 test $ac_status = 0; } && {
2371 test -z "$ac_c_werror_flag" ||
2372 test ! -s conftest.err
2373 } && test -s conftest$ac_exeext && {
2374 test "$cross_compiling" = yes ||
2375 $as_test_x conftest$ac_exeext
2379 $as_echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2384 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2385 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2386 # interfere with the next link command; also delete a directory that is
2387 # left behind by Apple's compiler. We do this before executing the actions.
2388 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2389 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2392 } # ac_fn_c_try_link
2394 # ac_fn_c_find_uintX_t LINENO BITS VAR
2395 # ------------------------------------
2396 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2398 ac_fn_c_find_uintX_t ()
2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2402 $as_echo_n "checking for uint$2_t... " >&6; }
2403 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2404 $as_echo_n "(cached) " >&6
2407 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2408 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2410 /* end confdefs.h. */
2411 $ac_includes_default
2415 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2422 if ac_fn_c_try_compile "$LINENO"; then :
2427 eval "$3=\$ac_type" ;;
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 if test "x$as_val" = x""no; then :
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2441 $as_echo "$ac_res" >&6; }
2442 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2444 } # ac_fn_c_find_uintX_t
2446 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2447 # ----------------------------------------------
2448 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2449 ac_fn_c_check_header_preproc ()
2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2453 $as_echo_n "checking for $2... " >&6; }
2454 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2455 $as_echo_n "(cached) " >&6
2457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458 /* end confdefs.h. */
2461 if ac_fn_c_try_cpp "$LINENO"; then :
2466 rm -f conftest.err conftest.$ac_ext
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470 $as_echo "$ac_res" >&6; }
2471 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2473 } # ac_fn_c_check_header_preproc
2475 # ac_fn_cxx_try_cpp LINENO
2476 # ------------------------
2477 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2478 ac_fn_cxx_try_cpp ()
2480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481 if { { ac_try="$ac_cpp conftest.$ac_ext"
2483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2484 *) ac_try_echo
=$ac_try;;
2486 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2487 $as_echo "$ac_try_echo"; } >&5
2488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2490 if test -s conftest.err
; then
2491 grep -v '^ *+' conftest.err
>conftest.er1
2492 cat conftest.er1
>&5
2493 mv -f conftest.er1 conftest.err
2495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2496 test $ac_status = 0; } >/dev
/null
&& {
2497 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2498 test ! -s conftest.err
2502 $as_echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.
$ac_ext >&5
2507 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2510 } # ac_fn_cxx_try_cpp
2512 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2513 # ------------------------------------------------
2514 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2515 ac_fn_cxx_check_header_preproc
()
2517 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2519 $as_echo_n "checking for $2... " >&6; }
2520 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2521 $as_echo_n "(cached) " >&6
2523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h. */
2527 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2532 rm -f conftest.err conftest.
$ac_ext
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2536 $as_echo "$ac_res" >&6; }
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2539 } # ac_fn_cxx_check_header_preproc
2541 # ac_fn_c_check_func LINENO FUNC VAR
2542 # ----------------------------------
2543 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2544 ac_fn_c_check_func
()
2546 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2548 $as_echo_n "checking for $2... " >&6; }
2549 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2550 $as_echo_n "(cached) " >&6
2552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h. */
2554 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2556 #define $2 innocuous_$2
2558 /* System header to define __stub macros and hopefully few prototypes,
2559 which can conflict with char $2 (); below.
2560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2561 <limits.h> exists even on freestanding compilers. */
2564 # include <limits.h>
2566 # include <assert.h>
2571 /* Override any GCC internal prototype to avoid an error.
2572 Use char because int might match the return type of a GCC
2573 builtin and then its argument prototype would still apply. */
2578 /* The GNU C library defines this for functions which it implements
2579 to always fail with ENOSYS. Some functions are actually named
2580 something starting with __ and the normal name is an alias. */
2581 #if defined __stub_$2 || defined __stub___$2
2593 if ac_fn_c_try_link
"$LINENO"; then :
2598 rm -f core conftest.err conftest.
$ac_objext \
2599 conftest
$ac_exeext conftest.
$ac_ext
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603 $as_echo "$ac_res" >&6; }
2604 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2606 } # ac_fn_c_check_func
2608 # ac_fn_cxx_try_link LINENO
2609 # -------------------------
2610 # Try to link conftest.$ac_ext, and return whether this succeeded.
2611 ac_fn_cxx_try_link
()
2613 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2614 rm -f conftest.
$ac_objext conftest
$ac_exeext
2615 if { { ac_try
="$ac_link"
2617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2621 $as_echo "$ac_try_echo"; } >&5
2622 (eval "$ac_link") 2>conftest.err
2624 if test -s conftest.err; then
2625 grep -v '^ *+' conftest.err >conftest.er1
2626 cat conftest.er1 >&5
2627 mv -f conftest.er1 conftest.err
2629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2630 test $ac_status = 0; } && {
2631 test -z "$ac_cxx_werror_flag" ||
2632 test ! -s conftest.err
2633 } && test -s conftest$ac_exeext && {
2634 test "$cross_compiling" = yes ||
2635 $as_test_x conftest$ac_exeext
2639 $as_echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2644 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2645 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2646 # interfere with the next link command; also delete a directory that is
2647 # left behind by Apple's compiler. We do this before executing the actions.
2648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2652 } # ac_fn_cxx_try_link
2653 cat >config.log <<_ACEOF
2654 This file contains any messages produced by compilers while
2655 running configure, to aid debugging if configure makes a mistake.
2657 It was created by $as_me, which was
2658 generated by GNU Autoconf 2.64. Invocation command line was
2670 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2671 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2672 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2673 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2674 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2676 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2677 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2679 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2680 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2681 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2682 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2683 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2684 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2685 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 test -z "$as_dir" && as_dir=.
2694 $as_echo "PATH: $as_dir"
2710 # Keep a trace of the command line.
2711 # Strip out --no-create and --no-recursion so they do not pile up.
2712 # Strip out --silent because we don't want to record it for future runs.
2713 # Also quote any args containing shell meta-characters.
2714 # Make two passes to allow for proper duplicate-argument suppression.
2718 ac_must_keep_next=false
2724 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2726 | -silent | --silent | --silen | --sile | --sil)
2729 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2732 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2734 as_fn_append ac_configure_args1 " '$ac_arg'"
2735 if test $ac_must_keep_next = true; then
2736 ac_must_keep_next=false # Got value, back to normal.
2739 *=* | --config-cache | -C | -disable-* | --disable-* \
2740 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2741 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2742 | -with-* | --with-* | -without-* | --without-* | --x)
2743 case "$ac_configure_args0 " in
2744 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2747 -* ) ac_must_keep_next=true ;;
2750 as_fn_append ac_configure_args " '$ac_arg'"
2755 { ac_configure_args0=; unset ac_configure_args0;}
2756 { ac_configure_args1=; unset ac_configure_args1;}
2758 # When interrupted or exit'd, cleanup temporary files, and complete
2759 # config.log. We remove comments because anyway the quotes in there
2760 # would cause problems or look ugly.
2761 # WARNING: Use '\'' to represent an apostrophe within the trap.
2762 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2763 trap 'exit_status=$?
2764 # Save into config.log some information that might help in debugging.
2769 ## ---------------- ##
2770 ## Cache variables. ##
2771 ## ---------------- ##
2774 # The following way of writing the cache mishandles newlines in values,
2776 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2777 eval ac_val=\$$ac_var
2781 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2782 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2785 _ | IFS | as_nl) ;; #(
2786 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2787 *) { eval $ac_var=; unset $ac_var;} ;;
2792 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2793 *${as_nl}ac_space=\ *)
2795 "s/'\''/'\''\\\\'\'''\''/g;
2796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2799 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2807 ## ----------------- ##
2808 ## Output variables. ##
2809 ## ----------------- ##
2812 for ac_var in $ac_subst_vars
2814 eval ac_val=\$$ac_var
2816 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2818 $as_echo "$ac_var='\''$ac_val'\''"
2822 if test -n "$ac_subst_files"; then
2824 ## ------------------- ##
2825 ## File substitutions. ##
2826 ## ------------------- ##
2829 for ac_var in $ac_subst_files
2831 eval ac_val=\$$ac_var
2833 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2835 $as_echo "$ac_var='\''$ac_val'\''"
2840 if test -s confdefs.h; then
2850 test "$ac_signal" != 0 &&
2851 $as_echo "$as_me: caught signal $ac_signal"
2852 $as_echo "$as_me: exit $exit_status"
2854 rm -f core *.core core.conftest.* &&
2855 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2858 for ac_signal in 1 2 13 15; do
2859 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2863 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2864 rm -f -r conftest* confdefs.h
2866 $as_echo "/* confdefs.h */" > confdefs.h
2868 # Predefined preprocessor variables.
2870 cat >>confdefs.h <<_ACEOF
2871 #define PACKAGE_NAME "$PACKAGE_NAME"
2874 cat >>confdefs.h <<_ACEOF
2875 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_STRING "$PACKAGE_STRING"
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE_URL "$PACKAGE_URL"
2895 # Let the site file select an alternate cache file if it wants to.
2896 # Prefer an explicitly selected file to automatically selected ones.
2899 if test -n "$CONFIG_SITE"; then
2900 ac_site_file1=$CONFIG_SITE
2901 elif test "x$prefix" != xNONE; then
2902 ac_site_file1=$prefix/share/config.site
2903 ac_site_file2=$prefix/etc/config.site
2905 ac_site_file1=$ac_default_prefix/share/config.site
2906 ac_site_file2=$ac_default_prefix/etc/config.site
2908 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2910 test "x$ac_site_file" = xNONE && continue
2911 if test -r "$ac_site_file"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2913 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2914 sed 's/^/| /' "$ac_site_file" >&5
2919 if test -r "$cache_file"; then
2920 # Some versions of bash will fail to source /dev/null (special
2921 # files actually), so we avoid doing that.
2922 if test -f "$cache_file"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2924 $as_echo "$as_me: loading cache $cache_file" >&6;}
2926 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2927 *) . "./$cache_file";;
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2932 $as_echo "$as_me: creating cache $cache_file" >&6;}
2936 # Check that the precious variables saved in the cache have kept the same
2938 ac_cache_corrupted=false
2939 for ac_var in $ac_precious_vars; do
2940 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2941 eval ac_new_set=\$ac_env_${ac_var}_set
2942 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2943 eval ac_new_val=\$ac_env_${ac_var}_value
2944 case $ac_old_set,$ac_new_set in
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2947 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2948 ac_cache_corrupted=: ;;
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2951 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2952 ac_cache_corrupted=: ;;
2955 if test "x$ac_old_val" != "x$ac_new_val"; then
2956 # differences in whitespace do not lead to failure.
2957 ac_old_val_w=`echo x
$ac_old_val`
2958 ac_new_val_w=`echo x
$ac_new_val`
2959 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2961 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2962 ac_cache_corrupted=:
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2965 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2966 eval $ac_var=\$ac_old_val
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2969 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2971 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2974 # Pass precious variables to config.status.
2975 if test "$ac_new_set" = set; then
2977 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2978 *) ac_arg=$ac_var=$ac_new_val ;;
2980 case " $ac_configure_args " in
2981 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2982 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2986 if $ac_cache_corrupted; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2990 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2991 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2993 ## -------------------- ##
2994 ## Main body of script. ##
2995 ## -------------------- ##
2998 ac_cpp='$CPP $CPPFLAGS'
2999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3011 gcc_version=`cat $srcdir/BASE-VER
`
3013 # Determine the host, build, and target systems
3015 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3016 for ac_t in install-sh install.sh shtool; do
3017 if test -f "$ac_dir/$ac_t"; then
3019 ac_install_sh="$ac_aux_dir/$ac_t -c"
3024 if test -z "$ac_aux_dir"; then
3025 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3028 # These three variables are undocumented and unsupported,
3029 # and are intended to be withdrawn in a future Autoconf release.
3030 # They can cause serious problems if a builder's source tree is in a directory
3031 # whose full name contains unusual characters.
3032 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3033 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3034 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3037 # Make sure we can run config.sub.
3038 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3039 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3042 $as_echo_n "checking build system type... " >&6; }
3043 if test "${ac_cv_build+set}" = set; then :
3044 $as_echo_n "(cached) " >&6
3046 ac_build_alias=$build_alias
3047 test "x$ac_build_alias" = x &&
3048 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3049 test "x$ac_build_alias" = x &&
3050 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3051 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3052 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3056 $as_echo "$ac_cv_build" >&6; }
3057 case $ac_cv_build in
3059 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3062 ac_save_IFS=$IFS; IFS='-'
3068 # Remember, the first character of IFS is used to create $*,
3069 # except with old shells:
3072 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3076 $as_echo_n "checking host system type... " >&6; }
3077 if test "${ac_cv_host+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
3080 if test "x$host_alias" = x; then
3081 ac_cv_host=$ac_cv_build
3083 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3084 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3089 $as_echo "$ac_cv_host" >&6; }
3092 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3095 ac_save_IFS=$IFS; IFS='-'
3101 # Remember, the first character of IFS is used to create $*,
3102 # except with old shells:
3105 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3109 $as_echo_n "checking target system type... " >&6; }
3110 if test "${ac_cv_target+set}" = set; then :
3111 $as_echo_n "(cached) " >&6
3113 if test "x$target_alias" = x; then
3114 ac_cv_target=$ac_cv_host
3116 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3117 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3122 $as_echo "$ac_cv_target" >&6; }
3123 case $ac_cv_target in
3125 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3127 target=$ac_cv_target
3128 ac_save_IFS=$IFS; IFS='-'
3134 # Remember, the first character of IFS is used to create $*,
3135 # except with old shells:
3138 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3141 # The aliases save the names the user supplied, while $host etc.
3142 # will get canonicalized.
3143 test -n "$target_alias" &&
3144 test "$program_prefix$program_suffix$program_transform_name" = \
3146 program_prefix=${target_alias}-
3148 # Determine the noncanonical target name, for directory use.
3149 case ${build_alias} in
3150 "") build_noncanonical=${build} ;;
3151 *) build_noncanonical=${build_alias} ;;
3154 case ${host_alias} in
3155 "") host_noncanonical=${build_noncanonical} ;;
3156 *) host_noncanonical=${host_alias} ;;
3159 case ${target_alias} in
3160 "") target_noncanonical=${host_noncanonical} ;;
3161 *) target_noncanonical=${target_alias} ;;
3167 # Determine the target- and build-specific subdirectories
3169 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3170 # have matching libraries, they should use host libraries: Makefile.tpl
3171 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3172 # However, they still use the build modules, because the corresponding
3173 # host modules (e.g. bison) are only built for the host when bootstrap
3175 # - build_subdir is where we find build modules, and never changes.
3176 # - build_libsubdir is where we find build libraries, and can be overridden.
3178 # Prefix 'build-' so this never conflicts with target_subdir.
3179 build_subdir="build-${build_noncanonical}"
3181 # Check whether --with-build-libsubdir was given.
3182 if test "${with_build_libsubdir+set}" = set; then :
3183 withval=$with_build_libsubdir; build_libsubdir="$withval"
3185 build_libsubdir="$build_subdir"
3188 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3189 if ( test $srcdir = . && test -d gcc ) \
3190 || test -d $srcdir/../host-${host_noncanonical}; then
3191 host_subdir="host-${host_noncanonical}"
3196 target_subdir=${target_noncanonical}
3199 # Set program_transform_name
3200 test "$program_prefix" != NONE &&
3201 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3202 # Use a double $ so make ignores it.
3203 test "$program_suffix" != NONE &&
3204 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3205 # Double any \ or $.
3206 # By default was `s
,x
,x
', remove it if useless.
3207 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3208 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3211 # Check for bogus environment variables.
3212 # Test if LIBRARY_PATH contains the notation for the current directory
3213 # since this would lead to problems installing/building glibc.
3214 # LIBRARY_PATH contains the current directory if one of the following
3216 # - one of the terminals (":" and ";") is the first or last sign
3217 # - two terminals occur directly after each other
3218 # - the path contains an element with a dot in it
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3220 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3221 case ${LIBRARY_PATH} in
3222 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3223 library_path_setting="contains current directory"
3226 library_path_setting="ok"
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3230 $as_echo "$library_path_setting" >&6; }
3231 if test "$library_path_setting" != "ok"; then
3233 *** LIBRARY_PATH shouldn't contain the current directory when
3234 *** building gcc. Please change the environment variable
3235 *** and run configure again.
" "$LINENO" 5
3238 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3239 # since this would lead to problems installing/building glibc.
3240 # GCC_EXEC_PREFIX contains the current directory if one of the following
3242 # - one of the terminals (":" and ";") is the first or last sign
3243 # - two terminals occur directly after each other
3244 # - the path contains an element with a dot in it
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3246 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3247 case ${GCC_EXEC_PREFIX} in
3248 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3249 gcc_exec_prefix_setting="contains current directory
"
3252 gcc_exec_prefix_setting="ok
"
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3256 $as_echo "$gcc_exec_prefix_setting" >&6; }
3257 if test "$gcc_exec_prefix_setting" != "ok
"; then
3259 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3260 *** building gcc. Please change the environment variable
3261 *** and run configure again." "$LINENO" 5
3268 # Specify the local prefix
3271 # Check whether --with-local-prefix was given.
3272 if test "${with_local_prefix+set}" = set; then :
3273 withval=$with_local_prefix; case "${withval}" in
3274 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3276 *) local_prefix=$with_local_prefix ;;
3281 # Default local prefix if it is empty
3282 if test x$local_prefix = x; then
3283 local_prefix=/usr/local
3286 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3287 # passed in by the toplevel make and thus we'd get different behavior
3288 # depending on where we built the sources.
3289 gcc_gxx_include_dir
=
3290 # Specify the g++ header file directory
3292 # Check whether --with-gxx-include-dir was given.
3293 if test "${with_gxx_include_dir+set}" = set; then :
3294 withval
=$with_gxx_include_dir; case "${withval}" in
3295 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3297 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3302 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3303 if test x
${gcc_gxx_include_dir} = x
; then
3304 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3305 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3307 libstdcxx_incdir
='include/c++/$(version)'
3308 if test x
$host != x
$target; then
3309 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3311 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3315 gcc_gxx_include_dir_add_sysroot
=0
3316 if test "${with_sysroot+set}" = set; then
3317 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3318 if test "${gcc_gxx_without_sysroot}"; then
3319 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3320 gcc_gxx_include_dir_add_sysroot
=1
3325 # Check whether --with-cpp_install_dir was given.
3326 if test "${with_cpp_install_dir+set}" = set; then :
3327 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3328 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3329 elif test x
$withval != xno
; then
3330 cpp_install_dir
=$withval
3335 # We would like to our source tree to be readonly. However when releases or
3336 # pre-releases are generated, the flex/bison generated files as well as the
3337 # various formats of manuals need to be included along with the rest of the
3338 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3342 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3343 # Check whether --enable-generated-files-in-srcdir was given.
3344 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3345 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3347 generated_files_in_srcdir
=no
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3352 $as_echo "$generated_files_in_srcdir" >&6; }
3354 if test "$generated_files_in_srcdir" = "yes"; then
3361 # -------------------
3362 # Find default linker
3363 # -------------------
3367 # Check whether --with-gnu-ld was given.
3368 if test "${with_gnu_ld+set}" = set; then :
3369 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3375 # With pre-defined ld
3377 # Check whether --with-ld was given.
3378 if test "${with_ld+set}" = set; then :
3379 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3382 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3383 if test ! -x "$DEFAULT_LINKER"; then
3384 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3385 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3389 cat >>confdefs.h
<<_ACEOF
3390 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3396 $as_echo_n "checking whether a default linker was specified... " >&6; }
3397 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3398 if test x
"$gnu_ld_flag" = x
"no"; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3400 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3403 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3410 # With demangler in GNU ld
3412 # Check whether --with-demangler-in-ld was given.
3413 if test "${with_demangler_in_ld+set}" = set; then :
3414 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3420 # ----------------------
3421 # Find default assembler
3422 # ----------------------
3426 # Check whether --with-gnu-as was given.
3427 if test "${with_gnu_as+set}" = set; then :
3428 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3435 # Check whether --with-as was given.
3436 if test "${with_as+set}" = set; then :
3437 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3440 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3441 if test ! -x "$DEFAULT_ASSEMBLER"; then
3442 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3443 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3447 cat >>confdefs.h
<<_ACEOF
3448 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3454 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3455 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3456 if test x
"$gas_flag" = x
"no"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3458 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3461 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3472 # If a non-executable a.out is present (e.g. created by GNU as above even if
3473 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3474 # file, even when creating an executable, so an execution test fails.
3475 # Remove possible default executable files to avoid this.
3477 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3478 # Autoconf includes it.
3479 rm -f a.out a.exe b.out
3481 # Find the native compiler
3483 ac_cpp
='$CPP $CPPFLAGS'
3484 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3487 if test -n "$ac_tool_prefix"; then
3488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3489 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491 $as_echo_n "checking for $ac_word... " >&6; }
3492 if test "${ac_cv_prog_CC+set}" = set; then :
3493 $as_echo_n "(cached) " >&6
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC
="$CC" # Let the user override the test.
3498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3502 test -z "$as_dir" && as_dir
=.
3503 for ac_exec_ext
in '' $ac_executable_extensions; do
3504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3505 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3516 if test -n "$CC"; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518 $as_echo "$CC" >&6; }
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3526 if test -z "$ac_cv_prog_CC"; then
3528 # Extract the first word of "gcc", so it can be a program name with args.
3529 set dummy gcc
; ac_word
=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3533 $as_echo_n "(cached) " >&6
3535 if test -n "$ac_ct_CC"; then
3536 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3542 test -z "$as_dir" && as_dir
=.
3543 for ac_exec_ext
in '' $ac_executable_extensions; do
3544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3545 ac_cv_prog_ac_ct_CC
="gcc"
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3556 if test -n "$ac_ct_CC"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3558 $as_echo "$ac_ct_CC" >&6; }
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3564 if test "x$ac_ct_CC" = x
; then
3567 case $cross_compiling:$ac_tool_warned in
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3571 ac_tool_warned
=yes ;;
3579 if test -z "$CC"; then
3580 if test -n "$ac_tool_prefix"; then
3581 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3582 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if test "${ac_cv_prog_CC+set}" = set; then :
3586 $as_echo_n "(cached) " >&6
3588 if test -n "$CC"; then
3589 ac_cv_prog_CC
="$CC" # Let the user override the test.
3591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3595 test -z "$as_dir" && as_dir
=.
3596 for ac_exec_ext
in '' $ac_executable_extensions; do
3597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3598 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 if test -n "$CC"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3611 $as_echo "$CC" >&6; }
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3620 if test -z "$CC"; then
3621 # Extract the first word of "cc", so it can be a program name with args.
3622 set dummy cc
; ac_word
=$2
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624 $as_echo_n "checking for $ac_word... " >&6; }
3625 if test "${ac_cv_prog_CC+set}" = set; then :
3626 $as_echo_n "(cached) " >&6
3628 if test -n "$CC"; then
3629 ac_cv_prog_CC
="$CC" # Let the user override the test.
3632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3636 test -z "$as_dir" && as_dir
=.
3637 for ac_exec_ext
in '' $ac_executable_extensions; do
3638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3639 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3640 ac_prog_rejected
=yes
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 if test $ac_prog_rejected = yes; then
3652 # We found a bogon in the path, so make sure we never use it.
3653 set dummy
$ac_cv_prog_CC
3655 if test $# != 0; then
3656 # We chose a different compiler from the bogus one.
3657 # However, it has the same basename, so the bogon will be chosen
3658 # first if we set CC to just the basename; use the full file name.
3660 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3666 if test -n "$CC"; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3668 $as_echo "$CC" >&6; }
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3676 if test -z "$CC"; then
3677 if test -n "$ac_tool_prefix"; then
3678 for ac_prog
in cl.exe
3680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3681 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 $as_echo_n "checking for $ac_word... " >&6; }
3684 if test "${ac_cv_prog_CC+set}" = set; then :
3685 $as_echo_n "(cached) " >&6
3687 if test -n "$CC"; then
3688 ac_cv_prog_CC
="$CC" # Let the user override the test.
3690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3694 test -z "$as_dir" && as_dir
=.
3695 for ac_exec_ext
in '' $ac_executable_extensions; do
3696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3697 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 if test -n "$CC"; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3710 $as_echo "$CC" >&6; }
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713 $as_echo "no" >&6; }
3717 test -n "$CC" && break
3720 if test -z "$CC"; then
3722 for ac_prog
in cl.exe
3724 # Extract the first word of "$ac_prog", so it can be a program name with args.
3725 set dummy
$ac_prog; ac_word
=$2
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 $as_echo_n "checking for $ac_word... " >&6; }
3728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3729 $as_echo_n "(cached) " >&6
3731 if test -n "$ac_ct_CC"; then
3732 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3738 test -z "$as_dir" && as_dir
=.
3739 for ac_exec_ext
in '' $ac_executable_extensions; do
3740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3741 ac_cv_prog_ac_ct_CC
="$ac_prog"
3742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3752 if test -n "$ac_ct_CC"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3754 $as_echo "$ac_ct_CC" >&6; }
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3761 test -n "$ac_ct_CC" && break
3764 if test "x$ac_ct_CC" = x
; then
3767 case $cross_compiling:$ac_tool_warned in
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3771 ac_tool_warned
=yes ;;
3780 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782 as_fn_error
"no acceptable C compiler found in \$PATH
3783 See \`config.log' for more details." "$LINENO" 5; }
3785 # Provide some information about the compiler.
3786 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3789 for ac_option
in --version -v -V -qversion; do
3790 { { ac_try
="$ac_compiler $ac_option >&5"
3792 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3799 if test -s conftest.err; then
3801 ... rest of stderr output deleted ...
3802 10q' conftest.err >conftest.er1
3803 cat conftest.er1 >&5
3804 rm -f conftest.er1 conftest.err
3806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807 test $ac_status = 0; }
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3821 ac_clean_files_save=$ac_clean_files
3822 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3823 # Try to create an executable without -o first, disregard a.out.
3824 # It will help us diagnose broken compilers, and finding out an intuition
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3827 $as_echo_n "checking for C compiler default output file name... " >&6; }
3828 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3830 # The possible output files:
3831 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3834 for ac_file in $ac_files
3837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3838 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3843 if { { ac_try="$ac_link_default"
3845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3846 *) ac_try_echo
=$ac_try;;
3848 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849 $as_echo "$ac_try_echo"; } >&5
3850 (eval "$ac_link_default") 2>&5
3852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3853 test $ac_status = 0; }; then :
3854 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3855 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3856 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3857 # so that the user can short-circuit this test for compilers unknown to
3859 for ac_file
in $ac_files ''
3861 test -f "$ac_file" ||
continue
3863 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3866 # We found the default executable, but exeext='' is most
3870 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3872 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3874 # We set ac_cv_exeext here because the later test for it is not
3875 # safe: cross compilers may not add the suffix if given an `-o'
3876 # argument, so we may need to know it at that point already.
3877 # Even if this section looks crufty: it has the advantage of
3884 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3890 $as_echo "$ac_file" >&6; }
3891 if test -z "$ac_file"; then :
3892 $as_echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.
$ac_ext >&5
3895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 { as_fn_set_status
77
3898 as_fn_error
"C compiler cannot create executables
3899 See \`config.log' for more details." "$LINENO" 5; }; }
3901 ac_exeext
=$ac_cv_exeext
3903 # Check that the compiler produces executables we can run. If not, either
3904 # the compiler is broken, or we cross compile.
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3906 $as_echo_n "checking whether the C compiler works... " >&6; }
3907 # If not cross compiling, check that we can run a simple program.
3908 if test "$cross_compiling" != yes; then
3909 if { ac_try
='./$ac_file'
3910 { { case "(($ac_try" in
3911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915 $as_echo "$ac_try_echo"; } >&5
3916 (eval "$ac_try") 2>&5
3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 test $ac_status = 0; }; }; then
3922 if test "$cross_compiling" = maybe; then
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 as_fn_error "cannot run C compiled programs.
3928 If you meant to cross compile
, use \
`--host'.
3929 See \`config.log
' for more details." "$LINENO" 5; }
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3934 $as_echo "yes" >&6; }
3936 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3937 ac_clean_files=$ac_clean_files_save
3938 # Check that the compiler produces executables we can run. If not, either
3939 # the compiler is broken, or we cross compile.
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3941 $as_echo_n "checking whether we are cross compiling... " >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3943 $as_echo "$cross_compiling" >&6; }
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3946 $as_echo_n "checking for suffix of executables... " >&6; }
3947 if { { ac_try="$ac_link"
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953 $as_echo "$ac_try_echo"; } >&5
3954 (eval "$ac_link") 2>&5
3956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3957 test $ac_status = 0; }; then :
3958 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3959 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3960 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3962 for ac_file
in conftest.exe conftest conftest.
*; do
3963 test -f "$ac_file" ||
continue
3965 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3966 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3974 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3975 See \`config.log' for more details." "$LINENO" 5; }
3977 rm -f conftest
$ac_cv_exeext
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3979 $as_echo "$ac_cv_exeext" >&6; }
3981 rm -f conftest.
$ac_ext
3982 EXEEXT
=$ac_cv_exeext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3985 $as_echo_n "checking for suffix of object files... " >&6; }
3986 if test "${ac_cv_objext+set}" = set; then :
3987 $as_echo_n "(cached) " >&6
3989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
4000 rm -f conftest.o conftest.obj
4001 if { { ac_try
="$ac_compile"
4003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4007 $as_echo "$ac_try_echo"; } >&5
4008 (eval "$ac_compile") 2>&5
4010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011 test $ac_status = 0; }; then :
4012 for ac_file in conftest.o conftest.obj conftest.*; do
4013 test -f "$ac_file" || continue;
4015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4016 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4021 $as_echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4026 as_fn_error "cannot compute suffix of object files
: cannot compile
4027 See \
`config.log' for more details." "$LINENO" 5; }
4029 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4032 $as_echo "$ac_cv_objext" >&6; }
4033 OBJEXT=$ac_cv_objext
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4036 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4037 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4038 $as_echo_n "(cached) " >&6
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4054 if ac_fn_c_try_compile "$LINENO"; then :
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4064 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4065 if test $ac_compiler_gnu = yes; then
4070 ac_test_CFLAGS=${CFLAGS+set}
4071 ac_save_CFLAGS=$CFLAGS
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4073 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4074 if test "${ac_cv_prog_cc_g+set}" = set; then :
4075 $as_echo_n "(cached) " >&6
4077 ac_save_c_werror_flag=$ac_c_werror_flag
4078 ac_c_werror_flag=yes
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4092 if ac_fn_c_try_compile "$LINENO"; then :
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4107 if ac_fn_c_try_compile "$LINENO"; then :
4110 ac_c_werror_flag=$ac_save_c_werror_flag
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4123 if ac_fn_c_try_compile "$LINENO"; then :
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 ac_c_werror_flag=$ac_save_c_werror_flag
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4134 $as_echo "$ac_cv_prog_cc_g" >&6; }
4135 if test "$ac_test_CFLAGS" = set; then
4136 CFLAGS=$ac_save_CFLAGS
4137 elif test $ac_cv_prog_cc_g = yes; then
4138 if test "$GCC" = yes; then
4144 if test "$GCC" = yes; then
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4151 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4152 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4153 $as_echo_n "(cached) " >&6
4155 ac_cv_prog_cc_c89=no
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4161 #include <sys/types.h>
4162 #include <sys/stat.h>
4163 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4164 struct buf { int x; };
4165 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4166 static char *e (p, i)
4172 static char *f (char * (*g) (char **, int), char **p, ...)
4177 s = g (p, va_arg (v,int));
4182 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4183 function prototypes and stuff, but not '\xHH' hex character constants.
4184 These don't provoke an error unfortunately, instead are silently treated
4185 as 'x'. The following induces an error, until -std is added to get
4186 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4187 array size at least. It's necessary to write '\x00'==0 to get something
4188 that's true only with -std. */
4189 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4191 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4192 inside strings and character constants. */
4194 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4196 int test (int i, double x);
4197 struct s1 {int (*f) (int a);};
4198 struct s2 {int (*f) (double a);};
4199 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4205 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4210 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4211 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4213 CC="$ac_save_CC $ac_arg"
4214 if ac_fn_c_try_compile "$LINENO"; then :
4215 ac_cv_prog_cc_c89=$ac_arg
4217 rm -f core conftest.err conftest.$ac_objext
4218 test "x$ac_cv_prog_cc_c89" != "xno" && break
4220 rm -f conftest.$ac_ext
4225 case "x$ac_cv_prog_cc_c89" in
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4228 $as_echo "none needed" >&6; } ;;
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4231 $as_echo "unsupported" >&6; } ;;
4233 CC="$CC $ac_cv_prog_cc_c89"
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4235 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4237 if test "x$ac_cv_prog_cc_c89" != xno; then :
4242 ac_cpp='$CPP $CPPFLAGS'
4243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247 if test "x$CC" != xcc; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4249 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4252 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4254 set dummy $CC; ac_cc=`$as_echo "$2" |
4255 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4256 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4257 $as_echo_n "(cached) " >&6
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4270 # Make sure it works both with $CC and with simple cc.
4271 # We do the test twice because some compilers refuse to overwrite an
4272 # existing .o file with -o, though they will create one.
4273 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4275 if { { case "(($ac_try" in
4276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4277 *) ac_try_echo
=$ac_try;;
4279 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280 $as_echo "$ac_try_echo"; } >&5
4281 (eval "$ac_try") 2>&5
4283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284 test $ac_status = 0; } &&
4285 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4290 $as_echo "$ac_try_echo"; } >&5
4291 (eval "$ac_try") 2>&5
4293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4294 test $ac_status = 0; };
4296 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4297 if test "x$CC" != xcc; then
4298 # Test first that cc exists at all.
4299 if { ac_try='cc -c conftest.$ac_ext >&5'
4300 { { case "(($ac_try" in
4301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4302 *) ac_try_echo
=$ac_try;;
4304 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4305 $as_echo "$ac_try_echo"; } >&5
4306 (eval "$ac_try") 2>&5
4308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4309 test $ac_status = 0; }; }; then
4310 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4312 if { { case "(($ac_try" in
4313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4317 $as_echo "$ac_try_echo"; } >&5
4318 (eval "$ac_try") 2>&5
4320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4321 test $ac_status = 0; } &&
4322 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4324 *) ac_try_echo
=$ac_try;;
4326 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4327 $as_echo "$ac_try_echo"; } >&5
4328 (eval "$ac_try") 2>&5
4330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331 test $ac_status = 0; };
4336 # cc exists but doesn't like -o.
4337 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4342 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4344 rm -f core conftest
*
4347 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4349 $as_echo "yes" >&6; }
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4354 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4358 # expand $ac_aux_dir to an absolute path
4359 am_aux_dir
=`cd $ac_aux_dir && pwd`
4361 # FIXME: we rely on the cache variable name because
4362 # there is no other way.
4364 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4365 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4366 if test "$am_t" != yes; then
4367 # Losing compiler, so override with the script.
4368 # FIXME: It is wrong to rewrite CC.
4369 # But if we don't then we get into trouble of one sort or another.
4370 # A longer-term fix would be to have automake use am__CC in this case,
4371 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4372 CC
="$am_aux_dir/compile $CC"
4377 ac_cpp
='$CXXCPP $CPPFLAGS'
4378 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4381 if test -z "$CXX"; then
4382 if test -n "$CCC"; then
4385 if test -n "$ac_tool_prefix"; then
4386 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4389 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4391 $as_echo_n "checking for $ac_word... " >&6; }
4392 if test "${ac_cv_prog_CXX+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4395 if test -n "$CXX"; then
4396 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4402 test -z "$as_dir" && as_dir
=.
4403 for ac_exec_ext
in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 if test -n "$CXX"; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4418 $as_echo "$CXX" >&6; }
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4425 test -n "$CXX" && break
4428 if test -z "$CXX"; then
4430 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4432 # Extract the first word of "$ac_prog", so it can be a program name with args.
4433 set dummy
$ac_prog; ac_word
=$2
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4435 $as_echo_n "checking for $ac_word... " >&6; }
4436 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4437 $as_echo_n "(cached) " >&6
4439 if test -n "$ac_ct_CXX"; then
4440 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4442 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4446 test -z "$as_dir" && as_dir
=.
4447 for ac_exec_ext
in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4460 if test -n "$ac_ct_CXX"; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4462 $as_echo "$ac_ct_CXX" >&6; }
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465 $as_echo "no" >&6; }
4469 test -n "$ac_ct_CXX" && break
4472 if test "x$ac_ct_CXX" = x
; then
4475 case $cross_compiling:$ac_tool_warned in
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4479 ac_tool_warned
=yes ;;
4487 # Provide some information about the compiler.
4488 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4491 for ac_option
in --version -v -V -qversion; do
4492 { { ac_try
="$ac_compiler $ac_option >&5"
4494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4498 $as_echo "$ac_try_echo"; } >&5
4499 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4501 if test -s conftest.err; then
4503 ... rest of stderr output deleted ...
4504 10q' conftest.err >conftest.er1
4505 cat conftest.er1 >&5
4506 rm -f conftest.er1 conftest.err
4508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4509 test $ac_status = 0; }
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4513 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4514 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4531 if ac_fn_cxx_try_compile "$LINENO"; then :
4536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4537 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4541 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4542 if test $ac_compiler_gnu = yes; then
4547 ac_test_CXXFLAGS=${CXXFLAGS+set}
4548 ac_save_CXXFLAGS=$CXXFLAGS
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4550 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4551 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4552 $as_echo_n "(cached) " >&6
4554 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4555 ac_cxx_werror_flag=yes
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4569 if ac_fn_cxx_try_compile "$LINENO"; then :
4570 ac_cv_prog_cxx_g=yes
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4584 if ac_fn_cxx_try_compile "$LINENO"; then :
4587 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4600 if ac_fn_cxx_try_compile "$LINENO"; then :
4601 ac_cv_prog_cxx_g=yes
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4611 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4612 if test "$ac_test_CXXFLAGS" = set; then
4613 CXXFLAGS=$ac_save_CXXFLAGS
4614 elif test $ac_cv_prog_cxx_g = yes; then
4615 if test "$GXX" = yes; then
4621 if test "$GXX" = yes; then
4628 ac_cpp='$CPP $CPPFLAGS'
4629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636 if test -n "$ac_tool_prefix"; then
4637 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4638 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4642 $as_echo_n "(cached) " >&6
4644 if test -n "$GNATBIND"; then
4645 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 GNATBIND=$ac_cv_prog_GNATBIND
4665 if test -n "$GNATBIND"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4667 $as_echo "$GNATBIND" >&6; }
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4675 if test -z "$ac_cv_prog_GNATBIND"; then
4676 ac_ct_GNATBIND=$GNATBIND
4677 # Extract the first word of "gnatbind", so it can be a program name with args.
4678 set dummy gnatbind; ac_word=$2
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680 $as_echo_n "checking for $ac_word... " >&6; }
4681 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4684 if test -n "$ac_ct_GNATBIND"; then
4685 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4694 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4705 if test -n "$ac_ct_GNATBIND"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4707 $as_echo "$ac_ct_GNATBIND" >&6; }
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4713 if test "x$ac_ct_GNATBIND" = x; then
4716 case $cross_compiling:$ac_tool_warned in
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4720 ac_tool_warned=yes ;;
4722 GNATBIND=$ac_ct_GNATBIND
4725 GNATBIND="$ac_cv_prog_GNATBIND"
4728 if test -n "$ac_tool_prefix"; then
4729 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4730 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4736 if test -n "$GNATMAKE"; then
4737 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 GNATMAKE=$ac_cv_prog_GNATMAKE
4757 if test -n "$GNATMAKE"; then
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4759 $as_echo "$GNATMAKE" >&6; }
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 $as_echo "no" >&6; }
4767 if test -z "$ac_cv_prog_GNATMAKE"; then
4768 ac_ct_GNATMAKE=$GNATMAKE
4769 # Extract the first word of "gnatmake", so it can be a program name with args.
4770 set dummy gnatmake; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4776 if test -n "$ac_ct_GNATMAKE"; then
4777 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4797 if test -n "$ac_ct_GNATMAKE"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4799 $as_echo "$ac_ct_GNATMAKE" >&6; }
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4805 if test "x$ac_ct_GNATMAKE" = x; then
4808 case $cross_compiling:$ac_tool_warned in
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4812 ac_tool_warned=yes ;;
4814 GNATMAKE=$ac_ct_GNATMAKE
4817 GNATMAKE="$ac_cv_prog_GNATMAKE"
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4821 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4822 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4823 $as_echo_n "(cached) " >&6
4825 cat >conftest.adb <<EOF
4826 procedure conftest is begin null; end conftest;
4828 acx_cv_cc_gcc_supports_ada=no
4829 # There is a bug in old released versions of GCC which causes the
4830 # driver to exit successfully when the appropriate language module
4831 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4832 # Therefore we must check for the error message as well as an
4833 # unsuccessful exit.
4834 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4835 # given a .adb file, but produce no object file. So we must check
4836 # if an object file was really produced to guard against this.
4837 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4838 if test x"$errors" = x && test -f conftest.$ac_objext; then
4839 acx_cv_cc_gcc_supports_ada=yes
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4844 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4846 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4853 # autoconf is lame and doesn't give us any substitution variable for this.
4854 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4855 NO_MINUS_C_MINUS_O=yes
4857 OUTPUT_OPTION='-o $@'
4862 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4863 # optimizations to be activated explicitly by the toplevel.
4865 */prev-gcc/xgcc*) ;;
4866 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4870 # Determine PICFLAG for target gnatlib.
4876 # PIC is the default on some targets or must not be used.
4878 # PIC is the default on this platform
4879 # Common symbols not allowed in MH_DYLIB files
4880 PICFLAG_FOR_TARGET=-fno-common
4883 # PIC is the default.
4886 # PIC is the default for 64-bit PA HP-UX.
4888 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4890 i[34567]86-*-interix[3-9]*)
4891 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4892 # Instead, we relocate shared libraries at runtime.
4894 i[34567]86-*-nto-qnx*)
4895 # QNX uses GNU C++, but need to define -shared option too, otherwise
4897 PICFLAG_FOR_TARGET='-fPIC -shared'
4899 i[34567]86-pc-msdosdjgpp*)
4900 # DJGPP does not support shared libraries at all.
4903 # On IA64 HP-UX, PIC is the default but the pic flag
4904 # sets the default TLS model and affects inlining.
4905 PICFLAG_FOR_TARGET=-fPIC
4908 # PIC is the default.
4910 rs6000-ibm-aix* | powerpc-ibm-aix*)
4911 # All AIX code is PIC.
4914 # Some targets support both -fPIC and -fpic, but prefer the latter.
4916 i[34567]86-*-* | x86_64-*-*)
4917 PICFLAG_FOR_TARGET=-fpic
4920 PICFLAG_FOR_TARGET=-fpic
4922 # FIXME: Override -fPIC default in libgcc only?
4923 sh-*-linux* | sh[2346lbe]*-*-linux*)
4924 PICFLAG_FOR_TARGET=-fpic
4926 # FIXME: Simplify to sh*-*-netbsd*?
4927 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4928 sh64-*-netbsd* | sh64l*-*-netbsd*)
4929 PICFLAG_FOR_TARGET=-fpic
4931 # Default to -fPIC unless specified otherwise.
4933 PICFLAG_FOR_TARGET=-fPIC
4937 # If the user explicitly uses -fpic/-fPIC, keep that.
4938 case "${CFLAGS_FOR_TARGET}" in
4940 PICFLAG_FOR_TARGET=-fpic
4943 PICFLAG_FOR_TARGET=-fPIC
4949 # -------------------------
4950 # Check C compiler features
4951 # -------------------------
4955 ac_cpp='$CPP $CPPFLAGS'
4956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4960 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4961 # On Suns, sometimes $CPP names a directory.
4962 if test -n "$CPP" && test -d "$CPP"; then
4965 if test -z "$CPP"; then
4966 if test "${ac_cv_prog_CPP+set}" = set; then :
4967 $as_echo_n "(cached) " >&6
4969 # Double quotes because CPP needs to be expanded
4970 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4973 for ac_c_preproc_warn_flag in '' yes
4975 # Use a header file that comes with gcc, so configuring glibc
4976 # with a fresh cross-compiler works.
4977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4978 # <limits.h> exists even on freestanding compilers.
4979 # On the NeXT, cc -E runs the code through the compiler's parser,
4980 # not just through cpp. "Syntax error" is here to catch this case.
4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h. */
4984 # include <limits.h>
4986 # include <assert.h>
4990 if ac_fn_c_try_cpp "$LINENO"; then :
4993 # Broken: fails on valid input.
4996 rm -f conftest.err conftest.$ac_ext
4998 # OK, works on sane cases. Now check whether nonexistent headers
4999 # can be detected and how.
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002 #include <ac_nonexistent.h>
5004 if ac_fn_c_try_cpp "$LINENO"; then :
5005 # Broken: success on invalid input.
5008 # Passes both tests.
5012 rm -f conftest.err conftest.$ac_ext
5015 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5016 rm -f conftest.err conftest.
$ac_ext
5017 if $ac_preproc_ok; then :
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5030 $as_echo "$CPP" >&6; }
5032 for ac_c_preproc_warn_flag
in '' yes
5034 # Use a header file that comes with gcc, so configuring glibc
5035 # with a fresh cross-compiler works.
5036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5037 # <limits.h> exists even on freestanding compilers.
5038 # On the NeXT, cc -E runs the code through the compiler's parser,
5039 # not just through cpp. "Syntax error" is here to catch this case.
5040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5041 /* end confdefs.h. */
5043 # include <limits.h>
5045 # include <assert.h>
5049 if ac_fn_c_try_cpp
"$LINENO"; then :
5052 # Broken: fails on valid input.
5055 rm -f conftest.err conftest.
$ac_ext
5057 # OK, works on sane cases. Now check whether nonexistent headers
5058 # can be detected and how.
5059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5061 #include <ac_nonexistent.h>
5063 if ac_fn_c_try_cpp
"$LINENO"; then :
5064 # Broken: success on invalid input.
5067 # Passes both tests.
5071 rm -f conftest.err conftest.
$ac_ext
5074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5075 rm -f conftest.err conftest.
$ac_ext
5076 if $ac_preproc_ok; then :
5079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5081 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5082 See \`config.log' for more details." "$LINENO" 5; }
5086 ac_cpp
='$CPP $CPPFLAGS'
5087 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5093 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5094 if test "${ac_cv_path_GREP+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5097 if test -z "$GREP"; then
5098 ac_path_GREP_found
=false
5099 # Loop through the user's path and test for each of PROGNAME-LIST
5100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5101 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5104 test -z "$as_dir" && as_dir
=.
5105 for ac_prog
in grep ggrep
; do
5106 for ac_exec_ext
in '' $ac_executable_extensions; do
5107 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5108 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5109 # Check for GNU ac_path_GREP and select it if it is found.
5110 # Check for GNU $ac_path_GREP
5111 case `"$ac_path_GREP" --version 2>&1` in
5113 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5116 $as_echo_n 0123456789 >"conftest.in"
5119 cat "conftest.in" "conftest.in" >"conftest.tmp"
5120 mv "conftest.tmp" "conftest.in"
5121 cp "conftest.in" "conftest.nl"
5122 $as_echo 'GREP' >> "conftest.nl"
5123 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5124 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5125 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5126 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5127 # Best one so far, save it but keep looking for a better one
5128 ac_cv_path_GREP
="$ac_path_GREP"
5129 ac_path_GREP_max
=$ac_count
5131 # 10*(2^10) chars as input seems more than enough
5132 test $ac_count -gt 10 && break
5134 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5137 $ac_path_GREP_found && break 3
5142 if test -z "$ac_cv_path_GREP"; then
5143 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5146 ac_cv_path_GREP
=$GREP
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5151 $as_echo "$ac_cv_path_GREP" >&6; }
5152 GREP
="$ac_cv_path_GREP"
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5156 $as_echo_n "checking for egrep... " >&6; }
5157 if test "${ac_cv_path_EGREP+set}" = set; then :
5158 $as_echo_n "(cached) " >&6
5160 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5161 then ac_cv_path_EGREP
="$GREP -E"
5163 if test -z "$EGREP"; then
5164 ac_path_EGREP_found
=false
5165 # Loop through the user's path and test for each of PROGNAME-LIST
5166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5167 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5170 test -z "$as_dir" && as_dir
=.
5171 for ac_prog
in egrep; do
5172 for ac_exec_ext
in '' $ac_executable_extensions; do
5173 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5174 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5175 # Check for GNU ac_path_EGREP and select it if it is found.
5176 # Check for GNU $ac_path_EGREP
5177 case `"$ac_path_EGREP" --version 2>&1` in
5179 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5182 $as_echo_n 0123456789 >"conftest.in"
5185 cat "conftest.in" "conftest.in" >"conftest.tmp"
5186 mv "conftest.tmp" "conftest.in"
5187 cp "conftest.in" "conftest.nl"
5188 $as_echo 'EGREP' >> "conftest.nl"
5189 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5190 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5191 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5192 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5193 # Best one so far, save it but keep looking for a better one
5194 ac_cv_path_EGREP
="$ac_path_EGREP"
5195 ac_path_EGREP_max
=$ac_count
5197 # 10*(2^10) chars as input seems more than enough
5198 test $ac_count -gt 10 && break
5200 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5203 $ac_path_EGREP_found && break 3
5208 if test -z "$ac_cv_path_EGREP"; then
5209 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5212 ac_cv_path_EGREP
=$EGREP
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5218 $as_echo "$ac_cv_path_EGREP" >&6; }
5219 EGREP
="$ac_cv_path_EGREP"
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5223 $as_echo_n "checking for ANSI C header files... " >&6; }
5224 if test "${ac_cv_header_stdc+set}" = set; then :
5225 $as_echo_n "(cached) " >&6
5227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5242 if ac_fn_c_try_compile
"$LINENO"; then :
5243 ac_cv_header_stdc
=yes
5245 ac_cv_header_stdc
=no
5247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5249 if test $ac_cv_header_stdc = yes; then
5250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5257 $EGREP "memchr" >/dev
/null
2>&1; then :
5260 ac_cv_header_stdc
=no
5266 if test $ac_cv_header_stdc = yes; then
5267 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5274 $EGREP "free" >/dev
/null
2>&1; then :
5277 ac_cv_header_stdc
=no
5283 if test $ac_cv_header_stdc = yes; then
5284 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5285 if test "$cross_compiling" = yes; then :
5288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5292 #if ((' ' & 0x0FF) == 0x020)
5293 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5294 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5296 # define ISLOWER(c) \
5297 (('a' <= (c) && (c) <= 'i') \
5298 || ('j' <= (c) && (c) <= 'r') \
5299 || ('s' <= (c) && (c) <= 'z'))
5300 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5308 for (i = 0; i < 256; i++)
5309 if (XOR (islower (i), ISLOWER (i))
5310 || toupper (i) != TOUPPER (i))
5315 if ac_fn_c_try_run
"$LINENO"; then :
5318 ac_cv_header_stdc
=no
5320 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5321 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5327 $as_echo "$ac_cv_header_stdc" >&6; }
5328 if test $ac_cv_header_stdc = yes; then
5330 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5334 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5335 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5336 inttypes.h stdint.h unistd.h
5338 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5339 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5341 eval as_val
=\$
$as_ac_Header
5342 if test "x$as_val" = x
""yes; then :
5343 cat >>confdefs.h
<<_ACEOF
5344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5353 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5354 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5361 if test "$MINIX" = yes; then
5363 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5366 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5369 $as_echo "#define _MINIX 1" >>confdefs.h
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5375 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5376 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5377 $as_echo_n "(cached) " >&6
5379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5382 # define __EXTENSIONS__ 1
5383 $ac_includes_default
5392 if ac_fn_c_try_compile
"$LINENO"; then :
5393 ac_cv_safe_to_define___extensions__
=yes
5395 ac_cv_safe_to_define___extensions__
=no
5397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5400 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5401 test $ac_cv_safe_to_define___extensions__ = yes &&
5402 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5404 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5406 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5408 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5410 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5414 ac_cpp
='$CPP $CPPFLAGS'
5415 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5416 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5417 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5419 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5420 # On Suns, sometimes $CPP names a directory.
5421 if test -n "$CPP" && test -d "$CPP"; then
5424 if test -z "$CPP"; then
5425 if test "${ac_cv_prog_CPP+set}" = set; then :
5426 $as_echo_n "(cached) " >&6
5428 # Double quotes because CPP needs to be expanded
5429 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5432 for ac_c_preproc_warn_flag
in '' yes
5434 # Use a header file that comes with gcc, so configuring glibc
5435 # with a fresh cross-compiler works.
5436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5437 # <limits.h> exists even on freestanding compilers.
5438 # On the NeXT, cc -E runs the code through the compiler's parser,
5439 # not just through cpp. "Syntax error" is here to catch this case.
5440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5443 # include <limits.h>
5445 # include <assert.h>
5449 if ac_fn_c_try_cpp
"$LINENO"; then :
5452 # Broken: fails on valid input.
5455 rm -f conftest.err conftest.
$ac_ext
5457 # OK, works on sane cases. Now check whether nonexistent headers
5458 # can be detected and how.
5459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461 #include <ac_nonexistent.h>
5463 if ac_fn_c_try_cpp
"$LINENO"; then :
5464 # Broken: success on invalid input.
5467 # Passes both tests.
5471 rm -f conftest.err conftest.
$ac_ext
5474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5475 rm -f conftest.err conftest.
$ac_ext
5476 if $ac_preproc_ok; then :
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5489 $as_echo "$CPP" >&6; }
5491 for ac_c_preproc_warn_flag
in '' yes
5493 # Use a header file that comes with gcc, so configuring glibc
5494 # with a fresh cross-compiler works.
5495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5496 # <limits.h> exists even on freestanding compilers.
5497 # On the NeXT, cc -E runs the code through the compiler's parser,
5498 # not just through cpp. "Syntax error" is here to catch this case.
5499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h. */
5502 # include <limits.h>
5504 # include <assert.h>
5508 if ac_fn_c_try_cpp
"$LINENO"; then :
5511 # Broken: fails on valid input.
5514 rm -f conftest.err conftest.
$ac_ext
5516 # OK, works on sane cases. Now check whether nonexistent headers
5517 # can be detected and how.
5518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5520 #include <ac_nonexistent.h>
5522 if ac_fn_c_try_cpp
"$LINENO"; then :
5523 # Broken: success on invalid input.
5526 # Passes both tests.
5530 rm -f conftest.err conftest.
$ac_ext
5533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5534 rm -f conftest.err conftest.
$ac_ext
5535 if $ac_preproc_ok; then :
5538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5540 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5541 See \`config.log' for more details." "$LINENO" 5; }
5545 ac_cpp
='$CPP $CPPFLAGS'
5546 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5547 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5548 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5551 $as_echo_n "checking for inline... " >&6; }
5552 if test "${ac_cv_c_inline+set}" = set; then :
5553 $as_echo_n "(cached) " >&6
5556 for ac_kw
in inline __inline__ __inline
; do
5557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5561 static $ac_kw foo_t static_foo () {return 0; }
5562 $ac_kw foo_t foo () {return 0; }
5566 if ac_fn_c_try_compile
"$LINENO"; then :
5567 ac_cv_c_inline
=$ac_kw
5569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5570 test "$ac_cv_c_inline" != no
&& break
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5575 $as_echo "$ac_cv_c_inline" >&6; }
5577 case $ac_cv_c_inline in
5580 case $ac_cv_c_inline in
5582 *) ac_val
=$ac_cv_c_inline;;
5584 cat >>confdefs.h
<<_ACEOF
5586 #define inline $ac_val
5593 # Check whether --enable-largefile was given.
5594 if test "${enable_largefile+set}" = set; then :
5595 enableval
=$enable_largefile;
5598 if test "$enable_largefile" != no
; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5601 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5602 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5603 $as_echo_n "(cached) " >&6
5605 ac_cv_sys_largefile_CC
=no
5606 if test "$GCC" != yes; then
5609 # IRIX 6.2 and later do not support large files by default,
5610 # so use the C compiler's -n32 option if that helps.
5611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5613 #include <sys/types.h>
5614 /* Check that off_t can represent 2**63 - 1 correctly.
5615 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5616 since some C++ compilers masquerading as C compilers
5617 incorrectly reject 9223372036854775807. */
5618 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5619 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5620 && LARGE_OFF_T % 2147483647 == 1)
5630 if ac_fn_c_try_compile
"$LINENO"; then :
5633 rm -f core conftest.err conftest.
$ac_objext
5635 if ac_fn_c_try_compile
"$LINENO"; then :
5636 ac_cv_sys_largefile_CC
=' -n32'; break
5638 rm -f core conftest.err conftest.
$ac_objext
5642 rm -f conftest.
$ac_ext
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5646 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5647 if test "$ac_cv_sys_largefile_CC" != no
; then
5648 CC
=$CC$ac_cv_sys_largefile_CC
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5652 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5653 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5654 $as_echo_n "(cached) " >&6
5657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659 #include <sys/types.h>
5660 /* Check that off_t can represent 2**63 - 1 correctly.
5661 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5662 since some C++ compilers masquerading as C compilers
5663 incorrectly reject 9223372036854775807. */
5664 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5666 && LARGE_OFF_T % 2147483647 == 1)
5676 if ac_fn_c_try_compile
"$LINENO"; then :
5677 ac_cv_sys_file_offset_bits
=no
; break
5679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 #define _FILE_OFFSET_BITS 64
5683 #include <sys/types.h>
5684 /* Check that off_t can represent 2**63 - 1 correctly.
5685 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5686 since some C++ compilers masquerading as C compilers
5687 incorrectly reject 9223372036854775807. */
5688 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5689 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5690 && LARGE_OFF_T % 2147483647 == 1)
5700 if ac_fn_c_try_compile
"$LINENO"; then :
5701 ac_cv_sys_file_offset_bits
=64; break
5703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5704 ac_cv_sys_file_offset_bits
=unknown
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5709 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5710 case $ac_cv_sys_file_offset_bits in #(
5713 cat >>confdefs.h
<<_ACEOF
5714 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5719 if test $ac_cv_sys_file_offset_bits = unknown
; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5721 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5722 if test "${ac_cv_sys_large_files+set}" = set; then :
5723 $as_echo_n "(cached) " >&6
5726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5728 #include <sys/types.h>
5729 /* Check that off_t can represent 2**63 - 1 correctly.
5730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5731 since some C++ compilers masquerading as C compilers
5732 incorrectly reject 9223372036854775807. */
5733 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5735 && LARGE_OFF_T % 2147483647 == 1)
5745 if ac_fn_c_try_compile
"$LINENO"; then :
5746 ac_cv_sys_large_files
=no
; break
5748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 #define _LARGE_FILES 1
5752 #include <sys/types.h>
5753 /* Check that off_t can represent 2**63 - 1 correctly.
5754 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5755 since some C++ compilers masquerading as C compilers
5756 incorrectly reject 9223372036854775807. */
5757 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5759 && LARGE_OFF_T % 2147483647 == 1)
5769 if ac_fn_c_try_compile
"$LINENO"; then :
5770 ac_cv_sys_large_files
=1; break
5772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5773 ac_cv_sys_large_files
=unknown
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5778 $as_echo "$ac_cv_sys_large_files" >&6; }
5779 case $ac_cv_sys_large_files in #(
5782 cat >>confdefs.h
<<_ACEOF
5783 #define _LARGE_FILES $ac_cv_sys_large_files
5792 # sizeof(char) is 1 by definition.
5793 # The cast to long int works around a bug in the HP C Compiler
5794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5796 # This bug is HP SR number 8606223364.
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5798 $as_echo_n "checking size of void *... " >&6; }
5799 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5800 $as_echo_n "(cached) " >&6
5802 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5805 if test "$ac_cv_type_void_p" = yes; then
5806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5808 { as_fn_set_status
77
5809 as_fn_error
"cannot compute sizeof (void *)
5810 See \`config.log' for more details." "$LINENO" 5; }; }
5812 ac_cv_sizeof_void_p
=0
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5818 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5822 cat >>confdefs.h
<<_ACEOF
5823 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5827 # The cast to long int works around a bug in the HP C Compiler
5828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5830 # This bug is HP SR number 8606223364.
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5832 $as_echo_n "checking size of short... " >&6; }
5833 if test "${ac_cv_sizeof_short+set}" = set; then :
5834 $as_echo_n "(cached) " >&6
5836 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5839 if test "$ac_cv_type_short" = yes; then
5840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5842 { as_fn_set_status
77
5843 as_fn_error
"cannot compute sizeof (short)
5844 See \`config.log' for more details." "$LINENO" 5; }; }
5846 ac_cv_sizeof_short
=0
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5852 $as_echo "$ac_cv_sizeof_short" >&6; }
5856 cat >>confdefs.h
<<_ACEOF
5857 #define SIZEOF_SHORT $ac_cv_sizeof_short
5861 # The cast to long int works around a bug in the HP C Compiler
5862 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5863 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5864 # This bug is HP SR number 8606223364.
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5866 $as_echo_n "checking size of int... " >&6; }
5867 if test "${ac_cv_sizeof_int+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
5870 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5873 if test "$ac_cv_type_int" = yes; then
5874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5876 { as_fn_set_status
77
5877 as_fn_error
"cannot compute sizeof (int)
5878 See \`config.log' for more details." "$LINENO" 5; }; }
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5886 $as_echo "$ac_cv_sizeof_int" >&6; }
5890 cat >>confdefs.h
<<_ACEOF
5891 #define SIZEOF_INT $ac_cv_sizeof_int
5895 # The cast to long int works around a bug in the HP C Compiler
5896 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5897 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5898 # This bug is HP SR number 8606223364.
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5900 $as_echo_n "checking size of long... " >&6; }
5901 if test "${ac_cv_sizeof_long+set}" = set; then :
5902 $as_echo_n "(cached) " >&6
5904 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5907 if test "$ac_cv_type_long" = yes; then
5908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5910 { as_fn_set_status
77
5911 as_fn_error
"cannot compute sizeof (long)
5912 See \`config.log' for more details." "$LINENO" 5; }; }
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5920 $as_echo "$ac_cv_sizeof_long" >&6; }
5924 cat >>confdefs.h
<<_ACEOF
5925 #define SIZEOF_LONG $ac_cv_sizeof_long
5929 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5930 if test "x$ac_cv_type_long_long" = x
""yes; then :
5932 cat >>confdefs.h
<<_ACEOF
5933 #define HAVE_LONG_LONG 1
5936 # The cast to long int works around a bug in the HP C Compiler
5937 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5938 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5939 # This bug is HP SR number 8606223364.
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5941 $as_echo_n "checking size of long long... " >&6; }
5942 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5943 $as_echo_n "(cached) " >&6
5945 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5948 if test "$ac_cv_type_long_long" = yes; then
5949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5951 { as_fn_set_status
77
5952 as_fn_error
"cannot compute sizeof (long long)
5953 See \`config.log' for more details." "$LINENO" 5; }; }
5955 ac_cv_sizeof_long_long
=0
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5961 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5965 cat >>confdefs.h
<<_ACEOF
5966 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5972 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5973 if test "x$ac_cv_type___int64" = x
""yes; then :
5975 cat >>confdefs.h
<<_ACEOF
5976 #define HAVE___INT64 1
5979 # The cast to long int works around a bug in the HP C Compiler
5980 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5981 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5982 # This bug is HP SR number 8606223364.
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5984 $as_echo_n "checking size of __int64... " >&6; }
5985 if test "${ac_cv_sizeof___int64+set}" = set; then :
5986 $as_echo_n "(cached) " >&6
5988 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5991 if test "$ac_cv_type___int64" = yes; then
5992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5994 { as_fn_set_status
77
5995 as_fn_error
"cannot compute sizeof (__int64)
5996 See \`config.log' for more details." "$LINENO" 5; }; }
5998 ac_cv_sizeof___int64
=0
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6004 $as_echo "$ac_cv_sizeof___int64" >&6; }
6008 cat >>confdefs.h
<<_ACEOF
6009 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6015 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6016 case $ac_cv_c_int8_t in #(
6020 cat >>confdefs.h
<<_ACEOF
6021 #define int8_t $ac_cv_c_int8_t
6026 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6027 case $ac_cv_c_int16_t in #(
6031 cat >>confdefs.h
<<_ACEOF
6032 #define int16_t $ac_cv_c_int16_t
6037 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6038 case $ac_cv_c_int32_t in #(
6042 cat >>confdefs.h
<<_ACEOF
6043 #define int32_t $ac_cv_c_int32_t
6048 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6049 case $ac_cv_c_int64_t in #(
6053 cat >>confdefs.h
<<_ACEOF
6054 #define int64_t $ac_cv_c_int64_t
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6061 $as_echo_n "checking for long long int... " >&6; }
6062 if test "${ac_cv_type_long_long_int+set}" = set; then :
6063 $as_echo_n "(cached) " >&6
6065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6068 /* For now, do not test the preprocessor; as of 2007 there are too many
6069 implementations with broken preprocessors. Perhaps this can
6070 be revisited in 2012. In the meantime, code should not expect
6071 #if to work with literals wider than 32 bits. */
6072 /* Test literals. */
6073 long long int ll = 9223372036854775807ll;
6074 long long int nll = -9223372036854775807LL;
6075 unsigned long long int ull = 18446744073709551615ULL;
6076 /* Test constant expressions. */
6077 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6079 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6085 /* Test availability of runtime routines for shift and division. */
6086 long long int llmax = 9223372036854775807ll;
6087 unsigned long long int ullmax = 18446744073709551615ull;
6088 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6089 | (llmax / ll) | (llmax % ll)
6090 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6091 | (ullmax / ull) | (ullmax % ull));
6097 if ac_fn_c_try_link
"$LINENO"; then :
6098 if test "$cross_compiling" = yes; then :
6099 ac_cv_type_long_long_int
=yes
6101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6102 /* end confdefs.h. */
6106 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6107 # define LLONG_MAX (HALF - 1 + HALF)
6112 long long int n = 1;
6116 long long int m = n << i;
6119 if (LLONG_MAX / 2 < m)
6127 if ac_fn_c_try_run
"$LINENO"; then :
6128 ac_cv_type_long_long_int
=yes
6130 ac_cv_type_long_long_int
=no
6132 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6133 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6137 ac_cv_type_long_long_int
=no
6139 rm -f core conftest.err conftest.
$ac_objext \
6140 conftest
$ac_exeext conftest.
$ac_ext
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6143 $as_echo "$ac_cv_type_long_long_int" >&6; }
6144 if test $ac_cv_type_long_long_int = yes; then
6146 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6152 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6153 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6155 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6158 test $ac_cv_type_long_long_int = yes \
6159 && ac_type
='long long int' \
6160 || ac_type
='long int'
6162 cat >>confdefs.h
<<_ACEOF
6163 #define intmax_t $ac_type
6170 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6171 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6173 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6176 for ac_type
in 'int' 'long int' 'long long int'; do
6177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6179 $ac_includes_default
6183 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6190 if ac_fn_c_try_compile
"$LINENO"; then :
6192 cat >>confdefs.h
<<_ACEOF
6193 #define intptr_t $ac_type
6198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6199 test -z "$ac_type" && break
6204 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6205 case $ac_cv_c_uint8_t in #(
6209 $as_echo "#define _UINT8_T 1" >>confdefs.h
6212 cat >>confdefs.h
<<_ACEOF
6213 #define uint8_t $ac_cv_c_uint8_t
6218 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6219 case $ac_cv_c_uint16_t in #(
6224 cat >>confdefs.h
<<_ACEOF
6225 #define uint16_t $ac_cv_c_uint16_t
6230 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6231 case $ac_cv_c_uint32_t in #(
6235 $as_echo "#define _UINT32_T 1" >>confdefs.h
6238 cat >>confdefs.h
<<_ACEOF
6239 #define uint32_t $ac_cv_c_uint32_t
6244 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6245 case $ac_cv_c_uint64_t in #(
6249 $as_echo "#define _UINT64_T 1" >>confdefs.h
6252 cat >>confdefs.h
<<_ACEOF
6253 #define uint64_t $ac_cv_c_uint64_t
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6260 $as_echo_n "checking for unsigned long long int... " >&6; }
6261 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6262 $as_echo_n "(cached) " >&6
6264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6267 /* For now, do not test the preprocessor; as of 2007 there are too many
6268 implementations with broken preprocessors. Perhaps this can
6269 be revisited in 2012. In the meantime, code should not expect
6270 #if to work with literals wider than 32 bits. */
6271 /* Test literals. */
6272 long long int ll = 9223372036854775807ll;
6273 long long int nll = -9223372036854775807LL;
6274 unsigned long long int ull = 18446744073709551615ULL;
6275 /* Test constant expressions. */
6276 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6278 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6284 /* Test availability of runtime routines for shift and division. */
6285 long long int llmax = 9223372036854775807ll;
6286 unsigned long long int ullmax = 18446744073709551615ull;
6287 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6288 | (llmax / ll) | (llmax % ll)
6289 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6290 | (ullmax / ull) | (ullmax % ull));
6296 if ac_fn_c_try_link
"$LINENO"; then :
6297 ac_cv_type_unsigned_long_long_int
=yes
6299 ac_cv_type_unsigned_long_long_int
=no
6301 rm -f core conftest.err conftest.
$ac_objext \
6302 conftest
$ac_exeext conftest.
$ac_ext
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6305 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6306 if test $ac_cv_type_unsigned_long_long_int = yes; then
6308 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6314 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6315 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6317 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6320 test $ac_cv_type_unsigned_long_long_int = yes \
6321 && ac_type
='unsigned long long int' \
6322 || ac_type
='unsigned long int'
6324 cat >>confdefs.h
<<_ACEOF
6325 #define uintmax_t $ac_type
6332 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6333 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6335 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6338 for ac_type
in 'unsigned int' 'unsigned long int' \
6339 'unsigned long long int'; do
6340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6341 /* end confdefs.h. */
6342 $ac_includes_default
6346 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6353 if ac_fn_c_try_compile
"$LINENO"; then :
6355 cat >>confdefs.h
<<_ACEOF
6356 #define uintptr_t $ac_type
6361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6362 test -z "$ac_type" && break
6380 # ---------------------
6381 # Warnings and checking
6382 # ---------------------
6384 # Check $CC warning features (if it's GCC).
6385 # We want to use -pedantic, but we don't want warnings about
6388 # * overlong strings
6389 # * C++11 narrowing conversions in { }
6390 # So, we only use -pedantic if we can disable those warnings.
6393 save_CFLAGS
="$CFLAGS"
6394 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6395 # Do the check with the no- prefix removed since gcc silently
6396 # accepts any -Wno-* option on purpose
6397 case $real_option in
6398 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6399 *) option
=$real_option ;;
6401 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6404 $as_echo_n "checking whether $CC supports $option... " >&6; }
6405 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6406 $as_echo_n "(cached) " >&6
6409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6420 if ac_fn_c_try_compile
"$LINENO"; then :
6421 eval "$as_acx_Woption=yes"
6423 eval "$as_acx_Woption=no"
6425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6428 eval ac_res
=\$
$as_acx_Woption
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6430 $as_echo "$ac_res" >&6; }
6431 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6432 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6435 CFLAGS
="$save_CFLAGS"
6438 save_CFLAGS
="$CFLAGS"
6439 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6440 # Do the check with the no- prefix removed since gcc silently
6441 # accepts any -Wno-* option on purpose
6442 case $real_option in
6443 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6444 *) option
=$real_option ;;
6446 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6449 $as_echo_n "checking whether $CC supports $option... " >&6; }
6450 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6451 $as_echo_n "(cached) " >&6
6454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6465 if ac_fn_c_try_compile
"$LINENO"; then :
6466 eval "$as_acx_Woption=yes"
6468 eval "$as_acx_Woption=no"
6470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6473 eval ac_res
=\$
$as_acx_Woption
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6475 $as_echo "$ac_res" >&6; }
6476 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6477 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6480 CFLAGS
="$save_CFLAGS"
6483 save_CFLAGS
="$CFLAGS"
6484 for real_option
in -Wmissing-format-attribute; do
6485 # Do the check with the no- prefix removed since gcc silently
6486 # accepts any -Wno-* option on purpose
6487 case $real_option in
6488 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6489 *) option
=$real_option ;;
6491 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6494 $as_echo_n "checking whether $CC supports $option... " >&6; }
6495 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6496 $as_echo_n "(cached) " >&6
6499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6510 if ac_fn_c_try_compile
"$LINENO"; then :
6511 eval "$as_acx_Woption=yes"
6513 eval "$as_acx_Woption=no"
6515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6518 eval ac_res
=\$
$as_acx_Woption
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6520 $as_echo "$ac_res" >&6; }
6521 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6522 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6525 CFLAGS
="$save_CFLAGS"
6528 save_CFLAGS
="$CFLAGS"
6529 for real_option
in -Wold-style-definition -Wc++-compat; do
6530 # Do the check with the no- prefix removed since gcc silently
6531 # accepts any -Wno-* option on purpose
6532 case $real_option in
6533 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6534 *) option
=$real_option ;;
6536 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6539 $as_echo_n "checking whether $CC supports $option... " >&6; }
6540 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6541 $as_echo_n "(cached) " >&6
6544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6555 if ac_fn_c_try_compile
"$LINENO"; then :
6556 eval "$as_acx_Woption=yes"
6558 eval "$as_acx_Woption=no"
6560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6563 eval ac_res
=\$
$as_acx_Woption
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6565 $as_echo "$ac_res" >&6; }
6566 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6567 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6570 CFLAGS
="$save_CFLAGS"
6572 # Do the check with the no- prefix removed from the warning options
6573 # since gcc silently accepts any -Wno-* option on purpose
6574 if test "$GCC" = yes; then :
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6576 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6577 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6580 save_CFLAGS
="$CFLAGS"
6581 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6593 if ac_fn_c_try_compile
"$LINENO"; then :
6594 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6596 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6599 CFLAGS
="$save_CFLAGS"
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6602 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6603 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6604 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6609 # Check whether --enable-werror-always was given.
6610 if test "${enable_werror_always+set}" = set; then :
6611 enableval
=$enable_werror_always;
6613 enable_werror_always
=no
6616 if test $enable_werror_always = yes; then :
6617 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6622 # The above macros do nothing if the compiler is not GCC. However, the
6623 # Makefile has more goo to add other flags, so these variables are used
6624 # to enable warnings only for GCC.
6627 if test "x$GCC" = "xyes"; then
6628 warn_cflags
='$(GCC_WARN_CFLAGS)'
6629 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6634 # Disable exceptions and RTTI if building with g++
6636 save_CFLAGS
="$CFLAGS"
6637 for real_option
in -fno-exceptions -fno-rtti; do
6638 # Do the check with the no- prefix removed since gcc silently
6639 # accepts any -Wno-* option on purpose
6640 case $real_option in
6641 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6642 *) option
=$real_option ;;
6644 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6647 $as_echo_n "checking whether $CC supports $option... " >&6; }
6648 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6649 $as_echo_n "(cached) " >&6
6652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6663 if ac_fn_c_try_compile
"$LINENO"; then :
6664 eval "$as_acx_Woption=yes"
6666 eval "$as_acx_Woption=no"
6668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6671 eval ac_res
=\$
$as_acx_Woption
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6673 $as_echo "$ac_res" >&6; }
6674 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6675 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6678 CFLAGS
="$save_CFLAGS"
6681 # Enable expensive internal checks
6683 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6687 # Check whether --enable-checking was given.
6688 if test "${enable_checking+set}" = set; then :
6689 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6692 # Determine the default checks.
6693 if test x
$is_release = x
; then
6694 ac_checking_flags
=yes
6696 ac_checking_flags
=release
6700 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6701 for check
in release
$ac_checking_flags
6704 # these set all the flags to specific states
6705 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6706 ac_fold_checking
= ; ac_gc_checking
=1 ;
6707 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6708 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6709 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6710 ac_types_checking
=1 ;;
6711 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6712 ac_fold_checking
= ; ac_gc_checking
= ;
6713 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6714 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6715 ac_tree_checking
= ; ac_valgrind_checking
= ;
6716 ac_types_checking
= ;;
6717 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6718 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6719 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6720 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6721 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6722 ac_types_checking
=1 ;;
6723 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6724 ac_fold_checking
= ; ac_gc_checking
= ;
6725 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6726 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6727 ac_tree_checking
= ; ac_valgrind_checking
= ;
6728 ac_types_checking
= ;;
6729 # these enable particular checks
6730 assert
) ac_assert_checking
=1 ;;
6731 df
) ac_df_checking
=1 ;;
6732 fold) ac_fold_checking
=1 ;;
6733 gc
) ac_gc_checking
=1 ;;
6734 gcac
) ac_gc_always_collect
=1 ;;
6735 gimple
) ac_gimple_checking
=1 ;;
6736 misc
) ac_checking
=1 ;;
6737 rtl
) ac_rtl_checking
=1 ;;
6738 rtlflag
) ac_rtlflag_checking
=1 ;;
6739 runtime
) ac_runtime_checking
=1 ;;
6740 tree
) ac_tree_checking
=1 ;;
6741 types
) ac_types_checking
=1 ;;
6742 valgrind
) ac_valgrind_checking
=1 ;;
6743 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6749 if test x
$ac_checking != x
; then
6751 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6753 nocommon_flag
=-fno-common
6756 if test x
$ac_df_checking != x
; then
6758 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6761 if test x
$ac_assert_checking != x
; then
6763 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6766 if test x
$ac_gimple_checking != x
; then
6768 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6772 if test x
$ac_runtime_checking != x
; then
6774 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6777 if test x
$ac_tree_checking != x
; then
6779 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6781 TREEBROWSER
=tree-browser.o
6783 if test x
$ac_types_checking != x
; then
6785 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6789 if test x
$ac_rtl_checking != x
; then
6791 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6794 if test x
$ac_rtlflag_checking != x
; then
6796 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6799 if test x
$ac_gc_checking != x
; then
6801 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6804 if test x
$ac_gc_always_collect != x
; then
6806 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6809 if test x
$ac_fold_checking != x
; then
6811 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6814 valgrind_path_defines
=
6817 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6818 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6826 if test x
$ac_valgrind_checking != x
; then
6827 # It is certainly possible that there's valgrind but no valgrind.h.
6828 # GCC relies on making annotations so we must have both.
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6830 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h. */
6833 #include <valgrind/memcheck.h>
6834 #ifndef VALGRIND_DISCARD
6835 #error VALGRIND_DISCARD not defined
6838 if ac_fn_c_try_cpp
"$LINENO"; then :
6839 gcc_cv_header_valgrind_memcheck_h
=yes
6841 gcc_cv_header_valgrind_memcheck_h
=no
6843 rm -f conftest.err conftest.
$ac_ext
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6845 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6847 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 #include <memcheck.h>
6851 #ifndef VALGRIND_DISCARD
6852 #error VALGRIND_DISCARD not defined
6855 if ac_fn_c_try_cpp
"$LINENO"; then :
6856 gcc_cv_header_memcheck_h
=yes
6858 gcc_cv_header_memcheck_h
=no
6860 rm -f conftest.err conftest.
$ac_ext
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6862 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6864 # Prepare PATH_SEPARATOR.
6865 # The user is always right.
6866 if test "${PATH_SEPARATOR+set}" != set; then
6867 echo "#! /bin/sh" >conf$$.sh
6868 echo "exit 0" >>conf$$.sh
6870 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6878 # Find out how to test for executable files. Don't use a zero-byte file,
6879 # as systems may use methods other than mode bits to determine executability.
6880 cat >conf$$.
file <<_ASEOF
6884 chmod +x conf$$.
file
6885 if test -x conf$$.
file >/dev
/null
2>&1; then
6886 ac_executable_p
="test -x"
6888 ac_executable_p
="test -f"
6892 # Extract the first word of "valgrind", so it can be a program name with args.
6893 set dummy valgrind
; ac_word
=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6897 $as_echo_n "(cached) " >&6
6899 case "$valgrind_path" in
6901 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6904 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6905 for ac_dir
in $PATH; do
6907 test -z "$ac_dir" && ac_dir
=.
6908 for ac_exec_ext
in '' $ac_executable_extensions; do
6909 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6910 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6911 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6921 valgrind_path
="$ac_cv_path_valgrind_path"
6922 if test -n "$valgrind_path"; then
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6924 $as_echo "$valgrind_path" >&6; }
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6927 $as_echo "no" >&6; }
6930 if test "x$valgrind_path" = "x" \
6931 ||
(test $have_valgrind_h = no \
6932 && test $gcc_cv_header_memcheck_h = no \
6933 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6934 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6936 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6937 valgrind_command
="$valgrind_path -q"
6939 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6941 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6943 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6946 if test $gcc_cv_header_memcheck_h = yes; then
6948 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6955 # Enable code coverage collection
6956 # Check whether --enable-coverage was given.
6957 if test "${enable_coverage+set}" = set; then :
6958 enableval
=$enable_coverage; case "${enableval}" in
6960 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6963 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6966 # a.k.a. --disable-coverage
6970 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6979 # Check whether --enable-gather-detailed-mem-stats was given.
6980 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6981 enableval
=$enable_gather_detailed_mem_stats;
6983 enable_gather_detailed_mem_stats
=no
6986 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6988 cat >>confdefs.h
<<_ACEOF
6989 #define GATHER_STATISTICS $gather_stats
6993 # -------------------------------
6994 # Miscenalleous configure options
6995 # -------------------------------
6999 # Check whether --with-stabs was given.
7000 if test "${with_stabs+set}" = set; then :
7001 withval
=$with_stabs; stabs
="$with_stabs"
7007 # Determine whether or not multilibs are enabled.
7008 # Check whether --enable-multilib was given.
7009 if test "${enable_multilib+set}" = set; then :
7010 enableval
=$enable_multilib;
7017 # Enable __cxa_atexit for C++.
7018 # Check whether --enable-__cxa_atexit was given.
7019 if test "${enable___cxa_atexit+set}" = set; then :
7020 enableval
=$enable___cxa_atexit;
7024 # Enable C extension for decimal float if target supports it.
7026 # Check whether --enable-decimal-float was given.
7027 if test "${enable_decimal_float+set}" = set; then :
7028 enableval
=$enable_decimal_float;
7029 case $enable_decimal_float in
7030 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7031 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7032 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7038 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7039 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7041 enable_decimal_float
=yes
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7045 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7046 enable_decimal_float
=no
7053 # x86's use BID format instead of DPD
7054 case x
$enable_decimal_float in
7057 i?
86*-*-* | x86_64
*-*-*)
7058 enable_decimal_float
=bid
7061 enable_decimal_float
=dpd
7064 default_decimal_float
=$enable_decimal_float
7067 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7068 # dependency on libdecnumber.
7069 default_decimal_float
=dpd
7076 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7078 cat >>confdefs.h
<<_ACEOF
7079 #define ENABLE_DECIMAL_FLOAT $dfp
7083 # Use default_decimal_float for dependency.
7084 enable_decimal_float
=$default_decimal_float
7086 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7088 cat >>confdefs.h
<<_ACEOF
7089 #define ENABLE_DECIMAL_BID_FORMAT $bid
7093 # Enable C extension for fixed-point arithmetic.
7094 # Check whether --enable-fixed-point was given.
7095 if test "${enable_fixed_point+set}" = set; then :
7096 enableval
=$enable_fixed_point;
7101 enable_fixed_point
=yes
7105 enable_fixed_point
=yes
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7109 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7110 enable_fixed_point
=no
7118 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7120 cat >>confdefs.h
<<_ACEOF
7121 #define ENABLE_FIXED_POINT $fixedpoint
7126 # Pass with no value to take the default
7127 # Pass with a value to specify a thread package
7128 # Check whether --enable-threads was given.
7129 if test "${enable_threads+set}" = set; then :
7130 enableval
=$enable_threads;
7136 # Check whether --enable-tls was given.
7137 if test "${enable_tls+set}" = set; then :
7138 enableval
=$enable_tls;
7141 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7142 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7150 # Check whether --enable-objc-gc was given.
7151 if test "${enable_objc_gc+set}" = set; then :
7152 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7163 # Check whether --with-dwarf2 was given.
7164 if test "${with_dwarf2+set}" = set; then :
7165 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7171 # Check whether --enable-shared was given.
7172 if test "${enable_shared+set}" = set; then :
7173 enableval
=$enable_shared;
7174 case $enable_shared in
7178 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7179 for pkg
in $enableval; do
7180 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7195 # Check whether --with-native-system-header-dir was given.
7196 if test "${with_native_system_header_dir+set}" = set; then :
7197 withval
=$with_native_system_header_dir;
7198 case ${with_native_system_header_dir} in
7199 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7200 /* |
[A-Za-z
]:[\\/]*) ;;
7201 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7203 configured_native_system_header_dir
="${withval}"
7206 configured_native_system_header_dir
=
7211 # Check whether --with-build-sysroot was given.
7212 if test "${with_build_sysroot+set}" = set; then :
7213 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7214 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7217 SYSROOT_CFLAGS_FOR_TARGET
=
7222 if test "x$prefix" = xNONE
; then
7223 test_prefix
=/usr
/local
7227 if test "x$exec_prefix" = xNONE
; then
7228 test_exec_prefix
=$test_prefix
7230 test_exec_prefix
=$exec_prefix
7234 # Check whether --with-sysroot was given.
7235 if test "${with_sysroot+set}" = set; then :
7236 withval
=$with_sysroot;
7237 case ${with_sysroot} in
7238 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7239 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7242 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7243 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7245 case ${TARGET_SYSTEM_ROOT} in
7246 "${test_prefix}"|
"${test_prefix}/"*|\
7247 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7248 '${prefix}'|
'${prefix}/'*|\
7249 '${exec_prefix}'|
'${exec_prefix}/'*)
7250 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7251 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7258 TARGET_SYSTEM_ROOT_DEFINE
=
7259 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7268 # Check whether --with-specs was given.
7269 if test "${with_specs+set}" = set; then :
7270 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7280 # Check whether --with-pkgversion was given.
7281 if test "${with_pkgversion+set}" = set; then :
7282 withval
=$with_pkgversion; case "$withval" in
7283 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7285 *) PKGVERSION
="($withval) " ;;
7296 # Check whether --with-bugurl was given.
7297 if test "${with_bugurl+set}" = set; then :
7298 withval
=$with_bugurl; case "$withval" in
7299 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7302 *) BUGURL
="$withval"
7306 BUGURL
="http://gcc.gnu.org/bugs.html"
7316 REPORT_BUGS_TO
="<$BUGURL>"
7317 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7324 # Sanity check enable_languages in case someone does not run the toplevel
7325 # configure # script.
7326 # Check whether --enable-languages was given.
7327 if test "${enable_languages+set}" = set; then :
7328 enableval
=$enable_languages; case ,${enable_languages}, in
7330 # go safe -- we cannot be much sure without the toplevel
7332 # analysis of which target libs are present and usable
7336 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7341 enable_languages
=c
,${enable_languages}
7350 # Check whether --with-multilib-list was given.
7351 if test "${with_multilib_list+set}" = set; then :
7352 withval
=$with_multilib_list; :
7354 with_multilib_list
=default
7358 # -------------------------
7359 # Checks for other programs
7360 # -------------------------
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7363 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7365 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7366 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7367 $as_echo_n "(cached) " >&6
7369 cat >conftest.
make <<\_ACEOF
7372 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7374 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7375 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7377 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7379 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7383 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7385 $as_echo "yes" >&6; }
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7390 SET_MAKE
="MAKE=${MAKE-make}"
7394 # Find some useful tools
7395 for ac_prog
in gawk mawk nawk
awk
7397 # Extract the first word of "$ac_prog", so it can be a program name with args.
7398 set dummy
$ac_prog; ac_word
=$2
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400 $as_echo_n "checking for $ac_word... " >&6; }
7401 if test "${ac_cv_prog_AWK+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7404 if test -n "$AWK"; then
7405 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7411 test -z "$as_dir" && as_dir
=.
7412 for ac_exec_ext
in '' $ac_executable_extensions; do
7413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7414 ac_cv_prog_AWK
="$ac_prog"
7415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 if test -n "$AWK"; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7427 $as_echo "$AWK" >&6; }
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 $as_echo "no" >&6; }
7434 test -n "$AWK" && break
7437 # We need awk to create options.c and options.h.
7438 # Bail out if it's missing.
7440 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7444 $as_echo_n "checking whether ln -s works... " >&6; }
7445 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
7448 rm -f conftestdata_t
7449 echo >conftestdata_f
7450 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7452 gcc_cv_prog_LN_S
="ln -s"
7454 if ln conftestdata_f conftestdata_t
2>/dev
/null
7458 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7460 gcc_cv_prog_LN_S
="cp -p"
7466 rm -f conftestdata_f conftestdata_t
7469 LN_S
="$gcc_cv_prog_LN_S"
7470 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7472 $as_echo "yes" >&6; }
7474 if test "$gcc_cv_prog_LN_S" = "ln"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7476 $as_echo "no, using ln" >&6; }
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7479 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7484 $as_echo_n "checking whether ln works... " >&6; }
7485 if test "${acx_cv_prog_LN+set}" = set; then :
7486 $as_echo_n "(cached) " >&6
7488 rm -f conftestdata_t
7489 echo >conftestdata_f
7490 if ln conftestdata_f conftestdata_t
2>/dev
/null
7496 rm -f conftestdata_f conftestdata_t
7499 if test $acx_cv_prog_LN = no
; then
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7502 $as_echo "no, using $LN" >&6; }
7504 LN
="$acx_cv_prog_LN"
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7506 $as_echo "yes" >&6; }
7509 if test -n "$ac_tool_prefix"; then
7510 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7511 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513 $as_echo_n "checking for $ac_word... " >&6; }
7514 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7515 $as_echo_n "(cached) " >&6
7517 if test -n "$RANLIB"; then
7518 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7524 test -z "$as_dir" && as_dir
=.
7525 for ac_exec_ext
in '' $ac_executable_extensions; do
7526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7527 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 RANLIB
=$ac_cv_prog_RANLIB
7538 if test -n "$RANLIB"; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7540 $as_echo "$RANLIB" >&6; }
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7548 if test -z "$ac_cv_prog_RANLIB"; then
7549 ac_ct_RANLIB
=$RANLIB
7550 # Extract the first word of "ranlib", so it can be a program name with args.
7551 set dummy ranlib
; ac_word
=$2
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7553 $as_echo_n "checking for $ac_word... " >&6; }
7554 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7555 $as_echo_n "(cached) " >&6
7557 if test -n "$ac_ct_RANLIB"; then
7558 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7564 test -z "$as_dir" && as_dir
=.
7565 for ac_exec_ext
in '' $ac_executable_extensions; do
7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7567 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7578 if test -n "$ac_ct_RANLIB"; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7580 $as_echo "$ac_ct_RANLIB" >&6; }
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583 $as_echo "no" >&6; }
7586 if test "x$ac_ct_RANLIB" = x
; then
7589 case $cross_compiling:$ac_tool_warned in
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7593 ac_tool_warned
=yes ;;
7595 RANLIB
=$ac_ct_RANLIB
7598 RANLIB
="$ac_cv_prog_RANLIB"
7604 # Find a good install program. We prefer a C program (faster),
7605 # so one script is as good as another. But avoid the broken or
7606 # incompatible versions:
7607 # SysV /etc/install, /usr/sbin/install
7608 # SunOS /usr/etc/install
7609 # IRIX /sbin/install
7611 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7612 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7613 # ./install, which can be erroneously created by make from ./install.sh.
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7615 $as_echo_n "checking for a BSD compatible install... " >&6; }
7616 if test -z "$INSTALL"; then
7617 if test "${ac_cv_path_install+set}" = set; then :
7618 $as_echo_n "(cached) " >&6
7620 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7621 for ac_dir
in $PATH; do
7622 # Account for people who put trailing slashes in PATH elements.
7624 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7626 # OSF1 and SCO ODT 3.0 have their own names for install.
7627 for ac_prog
in ginstall scoinst
install; do
7628 if test -f $ac_dir/$ac_prog; then
7629 if test $ac_prog = install &&
7630 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7631 # AIX install. It has an incompatible calling convention.
7632 # OSF/1 installbsd also uses dspmsg, but is usable.
7635 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7646 if test "${ac_cv_path_install+set}" = set; then
7647 INSTALL
="$ac_cv_path_install"
7649 # As a last resort, use the slow shell script. We don't cache a
7650 # path for INSTALL within a source directory, because that will
7651 # break other packages using the cache if that directory is
7652 # removed, or if the path is relative.
7653 INSTALL
="$ac_install_sh"
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7657 $as_echo "$INSTALL" >&6; }
7659 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7660 # It thinks the first close brace ends the variable substitution.
7661 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7663 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7666 # See if cmp has --ignore-initial.
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7668 $as_echo_n "checking for cmp's capabilities... " >&6; }
7669 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7670 $as_echo_n "(cached) " >&6
7674 gcc_cv_prog_cmp_skip
=slowcompare
7675 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7676 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7679 gcc_cv_prog_cmp_skip
=gnucompare
7682 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7683 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7684 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7687 gcc_cv_prog_cmp_skip
=fastcompare
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7695 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7696 make_compare_target
=$gcc_cv_prog_cmp_skip
7700 # See if we have the mktemp command.
7701 # Extract the first word of "mktemp", so it can be a program name with args.
7702 set dummy mktemp
; ac_word
=$2
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704 $as_echo_n "checking for $ac_word... " >&6; }
7705 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7706 $as_echo_n "(cached) " >&6
7708 if test -n "$have_mktemp_command"; then
7709 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7715 test -z "$as_dir" && as_dir
=.
7716 for ac_exec_ext
in '' $ac_executable_extensions; do
7717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7718 ac_cv_prog_have_mktemp_command
="yes"
7719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7729 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7730 if test -n "$have_mktemp_command"; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7732 $as_echo "$have_mktemp_command" >&6; }
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7740 # See if makeinfo has been installed and is modern enough
7741 # that we can use it.
7743 # Extract the first word of "makeinfo", so it can be a program name with args.
7744 set dummy makeinfo
; ac_word
=$2
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746 $as_echo_n "checking for $ac_word... " >&6; }
7747 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7750 if test -n "$MAKEINFO"; then
7751 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7757 test -z "$as_dir" && as_dir
=.
7758 for ac_exec_ext
in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_prog_MAKEINFO
="makeinfo"
7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 MAKEINFO
=$ac_cv_prog_MAKEINFO
7771 if test -n "$MAKEINFO"; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7773 $as_echo "$MAKEINFO" >&6; }
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776 $as_echo "no" >&6; }
7780 if test -n "$MAKEINFO"; then
7781 # Found it, now check the version.
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7783 $as_echo_n "checking for modern makeinfo... " >&6; }
7784 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7785 $as_echo_n "(cached) " >&6
7787 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7788 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7790 case $ac_prog_version in
7791 '') gcc_cv_prog_makeinfo_modern
=no
;;
7792 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7793 *) gcc_cv_prog_makeinfo_modern
=no
;;
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7798 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7800 gcc_cv_prog_makeinfo_modern
=no
7802 if test $gcc_cv_prog_makeinfo_modern = no
; then
7803 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7806 if test $gcc_cv_prog_makeinfo_modern = no
; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7808 *** Makeinfo is missing or too old.
7809 *** Info documentation will not be built." >&5
7810 $as_echo "$as_me: WARNING:
7811 *** Makeinfo is missing or too old.
7812 *** Info documentation will not be built." >&2;}
7819 # Is pod2man recent enough to regenerate manpages?
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7821 $as_echo_n "checking for recent Pod::Man... " >&6; }
7822 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7824 $as_echo "yes" >&6; }
7825 GENERATED_MANPAGES
=generated-manpages
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7833 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7838 # Extract the first word of "$ac_prog", so it can be a program name with args.
7839 set dummy
$ac_prog; ac_word
=$2
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841 $as_echo_n "checking for $ac_word... " >&6; }
7842 if test "${ac_cv_prog_FLEX+set}" = set; then :
7843 $as_echo_n "(cached) " >&6
7845 if test -n "$FLEX"; then
7846 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7852 test -z "$as_dir" && as_dir
=.
7853 for ac_exec_ext
in '' $ac_executable_extensions; do
7854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7855 ac_cv_prog_FLEX
="$ac_prog"
7856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7865 FLEX
=$ac_cv_prog_FLEX
7866 if test -n "$FLEX"; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7868 $as_echo "$FLEX" >&6; }
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 $as_echo "no" >&6; }
7875 test -n "$FLEX" && break
7877 test -n "$FLEX" || FLEX
="$MISSING flex"
7881 for ac_prog
in bison
7883 # Extract the first word of "$ac_prog", so it can be a program name with args.
7884 set dummy
$ac_prog; ac_word
=$2
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886 $as_echo_n "checking for $ac_word... " >&6; }
7887 if test "${ac_cv_prog_BISON+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7890 if test -n "$BISON"; then
7891 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7897 test -z "$as_dir" && as_dir
=.
7898 for ac_exec_ext
in '' $ac_executable_extensions; do
7899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7900 ac_cv_prog_BISON
="$ac_prog"
7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 BISON
=$ac_cv_prog_BISON
7911 if test -n "$BISON"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7913 $as_echo "$BISON" >&6; }
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }
7920 test -n "$BISON" && break
7922 test -n "$BISON" || BISON
="$MISSING bison"
7925 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7926 # check for build == host before using them.
7929 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7930 && test -d ..
/binutils
; then
7931 NM
='${objdir}/../binutils/nm-new'
7933 # Extract the first word of "nm", so it can be a program name with args.
7934 set dummy nm
; ac_word
=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 $as_echo_n "checking for $ac_word... " >&6; }
7937 if test "${ac_cv_prog_NM+set}" = set; then :
7938 $as_echo_n "(cached) " >&6
7940 if test -n "$NM"; then
7941 ac_cv_prog_NM
="$NM" # Let the user override the test.
7943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7947 test -z "$as_dir" && as_dir
=.
7948 for ac_exec_ext
in '' $ac_executable_extensions; do
7949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7962 if test -n "$NM"; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7964 $as_echo "$NM" >&6; }
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7974 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7975 && test -d ..
/binutils
; then
7976 AR
='${objdir}/../binutils/ar'
7978 # Extract the first word of "ar", so it can be a program name with args.
7979 set dummy
ar; ac_word
=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if test "${ac_cv_prog_AR+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7985 if test -n "$AR"; then
7986 ac_cv_prog_AR
="$AR" # Let the user override the test.
7988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7992 test -z "$as_dir" && as_dir
=.
7993 for ac_exec_ext
in '' $ac_executable_extensions; do
7994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8003 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8007 if test -n "$AR"; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8009 $as_echo "$AR" >&6; }
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8019 # --------------------
8020 # Checks for C headers
8021 # --------------------
8023 # Need to reject headers which give warnings, so that the -Werror bootstrap
8024 # works later. *sigh* This needs to come before all header checks.
8026 ac_c_preproc_warn_flag
=yes
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8029 $as_echo_n "checking for ANSI C header files... " >&6; }
8030 if test "${ac_cv_header_stdc+set}" = set; then :
8031 $as_echo_n "(cached) " >&6
8033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8034 /* end confdefs.h. */
8048 if ac_fn_c_try_compile
"$LINENO"; then :
8049 ac_cv_header_stdc
=yes
8051 ac_cv_header_stdc
=no
8053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8055 if test $ac_cv_header_stdc = yes; then
8056 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8063 $EGREP "memchr" >/dev
/null
2>&1; then :
8066 ac_cv_header_stdc
=no
8072 if test $ac_cv_header_stdc = yes; then
8073 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8080 $EGREP "free" >/dev
/null
2>&1; then :
8083 ac_cv_header_stdc
=no
8089 if test $ac_cv_header_stdc = yes; then
8090 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8091 if test "$cross_compiling" = yes; then :
8094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h. */
8098 #if ((' ' & 0x0FF) == 0x020)
8099 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8100 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8102 # define ISLOWER(c) \
8103 (('a' <= (c) && (c) <= 'i') \
8104 || ('j' <= (c) && (c) <= 'r') \
8105 || ('s' <= (c) && (c) <= 'z'))
8106 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8109 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8114 for (i = 0; i < 256; i++)
8115 if (XOR (islower (i), ISLOWER (i))
8116 || toupper (i) != TOUPPER (i))
8121 if ac_fn_c_try_run
"$LINENO"; then :
8124 ac_cv_header_stdc
=no
8126 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8127 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8133 $as_echo "$ac_cv_header_stdc" >&6; }
8134 if test $ac_cv_header_stdc = yes; then
8136 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8141 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8142 if test "${ac_cv_header_time+set}" = set; then :
8143 $as_echo_n "(cached) " >&6
8145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8147 #include <sys/types.h>
8148 #include <sys/time.h>
8154 if ((struct tm *) 0)
8160 if ac_fn_c_try_compile
"$LINENO"; then :
8161 ac_cv_header_time
=yes
8163 ac_cv_header_time
=no
8165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8168 $as_echo "$ac_cv_header_time" >&6; }
8169 if test $ac_cv_header_time = yes; then
8171 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8176 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8177 if test "${gcc_cv_header_string+set}" = set; then :
8178 $as_echo_n "(cached) " >&6
8180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8183 #include <strings.h>
8192 if ac_fn_c_try_compile
"$LINENO"; then :
8193 gcc_cv_header_string
=yes
8195 gcc_cv_header_string
=no
8197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8200 $as_echo "$gcc_cv_header_string" >&6; }
8201 if test $gcc_cv_header_string = yes; then
8203 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8208 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8209 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8210 $as_echo_n "(cached) " >&6
8212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8214 #include <sys/types.h>
8215 #include <sys/wait.h>
8217 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8220 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8228 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8233 if ac_fn_c_try_compile
"$LINENO"; then :
8234 ac_cv_header_sys_wait_h
=yes
8236 ac_cv_header_sys_wait_h
=no
8238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8241 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8242 if test $ac_cv_header_sys_wait_h = yes; then
8244 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8248 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8249 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8250 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8251 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h libintl.h
8253 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8254 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8255 eval as_val
=\$
$as_ac_Header
8256 if test "x$as_val" = x
""yes; then :
8257 cat >>confdefs.h
<<_ACEOF
8258 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8265 # Check for thread headers.
8266 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8267 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8273 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8274 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8281 # These tests can't be done till we know if we have limits.h.
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8283 $as_echo_n "checking for CHAR_BIT... " >&6; }
8284 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8285 $as_echo_n "(cached) " >&6
8287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8289 #ifdef HAVE_LIMITS_H
8296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8297 $EGREP "found" >/dev
/null
2>&1; then :
8298 gcc_cv_decl_char_bit
=yes
8300 gcc_cv_decl_char_bit
=no
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8307 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8308 if test $gcc_cv_decl_char_bit = no
; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8310 $as_echo_n "checking number of bits in a byte... " >&6; }
8311 if test "${gcc_cv_c_nbby+set}" = set; then :
8312 $as_echo_n "(cached) " >&6
8316 while test $i -lt 65; do
8317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h. */
8324 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8325 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8331 if ac_fn_c_try_compile
"$LINENO"; then :
8332 gcc_cv_c_nbby
=$i; break
8334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8337 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8341 $as_echo "$gcc_cv_c_nbby" >&6; }
8342 if test $gcc_cv_c_nbby = failed
; then
8343 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8346 cat >>confdefs.h
<<_ACEOF
8347 #define CHAR_BIT $gcc_cv_c_nbby
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8353 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8354 if test "${ac_cv_c_bigendian+set}" = set; then :
8355 $as_echo_n "(cached) " >&6
8357 ac_cv_c_bigendian
=unknown
8358 # See if we're dealing with a universal compiler.
8359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8360 /* end confdefs.h. */
8361 #ifndef __APPLE_CC__
8362 not a universal capable compiler
8367 if ac_fn_c_try_compile
"$LINENO"; then :
8369 # Check for potential -arch flags. It is not universal unless
8370 # there are at least two -arch flags with different values.
8373 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8374 if test -n "$ac_prev"; then
8376 i?
86 | x86_64 | ppc | ppc64
)
8377 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8380 ac_cv_c_bigendian
=universal
8386 elif test "x$ac_word" = "x-arch"; then
8391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8392 if test $ac_cv_c_bigendian = unknown
; then
8393 # See if sys/param.h defines the BYTE_ORDER macro.
8394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8395 /* end confdefs.h. */
8396 #include <sys/types.h>
8397 #include <sys/param.h>
8402 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8403 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8412 if ac_fn_c_try_compile
"$LINENO"; then :
8413 # It does; now see whether it defined to BIG_ENDIAN or not.
8414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8415 /* end confdefs.h. */
8416 #include <sys/types.h>
8417 #include <sys/param.h>
8422 #if BYTE_ORDER != BIG_ENDIAN
8430 if ac_fn_c_try_compile
"$LINENO"; then :
8431 ac_cv_c_bigendian
=yes
8433 ac_cv_c_bigendian
=no
8435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8439 if test $ac_cv_c_bigendian = unknown
; then
8440 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h. */
8448 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8456 if ac_fn_c_try_compile
"$LINENO"; then :
8457 # It does; now see whether it defined to _BIG_ENDIAN or not.
8458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8473 if ac_fn_c_try_compile
"$LINENO"; then :
8474 ac_cv_c_bigendian
=yes
8476 ac_cv_c_bigendian
=no
8478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8482 if test $ac_cv_c_bigendian = unknown
; then
8483 # Compile a test program.
8484 if test "$cross_compiling" = yes; then :
8485 # Try to guess by grepping values from an object file.
8486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 short int ascii_mm[] =
8489 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8490 short int ascii_ii[] =
8491 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8492 int use_ascii (int i) {
8493 return ascii_mm[i] + ascii_ii[i];
8495 short int ebcdic_ii[] =
8496 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8497 short int ebcdic_mm[] =
8498 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8499 int use_ebcdic (int i) {
8500 return ebcdic_mm[i] + ebcdic_ii[i];
8507 return use_ascii (foo) == use_ebcdic (foo);
8512 if ac_fn_c_try_compile
"$LINENO"; then :
8513 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8514 ac_cv_c_bigendian
=yes
8516 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8517 if test "$ac_cv_c_bigendian" = unknown
; then
8518 ac_cv_c_bigendian
=no
8520 # finding both strings is unlikely to happen, but who knows?
8521 ac_cv_c_bigendian
=unknown
8525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8529 $ac_includes_default
8534 /* Are we little or big endian? From Harbison&Steele. */
8538 char c[sizeof (long int)];
8541 return u.c[sizeof (long int) - 1] == 1;
8547 if ac_fn_c_try_run
"$LINENO"; then :
8548 ac_cv_c_bigendian
=no
8550 ac_cv_c_bigendian
=yes
8552 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8553 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8559 $as_echo "$ac_cv_c_bigendian" >&6; }
8560 case $ac_cv_c_bigendian in #(
8562 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8568 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8572 as_fn_error
"unknown endianness
8573 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8577 # ----------------------
8578 # Checks for C++ headers
8579 # ----------------------
8582 ac_cpp
='$CXXCPP $CPPFLAGS'
8583 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8584 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8585 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8587 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8588 if test -z "$CXXCPP"; then
8589 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8590 $as_echo_n "(cached) " >&6
8592 # Double quotes because CXXCPP needs to be expanded
8593 for CXXCPP
in "$CXX -E" "/lib/cpp"
8596 for ac_cxx_preproc_warn_flag
in '' yes
8598 # Use a header file that comes with gcc, so configuring glibc
8599 # with a fresh cross-compiler works.
8600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8601 # <limits.h> exists even on freestanding compilers.
8602 # On the NeXT, cc -E runs the code through the compiler's parser,
8603 # not just through cpp. "Syntax error" is here to catch this case.
8604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8607 # include <limits.h>
8609 # include <assert.h>
8613 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8616 # Broken: fails on valid input.
8619 rm -f conftest.err conftest.
$ac_ext
8621 # OK, works on sane cases. Now check whether nonexistent headers
8622 # can be detected and how.
8623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8625 #include <ac_nonexistent.h>
8627 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8628 # Broken: success on invalid input.
8631 # Passes both tests.
8635 rm -f conftest.err conftest.
$ac_ext
8638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8639 rm -f conftest.err conftest.
$ac_ext
8640 if $ac_preproc_ok; then :
8645 ac_cv_prog_CXXCPP
=$CXXCPP
8648 CXXCPP
=$ac_cv_prog_CXXCPP
8650 ac_cv_prog_CXXCPP
=$CXXCPP
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8653 $as_echo "$CXXCPP" >&6; }
8655 for ac_cxx_preproc_warn_flag
in '' yes
8657 # Use a header file that comes with gcc, so configuring glibc
8658 # with a fresh cross-compiler works.
8659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8660 # <limits.h> exists even on freestanding compilers.
8661 # On the NeXT, cc -E runs the code through the compiler's parser,
8662 # not just through cpp. "Syntax error" is here to catch this case.
8663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8664 /* end confdefs.h. */
8666 # include <limits.h>
8668 # include <assert.h>
8672 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8675 # Broken: fails on valid input.
8678 rm -f conftest.err conftest.
$ac_ext
8680 # OK, works on sane cases. Now check whether nonexistent headers
8681 # can be detected and how.
8682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8684 #include <ac_nonexistent.h>
8686 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8687 # Broken: success on invalid input.
8690 # Passes both tests.
8694 rm -f conftest.err conftest.
$ac_ext
8697 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8698 rm -f conftest.err conftest.
$ac_ext
8699 if $ac_preproc_ok; then :
8702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8705 See \`config.log' for more details." >&5
8706 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8707 See \`config.log' for more details." >&2;}; }
8711 ac_cpp
='$CPP $CPPFLAGS'
8712 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8713 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8714 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8718 ac_cpp
='$CXXCPP $CPPFLAGS'
8719 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8720 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8721 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8726 for ac_header
in unordered_map
8728 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8729 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8730 cat >>confdefs.h
<<_ACEOF
8731 #define HAVE_UNORDERED_MAP 1
8737 for ac_header
in tr1/unordered_map
8739 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8740 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8741 cat >>confdefs.h
<<_ACEOF
8742 #define HAVE_TR1_UNORDERED_MAP 1
8748 for ac_header
in ext
/hash_map
8750 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8751 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8752 cat >>confdefs.h
<<_ACEOF
8753 #define HAVE_EXT_HASH_MAP 1
8761 ac_cpp
='$CPP $CPPFLAGS'
8762 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8763 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8764 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8772 # These libraries may be used by collect2.
8773 # We may need a special search path to get them linked.
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8775 $as_echo_n "checking for collect2 libraries... " >&6; }
8776 if test "${gcc_cv_collect2_libs+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
8780 for libs
in '' -lld -lmld \
8781 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8782 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h. */
8788 /* Override any GCC internal prototype to avoid an error.
8789 Use char because int might match the return type of a GCC
8790 builtin and then its argument prototype would still apply. */
8803 if ac_fn_c_try_link
"$LINENO"; then :
8804 gcc_cv_collect2_libs
="$libs"; break
8806 rm -f core conftest.err conftest.
$ac_objext \
8807 conftest
$ac_exeext conftest.
$ac_ext
8810 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8813 $as_echo "$gcc_cv_collect2_libs" >&6; }
8814 case $gcc_cv_collect2_libs in
8816 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8820 # When building Ada code on Alpha, we need exc_resume which is usually in
8821 # -lexc. So test for it.
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8825 $as_echo_n "checking for library containing exc_resume... " >&6; }
8826 if test "${ac_cv_search_exc_resume+set}" = set; then :
8827 $as_echo_n "(cached) " >&6
8829 ac_func_search_save_LIBS
=$LIBS
8830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8833 /* Override any GCC internal prototype to avoid an error.
8834 Use char because int might match the return type of a GCC
8835 builtin and then its argument prototype would still apply. */
8843 return exc_resume ();
8848 for ac_lib
in '' exc
; do
8849 if test -z "$ac_lib"; then
8850 ac_res
="none required"
8853 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8855 if ac_fn_c_try_link
"$LINENO"; then :
8856 ac_cv_search_exc_resume
=$ac_res
8858 rm -f core conftest.err conftest.
$ac_objext \
8860 if test "${ac_cv_search_exc_resume+set}" = set; then :
8864 if test "${ac_cv_search_exc_resume+set}" = set; then :
8867 ac_cv_search_exc_resume
=no
8870 LIBS
=$ac_func_search_save_LIBS
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8873 $as_echo "$ac_cv_search_exc_resume" >&6; }
8874 ac_res
=$ac_cv_search_exc_resume
8875 if test "$ac_res" != no
; then :
8876 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8884 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8888 $as_echo_n "checking for library containing kstat_open... " >&6; }
8889 if test "${ac_cv_search_kstat_open+set}" = set; then :
8890 $as_echo_n "(cached) " >&6
8892 ac_func_search_save_LIBS
=$LIBS
8893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8896 /* Override any GCC internal prototype to avoid an error.
8897 Use char because int might match the return type of a GCC
8898 builtin and then its argument prototype would still apply. */
8906 return kstat_open ();
8911 for ac_lib
in '' kstat
; do
8912 if test -z "$ac_lib"; then
8913 ac_res
="none required"
8916 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8918 if ac_fn_c_try_link
"$LINENO"; then :
8919 ac_cv_search_kstat_open
=$ac_res
8921 rm -f core conftest.err conftest.
$ac_objext \
8923 if test "${ac_cv_search_kstat_open+set}" = set; then :
8927 if test "${ac_cv_search_kstat_open+set}" = set; then :
8930 ac_cv_search_kstat_open
=no
8933 LIBS
=$ac_func_search_save_LIBS
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8936 $as_echo "$ac_cv_search_kstat_open" >&6; }
8937 ac_res
=$ac_cv_search_kstat_open
8938 if test "$ac_res" != no
; then :
8939 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8943 EXTRA_GCC_LIBS
="$LIBS"
8947 # Some systems put ldexp and frexp in libm instead of libc; assume
8948 # they're both in the same place. jcf-dump needs them.
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8952 $as_echo_n "checking for library containing ldexp... " >&6; }
8953 if test "${ac_cv_search_ldexp+set}" = set; then :
8954 $as_echo_n "(cached) " >&6
8956 ac_func_search_save_LIBS
=$LIBS
8957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8960 /* Override any GCC internal prototype to avoid an error.
8961 Use char because int might match the return type of a GCC
8962 builtin and then its argument prototype would still apply. */
8975 for ac_lib
in '' m
; do
8976 if test -z "$ac_lib"; then
8977 ac_res
="none required"
8980 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8982 if ac_fn_c_try_link
"$LINENO"; then :
8983 ac_cv_search_ldexp
=$ac_res
8985 rm -f core conftest.err conftest.
$ac_objext \
8987 if test "${ac_cv_search_ldexp+set}" = set; then :
8991 if test "${ac_cv_search_ldexp+set}" = set; then :
8994 ac_cv_search_ldexp
=no
8997 LIBS
=$ac_func_search_save_LIBS
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9000 $as_echo "$ac_cv_search_ldexp" >&6; }
9001 ac_res
=$ac_cv_search_ldexp
9002 if test "$ac_res" != no
; then :
9003 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9011 # Use <inttypes.h> only if it exists,
9012 # doesn't clash with <sys/types.h>, and declares intmax_t.
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9014 $as_echo_n "checking for inttypes.h... " >&6; }
9015 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9016 $as_echo_n "(cached) " >&6
9018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9019 /* end confdefs.h. */
9020 #include <sys/types.h>
9021 #include <inttypes.h>
9030 if ac_fn_c_try_compile
"$LINENO"; then :
9031 gcc_cv_header_inttypes_h
=yes
9033 gcc_cv_header_inttypes_h
=no
9035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9039 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9040 if test $gcc_cv_header_inttypes_h = yes; then
9042 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9048 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9049 sysconf strsignal getrusage nl_langinfo \
9050 gettimeofday mbstowcs wcswidth mmap setlocale \
9051 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
9053 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9054 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9055 eval as_val
=\$
$as_ac_var
9056 if test "x$as_val" = x
""yes; then :
9057 cat >>confdefs.h
<<_ACEOF
9058 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9065 if test x
$ac_cv_func_mbstowcs = xyes
; then
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9067 $as_echo_n "checking whether mbstowcs works... " >&6; }
9068 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9069 $as_echo_n "(cached) " >&6
9071 if test "$cross_compiling" = yes; then :
9072 gcc_cv_func_mbstowcs_works
=yes
9074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9083 if ac_fn_c_try_run
"$LINENO"; then :
9084 gcc_cv_func_mbstowcs_works
=yes
9086 gcc_cv_func_mbstowcs_works
=no
9088 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9089 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9094 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9095 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9097 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9102 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9103 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9107 cat >>confdefs.h
<<_ACEOF
9113 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9114 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9118 cat >>confdefs.h
<<_ACEOF
9119 #define caddr_t char *
9126 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9127 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9128 gcc_header_sys_mman_h
=yes
9130 gcc_header_sys_mman_h
=no
9133 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9134 if test "x$ac_cv_func_mmap" = x
""yes; then :
9140 if test "$gcc_header_sys_mman_h" != yes \
9141 ||
test "$gcc_func_mmap" != yes; then
9142 gcc_cv_func_mmap_file
=no
9143 gcc_cv_func_mmap_dev_zero
=no
9144 gcc_cv_func_mmap_anon
=no
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9147 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9148 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9149 $as_echo_n "(cached) " >&6
9151 # Add a system to this blacklist if
9152 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9153 # memory area containing the same data that you'd get if you applied
9154 # read() to the same fd. The only system known to have a problem here
9155 # is VMS, where text files have record structure.
9158 gcc_cv_func_mmap_file
=no
;;
9160 gcc_cv_func_mmap_file
=yes;;
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9164 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9166 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9167 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9168 $as_echo_n "(cached) " >&6
9170 # Add a system to this blacklist if it has mmap() but /dev/zero
9171 # does not exist, or if mmapping /dev/zero does not give anonymous
9172 # zeroed pages with both the following properties:
9173 # 1. If you map N consecutive pages in with one call, and then
9174 # unmap any subset of those pages, the pages that were not
9175 # explicitly unmapped remain accessible.
9176 # 2. If you map two adjacent blocks of memory and then unmap them
9177 # both at once, they must both go away.
9178 # Systems known to be in this category are Windows (all variants),
9181 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9182 gcc_cv_func_mmap_dev_zero
=no
;;
9184 gcc_cv_func_mmap_dev_zero
=yes;;
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9188 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9190 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9192 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9193 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9194 $as_echo_n "(cached) " >&6
9196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9198 #include <sys/types.h>
9199 #include <sys/mman.h>
9202 #ifndef MAP_ANONYMOUS
9203 #define MAP_ANONYMOUS MAP_ANON
9209 int n = MAP_ANONYMOUS;
9214 if ac_fn_c_try_compile
"$LINENO"; then :
9215 gcc_cv_decl_map_anon
=yes
9217 gcc_cv_decl_map_anon
=no
9219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9222 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9224 if test $gcc_cv_decl_map_anon = no
; then
9225 gcc_cv_func_mmap_anon
=no
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9228 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9229 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9230 $as_echo_n "(cached) " >&6
9232 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9233 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9234 # doesn't give anonymous zeroed pages with the same properties listed
9235 # above for use of /dev/zero.
9236 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9238 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9239 gcc_cv_func_mmap_anon
=no
;;
9241 gcc_cv_func_mmap_anon
=yes;;
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9245 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9249 if test $gcc_cv_func_mmap_file = yes; then
9251 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9254 if test $gcc_cv_func_mmap_dev_zero = yes; then
9256 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9259 if test $gcc_cv_func_mmap_anon = yes; then
9261 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9268 # Under VMS, vfork works very differently than on Unix. The standard test
9269 # won't work, and it isn't easily adaptable. It makes more sense to
9271 ac_cv_func_vfork_works
=yes
9274 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9275 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9279 cat >>confdefs.h
<<_ACEOF
9285 for ac_header
in vfork.h
9287 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9288 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9289 cat >>confdefs.h
<<_ACEOF
9290 #define HAVE_VFORK_H 1
9296 for ac_func
in fork vfork
9298 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9299 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9300 eval as_val
=\$
$as_ac_var
9301 if test "x$as_val" = x
""yes; then :
9302 cat >>confdefs.h
<<_ACEOF
9303 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9309 if test "x$ac_cv_func_fork" = xyes
; then
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9311 $as_echo_n "checking for working fork... " >&6; }
9312 if test "${ac_cv_func_fork_works+set}" = set; then :
9313 $as_echo_n "(cached) " >&6
9315 if test "$cross_compiling" = yes; then :
9316 ac_cv_func_fork_works
=cross
9318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9320 $ac_includes_default
9325 /* By Ruediger Kuhlmann. */
9332 if ac_fn_c_try_run
"$LINENO"; then :
9333 ac_cv_func_fork_works
=yes
9335 ac_cv_func_fork_works
=no
9337 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9338 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9343 $as_echo "$ac_cv_func_fork_works" >&6; }
9346 ac_cv_func_fork_works
=$ac_cv_func_fork
9348 if test "x$ac_cv_func_fork_works" = xcross
; then
9350 *-*-amigaos* |
*-*-msdosdjgpp*)
9351 # Override, as these systems have only a dummy fork() stub
9352 ac_cv_func_fork_works
=no
9355 ac_cv_func_fork_works
=yes
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9359 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9361 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9362 if test "x$ac_cv_func_vfork" = xyes
; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9364 $as_echo_n "checking for working vfork... " >&6; }
9365 if test "${ac_cv_func_vfork_works+set}" = set; then :
9366 $as_echo_n "(cached) " >&6
9368 if test "$cross_compiling" = yes; then :
9369 ac_cv_func_vfork_works
=cross
9371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h. */
9373 /* Thanks to Paul Eggert for this test. */
9374 $ac_includes_default
9375 #include <sys/wait.h>
9379 /* On some sparc systems, changes by the child to local and incoming
9380 argument registers are propagated back to the parent. The compiler
9381 is told about this with #include <vfork.h>, but some compilers
9382 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9383 static variable whose address is put into a register that is
9384 clobbered by the vfork. */
9387 sparc_address_test (int arg)
9389 sparc_address_test (arg) int arg;
9410 pid_t parent = getpid ();
9413 sparc_address_test (0);
9418 /* Here is another test for sparc vfork register problems. This
9419 test uses lots of local variables, at least as many local
9420 variables as main has allocated so far including compiler
9421 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9422 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9423 reuse the register of parent for one of the local variables,
9424 since it will think that parent can't possibly be used any more
9425 in this routine. Assigning to the local variable will thus
9426 munge parent in the parent process. */
9428 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9429 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9430 /* Convince the compiler that p..p7 are live; otherwise, it might
9431 use the same hardware register for all 8 local variables. */
9432 if (p != p1 || p != p2 || p != p3 || p != p4
9433 || p != p5 || p != p6 || p != p7)
9436 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9437 from child file descriptors. If the child closes a descriptor
9438 before it execs or exits, this munges the parent's descriptor
9439 as well. Test for this by closing stdout in the child. */
9440 _exit(close(fileno(stdout)) != 0);
9445 while (wait(&status) != child)
9448 /* Was there some problem with vforking? */
9451 /* Did the child fail? (This shouldn't happen.) */
9454 /* Did the vfork/compiler bug occur? */
9455 || parent != getpid()
9457 /* Did the file descriptor bug occur? */
9458 || fstat(fileno(stdout), &st) != 0
9463 if ac_fn_c_try_run
"$LINENO"; then :
9464 ac_cv_func_vfork_works
=yes
9466 ac_cv_func_vfork_works
=no
9468 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9469 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9474 $as_echo "$ac_cv_func_vfork_works" >&6; }
9477 if test "x$ac_cv_func_fork_works" = xcross
; then
9478 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9480 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9483 if test "x$ac_cv_func_vfork_works" = xyes
; then
9485 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9489 $as_echo "#define vfork fork" >>confdefs.h
9492 if test "x$ac_cv_func_fork_works" = xyes
; then
9494 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9499 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9500 # iconv() prototype.
9502 ac_cpp
='$CXXCPP $CPPFLAGS'
9503 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9504 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9505 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9508 if test "X$prefix" = "XNONE"; then
9509 acl_final_prefix
="$ac_default_prefix"
9511 acl_final_prefix
="$prefix"
9513 if test "X$exec_prefix" = "XNONE"; then
9514 acl_final_exec_prefix
='${prefix}'
9516 acl_final_exec_prefix
="$exec_prefix"
9518 acl_save_prefix
="$prefix"
9519 prefix
="$acl_final_prefix"
9520 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9521 prefix
="$acl_save_prefix"
9524 # Check whether --with-gnu-ld was given.
9525 if test "${with_gnu_ld+set}" = set; then :
9526 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9531 # Prepare PATH_SEPARATOR.
9532 # The user is always right.
9533 if test "${PATH_SEPARATOR+set}" != set; then
9534 echo "#! /bin/sh" >conf$$.sh
9535 echo "exit 0" >>conf$$.sh
9537 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9545 if test "$GCC" = yes; then
9546 # Check if gcc -print-prog-name=ld gives a path.
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9548 $as_echo_n "checking for ld used by GCC... " >&6; }
9551 # gcc leaves a trailing carriage return which upsets mingw
9552 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9554 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9557 # Accept absolute paths.
9558 [\\/]* |
[A-Za-z
]:[\\/]*)
9559 re_direlt
='/[^/][^/]*/\.\./'
9560 # Canonicalize the path of ld
9561 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9562 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9563 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9565 test -z "$LD" && LD
="$ac_prog"
9568 # If it fails, then pretend we aren't using GCC.
9572 # If it is relative, then search for the first ld in PATH.
9576 elif test "$with_gnu_ld" = yes; then
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9578 $as_echo_n "checking for GNU ld... " >&6; }
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9581 $as_echo_n "checking for non-GNU ld... " >&6; }
9583 if test "${acl_cv_path_LD+set}" = set; then :
9584 $as_echo_n "(cached) " >&6
9586 if test -z "$LD"; then
9587 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9588 for ac_dir
in $PATH; do
9589 test -z "$ac_dir" && ac_dir
=.
9590 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9591 acl_cv_path_LD
="$ac_dir/$ac_prog"
9592 # Check to see if the program is GNU ld. I'd rather use --version,
9593 # but apparently some GNU ld's only accept -v.
9594 # Break only if it was the GNU/non-GNU ld that we prefer.
9595 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9596 test "$with_gnu_ld" != no
&& break
9598 test "$with_gnu_ld" != yes && break
9604 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9608 LD
="$acl_cv_path_LD"
9609 if test -n "$LD"; then
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9611 $as_echo "$LD" >&6; }
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9614 $as_echo "no" >&6; }
9616 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9618 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9619 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9620 $as_echo_n "(cached) " >&6
9622 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9623 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9624 acl_cv_prog_gnu_ld
=yes
9626 acl_cv_prog_gnu_ld
=no
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9630 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9631 with_gnu_ld
=$acl_cv_prog_gnu_ld
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9636 $as_echo_n "checking for shared library run path origin... " >&6; }
9637 if test "${acl_cv_rpath+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
9641 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9642 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9649 $as_echo "$acl_cv_rpath" >&6; }
9651 libext
="$acl_cv_libext"
9652 shlibext
="$acl_cv_shlibext"
9653 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9654 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9655 hardcode_direct
="$acl_cv_hardcode_direct"
9656 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9657 # Check whether --enable-rpath was given.
9658 if test "${enable_rpath+set}" = set; then :
9659 enableval
=$enable_rpath; :
9673 acl_save_prefix
="$prefix"
9674 prefix
="$acl_final_prefix"
9675 acl_save_exec_prefix
="$exec_prefix"
9676 exec_prefix
="$acl_final_exec_prefix"
9678 eval additional_includedir
=\"$includedir\"
9679 eval additional_libdir
=\"$libdir\"
9681 exec_prefix
="$acl_save_exec_prefix"
9682 prefix
="$acl_save_prefix"
9685 # Check whether --with-libiconv-prefix was given.
9686 if test "${with_libiconv_prefix+set}" = set; then :
9687 withval
=$with_libiconv_prefix;
9688 if test "X$withval" = "Xno"; then
9691 if test "X$withval" = "X"; then
9693 acl_save_prefix
="$prefix"
9694 prefix
="$acl_final_prefix"
9695 acl_save_exec_prefix
="$exec_prefix"
9696 exec_prefix
="$acl_final_exec_prefix"
9698 eval additional_includedir
=\"$includedir\"
9699 eval additional_libdir
=\"$libdir\"
9701 exec_prefix
="$acl_save_exec_prefix"
9702 prefix
="$acl_save_prefix"
9705 additional_includedir
="$withval/include"
9706 additional_libdir
="$withval/lib"
9717 names_already_handled
=
9718 names_next_round
='iconv '
9719 while test -n "$names_next_round"; do
9720 names_this_round
="$names_next_round"
9722 for name
in $names_this_round; do
9724 for n
in $names_already_handled; do
9725 if test "$n" = "$name"; then
9730 if test -z "$already_handled"; then
9731 names_already_handled
="$names_already_handled $name"
9732 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9733 eval value
=\"\
$HAVE_LIB$uppername\"
9734 if test -n "$value"; then
9735 if test "$value" = yes; then
9736 eval value
=\"\
$LIB$uppername\"
9737 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9738 eval value
=\"\
$LTLIB$uppername\"
9739 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9748 if test $use_additional = yes; then
9749 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9750 found_dir
="$additional_libdir"
9751 found_so
="$additional_libdir/lib$name.$shlibext"
9752 if test -f "$additional_libdir/lib$name.la"; then
9753 found_la
="$additional_libdir/lib$name.la"
9756 if test -f "$additional_libdir/lib$name.$libext"; then
9757 found_dir
="$additional_libdir"
9758 found_a
="$additional_libdir/lib$name.$libext"
9759 if test -f "$additional_libdir/lib$name.la"; then
9760 found_la
="$additional_libdir/lib$name.la"
9765 if test "X$found_dir" = "X"; then
9766 for x
in $LDFLAGS $LTLIBICONV; do
9768 acl_save_prefix
="$prefix"
9769 prefix
="$acl_final_prefix"
9770 acl_save_exec_prefix
="$exec_prefix"
9771 exec_prefix
="$acl_final_exec_prefix"
9773 exec_prefix
="$acl_save_exec_prefix"
9774 prefix
="$acl_save_prefix"
9778 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9779 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9781 found_so
="$dir/lib$name.$shlibext"
9782 if test -f "$dir/lib$name.la"; then
9783 found_la
="$dir/lib$name.la"
9786 if test -f "$dir/lib$name.$libext"; then
9788 found_a
="$dir/lib$name.$libext"
9789 if test -f "$dir/lib$name.la"; then
9790 found_la
="$dir/lib$name.la"
9796 if test "X$found_dir" != "X"; then
9801 if test "X$found_dir" != "X"; then
9802 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9803 if test "X$found_so" != "X"; then
9804 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9805 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9808 for x
in $ltrpathdirs; do
9809 if test "X$x" = "X$found_dir"; then
9814 if test -z "$haveit"; then
9815 ltrpathdirs
="$ltrpathdirs $found_dir"
9817 if test "$hardcode_direct" = yes; then
9818 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9820 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9821 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9823 for x
in $rpathdirs; do
9824 if test "X$x" = "X$found_dir"; then
9829 if test -z "$haveit"; then
9830 rpathdirs
="$rpathdirs $found_dir"
9834 for x
in $LDFLAGS $LIBICONV; do
9836 acl_save_prefix
="$prefix"
9837 prefix
="$acl_final_prefix"
9838 acl_save_exec_prefix
="$exec_prefix"
9839 exec_prefix
="$acl_final_exec_prefix"
9841 exec_prefix
="$acl_save_exec_prefix"
9842 prefix
="$acl_save_prefix"
9844 if test "X$x" = "X-L$found_dir"; then
9849 if test -z "$haveit"; then
9850 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9852 if test "$hardcode_minus_L" != no
; then
9853 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9855 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9861 if test "X$found_a" != "X"; then
9862 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9864 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9867 additional_includedir
=
9868 case "$found_dir" in
9870 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9871 additional_includedir
="$basedir/include"
9874 if test "X$additional_includedir" != "X"; then
9875 if test "X$additional_includedir" != "X/usr/include"; then
9877 if test "X$additional_includedir" = "X/usr/local/include"; then
9878 if test -n "$GCC"; then
9880 linux
*) haveit
=yes;;
9884 if test -z "$haveit"; then
9885 for x
in $CPPFLAGS $INCICONV; do
9887 acl_save_prefix
="$prefix"
9888 prefix
="$acl_final_prefix"
9889 acl_save_exec_prefix
="$exec_prefix"
9890 exec_prefix
="$acl_final_exec_prefix"
9892 exec_prefix
="$acl_save_exec_prefix"
9893 prefix
="$acl_save_prefix"
9895 if test "X$x" = "X-I$additional_includedir"; then
9900 if test -z "$haveit"; then
9901 if test -d "$additional_includedir"; then
9902 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9908 if test -n "$found_la"; then
9909 save_libdir
="$libdir"
9911 */* |
*\\*) .
"$found_la" ;;
9912 *) .
"./$found_la" ;;
9914 libdir
="$save_libdir"
9915 for dep
in $dependency_libs; do
9918 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9919 if test "X$additional_libdir" != "X/usr/lib"; then
9921 if test "X$additional_libdir" = "X/usr/local/lib"; then
9922 if test -n "$GCC"; then
9924 linux
*) haveit
=yes;;
9928 if test -z "$haveit"; then
9930 for x
in $LDFLAGS $LIBICONV; do
9932 acl_save_prefix
="$prefix"
9933 prefix
="$acl_final_prefix"
9934 acl_save_exec_prefix
="$exec_prefix"
9935 exec_prefix
="$acl_final_exec_prefix"
9937 exec_prefix
="$acl_save_exec_prefix"
9938 prefix
="$acl_save_prefix"
9940 if test "X$x" = "X-L$additional_libdir"; then
9945 if test -z "$haveit"; then
9946 if test -d "$additional_libdir"; then
9947 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9951 for x
in $LDFLAGS $LTLIBICONV; do
9953 acl_save_prefix
="$prefix"
9954 prefix
="$acl_final_prefix"
9955 acl_save_exec_prefix
="$exec_prefix"
9956 exec_prefix
="$acl_final_exec_prefix"
9958 exec_prefix
="$acl_save_exec_prefix"
9959 prefix
="$acl_save_prefix"
9961 if test "X$x" = "X-L$additional_libdir"; then
9966 if test -z "$haveit"; then
9967 if test -d "$additional_libdir"; then
9968 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9975 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9976 if test "$enable_rpath" != no
; then
9978 for x
in $rpathdirs; do
9979 if test "X$x" = "X$dir"; then
9984 if test -z "$haveit"; then
9985 rpathdirs
="$rpathdirs $dir"
9988 for x
in $ltrpathdirs; do
9989 if test "X$x" = "X$dir"; then
9994 if test -z "$haveit"; then
9995 ltrpathdirs
="$ltrpathdirs $dir"
10000 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10003 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10006 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10007 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10013 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10014 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10020 if test "X$rpathdirs" != "X"; then
10021 if test -n "$hardcode_libdir_separator"; then
10023 for found_dir
in $rpathdirs; do
10024 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10026 acl_save_libdir
="$libdir"
10028 eval flag
=\"$hardcode_libdir_flag_spec\"
10029 libdir
="$acl_save_libdir"
10030 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10032 for found_dir
in $rpathdirs; do
10033 acl_save_libdir
="$libdir"
10034 libdir
="$found_dir"
10035 eval flag
=\"$hardcode_libdir_flag_spec\"
10036 libdir
="$acl_save_libdir"
10037 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10041 if test "X$ltrpathdirs" != "X"; then
10042 for found_dir
in $ltrpathdirs; do
10043 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10053 am_save_CPPFLAGS
="$CPPFLAGS"
10055 for element
in $INCICONV; do
10057 for x
in $CPPFLAGS; do
10059 acl_save_prefix
="$prefix"
10060 prefix
="$acl_final_prefix"
10061 acl_save_exec_prefix
="$exec_prefix"
10062 exec_prefix
="$acl_final_exec_prefix"
10064 exec_prefix
="$acl_save_exec_prefix"
10065 prefix
="$acl_save_prefix"
10067 if test "X$x" = "X$element"; then
10072 if test -z "$haveit"; then
10073 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10079 $as_echo_n "checking for iconv... " >&6; }
10080 if test "${am_cv_func_iconv+set}" = set; then :
10081 $as_echo_n "(cached) " >&6
10084 am_cv_func_iconv
="no, consider installing GNU libiconv"
10086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10087 /* end confdefs.h. */
10088 #include <stdlib.h>
10093 iconv_t cd = iconv_open("","");
10094 iconv(cd,NULL,NULL,NULL,NULL);
10100 if ac_fn_cxx_try_link
"$LINENO"; then :
10101 am_cv_func_iconv
=yes
10103 rm -f core conftest.err conftest.
$ac_objext \
10104 conftest
$ac_exeext conftest.
$ac_ext
10105 if test "$am_cv_func_iconv" != yes; then
10106 am_save_LIBS
="$LIBS"
10107 LIBS
="$LIBS $LIBICONV"
10108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10109 /* end confdefs.h. */
10110 #include <stdlib.h>
10115 iconv_t cd = iconv_open("","");
10116 iconv(cd,NULL,NULL,NULL,NULL);
10122 if ac_fn_cxx_try_link
"$LINENO"; then :
10123 am_cv_lib_iconv
=yes
10124 am_cv_func_iconv
=yes
10126 rm -f core conftest.err conftest.
$ac_objext \
10127 conftest
$ac_exeext conftest.
$ac_ext
10128 LIBS
="$am_save_LIBS"
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10133 $as_echo "$am_cv_func_iconv" >&6; }
10134 if test "$am_cv_func_iconv" = yes; then
10136 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10139 if test "$am_cv_lib_iconv" = yes; then
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10141 $as_echo_n "checking how to link with libiconv... " >&6; }
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10143 $as_echo "$LIBICONV" >&6; }
10145 CPPFLAGS
="$am_save_CPPFLAGS"
10152 if test "$am_cv_func_iconv" = yes; then
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10154 $as_echo_n "checking for iconv declaration... " >&6; }
10155 if test "${am_cv_proto_iconv+set}" = set; then :
10156 $as_echo_n "(cached) " >&6
10159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10162 #include <stdlib.h>
10168 #if defined(__STDC__) || defined(__cplusplus)
10169 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10182 if ac_fn_cxx_try_compile
"$LINENO"; then :
10183 am_cv_proto_iconv_arg1
=""
10185 am_cv_proto_iconv_arg1
="const"
10187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10188 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);"
10191 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10193 }$am_cv_proto_iconv" >&5
10195 }$am_cv_proto_iconv" >&6; }
10197 cat >>confdefs.h
<<_ACEOF
10198 #define ICONV_CONST $am_cv_proto_iconv_arg1
10204 ac_cpp
='$CPP $CPPFLAGS'
10205 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10206 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10207 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10210 # Until we have in-tree GNU iconv:
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10216 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10217 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10218 $as_echo_n "(cached) " >&6
10220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10221 /* end confdefs.h. */
10222 #include <locale.h>
10231 if ac_fn_c_try_link
"$LINENO"; then :
10232 am_cv_val_LC_MESSAGES
=yes
10234 am_cv_val_LC_MESSAGES
=no
10236 rm -f core conftest.err conftest.
$ac_objext \
10237 conftest
$ac_exeext conftest.
$ac_ext
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10240 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10241 if test $am_cv_val_LC_MESSAGES = yes; then
10243 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10250 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10251 if test "${am_cv_langinfo_codeset+set}" = set; then :
10252 $as_echo_n "(cached) " >&6
10254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10255 /* end confdefs.h. */
10256 #include <langinfo.h>
10260 char* cs = nl_langinfo(CODESET);
10265 if ac_fn_c_try_link
"$LINENO"; then :
10266 am_cv_langinfo_codeset
=yes
10268 am_cv_langinfo_codeset
=no
10270 rm -f core conftest.err conftest.
$ac_objext \
10271 conftest
$ac_exeext conftest.
$ac_ext
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10275 $as_echo "$am_cv_langinfo_codeset" >&6; }
10276 if test $am_cv_langinfo_codeset = yes; then
10278 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10283 # We will need to find libiberty.h and ansidecl.h
10284 saved_CFLAGS
="$CFLAGS"
10285 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10286 saved_CXXFLAGS
="$CXXFLAGS"
10287 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10288 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10289 strsignal strstr stpcpy strverscmp \
10290 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10291 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
10293 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10295 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10296 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10297 $as_echo_n "(cached) " >&6
10299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10300 /* end confdefs.h. */
10302 #define $ac_tr_decl 1
10304 #include "ansidecl.h"
10305 #include "system.h"
10311 char *(*pfn) = (char *(*)) $ac_func ;
10317 if ac_fn_c_try_compile
"$LINENO"; then :
10318 eval "gcc_cv_have_decl_$ac_func=yes"
10320 eval "gcc_cv_have_decl_$ac_func=no"
10322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10325 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10327 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10328 #define $ac_tr_decl 1
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10334 #define $ac_tr_decl 0
10342 for ac_func
in getrlimit setrlimit getrusage
10344 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10346 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10347 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10348 $as_echo_n "(cached) " >&6
10350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10353 #define $ac_tr_decl 1
10355 #include "ansidecl.h"
10356 #include "system.h"
10357 #ifdef HAVE_SYS_RESOURCE_H
10358 #include <sys/resource.h>
10366 char *(*pfn) = (char *(*)) $ac_func ;
10372 if ac_fn_c_try_compile
"$LINENO"; then :
10373 eval "gcc_cv_have_decl_$ac_func=yes"
10375 eval "gcc_cv_have_decl_$ac_func=no"
10377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10380 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10382 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10383 #define $ac_tr_decl 1
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10388 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10389 #define $ac_tr_decl 0
10397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10398 /* end confdefs.h. */
10400 #include "ansidecl.h"
10401 #include "system.h"
10402 #ifdef HAVE_SYS_RESOURCE_H
10403 #include <sys/resource.h>
10414 if ac_fn_c_try_compile
"$LINENO"; then :
10418 $as_echo "#define rlim_t long" >>confdefs.h
10421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10423 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10424 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10425 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10426 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10427 for ac_func
in ldgetname
10429 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10431 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10432 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10433 $as_echo_n "(cached) " >&6
10435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h. */
10438 #define $ac_tr_decl 1
10440 #include "ansidecl.h"
10441 #include "system.h"
10442 #ifdef HAVE_LDFCN_H
10453 char *(*pfn) = (char *(*)) $ac_func ;
10459 if ac_fn_c_try_compile
"$LINENO"; then :
10460 eval "gcc_cv_have_decl_$ac_func=yes"
10462 eval "gcc_cv_have_decl_$ac_func=no"
10464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10467 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10469 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10470 #define $ac_tr_decl 1
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10475 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10476 #define $ac_tr_decl 0
10484 for ac_func
in times
10486 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10488 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10489 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10490 $as_echo_n "(cached) " >&6
10492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10493 /* end confdefs.h. */
10495 #define $ac_tr_decl 1
10497 #include "ansidecl.h"
10498 #include "system.h"
10499 #ifdef HAVE_SYS_TIMES_H
10500 #include <sys/times.h>
10508 char *(*pfn) = (char *(*)) $ac_func ;
10514 if ac_fn_c_try_compile
"$LINENO"; then :
10515 eval "gcc_cv_have_decl_$ac_func=yes"
10517 eval "gcc_cv_have_decl_$ac_func=no"
10519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10522 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10524 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10525 #define $ac_tr_decl 1
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10531 #define $ac_tr_decl 0
10539 for ac_func
in sigaltstack
10541 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10543 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10544 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10545 $as_echo_n "(cached) " >&6
10547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10550 #define $ac_tr_decl 1
10552 #include "ansidecl.h"
10553 #include "system.h"
10554 #include <signal.h>
10561 char *(*pfn) = (char *(*)) $ac_func ;
10567 if ac_fn_c_try_compile
"$LINENO"; then :
10568 eval "gcc_cv_have_decl_$ac_func=yes"
10570 eval "gcc_cv_have_decl_$ac_func=no"
10572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10575 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10577 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10578 #define $ac_tr_decl 1
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10584 #define $ac_tr_decl 0
10592 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10595 ac_cpp
='$CXXCPP $CPPFLAGS'
10596 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10597 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10598 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10600 for ac_func
in madvise
10602 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10604 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10605 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10606 $as_echo_n "(cached) " >&6
10608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h. */
10611 #define $ac_tr_decl 1
10613 #include "ansidecl.h"
10614 #include "system.h"
10621 char *(*pfn) = (char *(*)) $ac_func ;
10627 if ac_fn_cxx_try_compile
"$LINENO"; then :
10628 eval "gcc_cv_have_decl_$ac_func=yes"
10630 eval "gcc_cv_have_decl_$ac_func=no"
10632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10635 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10637 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10638 #define $ac_tr_decl 1
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10643 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10644 #define $ac_tr_decl 0
10652 ac_cpp
='$CPP $CPPFLAGS'
10653 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10654 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10655 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10658 # More time-related stuff.
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10660 $as_echo_n "checking for struct tms... " >&6; }
10661 if test "${ac_cv_struct_tms+set}" = set; then :
10662 $as_echo_n "(cached) " >&6
10665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h. */
10668 #include "ansidecl.h"
10669 #include "system.h"
10670 #ifdef HAVE_SYS_TIMES_H
10671 #include <sys/times.h>
10682 if ac_fn_c_try_compile
"$LINENO"; then :
10683 ac_cv_struct_tms
=yes
10685 ac_cv_struct_tms
=no
10687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10690 $as_echo "$ac_cv_struct_tms" >&6; }
10691 if test $ac_cv_struct_tms = yes; then
10693 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10697 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10698 # revisit after autoconf 2.50.
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10700 $as_echo_n "checking for clock_t... " >&6; }
10701 if test "${gcc_cv_type_clock_t+set}" = set; then :
10702 $as_echo_n "(cached) " >&6
10705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10708 #include "ansidecl.h"
10709 #include "system.h"
10719 if ac_fn_c_try_compile
"$LINENO"; then :
10720 gcc_cv_type_clock_t
=yes
10722 gcc_cv_type_clock_t
=no
10724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10727 $as_echo "$gcc_cv_type_clock_t" >&6; }
10728 if test $gcc_cv_type_clock_t = yes; then
10730 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10734 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10735 CFLAGS
="$saved_CFLAGS"
10736 CXXFLAGS
="$saved_CXXFLAGS"
10738 # mkdir takes a single argument on some systems.
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10740 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10741 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10742 $as_echo_n "(cached) " >&6
10744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10747 #include <sys/types.h>
10748 #ifdef HAVE_SYS_STAT_H
10749 # include <sys/stat.h>
10751 #ifdef HAVE_UNISTD_H
10752 # include <unistd.h>
10754 #ifdef HAVE_DIRECT_H
10755 # include <direct.h>
10765 if ac_fn_c_try_compile
"$LINENO"; then :
10766 gcc_cv_mkdir_takes_one_arg
=no
10768 gcc_cv_mkdir_takes_one_arg
=yes
10770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10773 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10774 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10776 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10787 # With Setjmp/Longjmp based exception handling.
10788 # Check whether --enable-sjlj-exceptions was given.
10789 if test "${enable_sjlj_exceptions+set}" = set; then :
10790 enableval
=$enable_sjlj_exceptions; case $target in
10792 if test $enableval != yes; then
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10794 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10799 force_sjlj_exceptions
=yes
10803 force_sjlj_exceptions
=yes
10807 force_sjlj_exceptions
=no
10812 if test $force_sjlj_exceptions = yes; then
10813 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10815 cat >>confdefs.h
<<_ACEOF
10816 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10821 # --------------------------------------------------------
10822 # Build, host, and target specific configuration fragments
10823 # --------------------------------------------------------
10825 # Collect build-machine-specific information.
10826 .
${srcdir}/config.build
10828 # Collect host-machine-specific information.
10829 .
${srcdir}/config.
host
10833 # Collect target-machine-specific information.
10834 .
${srcdir}/config.gcc
10836 extra_objs
="${host_extra_objs} ${extra_objs}"
10837 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10839 # Default the target-machine variables that were not explicitly set.
10840 if test x
"$tm_file" = x
10841 then tm_file
=$cpu_type/$cpu_type.h
; fi
10843 if test x
"$extra_headers" = x
10844 then extra_headers
=; fi
10846 if test x
$md_file = x
10847 then md_file
=$cpu_type/$cpu_type.md
; fi
10849 if test x
$out_file = x
10850 then out_file
=$cpu_type/$cpu_type.c
; fi
10852 if test x
"$tmake_file" = x
10853 then tmake_file
=$cpu_type/t-
$cpu_type
10856 # Support --enable-initfini-array.
10857 if test x
$enable_initfini_array != xno
; then
10858 tm_file
="${tm_file} initfini-array.h"
10861 if test x
"$dwarf2" = xyes
10862 then tm_file
="$tm_file tm-dwarf2.h"
10865 # Say what files are being used for the output code and MD file.
10866 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10867 echo "Using \`$srcdir/config/$md_file' as machine description file."
10869 # If any of the xm_file variables contain nonexistent files, warn
10870 # about them and drop them.
10873 for x
in $build_xm_file; do
10874 if test -f $srcdir/config
/$x
10876 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10877 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10880 build_xm_file
="$bx"
10883 for x
in $host_xm_file; do
10884 if test -f $srcdir/config
/$x
10886 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10887 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10893 for x
in $xm_file; do
10894 if test -f $srcdir/config
/$x
10896 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10897 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10903 for f
in $tm_file; do
10906 if test $count = ax
; then
10907 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10909 echo "Using the following target machine macro files:"
10910 for f
in $tm_file; do
10911 echo " $srcdir/config/$f"
10915 if test x
$need_64bit_hwint = xyes
; then
10917 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10921 if test x
$use_long_long_for_widest_fast_int = xyes
; then
10923 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10927 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
10929 cat >>confdefs.h
<<_ACEOF
10930 #define HAVE_GNU_LD $gnu_ld_bool
10934 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
10936 cat >>confdefs.h
<<_ACEOF
10937 #define HAVE_GNU_AS $gnu_as_bool
10942 for f
in $host_xm_file; do
10945 if test $count = a
; then
10947 elif test $count = ax
; then
10948 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10950 echo "Using the following host machine macro files:"
10951 for f
in $host_xm_file; do
10952 echo " $srcdir/config/$f"
10955 echo "Using ${out_host_hook_obj} for host machine hooks."
10957 if test "$host_xm_file" != "$build_xm_file"; then
10959 for f
in $build_xm_file; do
10962 if test $count = a
; then
10964 elif test $count = ax
; then
10965 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10967 echo "Using the following build machine macro files:"
10968 for f
in $build_xm_file; do
10969 echo " $srcdir/config/$f"
10974 if test -n "$configured_native_system_header_dir"; then
10975 native_system_header_dir
=$configured_native_system_header_dir
10977 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
10981 powerpc
*-*-darwin*)
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10983 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10984 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10985 $as_echo_n "(cached) " >&6
10987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10990 #include <sys/cdefs.h>
10991 #include <sys/signal.h>
10992 #include <ucontext.h>
10993 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10996 if ac_fn_c_try_compile
"$LINENO"; then :
10997 gcc_cv_mcontext_underscores
=no
10999 gcc_cv_mcontext_underscores
=yes
11001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11004 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11005 if test $gcc_cv_mcontext_underscores = yes; then
11007 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11017 # Check if a valid thread package
11018 case ${enable_threads} in
11021 target_thread_file
='single'
11025 target_thread_file
='single'
11027 aix | dce | lynx | mipssde | posix | rtems | \
11028 single | tpf | vxworks | win32
)
11029 target_thread_file
=${enable_threads}
11032 echo "${enable_threads} is an unknown thread package" 1>&2
11037 if test x
${thread_file} = x
; then
11038 # No thread file set by target-specific clauses in config.gcc,
11039 # so use file chosen by default logic above
11040 thread_file
=${target_thread_file}
11048 if test x
$enable___cxa_atexit = xyes || \
11049 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11050 if test x
$host = x
$target; then
11052 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11053 # keyed to flag_use_cxa_atexit
11058 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11059 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11062 echo "__cxa_atexit can't be enabled on this target"
11068 # We can't check for __cxa_atexit when building a cross, so assume
11072 if test x
$use_cxa_atexit = xyes
; then
11074 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11079 # Look for a file containing extra machine modes.
11080 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11081 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11084 cat >>confdefs.h
<<_ACEOF
11085 #define EXTRA_MODES_FILE "config/$extra_modes"
11090 # Convert extra_options into a form suitable for Makefile use.
11093 for f
in $extra_options; do
11094 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11095 all_opt_files
="$all_opt_files $srcdir/config/$f"
11099 # auto-host.h is the file containing items generated by autoconf and is
11100 # the first file included by config.h.
11101 # If host=build, it is correct to have bconfig include auto-host.h
11102 # as well. If host!=build, we are in error and need to do more
11103 # work to find out the build config parameters.
11104 if test x
$host = x
$build
11106 build_auto
=auto-host.h
11108 # We create a subdir, then run autoconf in the subdir.
11109 # To prevent recursion we set host and build for the new
11110 # invocation of configure to the build for this invocation
11117 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11118 *) realsrcdir
=..
/${srcdir};;
11120 saved_CFLAGS
="${CFLAGS}"
11121 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11122 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11123 ${realsrcdir}/configure \
11124 --enable-languages=${enable_languages-all} \
11125 --target=$target_alias --host=$build_alias --build=$build_alias
11126 CFLAGS
="${saved_CFLAGS}"
11128 # We just finished tests for the build machine, so rename
11129 # the file auto-build.h in the gcc directory.
11130 mv auto-host.h ..
/auto-build.h
11133 build_auto
=auto-build.h
11137 tm_file
="${tm_file} defaults.h"
11138 tm_p_file
="${tm_p_file} tm-preds.h"
11139 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11140 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11141 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11142 # put this back in temporarily.
11143 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11149 # Compile in configure arguments.
11150 if test -f configargs.h
; then
11151 # Being re-configured.
11152 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11153 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11155 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11158 # Double all backslashes and backslash all quotes to turn
11159 # gcc_config_arguments into a C string.
11160 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11161 $gcc_config_arguments
11163 gcc_config_arguments_str
=`cat conftest.out`
11166 cat > configargs.h
<<EOF
11167 /* Generated automatically. */
11168 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11169 static const char thread_model[] = "$thread_file";
11171 static const struct {
11172 const char *name, *value;
11173 } configure_default_options[] = $configure_default_options;
11176 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11177 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11178 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11179 if test -f $srcdir/REVISION
; then
11180 gcc_REVISION
=`cat $srcdir/REVISION`
11184 cat > plugin-version.h
<<EOF
11185 #include "configargs.h"
11187 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11188 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11189 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11190 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11192 static char basever[] = "$gcc_BASEVER";
11193 static char datestamp[] = "$gcc_DATESTAMP";
11194 static char devphase[] = "$gcc_DEVPHASE";
11195 static char revision[] = "$gcc_REVISION";
11197 /* FIXME plugins: We should make the version information more precise.
11198 One way to do is to add a checksum. */
11200 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11201 devphase, revision,
11202 configuration_arguments};
11205 # Internationalization
11206 # If we haven't got the data from the intl directory,
11207 # assume NLS is disabled.
11216 if test -f ..
/intl
/config.intl
; then
11217 . ..
/intl
/config.intl
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11220 $as_echo_n "checking whether NLS is requested... " >&6; }
11221 if test x
"$USE_NLS" != xyes
; then
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223 $as_echo "no" >&6; }
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11226 $as_echo "yes" >&6; }
11228 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11232 $as_echo_n "checking for catalogs to be installed... " >&6; }
11233 # Look for .po and .gmo files in the source directory.
11236 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11237 # If there aren't any .gmo files the shell will give us the
11238 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11240 case "$cat" in *\
**)
11243 # The quadruple backslash is collapsed to a double backslash
11244 # by the backticks, then collapsed again by the double quotes,
11245 # leaving us with one backslash in the sed expression (right
11246 # before the dot that mustn't act as a wildcard).
11247 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11248 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11249 # The user is allowed to set LINGUAS to a list of languages to
11250 # install catalogs for. If it's empty that means "all of them."
11251 if test "x$LINGUAS" = x
; then
11252 CATALOGS
="$CATALOGS $cat"
11253 XLINGUAS
="$XLINGUAS $lang"
11255 case "$LINGUAS" in *$lang*)
11256 CATALOGS
="$CATALOGS $cat"
11257 XLINGUAS
="$XLINGUAS $lang"
11262 LINGUAS
="$XLINGUAS"
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11264 $as_echo "$LINGUAS" >&6; }
11277 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11278 # -liconv on the link line twice.
11279 case "$LIBINTL" in *$LIBICONV*)
11283 # Check whether --enable-secureplt was given.
11284 if test "${enable_secureplt+set}" = set; then :
11285 enableval
=$enable_secureplt;
11289 # Check whether --enable-leading-mingw64-underscores was given.
11290 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11291 enableval
=$enable_leading_mingw64_underscores;
11294 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11296 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11300 # Check whether --enable-cld was given.
11301 if test "${enable_cld+set}" = set; then :
11302 enableval
=$enable_cld;
11308 # Check whether --enable-frame-pointer was given.
11309 if test "${enable_frame_pointer+set}" = set; then :
11310 enableval
=$enable_frame_pointer;
11314 linux
* | darwin
[8912]*)
11315 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11317 enable_frame_pointer
=no
11320 enable_frame_pointer
=yes
11327 # Windows32 Registry support for specifying GCC installation paths.
11328 # Check whether --enable-win32-registry was given.
11329 if test "${enable_win32_registry+set}" = set; then :
11330 enableval
=$enable_win32_registry;
11335 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11336 if test "x$enable_win32_registry" != xno
; then
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11338 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11339 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11342 ac_func_search_save_LIBS
=$LIBS
11343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11346 /* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11352 char RegOpenKeyExA ();
11356 return RegOpenKeyExA ();
11361 for ac_lib
in '' advapi32
; do
11362 if test -z "$ac_lib"; then
11363 ac_res
="none required"
11366 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11368 if ac_fn_c_try_link
"$LINENO"; then :
11369 ac_cv_search_RegOpenKeyExA
=$ac_res
11371 rm -f core conftest.err conftest.
$ac_objext \
11373 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11377 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11380 ac_cv_search_RegOpenKeyExA
=no
11382 rm conftest.
$ac_ext
11383 LIBS
=$ac_func_search_save_LIBS
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11386 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11387 ac_res
=$ac_cv_search_RegOpenKeyExA
11388 if test "$ac_res" != no
; then :
11389 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11392 enable_win32_registry
=no
11397 if test "x$enable_win32_registry" != xno
; then
11399 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11402 if test "x$enable_win32_registry" != xyes \
11403 && test "x$enable_win32_registry" != x
; then
11405 cat >>confdefs.h
<<_ACEOF
11406 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11414 # Get an absolute path to the GCC top-level source directory
11415 holddir
=`${PWDCMD-pwd}`
11417 topdir
=`${PWDCMD-pwd}`
11420 # Conditionalize the makefile for this host machine.
11422 for f
in ${host_xmake_file}
11424 if test -f ${srcdir}/config
/$f
11426 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11430 # Conditionalize the makefile for this target machine.
11432 for f
in ${tmake_file}
11434 if test -f ${srcdir}/config
/$f
11436 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11439 tmake_file
="${tmake_file_}"
11441 out_object_file
=`basename $out_file .c`.o
11442 common_out_object_file
=`basename $common_out_file .c`.o
11444 tm_file_list
="options.h"
11445 tm_include_list
="options.h insn-constants.h"
11446 for f
in $tm_file; do
11449 f
=`echo $f | sed 's/^..//'`
11450 tm_file_list
="${tm_file_list} $f"
11451 tm_include_list
="${tm_include_list} $f"
11454 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11455 tm_include_list
="${tm_include_list} $f"
11458 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11459 tm_include_list
="${tm_include_list} config/$f"
11466 for f
in $tm_p_file; do
11469 tm_p_file_list
="${tm_p_file_list} $f"
11470 tm_p_include_list
="${tm_p_include_list} $f"
11473 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11474 tm_p_include_list
="${tm_p_include_list} config/$f"
11480 for f
in $xm_file; do
11483 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11484 xm_include_list
="${xm_include_list} $f"
11487 xm_file_list
="${xm_file_list} $f"
11488 xm_include_list
="${xm_include_list} $f"
11491 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11492 xm_include_list
="${xm_include_list} config/$f"
11498 host_xm_include_list
=
11499 for f
in $host_xm_file; do
11502 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11503 host_xm_include_list
="${host_xm_include_list} $f"
11506 host_xm_file_list
="${host_xm_file_list} $f"
11507 host_xm_include_list
="${host_xm_include_list} $f"
11510 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11511 host_xm_include_list
="${host_xm_include_list} config/$f"
11516 build_xm_file_list
=
11517 for f
in $build_xm_file; do
11520 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11521 build_xm_include_list
="${build_xm_include_list} $f"
11523 auto-build.h | auto-host.h
)
11524 build_xm_file_list
="${build_xm_file_list} $f"
11525 build_xm_include_list
="${build_xm_include_list} $f"
11528 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11529 build_xm_include_list
="${build_xm_include_list} config/$f"
11534 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11535 # cross-compiler which does not use the native headers and libraries.
11536 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11539 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11541 if test "x$with_build_sysroot" != x
; then
11542 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11544 # This value is used, even on a native system, because
11545 # CROSS_SYSTEM_HEADER_DIR is just
11546 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11547 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11550 if test x
$host != x
$target
11552 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11554 SYSTEM_HEADER_DIR
=$build_system_header_dir
11555 case "$host","$target" in
11556 # Darwin crosses can use the host system's libraries and headers,
11557 # because of the fat library support. Of course, it must be the
11558 # same version of Darwin on both sides. Allow the user to
11559 # just say --target=foo-darwin without a version number to mean
11560 # "the version on this system".
11561 *-*-darwin*,*-*-darwin*)
11562 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11563 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11564 if test $hostos = $targetos -o $targetos = darwin
; then
11566 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11571 i?
86-*-*,x86_64-
*-* \
11572 | powerpc
*-*-*,powerpc64
*-*-*)
11573 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11578 if test "x$with_headers" = x
; then
11585 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11586 SYSTEM_HEADER_DIR
=$build_system_header_dir
11589 # If this is a cross-compiler that does not
11590 # have its own set of headers then define
11593 # If this is using newlib, without having the headers available now,
11594 # then define inhibit_libc in LIBGCC2_CFLAGS.
11595 # This prevents libgcc2 from containing any code which requires libc
11597 : ${inhibit_libc=false}
11598 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11599 test x
$with_newlib = xyes
; } &&
11600 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11605 # When building gcc with a cross-compiler, we need to adjust things so
11606 # that the generator programs are still built with the native compiler.
11607 # Also, we cannot run fixincludes.
11609 # These are the normal (build=host) settings:
11610 CC_FOR_BUILD
='$(CC)'
11611 CXX_FOR_BUILD
='$(CXX)'
11612 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11613 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11614 BUILD_LDFLAGS
='$(LDFLAGS)'
11615 STMP_FIXINC
=stmp-fixinc
11617 # And these apply if build != host, or we are generating coverage data
11618 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11620 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11621 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11624 # Expand extra_headers to include complete path.
11625 # This substitutes for lots of t-* files.
11626 extra_headers_list
=
11627 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11628 for file in ${extra_headers} ; do
11629 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11632 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11633 if test x
"$use_gcc_tgmath" = xyes
11634 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11637 # Define collect2 in Makefile.
11638 case $host_can_use_collect2 in
11640 *) collect2
='collect2$(exeext)' ;;
11644 # Add a definition of USE_COLLECT2 if system wants one.
11645 case $use_collect2 in
11646 no
) use_collect2
= ;;
11649 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11650 xm_defines
="${xm_defines} USE_COLLECT2"
11651 case $host_can_use_collect2 in
11653 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11660 cat >>confdefs.h
<<_ACEOF
11661 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11665 # ---------------------------
11666 # Assembler & linker features
11667 # ---------------------------
11669 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11670 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11671 # However when ld-new is first executed from the build tree, libtool will
11672 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11673 # to the build tree. While doing this we need to use the previous-stage
11674 # linker, or we have an infinite loop. The presence of a shell script as
11675 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11676 # the gcc/collect-ld script. So we need to know how libtool works, or
11677 # exec-tool will fail.
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11683 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11688 macro_version
='2.2.7a'
11689 macro_revision
='1.3134'
11703 ltmain
="$ac_aux_dir/ltmain.sh"
11705 # Backslashify metacharacters that are still active within
11706 # double-quoted strings.
11707 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11709 # Same as above, but do not quote variable references.
11710 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11712 # Sed substitution to delay expansion of an escaped shell variable in a
11713 # double_quote_subst'ed string.
11714 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11716 # Sed substitution to delay expansion of an escaped single quote.
11717 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11719 # Sed substitution to avoid accidental globbing in evaled expressions
11720 no_glob_subst
='s/\*/\\\*/g'
11722 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11723 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11724 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11727 $as_echo_n "checking how to print strings... " >&6; }
11728 # Test print first, because it will be a builtin if present.
11729 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11730 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11732 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11735 # Use this function as a fallback that always works.
11736 func_fallback_echo ()
11738 eval 'cat <<_LTECHO_EOF
11742 ECHO='func_fallback_echo
'
11745 # func_echo_all arg...
11746 # Invoke $ECHO with all args, space-separated.
11753 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11754 $as_echo "printf" >&6; } ;;
11755 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11756 $as_echo "print -r" >&6; } ;;
11757 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11758 $as_echo "cat" >&6; } ;;
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11775 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11776 if test "${ac_cv_path_SED+set}" = set; then :
11777 $as_echo_n "(cached) " >&6
11779 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11780 for ac_i in 1 2 3 4 5 6 7; do
11781 ac_script="$ac_script$as_nl$ac_script"
11783 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11784 { ac_script=; unset ac_script;}
11785 if test -z "$SED"; then
11786 ac_path_SED_found=false
11787 # Loop through the user's path and
test for each of PROGNAME-LIST
11788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11789 for as_dir
in $PATH
11792 test -z "$as_dir" && as_dir
=.
11793 for ac_prog
in sed gsed
; do
11794 for ac_exec_ext
in '' $ac_executable_extensions; do
11795 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11796 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11797 # Check for GNU ac_path_SED and select it if it is found.
11798 # Check for GNU $ac_path_SED
11799 case `"$ac_path_SED" --version 2>&1` in
11801 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11804 $as_echo_n 0123456789 >"conftest.in"
11807 cat "conftest.in" "conftest.in" >"conftest.tmp"
11808 mv "conftest.tmp" "conftest.in"
11809 cp "conftest.in" "conftest.nl"
11810 $as_echo '' >> "conftest.nl"
11811 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11812 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11813 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11814 if test $ac_count -gt ${ac_path_SED_max-0}; then
11815 # Best one so far, save it but keep looking for a better one
11816 ac_cv_path_SED
="$ac_path_SED"
11817 ac_path_SED_max
=$ac_count
11819 # 10*(2^10) chars as input seems more than enough
11820 test $ac_count -gt 10 && break
11822 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11825 $ac_path_SED_found && break 3
11830 if test -z "$ac_cv_path_SED"; then
11831 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11834 ac_cv_path_SED
=$SED
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11839 $as_echo "$ac_cv_path_SED" >&6; }
11840 SED
="$ac_cv_path_SED"
11843 test -z "$SED" && SED
=sed
11844 Xsed
="$SED -e 1s/^X//"
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11857 $as_echo_n "checking for fgrep... " >&6; }
11858 if test "${ac_cv_path_FGREP+set}" = set; then :
11859 $as_echo_n "(cached) " >&6
11861 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11862 then ac_cv_path_FGREP
="$GREP -F"
11864 if test -z "$FGREP"; then
11865 ac_path_FGREP_found
=false
11866 # Loop through the user's path and test for each of PROGNAME-LIST
11867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11868 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11871 test -z "$as_dir" && as_dir
=.
11872 for ac_prog
in fgrep
; do
11873 for ac_exec_ext
in '' $ac_executable_extensions; do
11874 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11875 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11876 # Check for GNU ac_path_FGREP and select it if it is found.
11877 # Check for GNU $ac_path_FGREP
11878 case `"$ac_path_FGREP" --version 2>&1` in
11880 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
11883 $as_echo_n 0123456789 >"conftest.in"
11886 cat "conftest.in" "conftest.in" >"conftest.tmp"
11887 mv "conftest.tmp" "conftest.in"
11888 cp "conftest.in" "conftest.nl"
11889 $as_echo 'FGREP' >> "conftest.nl"
11890 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11891 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11892 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11893 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11894 # Best one so far, save it but keep looking for a better one
11895 ac_cv_path_FGREP
="$ac_path_FGREP"
11896 ac_path_FGREP_max
=$ac_count
11898 # 10*(2^10) chars as input seems more than enough
11899 test $ac_count -gt 10 && break
11901 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11904 $ac_path_FGREP_found && break 3
11909 if test -z "$ac_cv_path_FGREP"; then
11910 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11913 ac_cv_path_FGREP
=$FGREP
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11919 $as_echo "$ac_cv_path_FGREP" >&6; }
11920 FGREP
="$ac_cv_path_FGREP"
11923 test -z "$GREP" && GREP
=grep
11943 # Check whether --with-gnu-ld was given.
11944 if test "${with_gnu_ld+set}" = set; then :
11945 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11951 if test "$GCC" = yes; then
11952 # Check if gcc -print-prog-name=ld gives a path.
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11954 $as_echo_n "checking for ld used by $CC... " >&6; }
11957 # gcc leaves a trailing carriage return which upsets mingw
11958 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11960 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11963 # Accept absolute paths.
11965 re_direlt
='/[^/][^/]*/\.\./'
11966 # Canonicalize the pathname of ld
11967 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11968 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
11969 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11971 test -z "$LD" && LD
="$ac_prog"
11974 # If it fails, then pretend we aren't using GCC.
11978 # If it is relative, then search for the first ld in PATH.
11979 with_gnu_ld
=unknown
11982 elif test "$with_gnu_ld" = yes; then
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11984 $as_echo_n "checking for GNU ld... " >&6; }
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11987 $as_echo_n "checking for non-GNU ld... " >&6; }
11989 if test "${lt_cv_path_LD+set}" = set; then :
11990 $as_echo_n "(cached) " >&6
11992 if test -z "$LD"; then
11993 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11994 for ac_dir
in $PATH; do
11996 test -z "$ac_dir" && ac_dir
=.
11997 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11998 lt_cv_path_LD
="$ac_dir/$ac_prog"
11999 # Check to see if the program is GNU ld. I'd rather use --version,
12000 # but apparently some variants of GNU ld only accept -v.
12001 # Break only if it was the GNU/non-GNU ld that we prefer.
12002 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12003 *GNU
* |
*'with BFD'*)
12004 test "$with_gnu_ld" != no
&& break
12007 test "$with_gnu_ld" != yes && break
12014 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12018 LD
="$lt_cv_path_LD"
12019 if test -n "$LD"; then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12021 $as_echo "$LD" >&6; }
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 $as_echo "no" >&6; }
12026 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12028 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12029 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12030 $as_echo_n "(cached) " >&6
12032 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12033 case `$LD -v 2>&1 </dev/null` in
12034 *GNU
* |
*'with BFD'*)
12035 lt_cv_prog_gnu_ld
=yes
12038 lt_cv_prog_gnu_ld
=no
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12043 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12044 with_gnu_ld
=$lt_cv_prog_gnu_ld
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12055 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12056 if test "${lt_cv_path_NM+set}" = set; then :
12057 $as_echo_n "(cached) " >&6
12059 if test -n "$NM"; then
12060 # Let the user override the test.
12061 lt_cv_path_NM
="$NM"
12063 lt_nm_to_check
="${ac_tool_prefix}nm"
12064 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12065 lt_nm_to_check
="$lt_nm_to_check nm"
12067 for lt_tmp_nm
in $lt_nm_to_check; do
12068 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12069 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12071 test -z "$ac_dir" && ac_dir
=.
12072 tmp_nm
="$ac_dir/$lt_tmp_nm"
12073 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12074 # Check to see if the nm accepts a BSD-compat flag.
12075 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12076 # nm: unknown option "B" ignored
12077 # Tru64's nm complains that /dev/null is an invalid object file
12078 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12079 */dev
/null
* |
*'Invalid file or object type'*)
12080 lt_cv_path_NM
="$tmp_nm -B"
12084 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12086 lt_cv_path_NM
="$tmp_nm -p"
12090 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12091 continue # so that we can try to find one that supports BSD flags
12100 : ${lt_cv_path_NM=no}
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12104 $as_echo "$lt_cv_path_NM" >&6; }
12105 if test "$lt_cv_path_NM" != "no"; then
12106 NM
="$lt_cv_path_NM"
12108 # Didn't find any BSD compatible name lister, look for dumpbin.
12109 if test -n "$DUMPBIN"; then :
12110 # Let the user override the test.
12112 if test -n "$ac_tool_prefix"; then
12113 for ac_prog
in dumpbin
"link -dump"
12115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12116 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12118 $as_echo_n "checking for $ac_word... " >&6; }
12119 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12120 $as_echo_n "(cached) " >&6
12122 if test -n "$DUMPBIN"; then
12123 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12125 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12126 for as_dir
in $PATH
12129 test -z "$as_dir" && as_dir
=.
12130 for ac_exec_ext
in '' $ac_executable_extensions; do
12131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12132 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12142 DUMPBIN
=$ac_cv_prog_DUMPBIN
12143 if test -n "$DUMPBIN"; then
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12145 $as_echo "$DUMPBIN" >&6; }
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12148 $as_echo "no" >&6; }
12152 test -n "$DUMPBIN" && break
12155 if test -z "$DUMPBIN"; then
12156 ac_ct_DUMPBIN
=$DUMPBIN
12157 for ac_prog
in dumpbin
"link -dump"
12159 # Extract the first word of "$ac_prog", so it can be a program name with args.
12160 set dummy
$ac_prog; ac_word
=$2
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12162 $as_echo_n "checking for $ac_word... " >&6; }
12163 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12164 $as_echo_n "(cached) " >&6
12166 if test -n "$ac_ct_DUMPBIN"; then
12167 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12170 for as_dir
in $PATH
12173 test -z "$as_dir" && as_dir
=.
12174 for ac_exec_ext
in '' $ac_executable_extensions; do
12175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12176 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12186 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12187 if test -n "$ac_ct_DUMPBIN"; then
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12189 $as_echo "$ac_ct_DUMPBIN" >&6; }
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192 $as_echo "no" >&6; }
12196 test -n "$ac_ct_DUMPBIN" && break
12199 if test "x$ac_ct_DUMPBIN" = x
; then
12202 case $cross_compiling:$ac_tool_warned in
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12206 ac_tool_warned
=yes ;;
12208 DUMPBIN
=$ac_ct_DUMPBIN
12212 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12214 DUMPBIN
="$DUMPBIN -symbols"
12222 if test "$DUMPBIN" != ":"; then
12226 test -z "$NM" && NM
=nm
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12234 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12235 if test "${lt_cv_nm_interface+set}" = set; then :
12236 $as_echo_n "(cached) " >&6
12238 lt_cv_nm_interface
="BSD nm"
12239 echo "int some_variable = 0;" > conftest.
$ac_ext
12240 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12241 (eval "$ac_compile" 2>conftest.err
)
12242 cat conftest.err
>&5
12243 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12244 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12245 cat conftest.err
>&5
12246 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12247 cat conftest.out
>&5
12248 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12249 lt_cv_nm_interface
="MS dumpbin"
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12254 $as_echo "$lt_cv_nm_interface" >&6; }
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12257 $as_echo_n "checking whether ln -s works... " >&6; }
12259 if test "$LN_S" = "ln -s"; then
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12261 $as_echo "yes" >&6; }
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12264 $as_echo "no, using $LN_S" >&6; }
12267 # find the maximum length of command line arguments
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12269 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12270 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12271 $as_echo_n "(cached) " >&6
12278 # On DJGPP, this test can blow up pretty badly due to problems in libc
12279 # (any single argument exceeding 2000 bytes causes a buffer overrun
12280 # during glob expansion). Even if it were fixed, the result of this
12281 # check would be larger than it should be.
12282 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12286 # Under GNU Hurd, this test is not required because there is
12287 # no limit to the length of command line arguments.
12288 # Libtool will interpret -1 as no limit whatsoever
12289 lt_cv_sys_max_cmd_len
=-1;
12292 cygwin
* | mingw
* | cegcc
*)
12293 # On Win9x/ME, this test blows up -- it succeeds, but takes
12294 # about 5 minutes as the teststring grows exponentially.
12295 # Worse, since 9x/ME are not pre-emptively multitasking,
12296 # you end up with a "frozen" computer, even though with patience
12297 # the test eventually succeeds (with a max line length of 256k).
12298 # Instead, let's just punt: use the minimum linelength reported by
12299 # all of the supported platforms: 8192 (on NT/2K/XP).
12300 lt_cv_sys_max_cmd_len
=8192;
12304 # On MiNT this can take a long time and run out of memory.
12305 lt_cv_sys_max_cmd_len
=8192;
12309 # On AmigaOS with pdksh, this test takes hours, literally.
12310 # So we just punt and use a minimum line length of 8192.
12311 lt_cv_sys_max_cmd_len
=8192;
12314 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12315 # This has been around since 386BSD, at least. Likely further.
12316 if test -x /sbin
/sysctl
; then
12317 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12318 elif test -x /usr
/sbin
/sysctl
; then
12319 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12321 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12323 # And add a safety zone
12324 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12325 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12329 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12330 lt_cv_sys_max_cmd_len
=196608
12334 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12335 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12336 # nice to cause kernel panics so lets avoid the loop below.
12337 # First set a reasonable default.
12338 lt_cv_sys_max_cmd_len
=16384
12340 if test -x /sbin
/sysconfig
; then
12341 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12342 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12347 lt_cv_sys_max_cmd_len
=102400
12349 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12350 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12351 if test -n "$kargmax"; then
12352 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12354 lt_cv_sys_max_cmd_len
=32768
12358 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12359 if test -n "$lt_cv_sys_max_cmd_len"; then
12360 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12361 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12363 # Make teststring a little bigger before we do anything with it.
12364 # a 1K string should be a reasonable start.
12365 for i
in 1 2 3 4 5 6 7 8 ; do
12366 teststring
=$teststring$teststring
12368 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12369 # If test is not a shell built-in, we'll probably end up computing a
12370 # maximum length that is only half of the actual maximum length, but
12372 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12373 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12374 test $i != 17 # 1/2 MB should be enough
12377 teststring
=$teststring$teststring
12379 # Only check the string length outside the loop.
12380 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12382 # Add a significant safety factor because C++ compilers can tack on
12383 # massive amounts of additional arguments before passing them to the
12384 # linker. It appears as though 1/2 is a usable value.
12385 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12392 if test -n $lt_cv_sys_max_cmd_len ; then
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12394 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12397 $as_echo "none" >&6; }
12399 max_cmd_len
=$lt_cv_sys_max_cmd_len
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12411 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12412 # Try some XSI features
12414 ( _lt_dummy
="a/b/c"
12415 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12417 && eval 'test $(( 1 + 1 )) -eq 2 \
12418 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12421 $as_echo "$xsi_shell" >&6; }
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12425 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12427 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12429 && lt_shell_append=yes
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12431 $as_echo "$lt_shell_append" >&6; }
12434 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12444 # test EBCDIC or ASCII
12445 case `echo X|tr X '\101'` in
12446 A) # ASCII based system
12447 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12448 lt_SP2NL='tr \040 \012'
12449 lt_NL2SP='tr \015\012 \040\040'
12451 *) # EBCDIC based system
12452 lt_SP2NL='tr \100 \n'
12453 lt_NL2SP='tr \r\n \100\100'
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12466 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12467 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12468 $as_echo_n "(cached
) " >&6
12470 lt_cv_ld_reload_flag='-r'
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12473 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12474 reload_flag=$lt_cv_ld_reload_flag
12475 case $reload_flag in
12477 *) reload_flag=" $reload_flag" ;;
12479 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12482 if test "$GCC" = yes; then
12483 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12485 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12498 if test -n "$ac_tool_prefix"; then
12499 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12500 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12502 $as_echo_n "checking
for $ac_word...
" >&6; }
12503 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12504 $as_echo_n "(cached
) " >&6
12506 if test -n "$OBJDUMP"; then
12507 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12510 for as_dir in $PATH
12513 test -z "$as_dir" && as_dir=.
12514 for ac_exec_ext in '' $ac_executable_extensions; do
12515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12516 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12517 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12526 OBJDUMP=$ac_cv_prog_OBJDUMP
12527 if test -n "$OBJDUMP"; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12529 $as_echo "$OBJDUMP" >&6; }
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12532 $as_echo "no
" >&6; }
12537 if test -z "$ac_cv_prog_OBJDUMP"; then
12538 ac_ct_OBJDUMP=$OBJDUMP
12539 # Extract the first word of "objdump
", so it can be a program name with args.
12540 set dummy objdump; ac_word=$2
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12542 $as_echo_n "checking
for $ac_word...
" >&6; }
12543 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12544 $as_echo_n "(cached
) " >&6
12546 if test -n "$ac_ct_OBJDUMP"; then
12547 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12550 for as_dir in $PATH
12553 test -z "$as_dir" && as_dir=.
12554 for ac_exec_ext in '' $ac_executable_extensions; do
12555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12556 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12557 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12566 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12567 if test -n "$ac_ct_OBJDUMP"; then
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12569 $as_echo "$ac_ct_OBJDUMP" >&6; }
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12572 $as_echo "no
" >&6; }
12575 if test "x
$ac_ct_OBJDUMP" = x; then
12578 case $cross_compiling:$ac_tool_warned in
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12581 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12582 ac_tool_warned=yes ;;
12584 OBJDUMP=$ac_ct_OBJDUMP
12587 OBJDUMP="$ac_cv_prog_OBJDUMP"
12590 test -z "$OBJDUMP" && OBJDUMP=objdump
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12601 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12602 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12603 $as_echo_n "(cached
) " >&6
12605 lt_cv_file_magic_cmd='$MAGIC_CMD'
12606 lt_cv_file_magic_test_file=
12607 lt_cv_deplibs_check_method='unknown'
12608 # Need to set the preceding variable on all platforms that support
12609 # interlibrary dependencies.
12610 # 'none' -- dependencies not supported.
12611 # `unknown' -- same as none, but documents that we really don't know.
12612 # 'pass_all' -- all dependencies passed with no checks.
12613 # 'test_compile' -- check by making test program.
12614 # 'file_magic [[regex]]' -- check by looking for files in library path
12615 # which responds to the $file_magic_cmd with a given extended regex.
12616 # If you have `file' or equivalent on your system and you're not sure
12617 # whether `pass_all' will *always* work, you probably want this one.
12621 lt_cv_deplibs_check_method=pass_all
12625 lt_cv_deplibs_check_method=pass_all
12629 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12630 lt_cv_file_magic_cmd='/usr/bin/file -L'
12631 lt_cv_file_magic_test_file=/shlib/libc.so
12635 # func_win32_libid is a shell function defined in ltmain.sh
12636 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12637 lt_cv_file_magic_cmd='func_win32_libid'
12641 # Base MSYS/MinGW do not provide the 'file' command needed by
12642 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12643 # unless we find 'file', for example because we are cross-compiling.
12644 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12645 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12646 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12647 lt_cv_file_magic_cmd='func_win32_libid'
12649 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12650 lt_cv_file_magic_cmd='$OBJDUMP -f'
12655 # use the weaker test based on 'objdump'. See mingw*.
12656 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12657 lt_cv_file_magic_cmd='$OBJDUMP -f'
12660 darwin* | rhapsody*)
12661 lt_cv_deplibs_check_method=pass_all
12664 freebsd* | dragonfly*)
12665 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12668 # Not sure whether the presence of OpenBSD here was a mistake.
12669 # Let's accept both of them until this is cleared up.
12670 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12671 lt_cv_file_magic_cmd=/usr/bin/file
12672 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12676 lt_cv_deplibs_check_method=pass_all
12681 lt_cv_deplibs_check_method=pass_all
12685 lt_cv_deplibs_check_method=pass_all
12688 hpux10.20* | hpux11*)
12689 lt_cv_file_magic_cmd=/usr/bin/file
12692 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12693 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12696 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]'
12697 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12700 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12701 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12707 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12711 irix5* | irix6* | nonstopux*)
12713 *-32|*"-32 ") libmagic=32-bit;;
12714 *-n32|*"-n32 ") libmagic=N32;;
12715 *-64|*"-64 ") libmagic=64-bit;;
12716 *) libmagic=never-match;;
12718 lt_cv_deplibs_check_method=pass_all
12721 # This must be Linux ELF.
12722 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12723 lt_cv_deplibs_check_method=pass_all
12727 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12728 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12735 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12736 lt_cv_file_magic_cmd=/usr/bin/file
12737 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12741 lt_cv_deplibs_check_method=pass_all
12745 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12746 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12748 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12752 osf3* | osf4* | osf5*)
12753 lt_cv_deplibs_check_method=pass_all
12757 lt_cv_deplibs_check_method=pass_all
12761 lt_cv_deplibs_check_method=pass_all
12764 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12765 lt_cv_deplibs_check_method=pass_all
12769 case $host_vendor in
12771 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]'
12772 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12775 lt_cv_deplibs_check_method=pass_all
12778 lt_cv_file_magic_cmd='/bin/file'
12779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12782 lt_cv_file_magic_cmd='/bin/file'
12783 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12784 lt_cv_file_magic_test_file=/lib/libc.so
12787 lt_cv_deplibs_check_method=pass_all
12790 lt_cv_deplibs_check_method=pass_all
12796 lt_cv_deplibs_check_method=pass_all
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12802 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12803 file_magic_cmd=$lt_cv_file_magic_cmd
12804 deplibs_check_method=$lt_cv_deplibs_check_method
12805 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12818 if test -n "$ac_tool_prefix"; then
12819 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12820 set dummy ${ac_tool_prefix}ar; ac_word=$2
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12822 $as_echo_n "checking
for $ac_word...
" >&6; }
12823 if test "${ac_cv_prog_AR+set}" = set; then :
12824 $as_echo_n "(cached
) " >&6
12826 if test -n "$AR"; then
12827 ac_cv_prog_AR="$AR" # Let the user override the test.
12829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12830 for as_dir in $PATH
12833 test -z "$as_dir" && as_dir=.
12834 for ac_exec_ext in '' $ac_executable_extensions; do
12835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12836 ac_cv_prog_AR="${ac_tool_prefix}ar"
12837 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12847 if test -n "$AR"; then
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12849 $as_echo "$AR" >&6; }
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12852 $as_echo "no
" >&6; }
12857 if test -z "$ac_cv_prog_AR"; then
12859 # Extract the first word of "ar", so it can be a program name with args.
12860 set dummy ar; ac_word=$2
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12862 $as_echo_n "checking
for $ac_word...
" >&6; }
12863 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12864 $as_echo_n "(cached
) " >&6
12866 if test -n "$ac_ct_AR"; then
12867 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870 for as_dir in $PATH
12873 test -z "$as_dir" && as_dir=.
12874 for ac_exec_ext in '' $ac_executable_extensions; do
12875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12876 ac_cv_prog_ac_ct_AR="ar"
12877 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12886 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12887 if test -n "$ac_ct_AR"; then
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12889 $as_echo "$ac_ct_AR" >&6; }
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12892 $as_echo "no
" >&6; }
12895 if test "x
$ac_ct_AR" = x; then
12898 case $cross_compiling:$ac_tool_warned in
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12901 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12902 ac_tool_warned=yes ;;
12907 AR="$ac_cv_prog_AR"
12910 test -z "$AR" && AR=ar
12911 test -z "$AR_FLAGS" && AR_FLAGS=cru
12923 if test -n "$ac_tool_prefix"; then
12924 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
12925 set dummy ${ac_tool_prefix}strip; ac_word=$2
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12927 $as_echo_n "checking
for $ac_word...
" >&6; }
12928 if test "${ac_cv_prog_STRIP+set}" = set; then :
12929 $as_echo_n "(cached
) " >&6
12931 if test -n "$STRIP"; then
12932 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12935 for as_dir in $PATH
12938 test -z "$as_dir" && as_dir=.
12939 for ac_exec_ext in '' $ac_executable_extensions; do
12940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12941 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
12942 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12951 STRIP=$ac_cv_prog_STRIP
12952 if test -n "$STRIP"; then
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12954 $as_echo "$STRIP" >&6; }
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12957 $as_echo "no
" >&6; }
12962 if test -z "$ac_cv_prog_STRIP"; then
12964 # Extract the first word of "strip
", so it can be a program name with args.
12965 set dummy strip; ac_word=$2
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12967 $as_echo_n "checking
for $ac_word...
" >&6; }
12968 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12969 $as_echo_n "(cached
) " >&6
12971 if test -n "$ac_ct_STRIP"; then
12972 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12975 for as_dir in $PATH
12978 test -z "$as_dir" && as_dir=.
12979 for ac_exec_ext in '' $ac_executable_extensions; do
12980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12981 ac_cv_prog_ac_ct_STRIP="strip
"
12982 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12991 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12992 if test -n "$ac_ct_STRIP"; then
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
12994 $as_echo "$ac_ct_STRIP" >&6; }
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12997 $as_echo "no
" >&6; }
13000 if test "x
$ac_ct_STRIP" = x; then
13003 case $cross_compiling:$ac_tool_warned in
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13006 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13007 ac_tool_warned=yes ;;
13012 STRIP="$ac_cv_prog_STRIP"
13015 test -z "$STRIP" && STRIP=:
13022 if test -n "$ac_tool_prefix"; then
13023 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13024 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13026 $as_echo_n "checking
for $ac_word...
" >&6; }
13027 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13028 $as_echo_n "(cached
) " >&6
13030 if test -n "$RANLIB"; then
13031 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13034 for as_dir in $PATH
13037 test -z "$as_dir" && as_dir=.
13038 for ac_exec_ext in '' $ac_executable_extensions; do
13039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13040 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13041 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13050 RANLIB=$ac_cv_prog_RANLIB
13051 if test -n "$RANLIB"; then
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13053 $as_echo "$RANLIB" >&6; }
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13056 $as_echo "no
" >&6; }
13061 if test -z "$ac_cv_prog_RANLIB"; then
13062 ac_ct_RANLIB=$RANLIB
13063 # Extract the first word of "ranlib
", so it can be a program name with args.
13064 set dummy ranlib; ac_word=$2
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13066 $as_echo_n "checking
for $ac_word...
" >&6; }
13067 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13068 $as_echo_n "(cached
) " >&6
13070 if test -n "$ac_ct_RANLIB"; then
13071 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13074 for as_dir in $PATH
13077 test -z "$as_dir" && as_dir=.
13078 for ac_exec_ext in '' $ac_executable_extensions; do
13079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13080 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13081 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13090 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13091 if test -n "$ac_ct_RANLIB"; then
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13093 $as_echo "$ac_ct_RANLIB" >&6; }
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13096 $as_echo "no
" >&6; }
13099 if test "x
$ac_ct_RANLIB" = x; then
13102 case $cross_compiling:$ac_tool_warned in
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13105 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13106 ac_tool_warned=yes ;;
13108 RANLIB=$ac_ct_RANLIB
13111 RANLIB="$ac_cv_prog_RANLIB"
13114 test -z "$RANLIB" && RANLIB=:
13121 # Determine commands to create old-style static archives.
13122 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13123 old_postinstall_cmds='chmod 644 $oldlib'
13124 old_postuninstall_cmds=
13126 if test -n "$RANLIB"; then
13129 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13132 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13135 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13140 lock_old_archive_extraction=yes ;;
13142 lock_old_archive_extraction=no ;;
13183 # If no C compiler was specified, use CC.
13186 # If no C compiler flags were specified, use CFLAGS.
13187 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13189 # Allow CC to be a program name with arguments.
13193 # Check for command to grab the raw symbol name followed by C symbol from nm.
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13195 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13196 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13197 $as_echo_n "(cached
) " >&6
13200 # These are sane defaults that work on at least a few old systems.
13201 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13203 # Character class describing NM global symbol codes.
13204 symcode='[BCDEGRST]'
13206 # Regexp to match symbols that can be accessed directly from C.
13207 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13209 # Define system-specific variables.
13214 cygwin* | mingw* | pw32* | cegcc*)
13215 symcode='[ABCDGISTW]'
13218 if test "$host_cpu" = ia64; then
13219 symcode='[ABCDEGRST]'
13222 irix* | nonstopux*)
13223 symcode='[BCDEGRST]'
13226 symcode='[BCDEGQRST]'
13237 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13245 # If we're using GNU nm, then use its standard symbol codes.
13246 case `$NM -V 2>&1` in
13247 *GNU* | *'with BFD'*)
13248 symcode='[ABCDGIRSTW]' ;;
13251 # Transform an extracted symbol line into a proper C declaration.
13252 # Some systems (esp. on ia64) link data and code symbols differently,
13253 # so use this general approach.
13254 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13256 # Transform an extracted symbol line into symbol name and symbol address
13257 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13258 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'"
13260 # Handle CRLF in mingw tool chain
13264 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13268 # Try without a prefix underscore, then with it.
13269 for ac_symprfx in "" "_
"; do
13271 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13272 symxfrm="\\1 $ac_symprfx\\2 \\2"
13274 # Write the raw and C identifiers.
13275 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13276 # Fake it for dumpbin and say T for any non-static function
13277 # and D for any global variable.
13278 # Also find C++ and __fastcall symbols from MSVC++,
13279 # which start with @ or ?.
13280 lt_cv_sys_global_symbol_pipe="$AWK '"\
13281 " {last_section=section; section=\$ 3};"\
13282 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13283 " \$ 0!~/External *\|/{next};"\
13284 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13285 " {if(hide[section]) next};"\
13286 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13287 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13288 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13289 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13290 " ' prfx
=^
$ac_symprfx"
13292 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13295 # Check to see that the pipe works correctly.
13299 cat > conftest.$ac_ext <<_LT_EOF
13304 void nm_test_func(void);
13305 void nm_test_func(void){}
13309 int main(){nm_test_var='a';nm_test_func();return(0);}
13312 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13313 (eval $ac_compile) 2>&5
13315 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13316 test $ac_status = 0; }; then
13317 # Now try to grab the symbols.
13319 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13320 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13322 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13323 test $ac_status = 0; } && test -s "$nlist"; then
13324 # Try sorting and uniquifying the output.
13325 if sort "$nlist" | uniq > "$nlist"T; then
13326 mv -f "$nlist"T "$nlist"
13331 # Make sure that we snagged all the symbols we need.
13332 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13333 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13334 cat <<_LT_EOF > conftest.$ac_ext
13340 # Now generate the symbol file.
13341 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13343 cat <<_LT_EOF >> conftest.$ac_ext
13345 /* The mapping between symbol names and symbols. */
13350 lt__PROGRAM__LTX_preloaded_symbols[] =
13352 { "@PROGRAM@
", (void *) 0 },
13354 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13355 cat <<\_LT_EOF >> conftest.$ac_ext
13359 /* This works around a problem in FreeBSD linker */
13360 #ifdef FREEBSD_WORKAROUND
13361 static const void *lt_preloaded_setup() {
13362 return lt__PROGRAM__LTX_preloaded_symbols;
13370 # Now try linking the two files.
13371 mv conftest.$ac_objext conftstm.$ac_objext
13372 lt_save_LIBS="$LIBS"
13373 lt_save_CFLAGS="$CFLAGS"
13374 LIBS="conftstm.
$ac_objext"
13375 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13376 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13377 (eval $ac_link) 2>&5
13379 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13380 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13383 LIBS="$lt_save_LIBS"
13384 CFLAGS="$lt_save_CFLAGS"
13386 echo "cannot
find nm_test_func
in $nlist" >&5
13389 echo "cannot
find nm_test_var
in $nlist" >&5
13392 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13395 echo "$progname: failed program was
:" >&5
13396 cat conftest.$ac_ext >&5
13398 rm -rf conftest* conftst*
13400 # Do not use the global_symbol_pipe unless it works.
13401 if test "$pipe_works" = yes; then
13404 lt_cv_sys_global_symbol_pipe=
13410 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13411 lt_cv_sys_global_symbol_to_cdecl=
13413 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13415 $as_echo "failed
" >&6; }
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13418 $as_echo "ok
" >&6; }
13442 # Check whether --enable-libtool-lock was given.
13443 if test "${enable_libtool_lock+set}" = set; then :
13444 enableval=$enable_libtool_lock;
13447 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13449 # Some flags need to be propagated to the compiler or linker for good
13453 # Find out which ABI we are using.
13454 echo 'int i;' > conftest.$ac_ext
13455 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13456 (eval $ac_compile) 2>&5
13458 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13459 test $ac_status = 0; }; then
13460 case `/usr/bin/file conftest.$ac_objext` in
13462 HPUX_IA64_MODE="32"
13465 HPUX_IA64_MODE="64"
13472 # Find out which ABI we are using.
13473 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13474 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13475 (eval $ac_compile) 2>&5
13477 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13478 test $ac_status = 0; }; then
13479 if test "$lt_cv_prog_gnu_ld" = yes; then
13480 case `/usr/bin/file conftest.$ac_objext` in
13482 LD="${LD-ld} -melf32bsmip"
13485 LD="${LD-ld} -melf32bmipn32"
13488 LD="${LD-ld} -melf64bmip"
13492 case `/usr/bin/file conftest.$ac_objext` in
13508 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13509 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13510 # Find out which ABI we are using.
13511 echo 'int i;' > conftest.$ac_ext
13512 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13513 (eval $ac_compile) 2>&5
13515 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13516 test $ac_status = 0; }; then
13517 case `/usr/bin/file conftest.o` in
13520 x86_64-*kfreebsd*-gnu)
13521 LD="${LD-ld} -m elf_i386_fbsd
"
13524 case `/usr/bin/file conftest.o` in
13526 LD="${LD-ld} -m elf32_x86_64
"
13529 LD="${LD-ld} -m elf_i386
"
13533 ppc64-*linux*|powerpc64-*linux*)
13534 LD="${LD-ld} -m elf32ppclinux
"
13537 LD="${LD-ld} -m elf_s390
"
13540 LD="${LD-ld} -m elf32_sparc
"
13546 x86_64-*kfreebsd*-gnu)
13547 LD="${LD-ld} -m elf_x86_64_fbsd
"
13550 LD="${LD-ld} -m elf_x86_64
"
13552 ppc*-*linux*|powerpc*-*linux*)
13553 LD="${LD-ld} -m elf64ppc
"
13555 s390*-*linux*|s390*-*tpf*)
13556 LD="${LD-ld} -m elf64_s390
"
13559 LD="${LD-ld} -m elf64_sparc
"
13569 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13570 SAVE_CFLAGS="$CFLAGS"
13571 CFLAGS="$CFLAGS -belf"
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13573 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13574 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13575 $as_echo_n "(cached
) " >&6
13578 ac_cpp='$CPP $CPPFLAGS'
13579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13594 if ac_fn_c_try_link "$LINENO"; then :
13595 lt_cv_cc_needs_belf=yes
13597 lt_cv_cc_needs_belf=no
13599 rm -f core conftest.err conftest.$ac_objext \
13600 conftest$ac_exeext conftest.$ac_ext
13602 ac_cpp='$CPP $CPPFLAGS'
13603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13609 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13610 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13611 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13612 CFLAGS="$SAVE_CFLAGS"
13616 # Find out which ABI we are using.
13617 echo 'int i;' > conftest.$ac_ext
13618 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13619 (eval $ac_compile) 2>&5
13621 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13622 test $ac_status = 0; }; then
13623 case `/usr/bin/file conftest.o` in
13625 case $lt_cv_prog_gnu_ld in
13626 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13628 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13640 need_locks="$enable_libtool_lock"
13644 rhapsody* | darwin*)
13645 if test -n "$ac_tool_prefix"; then
13646 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13647 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13649 $as_echo_n "checking
for $ac_word...
" >&6; }
13650 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13651 $as_echo_n "(cached
) " >&6
13653 if test -n "$DSYMUTIL"; then
13654 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13657 for as_dir in $PATH
13660 test -z "$as_dir" && as_dir=.
13661 for ac_exec_ext in '' $ac_executable_extensions; do
13662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13663 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13664 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13673 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13674 if test -n "$DSYMUTIL"; then
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13676 $as_echo "$DSYMUTIL" >&6; }
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13679 $as_echo "no
" >&6; }
13684 if test -z "$ac_cv_prog_DSYMUTIL"; then
13685 ac_ct_DSYMUTIL=$DSYMUTIL
13686 # Extract the first word of "dsymutil
", so it can be a program name with args.
13687 set dummy dsymutil; ac_word=$2
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13689 $as_echo_n "checking
for $ac_word...
" >&6; }
13690 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13691 $as_echo_n "(cached
) " >&6
13693 if test -n "$ac_ct_DSYMUTIL"; then
13694 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13697 for as_dir in $PATH
13700 test -z "$as_dir" && as_dir=.
13701 for ac_exec_ext in '' $ac_executable_extensions; do
13702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13703 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13704 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13713 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13714 if test -n "$ac_ct_DSYMUTIL"; then
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13716 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13719 $as_echo "no
" >&6; }
13722 if test "x
$ac_ct_DSYMUTIL" = x; then
13725 case $cross_compiling:$ac_tool_warned in
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13728 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13729 ac_tool_warned=yes ;;
13731 DSYMUTIL=$ac_ct_DSYMUTIL
13734 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13737 if test -n "$ac_tool_prefix"; then
13738 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13739 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13741 $as_echo_n "checking
for $ac_word...
" >&6; }
13742 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13743 $as_echo_n "(cached
) " >&6
13745 if test -n "$NMEDIT"; then
13746 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13749 for as_dir in $PATH
13752 test -z "$as_dir" && as_dir=.
13753 for ac_exec_ext in '' $ac_executable_extensions; do
13754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13755 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13756 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13765 NMEDIT=$ac_cv_prog_NMEDIT
13766 if test -n "$NMEDIT"; then
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13768 $as_echo "$NMEDIT" >&6; }
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13771 $as_echo "no
" >&6; }
13776 if test -z "$ac_cv_prog_NMEDIT"; then
13777 ac_ct_NMEDIT=$NMEDIT
13778 # Extract the first word of "nmedit
", so it can be a program name with args.
13779 set dummy nmedit; ac_word=$2
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13781 $as_echo_n "checking
for $ac_word...
" >&6; }
13782 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13783 $as_echo_n "(cached
) " >&6
13785 if test -n "$ac_ct_NMEDIT"; then
13786 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13789 for as_dir in $PATH
13792 test -z "$as_dir" && as_dir=.
13793 for ac_exec_ext in '' $ac_executable_extensions; do
13794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13795 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13796 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13805 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13806 if test -n "$ac_ct_NMEDIT"; then
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13808 $as_echo "$ac_ct_NMEDIT" >&6; }
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13811 $as_echo "no
" >&6; }
13814 if test "x
$ac_ct_NMEDIT" = x; then
13817 case $cross_compiling:$ac_tool_warned in
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13820 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13821 ac_tool_warned=yes ;;
13823 NMEDIT=$ac_ct_NMEDIT
13826 NMEDIT="$ac_cv_prog_NMEDIT"
13829 if test -n "$ac_tool_prefix"; then
13830 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13831 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13833 $as_echo_n "checking
for $ac_word...
" >&6; }
13834 if test "${ac_cv_prog_LIPO+set}" = set; then :
13835 $as_echo_n "(cached
) " >&6
13837 if test -n "$LIPO"; then
13838 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13841 for as_dir in $PATH
13844 test -z "$as_dir" && as_dir=.
13845 for ac_exec_ext in '' $ac_executable_extensions; do
13846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13847 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13848 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13857 LIPO=$ac_cv_prog_LIPO
13858 if test -n "$LIPO"; then
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13860 $as_echo "$LIPO" >&6; }
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13863 $as_echo "no
" >&6; }
13868 if test -z "$ac_cv_prog_LIPO"; then
13870 # Extract the first word of "lipo
", so it can be a program name with args.
13871 set dummy lipo; ac_word=$2
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13873 $as_echo_n "checking
for $ac_word...
" >&6; }
13874 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13875 $as_echo_n "(cached
) " >&6
13877 if test -n "$ac_ct_LIPO"; then
13878 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13881 for as_dir in $PATH
13884 test -z "$as_dir" && as_dir=.
13885 for ac_exec_ext in '' $ac_executable_extensions; do
13886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13887 ac_cv_prog_ac_ct_LIPO="lipo
"
13888 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13897 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13898 if test -n "$ac_ct_LIPO"; then
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
13900 $as_echo "$ac_ct_LIPO" >&6; }
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13903 $as_echo "no
" >&6; }
13906 if test "x
$ac_ct_LIPO" = x; then
13909 case $cross_compiling:$ac_tool_warned in
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13912 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13913 ac_tool_warned=yes ;;
13918 LIPO="$ac_cv_prog_LIPO"
13921 if test -n "$ac_tool_prefix"; then
13922 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
13923 set dummy ${ac_tool_prefix}otool; ac_word=$2
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13925 $as_echo_n "checking
for $ac_word...
" >&6; }
13926 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13927 $as_echo_n "(cached
) " >&6
13929 if test -n "$OTOOL"; then
13930 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13933 for as_dir in $PATH
13936 test -z "$as_dir" && as_dir=.
13937 for ac_exec_ext in '' $ac_executable_extensions; do
13938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13939 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
13940 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13949 OTOOL=$ac_cv_prog_OTOOL
13950 if test -n "$OTOOL"; then
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13952 $as_echo "$OTOOL" >&6; }
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13955 $as_echo "no
" >&6; }
13960 if test -z "$ac_cv_prog_OTOOL"; then
13962 # Extract the first word of "otool
", so it can be a program name with args.
13963 set dummy otool; ac_word=$2
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13965 $as_echo_n "checking
for $ac_word...
" >&6; }
13966 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13967 $as_echo_n "(cached
) " >&6
13969 if test -n "$ac_ct_OTOOL"; then
13970 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13973 for as_dir in $PATH
13976 test -z "$as_dir" && as_dir=.
13977 for ac_exec_ext in '' $ac_executable_extensions; do
13978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13979 ac_cv_prog_ac_ct_OTOOL="otool
"
13980 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13989 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13990 if test -n "$ac_ct_OTOOL"; then
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
13992 $as_echo "$ac_ct_OTOOL" >&6; }
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13995 $as_echo "no
" >&6; }
13998 if test "x
$ac_ct_OTOOL" = x; then
14001 case $cross_compiling:$ac_tool_warned in
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14004 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14005 ac_tool_warned=yes ;;
14010 OTOOL="$ac_cv_prog_OTOOL"
14013 if test -n "$ac_tool_prefix"; then
14014 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14015 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14017 $as_echo_n "checking
for $ac_word...
" >&6; }
14018 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14019 $as_echo_n "(cached
) " >&6
14021 if test -n "$OTOOL64"; then
14022 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14025 for as_dir in $PATH
14028 test -z "$as_dir" && as_dir=.
14029 for ac_exec_ext in '' $ac_executable_extensions; do
14030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14031 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14032 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14041 OTOOL64=$ac_cv_prog_OTOOL64
14042 if test -n "$OTOOL64"; then
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14044 $as_echo "$OTOOL64" >&6; }
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14047 $as_echo "no
" >&6; }
14052 if test -z "$ac_cv_prog_OTOOL64"; then
14053 ac_ct_OTOOL64=$OTOOL64
14054 # Extract the first word of "otool64
", so it can be a program name with args.
14055 set dummy otool64; ac_word=$2
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14057 $as_echo_n "checking
for $ac_word...
" >&6; }
14058 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14059 $as_echo_n "(cached
) " >&6
14061 if test -n "$ac_ct_OTOOL64"; then
14062 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14065 for as_dir in $PATH
14068 test -z "$as_dir" && as_dir=.
14069 for ac_exec_ext in '' $ac_executable_extensions; do
14070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14071 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14072 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14081 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14082 if test -n "$ac_ct_OTOOL64"; then
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14084 $as_echo "$ac_ct_OTOOL64" >&6; }
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14087 $as_echo "no
" >&6; }
14090 if test "x
$ac_ct_OTOOL64" = x; then
14093 case $cross_compiling:$ac_tool_warned in
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14096 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14097 ac_tool_warned=yes ;;
14099 OTOOL64=$ac_ct_OTOOL64
14102 OTOOL64="$ac_cv_prog_OTOOL64"
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14132 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14133 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14134 $as_echo_n "(cached
) " >&6
14136 lt_cv_apple_cc_single_mod=no
14137 if test -z "${LT_MULTI_MODULE}"; then
14138 # By default we will add the -single_module flag. You can override
14139 # by either setting the environment variable LT_MULTI_MODULE
14140 # non-empty at configure time, or by adding -multi_module to the
14142 rm -rf libconftest.dylib*
14143 echo "int foo
(void
){return 1;}" > conftest.c
14144 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14145 -dynamiclib -Wl,-single_module conftest.c
" >&5
14146 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14147 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14149 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14150 lt_cv_apple_cc_single_mod=yes
14152 cat conftest.err >&5
14154 rm -rf libconftest.dylib*
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14159 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14161 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14162 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14163 $as_echo_n "(cached
) " >&6
14165 lt_cv_ld_exported_symbols_list=no
14166 save_LDFLAGS=$LDFLAGS
14167 echo "_main
" > conftest.sym
14168 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14170 /* end confdefs.h. */
14180 if ac_fn_c_try_link "$LINENO"; then :
14181 lt_cv_ld_exported_symbols_list=yes
14183 lt_cv_ld_exported_symbols_list=no
14185 rm -f core conftest.err conftest.$ac_objext \
14186 conftest$ac_exeext conftest.$ac_ext
14187 LDFLAGS="$save_LDFLAGS"
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14191 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14193 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14194 if test "${lt_cv_ld_force_load+set}" = set; then :
14195 $as_echo_n "(cached
) " >&6
14197 lt_cv_ld_force_load=no
14198 cat > conftest.c << _LT_EOF
14199 int forced_loaded() { return 2;}
14201 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14202 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14203 echo "$AR cru libconftest.a conftest.o
" >&5
14204 $AR cru libconftest.a conftest.o 2>&5
14205 cat > conftest.c << _LT_EOF
14206 int main() { return 0;}
14208 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14209 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14211 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14212 lt_cv_ld_force_load=yes
14214 cat conftest.err >&5
14216 rm -f conftest.err libconftest.a conftest conftest.c
14217 rm -rf conftest.dSYM
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14221 $as_echo "$lt_cv_ld_force_load" >&6; }
14223 rhapsody* | darwin1.[012])
14224 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14226 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14227 darwin*) # darwin 5.x on
14228 # if running on 10.5 or later, the deployment target defaults
14229 # to the OS version, if on x86, and 10.4, the deployment
14230 # target defaults to 10.4. Don't you love it?
14231 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14232 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14233 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14235 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14237 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14241 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14242 _lt_dar_single_mod='$single_module'
14244 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14245 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14247 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14249 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14250 _lt_dsymutil='~$DSYMUTIL $lib || :'
14257 for ac_header in dlfcn.h
14259 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14260 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14261 cat >>confdefs.h <<_ACEOF
14262 #define HAVE_DLFCN_H 1
14279 enable_win32_dll=no
14282 # Check whether --enable-shared was given.
14283 if test "${enable_shared+set}" = set; then :
14284 enableval=$enable_shared; p=${PACKAGE-default}
14286 yes) enable_shared=yes ;;
14287 no) enable_shared=no ;;
14290 # Look at the argument we got. We use all the common list separators.
14291 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14292 for pkg in $enableval; do
14294 if test "X
$pkg" = "X
$p"; then
14313 # Check whether --enable-static was given.
14314 if test "${enable_static+set}" = set; then :
14315 enableval=$enable_static; p=${PACKAGE-default}
14317 yes) enable_static=yes ;;
14318 no) enable_static=no ;;
14321 # Look at the argument we got. We use all the common list separators.
14322 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14323 for pkg in $enableval; do
14325 if test "X
$pkg" = "X
$p"; then
14345 # Check whether --with-pic was given.
14346 if test "${with_pic+set}" = set; then :
14347 withval=$with_pic; pic_mode="$withval"
14353 test -z "$pic_mode" && pic_mode=default
14361 # Check whether --enable-fast-install was given.
14362 if test "${enable_fast_install+set}" = set; then :
14363 enableval=$enable_fast_install; p=${PACKAGE-default}
14365 yes) enable_fast_install=yes ;;
14366 no) enable_fast_install=no ;;
14368 enable_fast_install=no
14369 # Look at the argument we got. We use all the common list separators.
14370 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14371 for pkg in $enableval; do
14373 if test "X
$pkg" = "X
$p"; then
14374 enable_fast_install=yes
14381 enable_fast_install=yes
14394 # This can be used to rebuild libtool when needed
14395 LIBTOOL_DEPS="$ltmain"
14397 # Always use our own libtool.
14398 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14425 test -z "$LN_S" && LN_S="ln -s"
14440 if test -n "${ZSH_VERSION+set}" ; then
14441 setopt NO_GLOB_SUBST
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14445 $as_echo_n "checking
for objdir...
" >&6; }
14446 if test "${lt_cv_objdir+set}" = set; then :
14447 $as_echo_n "(cached
) " >&6
14449 rm -f .libs 2>/dev/null
14450 mkdir .libs 2>/dev/null
14451 if test -d .libs; then
14454 # MS-DOS does not allow filenames that begin with a dot.
14457 rmdir .libs 2>/dev/null
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14460 $as_echo "$lt_cv_objdir" >&6; }
14461 objdir=$lt_cv_objdir
14467 cat >>confdefs.h <<_ACEOF
14468 #define LT_OBJDIR "$lt_cv_objdir/"
14476 # AIX sometimes has problems with the GCC collect2 program. For some
14477 # reason, if we set the COLLECT_NAMES environment variable, the problems
14478 # vanish in a puff of smoke.
14479 if test "X
${COLLECT_NAMES+set}" != Xset; then
14481 export COLLECT_NAMES
14486 # Global variables:
14488 can_build_shared=yes
14490 # All known linkers require a `.a' archive for static linking (except MSVC,
14491 # which needs '.lib').
14494 with_gnu_ld="$lt_cv_prog_gnu_ld"
14497 old_CFLAGS="$CFLAGS"
14499 # Set sane defaults for various variables
14500 test -z "$CC" && CC=cc
14501 test -z "$LTCC" && LTCC=$CC
14502 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14503 test -z "$LD" && LD=ld
14504 test -z "$ac_objext" && ac_objext=o
14506 for cc_temp in $compiler""; do
14508 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14509 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14514 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14517 # Only perform the check for file, if the check method requires it
14518 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14519 case $deplibs_check_method in
14521 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14523 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14524 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14525 $as_echo_n "(cached
) " >&6
14529 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14532 lt_save_MAGIC_CMD="$MAGIC_CMD"
14533 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14534 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14535 for ac_dir in $ac_dummy; do
14537 test -z "$ac_dir" && ac_dir=.
14538 if test -f $ac_dir/${ac_tool_prefix}file; then
14539 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14540 if test -n "$file_magic_test_file"; then
14541 case $deplibs_check_method in
14543 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14544 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14545 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14546 $EGREP "$file_magic_regex" > /dev/null; then
14551 *** Warning: the command libtool uses to detect shared libraries,
14552 *** $file_magic_cmd, produces output that libtool cannot recognize.
14553 *** The result is that libtool may fail to recognize shared libraries
14554 *** as such. This will affect the creation of libtool libraries that
14555 *** depend on shared libraries, but programs linked with such libtool
14556 *** libraries will work regardless of this problem. Nevertheless, you
14557 *** may want to report the problem to your system manager and/or to
14558 *** bug-libtool@gnu.org
14568 MAGIC_CMD="$lt_save_MAGIC_CMD"
14573 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14574 if test -n "$MAGIC_CMD"; then
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14576 $as_echo "$MAGIC_CMD" >&6; }
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14579 $as_echo "no
" >&6; }
14586 if test -z "$lt_cv_path_MAGIC_CMD"; then
14587 if test -n "$ac_tool_prefix"; then
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14589 $as_echo_n "checking
for file...
" >&6; }
14590 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14591 $as_echo_n "(cached
) " >&6
14595 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14598 lt_save_MAGIC_CMD="$MAGIC_CMD"
14599 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14600 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14601 for ac_dir in $ac_dummy; do
14603 test -z "$ac_dir" && ac_dir=.
14604 if test -f $ac_dir/file; then
14605 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14606 if test -n "$file_magic_test_file"; then
14607 case $deplibs_check_method in
14609 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14610 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14611 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14612 $EGREP "$file_magic_regex" > /dev/null; then
14617 *** Warning: the command libtool uses to detect shared libraries,
14618 *** $file_magic_cmd, produces output that libtool cannot recognize.
14619 *** The result is that libtool may fail to recognize shared libraries
14620 *** as such. This will affect the creation of libtool libraries that
14621 *** depend on shared libraries, but programs linked with such libtool
14622 *** libraries will work regardless of this problem. Nevertheless, you
14623 *** may want to report the problem to your system manager and/or to
14624 *** bug-libtool@gnu.org
14634 MAGIC_CMD="$lt_save_MAGIC_CMD"
14639 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14640 if test -n "$MAGIC_CMD"; then
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14642 $as_echo "$MAGIC_CMD" >&6; }
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14645 $as_echo "no
" >&6; }
14658 # Use C for the default configuration in the libtool script
14662 ac_cpp='$CPP $CPPFLAGS'
14663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14668 # Source file extension for C test sources.
14671 # Object file extension for compiled C test sources.
14675 # Code to be used in simple compile tests
14676 lt_simple_compile_test_code="int some_variable
= 0;"
14678 # Code to be used in simple link tests
14679 lt_simple_link_test_code='int main(){return(0);}'
14687 # If no C compiler was specified, use CC.
14690 # If no C compiler flags were specified, use CFLAGS.
14691 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14693 # Allow CC to be a program name with arguments.
14696 # Save the default compiler, since it gets overwritten when the other
14697 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14698 compiler_DEFAULT=$CC
14700 # save warnings/boilerplate of simple test code
14701 ac_outfile=conftest.$ac_objext
14702 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14703 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14704 _lt_compiler_boilerplate=`cat conftest.err`
14707 ac_outfile=conftest.$ac_objext
14708 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14709 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14710 _lt_linker_boilerplate=`cat conftest.err`
14715 ## There is no encapsulation within the following macros, do not change
14716 ## the running order or otherwise move them around unless you know exactly
14717 ## what you are doing...
14718 if test -n "$compiler"; then
14720 lt_prog_compiler_no_builtin_flag=
14722 if test "$GCC" = yes; then
14723 case $cc_basename in
14725 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14727 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14731 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14732 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14733 $as_echo_n "(cached
) " >&6
14735 lt_cv_prog_compiler_rtti_exceptions=no
14736 ac_outfile=conftest.$ac_objext
14737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14738 lt_compiler_flag="-fno-rtti -fno-exceptions"
14739 # Insert the option either (1) after the last *FLAGS variable, or
14740 # (2) before a word containing "conftest.
", or (3) at the end.
14741 # Note that $ac_compile itself does not contain backslashes and begins
14742 # with a dollar sign (not a hyphen), so the echo should work correctly.
14743 # The option is referenced via a variable to avoid confusing sed.
14744 lt_compile=`echo "$ac_compile" | $SED \
14745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14747 -e 's:$: $lt_compiler_flag:'`
14748 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14749 (eval "$lt_compile" 2>conftest.err)
14751 cat conftest.err >&5
14752 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14753 if (exit $ac_status) && test -s "$ac_outfile"; then
14754 # The compiler can only warn and ignore the option if not recognized
14755 # So say no if there are warnings other than the usual output.
14756 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14758 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14759 lt_cv_prog_compiler_rtti_exceptions=yes
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14766 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14768 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14769 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14781 lt_prog_compiler_wl=
14782 lt_prog_compiler_pic=
14783 lt_prog_compiler_static=
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14786 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14788 if test "$GCC" = yes; then
14789 lt_prog_compiler_wl='-Wl,'
14790 lt_prog_compiler_static='-static'
14794 # All AIX code is PIC.
14795 if test "$host_cpu" = ia64; then
14796 # AIX 5 now supports IA64 processor
14797 lt_prog_compiler_static='-Bstatic'
14804 # see comment about AmigaOS4 .so support
14805 lt_prog_compiler_pic='-fPIC'
14808 # FIXME: we need at least 68020 code to build shared libraries, but
14809 # adding the `-m68020' flag to GCC prevents building anything better,
14811 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14816 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14817 # PIC is the default for these OSes.
14820 mingw* | cygwin* | pw32* | os2* | cegcc*)
14821 # This hack is so that the source file can tell whether it is being
14822 # built for inclusion in a dll (and should export symbols for example).
14823 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14824 # (--disable-auto-import) libraries
14825 lt_prog_compiler_pic='-DDLL_EXPORT'
14828 darwin* | rhapsody*)
14829 # PIC is the default on this platform
14830 # Common symbols not allowed in MH_DYLIB files
14831 lt_prog_compiler_pic='-fno-common'
14835 # PIC is the default for Haiku.
14836 # The "-static" flag exists, but is broken.
14837 lt_prog_compiler_static=
14841 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14842 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14843 # sets the default TLS model and affects inlining.
14849 lt_prog_compiler_pic='-fPIC'
14855 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14856 # Instead, we relocate shared libraries at runtime.
14860 # Just because we use GCC doesn't mean we suddenly get shared libraries
14861 # on systems that don't support them.
14862 lt_prog_compiler_can_build_shared=no
14867 # QNX uses GNU C++, but need to define -shared option too, otherwise
14868 # it will coredump.
14869 lt_prog_compiler_pic='-fPIC -shared'
14873 if test -d /usr/nec; then
14874 lt_prog_compiler_pic=-Kconform_pic
14879 lt_prog_compiler_pic='-fPIC'
14883 case $cc_basename in
14884 nvcc*) # Cuda Compiler Driver 2.2
14885 lt_prog_compiler_wl='-Xlinker '
14886 lt_prog_compiler_pic='-Xcompiler -fPIC'
14890 # PORTME Check for flag to pass linker flags through the system compiler.
14893 lt_prog_compiler_wl='-Wl,'
14894 if test "$host_cpu" = ia64; then
14895 # AIX 5 now supports IA64 processor
14896 lt_prog_compiler_static='-Bstatic'
14898 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14902 mingw* | cygwin* | pw32* | os2* | cegcc*)
14903 # This hack is so that the source file can tell whether it is being
14904 # built for inclusion in a dll (and should export symbols for example).
14905 lt_prog_compiler_pic='-DDLL_EXPORT'
14908 hpux9* | hpux10* | hpux11*)
14909 lt_prog_compiler_wl='-Wl,'
14910 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14911 # not for PA HP-UX.
14917 lt_prog_compiler_pic='+Z'
14920 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14921 lt_prog_compiler_static='${wl}-a ${wl}archive'
14924 irix5* | irix6* | nonstopux*)
14925 lt_prog_compiler_wl='-Wl,'
14926 # PIC (with -KPIC) is the default.
14927 lt_prog_compiler_static='-non_shared'
14930 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14931 case $cc_basename in
14932 # old Intel for x86_64 which still supported -KPIC.
14934 lt_prog_compiler_wl='-Wl,'
14935 lt_prog_compiler_pic='-KPIC'
14936 lt_prog_compiler_static='-static'
14938 # icc used to be incompatible with GCC.
14939 # ICC 10 doesn't accept -KPIC any more.
14941 lt_prog_compiler_wl='-Wl,'
14942 lt_prog_compiler_pic='-fPIC'
14943 lt_prog_compiler_static='-static'
14945 # Lahey Fortran 8.1.
14947 lt_prog_compiler_wl='-Wl,'
14948 lt_prog_compiler_pic='--shared'
14949 lt_prog_compiler_static='--static'
14951 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14952 # Portland Group compilers (*not* the Pentium gcc compiler,
14953 # which looks to be a dead project)
14954 lt_prog_compiler_wl='-Wl,'
14955 lt_prog_compiler_pic='-fpic'
14956 lt_prog_compiler_static='-Bstatic'
14959 lt_prog_compiler_wl='-Wl,'
14960 # All Alpha code is PIC.
14961 lt_prog_compiler_static='-non_shared'
14963 xl* | bgxl* | bgf* | mpixl*)
14964 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14965 lt_prog_compiler_wl='-Wl,'
14966 lt_prog_compiler_pic='-qpic'
14967 lt_prog_compiler_static='-qstaticlink'
14970 case `$CC -V 2>&1 | sed 5q` in
14971 *Sun\ F* | *Sun*Fortran*)
14972 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14973 lt_prog_compiler_pic='-KPIC'
14974 lt_prog_compiler_static='-Bstatic'
14975 lt_prog_compiler_wl=''
14979 lt_prog_compiler_pic='-KPIC'
14980 lt_prog_compiler_static='-Bstatic'
14981 lt_prog_compiler_wl='-Wl,'
14989 lt_prog_compiler_pic='-KPIC'
14990 lt_prog_compiler_static='-Bstatic'
14994 # QNX uses GNU C++, but need to define -shared option too, otherwise
14995 # it will coredump.
14996 lt_prog_compiler_pic='-fPIC -shared'
14999 osf3* | osf4* | osf5*)
15000 lt_prog_compiler_wl='-Wl,'
15001 # All OSF/1 code is PIC.
15002 lt_prog_compiler_static='-non_shared'
15006 lt_prog_compiler_static='-non_shared'
15010 lt_prog_compiler_pic='-KPIC'
15011 lt_prog_compiler_static='-Bstatic'
15012 case $cc_basename in
15013 f77* | f90* | f95*)
15014 lt_prog_compiler_wl='-Qoption ld ';;
15016 lt_prog_compiler_wl='-Wl,';;
15021 lt_prog_compiler_wl='-Qoption ld '
15022 lt_prog_compiler_pic='-PIC'
15023 lt_prog_compiler_static='-Bstatic'
15026 sysv4 | sysv4.2uw2* | sysv4.3*)
15027 lt_prog_compiler_wl='-Wl,'
15028 lt_prog_compiler_pic='-KPIC'
15029 lt_prog_compiler_static='-Bstatic'
15033 if test -d /usr/nec ;then
15034 lt_prog_compiler_pic='-Kconform_pic'
15035 lt_prog_compiler_static='-Bstatic'
15039 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15040 lt_prog_compiler_wl='-Wl,'
15041 lt_prog_compiler_pic='-KPIC'
15042 lt_prog_compiler_static='-Bstatic'
15046 lt_prog_compiler_wl='-Wl,'
15047 lt_prog_compiler_can_build_shared=no
15051 lt_prog_compiler_pic='-pic'
15052 lt_prog_compiler_static='-Bstatic'
15056 lt_prog_compiler_can_build_shared=no
15062 # For platforms which do not support PIC, -DPIC is meaningless:
15064 lt_prog_compiler_pic=
15067 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15071 $as_echo "$lt_prog_compiler_pic" >&6; }
15079 # Check to make sure the PIC flag actually works.
15081 if test -n "$lt_prog_compiler_pic"; then
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15083 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15084 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15085 $as_echo_n "(cached
) " >&6
15087 lt_cv_prog_compiler_pic_works=no
15088 ac_outfile=conftest.$ac_objext
15089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15090 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15091 # Insert the option either (1) after the last *FLAGS variable, or
15092 # (2) before a word containing "conftest.
", or (3) at the end.
15093 # Note that $ac_compile itself does not contain backslashes and begins
15094 # with a dollar sign (not a hyphen), so the echo should work correctly.
15095 # The option is referenced via a variable to avoid confusing sed.
15096 lt_compile=`echo "$ac_compile" | $SED \
15097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15099 -e 's:$: $lt_compiler_flag:'`
15100 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15101 (eval "$lt_compile" 2>conftest.err)
15103 cat conftest.err >&5
15104 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15105 if (exit $ac_status) && test -s "$ac_outfile"; then
15106 # The compiler can only warn and ignore the option if not recognized
15107 # So say no if there are warnings other than the usual output.
15108 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15110 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15111 lt_cv_prog_compiler_pic_works=yes
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15118 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15120 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15121 case $lt_prog_compiler_pic in
15123 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15126 lt_prog_compiler_pic=
15127 lt_prog_compiler_can_build_shared=no
15138 # Check to make sure the static flag actually works.
15140 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15142 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15143 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15144 $as_echo_n "(cached
) " >&6
15146 lt_cv_prog_compiler_static_works=no
15147 save_LDFLAGS="$LDFLAGS"
15148 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15149 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15150 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15151 # The linker can only warn and ignore the option if not recognized
15152 # So say no if there are warnings
15153 if test -s conftest.err; then
15154 # Append any errors to the config.log.
15155 cat conftest.err 1>&5
15156 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15157 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15158 if diff conftest.exp conftest.er2 >/dev/null; then
15159 lt_cv_prog_compiler_static_works=yes
15162 lt_cv_prog_compiler_static_works=yes
15166 LDFLAGS="$save_LDFLAGS"
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15170 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15172 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15175 lt_prog_compiler_static=
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15185 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15186 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15187 $as_echo_n "(cached
) " >&6
15189 lt_cv_prog_compiler_c_o=no
15190 $RM -r conftest 2>/dev/null
15194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15196 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15197 # Insert the option either (1) after the last *FLAGS variable, or
15198 # (2) before a word containing "conftest.
", or (3) at the end.
15199 # Note that $ac_compile itself does not contain backslashes and begins
15200 # with a dollar sign (not a hyphen), so the echo should work correctly.
15201 lt_compile=`echo "$ac_compile" | $SED \
15202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15204 -e 's:$: $lt_compiler_flag:'`
15205 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15206 (eval "$lt_compile" 2>out/conftest.err)
15208 cat out/conftest.err >&5
15209 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15210 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15212 # The compiler can only warn and ignore the option if not recognized
15213 # So say no if there are warnings
15214 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15215 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15216 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15217 lt_cv_prog_compiler_c_o=yes
15222 # SGI C++ compiler will create directory out/ii_files/ for
15223 # template instantiation
15224 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15225 $RM out/* && rmdir out
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15232 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15240 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15241 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15242 $as_echo_n "(cached
) " >&6
15244 lt_cv_prog_compiler_c_o=no
15245 $RM -r conftest 2>/dev/null
15249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15251 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15252 # Insert the option either (1) after the last *FLAGS variable, or
15253 # (2) before a word containing "conftest.
", or (3) at the end.
15254 # Note that $ac_compile itself does not contain backslashes and begins
15255 # with a dollar sign (not a hyphen), so the echo should work correctly.
15256 lt_compile=`echo "$ac_compile" | $SED \
15257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15259 -e 's:$: $lt_compiler_flag:'`
15260 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15261 (eval "$lt_compile" 2>out/conftest.err)
15263 cat out/conftest.err >&5
15264 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15265 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15267 # The compiler can only warn and ignore the option if not recognized
15268 # So say no if there are warnings
15269 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15270 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15271 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15272 lt_cv_prog_compiler_c_o=yes
15277 # SGI C++ compiler will create directory out/ii_files/ for
15278 # template instantiation
15279 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15280 $RM out/* && rmdir out
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15287 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15292 hard_links="nottested
"
15293 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15294 # do not overwrite the value of need_locks provided by the user
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15296 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15299 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15301 ln conftest.a conftest.b 2>&5 || hard_links=no
15302 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15304 $as_echo "$hard_links" >&6; }
15305 if test "$hard_links" = no; then
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15307 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15320 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15323 allow_undefined_flag=
15324 always_export_symbols=no
15326 archive_expsym_cmds=
15327 compiler_needs_object=no
15328 enable_shared_with_static_runtimes=no
15329 export_dynamic_flag_spec=
15330 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15331 hardcode_automatic=no
15333 hardcode_direct_absolute=no
15334 hardcode_libdir_flag_spec=
15335 hardcode_libdir_flag_spec_ld=
15336 hardcode_libdir_separator=
15337 hardcode_minus_L=no
15338 hardcode_shlibpath_var=unsupported
15340 link_all_deplibs=unknown
15342 module_expsym_cmds=
15343 old_archive_from_new_cmds=
15344 old_archive_from_expsyms_cmds=
15345 thread_safe_flag_spec=
15346 whole_archive_flag_spec=
15347 # include_expsyms should be a list of space-separated symbols to be *always*
15348 # included in the symbol list
15350 # exclude_expsyms can be an extended regexp of symbols to exclude
15351 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15352 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15353 # as well as any symbol that contains `d'.
15354 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15355 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15356 # platforms (ab)use it in PIC code, but their linkers get confused if
15357 # the symbol is explicitly referenced. Since portable code cannot
15358 # rely on this symbol name, it's probably fine to never include it in
15359 # preloaded symbol tables.
15360 # Exclude shared library initialization/finalization symbols.
15361 extract_expsyms_cmds=
15364 cygwin* | mingw* | pw32* | cegcc*)
15365 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15366 # When not using gcc, we currently assume that we are using
15367 # Microsoft Visual C++.
15368 if test "$GCC" != yes; then
15373 # we just hope/assume this is gcc and not c89 (= MSVC++)
15383 # On some targets, GNU ld is compatible enough with the native linker
15384 # that we're better off using the native interface for both.
15385 lt_use_gnu_ld_interface=no
15386 if test "$with_gnu_ld" = yes; then
15389 # The AIX port of GNU ld has always aspired to compatibility
15390 # with the native linker. However, as the warning in the GNU ld
15391 # block says, versions before 2.19.5* couldn't really create working
15392 # shared libraries, regardless of the interface used.
15393 case `$LD -v 2>&1` in
15394 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15395 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15396 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15398 lt_use_gnu_ld_interface=yes
15403 lt_use_gnu_ld_interface=yes
15408 if test "$lt_use_gnu_ld_interface" = yes; then
15409 # If archive_cmds runs LD, not CC, wlarc should be empty
15412 # Set some defaults for GNU ld with shared library support. These
15413 # are reset later if shared libraries are not supported. Putting them
15414 # here allows them to be overridden if necessary.
15415 runpath_var=LD_RUN_PATH
15416 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15417 export_dynamic_flag_spec='${wl}--export-dynamic'
15418 # ancient GNU ld didn't support --whole-archive et. al.
15419 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15420 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15422 whole_archive_flag_spec=
15424 supports_anon_versioning=no
15425 case `$LD -v 2>&1` in
15426 *GNU\ gold*) supports_anon_versioning=yes ;;
15427 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15428 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15429 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15430 *\ 2.11.*) ;; # other 2.11 versions
15431 *) supports_anon_versioning=yes ;;
15434 # See if GNU ld supports shared libraries.
15437 # On AIX/PPC, the GNU linker is very broken
15438 if test "$host_cpu" != ia64; then
15442 *** Warning: the GNU linker, at least up to release 2.19, is reported
15443 *** to be unable to reliably create shared libraries on AIX.
15444 *** Therefore, libtool is disabling shared libraries support. If you
15445 *** really care for shared libraries, you may want to install binutils
15446 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15447 *** You will then need to restart the configuration process.
15456 # see comment about AmigaOS4 .so support
15457 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15458 archive_expsym_cmds=''
15461 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)'
15462 hardcode_libdir_flag_spec
='-L$libdir'
15463 hardcode_minus_L
=yes
15469 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15470 allow_undefined_flag
=unsupported
15471 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15472 # support --undefined. This deserves some investigation. FIXME
15473 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15479 cygwin
* | mingw
* | pw32
* | cegcc
*)
15480 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15481 # as there is no search path for DLLs.
15482 hardcode_libdir_flag_spec
='-L$libdir'
15483 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15484 allow_undefined_flag
=unsupported
15485 always_export_symbols
=no
15486 enable_shared_with_static_runtimes
=yes
15487 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15489 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15490 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15491 # If the export-symbols file already is a .def file (1st line
15492 # is EXPORTS), use it as is; otherwise, prepend...
15493 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15494 cp $export_symbols $output_objdir/$soname.def;
15496 echo EXPORTS > $output_objdir/$soname.def;
15497 cat $export_symbols >> $output_objdir/$soname.def;
15499 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15506 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15507 link_all_deplibs
=yes
15512 hardcode_shlibpath_var
=no
15513 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15514 export_dynamic_flag_spec
='${wl}-E'
15515 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15516 # Instead, shared libraries are loaded at an image base (0x10000000 by
15517 # default) and relocated if they conflict, which is a slow very memory
15518 # consuming and fragmenting process. To avoid this, we pick a random,
15519 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15520 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15521 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15522 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'
15525 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15527 if test "$host_os" = linux-dietlibc
; then
15528 case $cc_basename in
15529 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15532 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15533 && test "$tmp_diet" = no
15536 tmp_sharedflag
='-shared'
15537 case $cc_basename,$host_cpu in
15538 pgcc
*) # Portland Group C compiler
15539 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'
15540 tmp_addflag
=' $pic_flag'
15542 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15543 # Portland Group f77 and f90 compilers
15544 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'
15545 tmp_addflag
=' $pic_flag -Mnomain' ;;
15546 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15547 tmp_addflag
=' -i_dynamic' ;;
15548 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15549 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15550 ifc
* | ifort
*) # Intel Fortran compiler
15551 tmp_addflag
=' -nofor_main' ;;
15552 lf95
*) # Lahey Fortran 8.1
15553 whole_archive_flag_spec
=
15554 tmp_sharedflag
='--shared' ;;
15555 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15556 tmp_sharedflag
='-qmkshrobj'
15558 nvcc
*) # Cuda Compiler Driver 2.2
15559 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'
15560 compiler_needs_object
=yes
15563 case `$CC -V 2>&1 | sed 5q` in
15564 *Sun\ C
*) # Sun C 5.9
15565 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'
15566 compiler_needs_object
=yes
15567 tmp_sharedflag
='-G' ;;
15568 *Sun\ F
*) # Sun Fortran 8.3
15569 tmp_sharedflag
='-G' ;;
15571 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15573 if test "x$supports_anon_versioning" = xyes
; then
15574 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15575 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15576 echo "local: *; };" >> $output_objdir/$libname.ver~
15577 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15580 case $cc_basename in
15581 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15582 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15583 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15584 hardcode_libdir_flag_spec
=
15585 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15586 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15587 if test "x$supports_anon_versioning" = xyes
; then
15588 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15589 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15590 echo "local: *; };" >> $output_objdir/$libname.ver~
15591 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15601 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15602 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15605 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15606 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15611 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15615 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15616 *** create shared libraries on Solaris systems. Therefore, libtool
15617 *** is disabling shared libraries support. We urge you to upgrade GNU
15618 *** binutils to release 2.9.1 or newer. Another option is to modify
15619 *** your PATH or compiler configuration so that the native linker is
15620 *** used, and then restart.
15623 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15624 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15625 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15631 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15632 case `$LD -v 2>&1` in
15633 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15637 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15638 *** reliably create shared libraries on SCO systems. Therefore, libtool
15639 *** is disabling shared libraries support. We urge you to upgrade GNU
15640 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15641 *** your PATH or compiler configuration so that the native linker is
15642 *** used, and then restart.
15647 # For security reasons, it is highly recommended that you always
15648 # use absolute paths for naming shared libraries, and exclude the
15649 # DT_RUNPATH tag from executables and libraries. But doing so
15650 # requires that you compile everything twice, which is a pain.
15651 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15652 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15653 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15654 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15663 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15665 hardcode_direct
=yes
15666 hardcode_shlibpath_var
=no
15670 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15671 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15672 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15679 if test "$ld_shlibs" = no
; then
15681 hardcode_libdir_flag_spec
=
15682 export_dynamic_flag_spec
=
15683 whole_archive_flag_spec
=
15686 # PORTME fill in a description of your system's linker (not GNU ld)
15689 allow_undefined_flag
=unsupported
15690 always_export_symbols
=yes
15691 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'
15692 # Note: this linker hardcodes the directories in LIBPATH if there
15693 # are no directories specified by -L.
15694 hardcode_minus_L
=yes
15695 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15696 # Neither direct hardcoding nor static linking is supported with a
15698 hardcode_direct
=unsupported
15703 if test "$host_cpu" = ia64
; then
15704 # On IA64, the linker does run time linking by default, so we don't
15705 # have to do anything special.
15706 aix_use_runtimelinking
=no
15707 exp_sym_flag
='-Bexport'
15710 # If we're using GNU nm, then we don't want the "-C" option.
15711 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15712 # Also, AIX nm treats weak defined symbols like other global
15713 # defined symbols, whereas GNU nm marks them as "W".
15714 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15715 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'
15717 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'
15719 aix_use_runtimelinking
=no
15721 # Test if we are trying to use run time linking or normal
15722 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15723 # need to do runtime linking.
15724 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15725 for ld_flag
in $LDFLAGS; do
15726 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15727 aix_use_runtimelinking
=yes
15734 exp_sym_flag
='-bexport'
15735 no_entry_flag
='-bnoentry'
15738 # When large executables or shared objects are built, AIX ld can
15739 # have problems creating the table of contents. If linking a library
15740 # or program results in "error TOC overflow" add -mminimal-toc to
15741 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15742 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15745 hardcode_direct
=yes
15746 hardcode_direct_absolute
=yes
15747 hardcode_libdir_separator
=':'
15748 link_all_deplibs
=yes
15749 file_list_spec
='${wl}-f,'
15751 if test "$GCC" = yes; then
15752 case $host_os in aix4.
[012]|aix4.
[012].
*)
15753 # We only want to do this on AIX 4.2 and lower, the check
15754 # below for broken collect2 doesn't work under 4.3+
15755 collect2name
=`${CC} -print-prog-name=collect2`
15756 if test -f "$collect2name" &&
15757 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15759 # We have reworked collect2
15762 # We have old collect2
15763 hardcode_direct
=unsupported
15764 # It fails to find uninstalled libraries when the uninstalled
15765 # path is not listed in the libpath. Setting hardcode_minus_L
15766 # to unsupported forces relinking
15767 hardcode_minus_L
=yes
15768 hardcode_libdir_flag_spec
='-L$libdir'
15769 hardcode_libdir_separator
=
15773 shared_flag
='-shared'
15774 if test "$aix_use_runtimelinking" = yes; then
15775 shared_flag
="$shared_flag "'${wl}-G'
15779 if test "$host_cpu" = ia64
; then
15780 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15781 # chokes on -Wl,-G. The following line is correct:
15784 if test "$aix_use_runtimelinking" = yes; then
15785 shared_flag
='${wl}-G'
15787 shared_flag
='${wl}-bM:SRE'
15792 export_dynamic_flag_spec
='${wl}-bexpall'
15793 # It seems that -bexpall does not export symbols beginning with
15794 # underscore (_), so it is better to generate a list of symbols to export.
15795 always_export_symbols
=yes
15796 if test "$aix_use_runtimelinking" = yes; then
15797 # Warning - without using the other runtime loading flags (-brtl),
15798 # -berok will link without error, but may produce a broken library.
15799 allow_undefined_flag
='-berok'
15800 # Determine the default libpath from the value encoded in an
15801 # empty executable.
15802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15803 /* end confdefs.h. */
15813 if ac_fn_c_try_link
"$LINENO"; then :
15815 lt_aix_libpath_sed
='
15816 /Import File Strings/,/^$/ {
15822 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15823 # Check for a 64-bit object if we didn't find anything.
15824 if test -z "$aix_libpath"; then
15825 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15828 rm -f core conftest.err conftest.
$ac_objext \
15829 conftest
$ac_exeext conftest.
$ac_ext
15830 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15832 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15833 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"
15835 if test "$host_cpu" = ia64
; then
15836 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15837 allow_undefined_flag
="-z nodefs"
15838 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"
15840 # Determine the default libpath from the value encoded in an
15841 # empty executable.
15842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15843 /* end confdefs.h. */
15853 if ac_fn_c_try_link
"$LINENO"; then :
15855 lt_aix_libpath_sed
='
15856 /Import File Strings/,/^$/ {
15862 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15863 # Check for a 64-bit object if we didn't find anything.
15864 if test -z "$aix_libpath"; then
15865 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15868 rm -f core conftest.err conftest.
$ac_objext \
15869 conftest
$ac_exeext conftest.
$ac_ext
15870 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15872 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15873 # Warning - without using the other run time loading flags,
15874 # -berok will link without error, but may produce a broken library.
15875 no_undefined_flag
=' ${wl}-bernotok'
15876 allow_undefined_flag
=' ${wl}-berok'
15877 if test "$with_gnu_ld" = yes; then
15878 # We only use this code for GNU lds that support --whole-archive.
15879 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15881 # Exported symbols can be pulled into shared objects from archives
15882 whole_archive_flag_spec
='$convenience'
15884 archive_cmds_need_lc
=yes
15885 # This is similar to how AIX traditionally builds its shared libraries.
15886 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'
15894 # see comment about AmigaOS4 .so support
15895 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15896 archive_expsym_cmds
=''
15899 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)'
15900 hardcode_libdir_flag_spec
='-L$libdir'
15901 hardcode_minus_L
=yes
15907 export_dynamic_flag_spec
=-rdynamic
15910 cygwin
* | mingw
* | pw32
* | cegcc
*)
15911 # When not using gcc, we currently assume that we are using
15912 # Microsoft Visual C++.
15913 # hardcode_libdir_flag_spec is actually meaningless, as there is
15914 # no search path for DLLs.
15915 hardcode_libdir_flag_spec
=' '
15916 allow_undefined_flag
=unsupported
15917 # Tell ltmain to make .lib files, not .a files.
15919 # Tell ltmain to make .dll files, not .so files.
15921 # FIXME: Setting linknames here is a bad hack.
15922 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15923 # The linker will automatically build a .lib file if we build a DLL.
15924 old_archive_from_new_cmds
='true'
15925 # FIXME: Should let the user specify the lib program.
15926 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15927 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15928 enable_shared_with_static_runtimes
=yes
15931 darwin
* | rhapsody
*)
15934 archive_cmds_need_lc
=no
15936 hardcode_automatic
=yes
15937 hardcode_shlibpath_var
=unsupported
15938 if test "$lt_cv_ld_force_load" = "yes"; then
15939 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\"`'
15941 whole_archive_flag_spec
=''
15943 link_all_deplibs
=yes
15944 allow_undefined_flag
="$_lt_dar_allow_undefined"
15945 case $cc_basename in
15946 ifort
*) _lt_dar_can_shared
=yes ;;
15947 *) _lt_dar_can_shared
=$GCC ;;
15949 if test "$_lt_dar_can_shared" = "yes"; then
15950 output_verbose_link_cmd
=func_echo_all
15951 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15952 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15953 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}"
15954 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}"
15963 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15964 hardcode_libdir_flag_spec
='-L$libdir'
15965 hardcode_shlibpath_var
=no
15968 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15969 # support. Future versions do this automatically, but an explicit c++rt0.o
15970 # does not break anything, and helps significantly (at the cost of a little
15973 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15974 hardcode_libdir_flag_spec
='-R$libdir'
15975 hardcode_direct
=yes
15976 hardcode_shlibpath_var
=no
15979 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15981 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15982 hardcode_direct
=yes
15983 hardcode_minus_L
=yes
15984 hardcode_shlibpath_var
=no
15987 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15988 freebsd
* | dragonfly
*)
15989 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15990 hardcode_libdir_flag_spec
='-R$libdir'
15991 hardcode_direct
=yes
15992 hardcode_shlibpath_var
=no
15996 if test "$GCC" = yes; then
15997 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'
15999 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'
16001 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16002 hardcode_libdir_separator
=:
16003 hardcode_direct
=yes
16005 # hardcode_minus_L: Not really in the search PATH,
16006 # but as the default location of the library.
16007 hardcode_minus_L
=yes
16008 export_dynamic_flag_spec
='${wl}-E'
16012 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16013 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16015 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16017 if test "$with_gnu_ld" = no
; then
16018 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16019 hardcode_libdir_flag_spec_ld
='+b $libdir'
16020 hardcode_libdir_separator
=:
16021 hardcode_direct
=yes
16022 hardcode_direct_absolute
=yes
16023 export_dynamic_flag_spec
='${wl}-E'
16024 # hardcode_minus_L: Not really in the search PATH,
16025 # but as the default location of the library.
16026 hardcode_minus_L
=yes
16031 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16034 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16037 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16040 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16046 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16049 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16053 # Older versions of the 11.00 compiler do not understand -b yet
16054 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16056 $as_echo_n "checking if $CC understands -b... " >&6; }
16057 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16058 $as_echo_n "(cached) " >&6
16060 lt_cv_prog_compiler__b
=no
16061 save_LDFLAGS
="$LDFLAGS"
16062 LDFLAGS
="$LDFLAGS -b"
16063 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16064 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16065 # The linker can only warn and ignore the option if not recognized
16066 # So say no if there are warnings
16067 if test -s conftest.err
; then
16068 # Append any errors to the config.log.
16069 cat conftest.err
1>&5
16070 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16071 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16072 if diff conftest.exp conftest.er2
>/dev
/null
; then
16073 lt_cv_prog_compiler__b
=yes
16076 lt_cv_prog_compiler__b
=yes
16080 LDFLAGS
="$save_LDFLAGS"
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16084 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16086 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16087 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16089 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16095 if test "$with_gnu_ld" = no
; then
16096 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16097 hardcode_libdir_separator
=:
16102 hardcode_shlibpath_var
=no
16105 hardcode_direct
=yes
16106 hardcode_direct_absolute
=yes
16107 export_dynamic_flag_spec
='${wl}-E'
16109 # hardcode_minus_L: Not really in the search PATH,
16110 # but as the default location of the library.
16111 hardcode_minus_L
=yes
16117 irix5
* | irix6
* | nonstopux
*)
16118 if test "$GCC" = yes; then
16119 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'
16120 # Try to use the -exported_symbol ld option, if it does not
16121 # work, assume that -exports_file does not work either and
16122 # implicitly export all symbols.
16123 save_LDFLAGS
="$LDFLAGS"
16124 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16126 /* end confdefs.h. */
16129 if ac_fn_c_try_link
"$LINENO"; then :
16130 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'
16133 rm -f core conftest.err conftest.
$ac_objext \
16134 conftest
$ac_exeext conftest.
$ac_ext
16135 LDFLAGS
="$save_LDFLAGS"
16137 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'
16138 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'
16140 archive_cmds_need_lc
='no'
16141 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16142 hardcode_libdir_separator
=:
16144 link_all_deplibs
=yes
16148 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16149 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16151 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16153 hardcode_libdir_flag_spec
='-R$libdir'
16154 hardcode_direct
=yes
16155 hardcode_shlibpath_var
=no
16159 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16160 hardcode_direct
=yes
16161 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16162 hardcode_libdir_separator
=:
16163 hardcode_shlibpath_var
=no
16170 if test -f /usr
/libexec
/ld.so
; then
16171 hardcode_direct
=yes
16172 hardcode_shlibpath_var
=no
16173 hardcode_direct_absolute
=yes
16174 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16175 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16176 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16177 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16178 export_dynamic_flag_spec
='${wl}-E'
16181 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16182 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16183 hardcode_libdir_flag_spec
='-R$libdir'
16186 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16187 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16197 hardcode_libdir_flag_spec
='-L$libdir'
16198 hardcode_minus_L
=yes
16199 allow_undefined_flag
=unsupported
16200 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'
16201 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16205 if test "$GCC" = yes; then
16206 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16207 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'
16209 allow_undefined_flag
=' -expect_unresolved \*'
16210 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'
16212 archive_cmds_need_lc
='no'
16213 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16214 hardcode_libdir_separator
=:
16217 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16218 if test "$GCC" = yes; then
16219 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16220 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'
16221 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16223 allow_undefined_flag
=' -expect_unresolved \*'
16224 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'
16225 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~
16226 $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'
16228 # Both c and cxx compiler support -rpath directly
16229 hardcode_libdir_flag_spec
='-rpath $libdir'
16231 archive_cmds_need_lc
='no'
16232 hardcode_libdir_separator
=:
16236 no_undefined_flag
=' -z defs'
16237 if test "$GCC" = yes; then
16239 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16240 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16241 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16243 case `$CC -V 2>&1` in
16246 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16247 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16248 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16252 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16253 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16254 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16258 hardcode_libdir_flag_spec
='-R$libdir'
16259 hardcode_shlibpath_var
=no
16261 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16263 # The compiler driver will combine and reorder linker options,
16264 # but understands `-z linker_flag'. GCC discards it without `$wl',
16265 # but is careful enough not to reorder.
16266 # Supported since Solaris 2.6 (maybe 2.5.1?)
16267 if test "$GCC" = yes; then
16268 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16270 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16274 link_all_deplibs
=yes
16278 if test "x$host_vendor" = xsequent
; then
16279 # Use $CC to link under sequent, because it throws in some extra .o
16280 # files that make .init and .fini sections work.
16281 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16283 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16285 hardcode_libdir_flag_spec
='-L$libdir'
16286 hardcode_direct
=yes
16287 hardcode_minus_L
=yes
16288 hardcode_shlibpath_var
=no
16292 case $host_vendor in
16294 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16295 hardcode_direct
=yes # is this really true???
16298 ## LD is ld it makes a PLAMLIB
16299 ## CC just makes a GrossModule.
16300 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16301 reload_cmds
='$CC -r -o $output$reload_objs'
16305 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16306 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16309 runpath_var
='LD_RUN_PATH'
16310 hardcode_shlibpath_var
=no
16314 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16315 hardcode_shlibpath_var
=no
16316 export_dynamic_flag_spec
='-Bexport'
16320 if test -d /usr
/nec
; then
16321 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16322 hardcode_shlibpath_var
=no
16323 runpath_var
=LD_RUN_PATH
16324 hardcode_runpath_var
=yes
16329 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16330 no_undefined_flag
='${wl}-z,text'
16331 archive_cmds_need_lc
=no
16332 hardcode_shlibpath_var
=no
16333 runpath_var
='LD_RUN_PATH'
16335 if test "$GCC" = yes; then
16336 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16337 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16339 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16340 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16344 sysv5
* | sco3.2v5
* | sco5v6
*)
16345 # Note: We can NOT use -z defs as we might desire, because we do not
16346 # link with -lc, and that would cause any symbols used from libc to
16347 # always be unresolved, which means just about no library would
16348 # ever link correctly. If we're not using GNU ld we use -z text
16349 # though, which does catch some bad symbols but isn't as heavy-handed
16351 no_undefined_flag
='${wl}-z,text'
16352 allow_undefined_flag
='${wl}-z,nodefs'
16353 archive_cmds_need_lc
=no
16354 hardcode_shlibpath_var
=no
16355 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16356 hardcode_libdir_separator
=':'
16357 link_all_deplibs
=yes
16358 export_dynamic_flag_spec
='${wl}-Bexport'
16359 runpath_var
='LD_RUN_PATH'
16361 if test "$GCC" = yes; then
16362 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16363 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16365 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16366 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16371 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16372 hardcode_libdir_flag_spec
='-L$libdir'
16373 hardcode_shlibpath_var
=no
16381 if test x
$host_vendor = xsni
; then
16383 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16384 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16391 $as_echo "$ld_shlibs" >&6; }
16392 test "$ld_shlibs" = no
&& can_build_shared
=no
16394 with_gnu_ld
=$with_gnu_ld
16411 # Do we need to explicitly link libc?
16413 case "x$archive_cmds_need_lc" in
16415 # Assume -lc should be added
16416 archive_cmds_need_lc
=yes
16418 if test "$enable_shared" = yes && test "$GCC" = yes; then
16419 case $archive_cmds in
16421 # FIXME: we may have to deal with multi-command sequences.
16424 # Test whether the compiler implicitly links with -lc since on some
16425 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16426 # to ld, don't add -lc before -lgcc.
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16428 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16429 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16430 $as_echo_n "(cached) " >&6
16433 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16436 (eval $ac_compile) 2>&5
16438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16439 test $ac_status = 0; } 2>conftest.err
; then
16442 libobjs
=conftest.
$ac_objext
16444 wl
=$lt_prog_compiler_wl
16445 pic_flag
=$lt_prog_compiler_pic
16451 lt_save_allow_undefined_flag
=$allow_undefined_flag
16452 allow_undefined_flag
=
16453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16454 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16457 test $ac_status = 0; }
16459 lt_cv_archive_cmds_need_lc
=no
16461 lt_cv_archive_cmds_need_lc
=yes
16463 allow_undefined_flag
=$lt_save_allow_undefined_flag
16465 cat conftest.err
1>&5
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16471 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16472 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16636 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16638 if test "$GCC" = yes; then
16640 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16641 *) lt_awk_arg
="/^libraries:/" ;;
16644 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16645 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16647 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16648 case $lt_search_path_spec in
16650 # if the path contains ";" then we assume it to be the separator
16651 # otherwise default to the standard path separator (i.e. ":") - it is
16652 # assumed that no part of a normal pathname contains ";" but that should
16653 # okay in the real world where ";" in dirpaths is itself problematic.
16654 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16657 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16660 # Ok, now we have the path, separated by spaces, we can step through it
16661 # and add multilib dir if necessary.
16662 lt_tmp_lt_search_path_spec
=
16663 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16664 for lt_sys_path
in $lt_search_path_spec; do
16665 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16666 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16668 test -d "$lt_sys_path" && \
16669 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16672 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16673 BEGIN {RS=" "; FS="/|\n";} {
16676 for (lt_i = NF; lt_i > 0; lt_i--) {
16677 if ($lt_i != "" && $lt_i != ".") {
16678 if ($lt_i == "..") {
16681 if (lt_count == 0) {
16682 lt_foo="/" $lt_i lt_foo;
16689 if (lt_foo != "") { lt_freq[lt_foo]++; }
16690 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16692 # AWK program above erroneously prepends '/' to C:/dos/paths
16695 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16696 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16698 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16700 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16702 library_names_spec
=
16703 libname_spec
='lib$name'
16707 postuninstall_cmds
=
16711 shlibpath_overrides_runpath
=unknown
16713 dynamic_linker
="$host_os ld.so"
16714 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16715 need_lib_prefix
=unknown
16716 hardcode_into_libs
=no
16718 # when you set need_version to no, make sure it does not cause -set_version
16719 # flags to be left without arguments
16720 need_version
=unknown
16725 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16726 shlibpath_var
=LIBPATH
16728 # AIX 3 has no versioning support, so we append a major version to the name.
16729 soname_spec
='${libname}${release}${shared_ext}$major'
16736 hardcode_into_libs
=yes
16737 if test "$host_cpu" = ia64
; then
16738 # AIX 5 supports IA64
16739 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16740 shlibpath_var
=LD_LIBRARY_PATH
16742 # With GCC up to 2.95.x, collect2 would create an import file
16743 # for dependence libraries. The import file would start with
16744 # the line `#! .'. This would cause the generated library to
16745 # depend on `.', always an invalid library. This was fixed in
16746 # development snapshots of GCC prior to 3.0.
16748 aix4 | aix4.
[01] | aix4.
[01].
*)
16749 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16751 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16754 can_build_shared
=no
16758 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16759 # soname into executable. Probably we can add versioning support to
16760 # collect2, so additional links can be useful in future.
16761 if test "$aix_use_runtimelinking" = yes; then
16762 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16763 # instead of lib<name>.a to let people know that these are not
16764 # typical AIX shared libraries.
16765 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16767 # We preserve .a as extension for shared libraries through AIX4.2
16768 # and later when we are not doing run time linking.
16769 library_names_spec
='${libname}${release}.a $libname.a'
16770 soname_spec
='${libname}${release}${shared_ext}$major'
16772 shlibpath_var
=LIBPATH
16779 # Since July 2007 AmigaOS4 officially supports .so libraries.
16780 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16781 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16784 library_names_spec
='$libname.ixlibrary $libname.a'
16785 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16786 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'
16792 library_names_spec
='${libname}${shared_ext}'
16793 dynamic_linker
="$host_os ld.so"
16794 shlibpath_var
=LIBRARY_PATH
16800 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16801 soname_spec
='${libname}${release}${shared_ext}$major'
16802 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16803 shlibpath_var
=LD_LIBRARY_PATH
16804 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16805 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16806 # the default ld.so.conf also contains /usr/contrib/lib and
16807 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16808 # libtool to hard-code these into programs
16811 cygwin
* | mingw
* | pw32
* | cegcc
*)
16812 version_type
=windows
16817 case $GCC,$host_os in
16818 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16819 library_names_spec
='$libname.dll.a'
16820 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16821 postinstall_cmds
='base_file=`basename \${file}`~
16822 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16823 dldir=$destdir/`dirname \$dlpath`~
16824 test -d \$dldir || mkdir -p \$dldir~
16825 $install_prog $dir/$dlname \$dldir/$dlname~
16826 chmod a+x \$dldir/$dlname~
16827 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16828 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16830 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16831 dlpath=$dir/\$dldll~
16833 shlibpath_overrides_runpath
=yes
16837 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16838 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16840 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16843 # MinGW DLLs use traditional 'lib' prefix
16844 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16847 # pw32 DLLs use 'pw' prefix rather than 'lib'
16848 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16854 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16857 dynamic_linker
='Win32 ld.exe'
16858 # FIXME: first we should search . and the directory the executable is in
16862 darwin
* | rhapsody
*)
16863 dynamic_linker
="$host_os dyld"
16864 version_type
=darwin
16867 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16868 soname_spec
='${libname}${release}${major}$shared_ext'
16869 shlibpath_overrides_runpath
=yes
16870 shlibpath_var
=DYLD_LIBRARY_PATH
16871 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16873 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
16874 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16881 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16882 soname_spec
='${libname}${release}${shared_ext}$major'
16883 shlibpath_var
=LD_LIBRARY_PATH
16886 freebsd
* | dragonfly
*)
16887 # DragonFly does not have aout. When/if they implement a new
16888 # versioning mechanism, adjust this.
16889 if test -x /usr
/bin
/objformat
; then
16890 objformat
=`/usr/bin/objformat`
16893 freebsd
[23].
*) objformat
=aout
;;
16894 *) objformat
=elf
;;
16897 version_type
=freebsd-
$objformat
16898 case $version_type in
16900 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16905 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16909 shlibpath_var
=LD_LIBRARY_PATH
16912 shlibpath_overrides_runpath
=yes
16914 freebsd3.
[01]* | freebsdelf3.
[01]*)
16915 shlibpath_overrides_runpath
=yes
16916 hardcode_into_libs
=yes
16918 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16919 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16920 shlibpath_overrides_runpath
=no
16921 hardcode_into_libs
=yes
16923 *) # from 4.6 on, and DragonFly
16924 shlibpath_overrides_runpath
=yes
16925 hardcode_into_libs
=yes
16934 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16935 soname_spec
='${libname}${release}${shared_ext}$major'
16936 shlibpath_var
=LD_LIBRARY_PATH
16937 hardcode_into_libs
=yes
16944 dynamic_linker
="$host_os runtime_loader"
16945 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16946 soname_spec
='${libname}${release}${shared_ext}$major'
16947 shlibpath_var
=LIBRARY_PATH
16948 shlibpath_overrides_runpath
=yes
16949 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16950 hardcode_into_libs
=yes
16953 hpux9
* | hpux10
* | hpux11
*)
16954 # Give a soname corresponding to the major version so that dld.sl refuses to
16955 # link against other versions.
16962 hardcode_into_libs
=yes
16963 dynamic_linker
="$host_os dld.so"
16964 shlibpath_var
=LD_LIBRARY_PATH
16965 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16966 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16967 soname_spec
='${libname}${release}${shared_ext}$major'
16968 if test "X$HPUX_IA64_MODE" = X32
; then
16969 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16971 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16973 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16977 hardcode_into_libs
=yes
16978 dynamic_linker
="$host_os dld.sl"
16979 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16980 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16981 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16982 soname_spec
='${libname}${release}${shared_ext}$major'
16983 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16984 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16988 dynamic_linker
="$host_os dld.sl"
16989 shlibpath_var
=SHLIB_PATH
16990 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16991 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16992 soname_spec
='${libname}${release}${shared_ext}$major'
16995 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16996 postinstall_cmds
='chmod 555 $lib'
16997 # or fails outright, so override atomically:
16998 install_override_mode
=555
17005 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17006 soname_spec
='${libname}${release}${shared_ext}$major'
17007 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17008 shlibpath_var
=LD_LIBRARY_PATH
17009 shlibpath_overrides_runpath
=no
17010 hardcode_into_libs
=yes
17013 irix5
* | irix6
* | nonstopux
*)
17015 nonstopux
*) version_type
=nonstopux
;;
17017 if test "$lt_cv_prog_gnu_ld" = yes; then
17025 soname_spec
='${libname}${release}${shared_ext}$major'
17026 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17028 irix5
* | nonstopux
*)
17029 libsuff
= shlibsuff
=
17032 case $LD in # libtool.m4 will add one of these switches to LD
17033 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17034 libsuff
= shlibsuff
= libmagic
=32-bit;;
17035 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17036 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17037 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17038 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17039 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17043 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17044 shlibpath_overrides_runpath
=no
17045 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17046 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17047 hardcode_into_libs
=yes
17050 # No shared lib support for Linux oldld, aout, or coff.
17051 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17055 # This must be Linux ELF.
17056 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17060 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17061 soname_spec
='${libname}${release}${shared_ext}$major'
17062 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17063 shlibpath_var
=LD_LIBRARY_PATH
17064 shlibpath_overrides_runpath
=no
17066 # Some binutils ld are patched to set DT_RUNPATH
17067 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17068 $as_echo_n "(cached) " >&6
17070 lt_cv_shlibpath_overrides_runpath
=no
17071 save_LDFLAGS
=$LDFLAGS
17072 save_libdir
=$libdir
17073 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17074 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17076 /* end confdefs.h. */
17086 if ac_fn_c_try_link
"$LINENO"; then :
17087 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17088 lt_cv_shlibpath_overrides_runpath
=yes
17091 rm -f core conftest.err conftest.
$ac_objext \
17092 conftest
$ac_exeext conftest.
$ac_ext
17093 LDFLAGS
=$save_LDFLAGS
17094 libdir
=$save_libdir
17098 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17100 # This implies no fast_install, which is unacceptable.
17101 # Some rework will be needed to allow for fast_install
17102 # before this can be enabled.
17103 hardcode_into_libs
=yes
17105 # Append ld.so.conf contents to the search path
17106 if test -f /etc
/ld.so.conf
; then
17107 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' ' '`
17108 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17111 # We used to test for /lib/ld.so.1 and disable shared libraries on
17112 # powerpc, because MkLinux only supported shared libraries with the
17113 # GNU dynamic linker. Since this was broken with cross compilers,
17114 # most powerpc-linux boxes support dynamic linking these days and
17115 # people can always --disable-shared, the test was removed, and we
17116 # assume the GNU/Linux dynamic linker is in use.
17117 dynamic_linker
='GNU/Linux ld.so'
17124 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17126 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17127 dynamic_linker
='NetBSD (a.out) ld.so'
17129 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17130 soname_spec
='${libname}${release}${shared_ext}$major'
17131 dynamic_linker
='NetBSD ld.elf_so'
17133 shlibpath_var
=LD_LIBRARY_PATH
17134 shlibpath_overrides_runpath
=yes
17135 hardcode_into_libs
=yes
17140 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17141 shlibpath_var
=LD_LIBRARY_PATH
17142 shlibpath_overrides_runpath
=yes
17149 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17150 soname_spec
='${libname}${release}${shared_ext}$major'
17151 shlibpath_var
=LD_LIBRARY_PATH
17152 shlibpath_overrides_runpath
=no
17153 hardcode_into_libs
=yes
17154 dynamic_linker
='ldqnx.so'
17159 sys_lib_dlsearch_path_spec
="/usr/lib"
17161 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17163 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17164 *) need_version
=no
;;
17166 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17167 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17168 shlibpath_var
=LD_LIBRARY_PATH
17169 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17171 openbsd2.
[89] | openbsd2.
[89].
*)
17172 shlibpath_overrides_runpath
=no
17175 shlibpath_overrides_runpath
=yes
17179 shlibpath_overrides_runpath
=yes
17184 libname_spec
='$name'
17187 library_names_spec
='$libname${shared_ext} $libname.a'
17188 dynamic_linker
='OS/2 ld.exe'
17189 shlibpath_var
=LIBPATH
17192 osf3
* | osf4
* | osf5
*)
17196 soname_spec
='${libname}${release}${shared_ext}$major'
17197 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17198 shlibpath_var
=LD_LIBRARY_PATH
17199 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17200 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17211 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17212 soname_spec
='${libname}${release}${shared_ext}$major'
17213 shlibpath_var
=LD_LIBRARY_PATH
17214 shlibpath_overrides_runpath
=yes
17215 hardcode_into_libs
=yes
17216 # ldd complains unless libraries are executable
17217 postinstall_cmds
='chmod +x $lib'
17222 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17223 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17224 shlibpath_var
=LD_LIBRARY_PATH
17225 shlibpath_overrides_runpath
=yes
17226 if test "$with_gnu_ld" = yes; then
17234 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17235 soname_spec
='${libname}${release}${shared_ext}$major'
17236 shlibpath_var
=LD_LIBRARY_PATH
17237 case $host_vendor in
17239 shlibpath_overrides_runpath
=no
17241 runpath_var
=LD_RUN_PATH
17249 shlibpath_overrides_runpath
=no
17250 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17256 if test -d /usr
/nec
;then
17258 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17259 soname_spec
='$libname${shared_ext}.$major'
17260 shlibpath_var
=LD_LIBRARY_PATH
17264 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17265 version_type
=freebsd-elf
17268 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17269 soname_spec
='${libname}${release}${shared_ext}$major'
17270 shlibpath_var
=LD_LIBRARY_PATH
17271 shlibpath_overrides_runpath
=yes
17272 hardcode_into_libs
=yes
17273 if test "$with_gnu_ld" = yes; then
17274 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17276 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17279 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17283 sys_lib_dlsearch_path_spec
='/usr/lib'
17287 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17291 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17292 shlibpath_var
=LD_LIBRARY_PATH
17293 shlibpath_overrides_runpath
=no
17294 hardcode_into_libs
=yes
17299 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17300 soname_spec
='${libname}${release}${shared_ext}$major'
17301 shlibpath_var
=LD_LIBRARY_PATH
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17309 $as_echo "$dynamic_linker" >&6; }
17310 test "$dynamic_linker" = no
&& can_build_shared
=no
17312 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17313 if test "$GCC" = yes; then
17314 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17317 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17318 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17320 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17321 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17416 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17418 if test -n "$hardcode_libdir_flag_spec" ||
17419 test -n "$runpath_var" ||
17420 test "X$hardcode_automatic" = "Xyes" ; then
17422 # We can hardcode non-existent directories.
17423 if test "$hardcode_direct" != no
&&
17424 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17425 # have to relink, otherwise we might link with an installed library
17426 # when we should be linking with a yet-to-be-installed one
17427 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17428 test "$hardcode_minus_L" != no
; then
17429 # Linking always hardcodes the temporary library directory.
17430 hardcode_action
=relink
17432 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17433 hardcode_action
=immediate
17436 # We cannot hardcode anything, or else we can only hardcode existing
17438 hardcode_action
=unsupported
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17441 $as_echo "$hardcode_action" >&6; }
17443 if test "$hardcode_action" = relink ||
17444 test "$inherit_rpath" = yes; then
17445 # Fast installation is not supported
17446 enable_fast_install
=no
17447 elif test "$shlibpath_overrides_runpath" = yes ||
17448 test "$enable_shared" = no
; then
17449 # Fast installation is not necessary
17450 enable_fast_install
=needless
17458 if test "x$enable_dlopen" != xyes
; then
17459 enable_dlopen
=unknown
17460 enable_dlopen_self
=unknown
17461 enable_dlopen_self_static
=unknown
17468 lt_cv_dlopen
="load_add_on"
17470 lt_cv_dlopen_self
=yes
17473 mingw
* | pw32
* | cegcc
*)
17474 lt_cv_dlopen
="LoadLibrary"
17479 lt_cv_dlopen
="dlopen"
17484 # if libdl is installed we need to link against it
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17486 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17487 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17488 $as_echo_n "(cached) " >&6
17490 ac_check_lib_save_LIBS
=$LIBS
17492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17493 /* end confdefs.h. */
17495 /* Override any GCC internal prototype to avoid an error.
17496 Use char because int might match the return type of a GCC
17497 builtin and then its argument prototype would still apply. */
17510 if ac_fn_c_try_link
"$LINENO"; then :
17511 ac_cv_lib_dl_dlopen
=yes
17513 ac_cv_lib_dl_dlopen
=no
17515 rm -f core conftest.err conftest.
$ac_objext \
17516 conftest
$ac_exeext conftest.
$ac_ext
17517 LIBS
=$ac_check_lib_save_LIBS
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17520 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17521 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17522 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17525 lt_cv_dlopen
="dyld"
17527 lt_cv_dlopen_self
=yes
17534 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17535 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17536 lt_cv_dlopen
="shl_load"
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17539 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17540 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17541 $as_echo_n "(cached) " >&6
17543 ac_check_lib_save_LIBS
=$LIBS
17545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17546 /* end confdefs.h. */
17548 /* Override any GCC internal prototype to avoid an error.
17549 Use char because int might match the return type of a GCC
17550 builtin and then its argument prototype would still apply. */
17558 return shl_load ();
17563 if ac_fn_c_try_link
"$LINENO"; then :
17564 ac_cv_lib_dld_shl_load
=yes
17566 ac_cv_lib_dld_shl_load
=no
17568 rm -f core conftest.err conftest.
$ac_objext \
17569 conftest
$ac_exeext conftest.
$ac_ext
17570 LIBS
=$ac_check_lib_save_LIBS
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17573 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17574 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17575 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17577 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17578 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17579 lt_cv_dlopen
="dlopen"
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17582 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17583 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17584 $as_echo_n "(cached) " >&6
17586 ac_check_lib_save_LIBS
=$LIBS
17588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17589 /* end confdefs.h. */
17591 /* Override any GCC internal prototype to avoid an error.
17592 Use char because int might match the return type of a GCC
17593 builtin and then its argument prototype would still apply. */
17606 if ac_fn_c_try_link
"$LINENO"; then :
17607 ac_cv_lib_dl_dlopen
=yes
17609 ac_cv_lib_dl_dlopen
=no
17611 rm -f core conftest.err conftest.
$ac_objext \
17612 conftest
$ac_exeext conftest.
$ac_ext
17613 LIBS
=$ac_check_lib_save_LIBS
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17616 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17617 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17618 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17621 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17622 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17623 $as_echo_n "(cached) " >&6
17625 ac_check_lib_save_LIBS
=$LIBS
17626 LIBS
="-lsvld $LIBS"
17627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17628 /* end confdefs.h. */
17630 /* Override any GCC internal prototype to avoid an error.
17631 Use char because int might match the return type of a GCC
17632 builtin and then its argument prototype would still apply. */
17645 if ac_fn_c_try_link
"$LINENO"; then :
17646 ac_cv_lib_svld_dlopen
=yes
17648 ac_cv_lib_svld_dlopen
=no
17650 rm -f core conftest.err conftest.
$ac_objext \
17651 conftest
$ac_exeext conftest.
$ac_ext
17652 LIBS
=$ac_check_lib_save_LIBS
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17655 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17656 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17657 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17660 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17661 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17662 $as_echo_n "(cached) " >&6
17664 ac_check_lib_save_LIBS
=$LIBS
17666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17667 /* end confdefs.h. */
17669 /* Override any GCC internal prototype to avoid an error.
17670 Use char because int might match the return type of a GCC
17671 builtin and then its argument prototype would still apply. */
17679 return dld_link ();
17684 if ac_fn_c_try_link
"$LINENO"; then :
17685 ac_cv_lib_dld_dld_link
=yes
17687 ac_cv_lib_dld_dld_link
=no
17689 rm -f core conftest.err conftest.
$ac_objext \
17690 conftest
$ac_exeext conftest.
$ac_ext
17691 LIBS
=$ac_check_lib_save_LIBS
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17694 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17695 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17696 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17717 if test "x$lt_cv_dlopen" != xno
; then
17723 case $lt_cv_dlopen in
17725 save_CPPFLAGS
="$CPPFLAGS"
17726 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17728 save_LDFLAGS
="$LDFLAGS"
17729 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17732 LIBS
="$lt_cv_dlopen_libs $LIBS"
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17735 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17736 if test "${lt_cv_dlopen_self+set}" = set; then :
17737 $as_echo_n "(cached) " >&6
17739 if test "$cross_compiling" = yes; then :
17740 lt_cv_dlopen_self
=cross
17742 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17743 lt_status
=$lt_dlunknown
17744 cat > conftest.
$ac_ext <<_LT_EOF
17745 #line 17745 "configure"
17746 #include "confdefs.h"
17755 # define LT_DLGLOBAL RTLD_GLOBAL
17758 # define LT_DLGLOBAL DL_GLOBAL
17760 # define LT_DLGLOBAL 0
17764 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17765 find out it does not work in some platform. */
17766 #ifndef LT_DLLAZY_OR_NOW
17768 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17771 # define LT_DLLAZY_OR_NOW DL_LAZY
17774 # define LT_DLLAZY_OR_NOW RTLD_NOW
17777 # define LT_DLLAZY_OR_NOW DL_NOW
17779 # define LT_DLLAZY_OR_NOW 0
17786 /* When -fvisbility=hidden is used, assume the code has been annotated
17787 correspondingly for the symbols needed. */
17788 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17789 void fnord () __attribute__((visibility("default")));
17792 void fnord () { int i=42; }
17795 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17796 int status = $lt_dlunknown;
17800 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17803 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17804 else puts (dlerror ());
17806 /* dlclose (self); */
17814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17815 (eval $ac_link) 2>&5
17817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17818 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17819 (.
/conftest
; exit; ) >&5 2>/dev
/null
17821 case x
$lt_status in
17822 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17823 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17824 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17827 # compilation failed
17828 lt_cv_dlopen_self
=no
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17836 $as_echo "$lt_cv_dlopen_self" >&6; }
17838 if test "x$lt_cv_dlopen_self" = xyes
; then
17839 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17841 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17842 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17843 $as_echo_n "(cached) " >&6
17845 if test "$cross_compiling" = yes; then :
17846 lt_cv_dlopen_self_static
=cross
17848 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17849 lt_status
=$lt_dlunknown
17850 cat > conftest.
$ac_ext <<_LT_EOF
17851 #line 17851 "configure"
17852 #include "confdefs.h"
17861 # define LT_DLGLOBAL RTLD_GLOBAL
17864 # define LT_DLGLOBAL DL_GLOBAL
17866 # define LT_DLGLOBAL 0
17870 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17871 find out it does not work in some platform. */
17872 #ifndef LT_DLLAZY_OR_NOW
17874 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17877 # define LT_DLLAZY_OR_NOW DL_LAZY
17880 # define LT_DLLAZY_OR_NOW RTLD_NOW
17883 # define LT_DLLAZY_OR_NOW DL_NOW
17885 # define LT_DLLAZY_OR_NOW 0
17892 /* When -fvisbility=hidden is used, assume the code has been annotated
17893 correspondingly for the symbols needed. */
17894 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17895 void fnord () __attribute__((visibility("default")));
17898 void fnord () { int i=42; }
17901 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17902 int status = $lt_dlunknown;
17906 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17909 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17910 else puts (dlerror ());
17912 /* dlclose (self); */
17920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17921 (eval $ac_link) 2>&5
17923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17924 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17925 (.
/conftest
; exit; ) >&5 2>/dev
/null
17927 case x
$lt_status in
17928 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
17929 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
17930 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
17933 # compilation failed
17934 lt_cv_dlopen_self_static
=no
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17942 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17945 CPPFLAGS
="$save_CPPFLAGS"
17946 LDFLAGS
="$save_LDFLAGS"
17951 case $lt_cv_dlopen_self in
17952 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
17953 *) enable_dlopen_self
=unknown
;;
17956 case $lt_cv_dlopen_self_static in
17957 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
17958 *) enable_dlopen_self_static
=unknown
;;
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17981 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17982 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
17983 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
17984 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17986 $as_echo "yes" >&6; }
17988 # FIXME - insert some real tests, host_os isn't really good enough
17991 if test -n "$STRIP" ; then
17992 striplib
="$STRIP -x"
17993 old_striplib
="$STRIP -S"
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17995 $as_echo "yes" >&6; }
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17998 $as_echo "no" >&6; }
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18003 $as_echo "no" >&6; }
18019 # Report which library types will actually be built
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18021 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18023 $as_echo "$can_build_shared" >&6; }
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18026 $as_echo_n "checking whether to build shared libraries... " >&6; }
18027 test "$can_build_shared" = "no" && enable_shared
=no
18029 # On AIX, shared libraries and static libraries use the same namespace, and
18030 # are all built from PIC.
18033 test "$enable_shared" = yes && enable_static
=no
18034 if test -n "$RANLIB"; then
18035 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18036 postinstall_cmds
='$RANLIB $lib'
18041 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18042 test "$enable_shared" = yes && enable_static
=no
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18047 $as_echo "$enable_shared" >&6; }
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18050 $as_echo_n "checking whether to build static libraries... " >&6; }
18051 # Make sure either enable_shared or enable_static is yes.
18052 test "$enable_shared" = yes || enable_static
=yes
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18054 $as_echo "$enable_static" >&6; }
18061 ac_cpp
='$CPP $CPPFLAGS'
18062 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18063 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18064 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18068 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18069 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18070 (test "X$CXX" != "Xg++"))) ; then
18072 ac_cpp
='$CXXCPP $CPPFLAGS'
18073 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18074 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18075 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18077 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18078 if test -z "$CXXCPP"; then
18079 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18080 $as_echo_n "(cached) " >&6
18082 # Double quotes because CXXCPP needs to be expanded
18083 for CXXCPP
in "$CXX -E" "/lib/cpp"
18085 ac_preproc_ok
=false
18086 for ac_cxx_preproc_warn_flag
in '' yes
18088 # Use a header file that comes with gcc, so configuring glibc
18089 # with a fresh cross-compiler works.
18090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18091 # <limits.h> exists even on freestanding compilers.
18092 # On the NeXT, cc -E runs the code through the compiler's parser,
18093 # not just through cpp. "Syntax error" is here to catch this case.
18094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18095 /* end confdefs.h. */
18097 # include <limits.h>
18099 # include <assert.h>
18103 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18106 # Broken: fails on valid input.
18109 rm -f conftest.err conftest.
$ac_ext
18111 # OK, works on sane cases. Now check whether nonexistent headers
18112 # can be detected and how.
18113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18114 /* end confdefs.h. */
18115 #include <ac_nonexistent.h>
18117 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18118 # Broken: success on invalid input.
18121 # Passes both tests.
18125 rm -f conftest.err conftest.
$ac_ext
18128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18129 rm -f conftest.err conftest.
$ac_ext
18130 if $ac_preproc_ok; then :
18135 ac_cv_prog_CXXCPP
=$CXXCPP
18138 CXXCPP
=$ac_cv_prog_CXXCPP
18140 ac_cv_prog_CXXCPP
=$CXXCPP
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18143 $as_echo "$CXXCPP" >&6; }
18144 ac_preproc_ok
=false
18145 for ac_cxx_preproc_warn_flag
in '' yes
18147 # Use a header file that comes with gcc, so configuring glibc
18148 # with a fresh cross-compiler works.
18149 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18150 # <limits.h> exists even on freestanding compilers.
18151 # On the NeXT, cc -E runs the code through the compiler's parser,
18152 # not just through cpp. "Syntax error" is here to catch this case.
18153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18154 /* end confdefs.h. */
18156 # include <limits.h>
18158 # include <assert.h>
18162 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18165 # Broken: fails on valid input.
18168 rm -f conftest.err conftest.
$ac_ext
18170 # OK, works on sane cases. Now check whether nonexistent headers
18171 # can be detected and how.
18172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18173 /* end confdefs.h. */
18174 #include <ac_nonexistent.h>
18176 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18177 # Broken: success on invalid input.
18180 # Passes both tests.
18184 rm -f conftest.err conftest.
$ac_ext
18187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18188 rm -f conftest.err conftest.
$ac_ext
18189 if $ac_preproc_ok; then :
18192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18194 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18195 See \`config.log' for more details." "$LINENO" 5; }
18199 ac_cpp
='$CPP $CPPFLAGS'
18200 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18201 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18202 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18205 _lt_caught_CXX_error
=yes
18209 ac_cpp
='$CXXCPP $CPPFLAGS'
18210 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18211 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18212 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18214 archive_cmds_need_lc_CXX
=no
18215 allow_undefined_flag_CXX
=
18216 always_export_symbols_CXX
=no
18217 archive_expsym_cmds_CXX
=
18218 compiler_needs_object_CXX
=no
18219 export_dynamic_flag_spec_CXX
=
18220 hardcode_direct_CXX
=no
18221 hardcode_direct_absolute_CXX
=no
18222 hardcode_libdir_flag_spec_CXX
=
18223 hardcode_libdir_flag_spec_ld_CXX
=
18224 hardcode_libdir_separator_CXX
=
18225 hardcode_minus_L_CXX
=no
18226 hardcode_shlibpath_var_CXX
=unsupported
18227 hardcode_automatic_CXX
=no
18228 inherit_rpath_CXX
=no
18230 module_expsym_cmds_CXX
=
18231 link_all_deplibs_CXX
=unknown
18232 old_archive_cmds_CXX
=$old_archive_cmds
18233 reload_flag_CXX
=$reload_flag
18234 reload_cmds_CXX
=$reload_cmds
18235 no_undefined_flag_CXX
=
18236 whole_archive_flag_spec_CXX
=
18237 enable_shared_with_static_runtimes_CXX
=no
18239 # Source file extension for C++ test sources.
18242 # Object file extension for compiled C++ test sources.
18246 # No sense in running all these tests if we already determined that
18247 # the CXX compiler isn't working. Some variables (like enable_shared)
18248 # are currently assumed to apply to all compilers on this platform,
18249 # and will be corrupted by setting them based on a non-working compiler.
18250 if test "$_lt_caught_CXX_error" != yes; then
18251 # Code to be used in simple compile tests
18252 lt_simple_compile_test_code
="int some_variable = 0;"
18254 # Code to be used in simple link tests
18255 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18257 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18264 # If no C compiler was specified, use CC.
18267 # If no C compiler flags were specified, use CFLAGS.
18268 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18270 # Allow CC to be a program name with arguments.
18274 # save warnings/boilerplate of simple test code
18275 ac_outfile
=conftest.
$ac_objext
18276 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18277 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18278 _lt_compiler_boilerplate
=`cat conftest.err`
18281 ac_outfile
=conftest.
$ac_objext
18282 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18283 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18284 _lt_linker_boilerplate
=`cat conftest.err`
18288 # Allow CC to be a program name with arguments.
18293 lt_save_with_gnu_ld
=$with_gnu_ld
18294 lt_save_path_LD
=$lt_cv_path_LD
18295 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18296 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18298 $as_unset lt_cv_prog_gnu_ld
18300 if test -n "${lt_cv_path_LDCXX+set}"; then
18301 lt_cv_path_LD
=$lt_cv_path_LDCXX
18303 $as_unset lt_cv_path_LD
18305 test -z "${LDCXX+set}" || LD
=$LDCXX
18309 for cc_temp
in $compiler""; do
18311 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18312 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18317 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18320 if test -n "$compiler"; then
18321 # We don't want -fno-exception when compiling C++ code, so set the
18322 # no_builtin_flag separately
18323 if test "$GXX" = yes; then
18324 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18326 lt_prog_compiler_no_builtin_flag_CXX
=
18329 if test "$GXX" = yes; then
18330 # Set up default GNU C++ configuration
18334 # Check whether --with-gnu-ld was given.
18335 if test "${with_gnu_ld+set}" = set; then :
18336 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18342 if test "$GCC" = yes; then
18343 # Check if gcc -print-prog-name=ld gives a path.
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18345 $as_echo_n "checking for ld used by $CC... " >&6; }
18348 # gcc leaves a trailing carriage return which upsets mingw
18349 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18351 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18354 # Accept absolute paths.
18356 re_direlt
='/[^/][^/]*/\.\./'
18357 # Canonicalize the pathname of ld
18358 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18359 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18360 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18362 test -z "$LD" && LD
="$ac_prog"
18365 # If it fails, then pretend we aren't using GCC.
18369 # If it is relative, then search for the first ld in PATH.
18370 with_gnu_ld
=unknown
18373 elif test "$with_gnu_ld" = yes; then
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18375 $as_echo_n "checking for GNU ld... " >&6; }
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18378 $as_echo_n "checking for non-GNU ld... " >&6; }
18380 if test "${lt_cv_path_LD+set}" = set; then :
18381 $as_echo_n "(cached) " >&6
18383 if test -z "$LD"; then
18384 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18385 for ac_dir
in $PATH; do
18387 test -z "$ac_dir" && ac_dir
=.
18388 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18389 lt_cv_path_LD
="$ac_dir/$ac_prog"
18390 # Check to see if the program is GNU ld. I'd rather use --version,
18391 # but apparently some variants of GNU ld only accept -v.
18392 # Break only if it was the GNU/non-GNU ld that we prefer.
18393 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18394 *GNU
* |
*'with BFD'*)
18395 test "$with_gnu_ld" != no
&& break
18398 test "$with_gnu_ld" != yes && break
18405 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18409 LD
="$lt_cv_path_LD"
18410 if test -n "$LD"; then
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18412 $as_echo "$LD" >&6; }
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18415 $as_echo "no" >&6; }
18417 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18419 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18420 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18421 $as_echo_n "(cached) " >&6
18423 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18424 case `$LD -v 2>&1 </dev/null` in
18425 *GNU
* |
*'with BFD'*)
18426 lt_cv_prog_gnu_ld
=yes
18429 lt_cv_prog_gnu_ld
=no
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18434 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18435 with_gnu_ld
=$lt_cv_prog_gnu_ld
18443 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18444 # archiving commands below assume that GNU ld is being used.
18445 if test "$with_gnu_ld" = yes; then
18446 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18447 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'
18449 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18450 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18452 # If archive_cmds runs LD, not CC, wlarc should be empty
18453 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18454 # investigate it a little bit more. (MM)
18457 # ancient GNU ld didn't support --whole-archive et. al.
18458 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18459 $GREP 'no-whole-archive' > /dev
/null
; then
18460 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18462 whole_archive_flag_spec_CXX
=
18468 # A generic and very simple default shared library creation
18469 # command for GNU C++ for the case where it uses the native
18470 # linker, instead of GNU ld. If possible, this setting should
18471 # overridden to take advantage of the native linker features on
18472 # the platform it is being used on.
18473 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18476 # Commands to make compiler produce verbose output that lists
18477 # what "hidden" libraries, object files and flags are used when
18478 # linking a shared library.
18479 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18487 # PORTME: fill in a description of your system's C++ link characteristics
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18489 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18493 # FIXME: insert proper C++ library support
18497 if test "$host_cpu" = ia64
; then
18498 # On IA64, the linker does run time linking by default, so we don't
18499 # have to do anything special.
18500 aix_use_runtimelinking
=no
18501 exp_sym_flag
='-Bexport'
18504 aix_use_runtimelinking
=no
18506 # Test if we are trying to use run time linking or normal
18507 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18508 # need to do runtime linking.
18509 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18510 for ld_flag
in $LDFLAGS; do
18513 aix_use_runtimelinking
=yes
18521 exp_sym_flag
='-bexport'
18522 no_entry_flag
='-bnoentry'
18525 # When large executables or shared objects are built, AIX ld can
18526 # have problems creating the table of contents. If linking a library
18527 # or program results in "error TOC overflow" add -mminimal-toc to
18528 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18529 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18531 archive_cmds_CXX
=''
18532 hardcode_direct_CXX
=yes
18533 hardcode_direct_absolute_CXX
=yes
18534 hardcode_libdir_separator_CXX
=':'
18535 link_all_deplibs_CXX
=yes
18536 file_list_spec_CXX
='${wl}-f,'
18538 if test "$GXX" = yes; then
18539 case $host_os in aix4.
[012]|aix4.
[012].
*)
18540 # We only want to do this on AIX 4.2 and lower, the check
18541 # below for broken collect2 doesn't work under 4.3+
18542 collect2name
=`${CC} -print-prog-name=collect2`
18543 if test -f "$collect2name" &&
18544 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18546 # We have reworked collect2
18549 # We have old collect2
18550 hardcode_direct_CXX
=unsupported
18551 # It fails to find uninstalled libraries when the uninstalled
18552 # path is not listed in the libpath. Setting hardcode_minus_L
18553 # to unsupported forces relinking
18554 hardcode_minus_L_CXX
=yes
18555 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18556 hardcode_libdir_separator_CXX
=
18559 shared_flag
='-shared'
18560 if test "$aix_use_runtimelinking" = yes; then
18561 shared_flag
="$shared_flag "'${wl}-G'
18565 if test "$host_cpu" = ia64
; then
18566 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18567 # chokes on -Wl,-G. The following line is correct:
18570 if test "$aix_use_runtimelinking" = yes; then
18571 shared_flag
='${wl}-G'
18573 shared_flag
='${wl}-bM:SRE'
18578 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18579 # It seems that -bexpall does not export symbols beginning with
18580 # underscore (_), so it is better to generate a list of symbols to
18582 always_export_symbols_CXX
=yes
18583 if test "$aix_use_runtimelinking" = yes; then
18584 # Warning - without using the other runtime loading flags (-brtl),
18585 # -berok will link without error, but may produce a broken library.
18586 allow_undefined_flag_CXX
='-berok'
18587 # Determine the default libpath from the value encoded in an empty
18589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18590 /* end confdefs.h. */
18600 if ac_fn_cxx_try_link
"$LINENO"; then :
18602 lt_aix_libpath_sed
='
18603 /Import File Strings/,/^$/ {
18609 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18610 # Check for a 64-bit object if we didn't find anything.
18611 if test -z "$aix_libpath"; then
18612 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18615 rm -f core conftest.err conftest.
$ac_objext \
18616 conftest
$ac_exeext conftest.
$ac_ext
18617 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18619 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18621 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"
18623 if test "$host_cpu" = ia64
; then
18624 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18625 allow_undefined_flag_CXX
="-z nodefs"
18626 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"
18628 # Determine the default libpath from the value encoded in an
18629 # empty executable.
18630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18631 /* end confdefs.h. */
18641 if ac_fn_cxx_try_link
"$LINENO"; then :
18643 lt_aix_libpath_sed
='
18644 /Import File Strings/,/^$/ {
18650 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18651 # Check for a 64-bit object if we didn't find anything.
18652 if test -z "$aix_libpath"; then
18653 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18656 rm -f core conftest.err conftest.
$ac_objext \
18657 conftest
$ac_exeext conftest.
$ac_ext
18658 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18660 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18661 # Warning - without using the other run time loading flags,
18662 # -berok will link without error, but may produce a broken library.
18663 no_undefined_flag_CXX
=' ${wl}-bernotok'
18664 allow_undefined_flag_CXX
=' ${wl}-berok'
18665 if test "$with_gnu_ld" = yes; then
18666 # We only use this code for GNU lds that support --whole-archive.
18667 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18669 # Exported symbols can be pulled into shared objects from archives
18670 whole_archive_flag_spec_CXX
='$convenience'
18672 archive_cmds_need_lc_CXX
=yes
18673 # This is similar to how AIX traditionally builds its shared
18675 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'
18681 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18682 allow_undefined_flag_CXX
=unsupported
18683 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18684 # support --undefined. This deserves some investigation. FIXME
18685 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18692 case $cc_basename in
18694 # FIXME: insert proper C++ library support
18700 cygwin
* | mingw
* | pw32
* | cegcc
*)
18701 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18702 # as there is no search path for DLLs.
18703 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18704 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18705 allow_undefined_flag_CXX
=unsupported
18706 always_export_symbols_CXX
=no
18707 enable_shared_with_static_runtimes_CXX
=yes
18709 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18710 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'
18711 # If the export-symbols file already is a .def file (1st line
18712 # is EXPORTS), use it as is; otherwise, prepend...
18713 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18714 cp $export_symbols $output_objdir/$soname.def;
18716 echo EXPORTS > $output_objdir/$soname.def;
18717 cat $export_symbols >> $output_objdir/$soname.def;
18719 $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'
18724 darwin
* | rhapsody
*)
18727 archive_cmds_need_lc_CXX
=no
18728 hardcode_direct_CXX
=no
18729 hardcode_automatic_CXX
=yes
18730 hardcode_shlibpath_var_CXX
=unsupported
18731 if test "$lt_cv_ld_force_load" = "yes"; then
18732 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\"`'
18734 whole_archive_flag_spec_CXX
=''
18736 link_all_deplibs_CXX
=yes
18737 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18738 case $cc_basename in
18739 ifort
*) _lt_dar_can_shared
=yes ;;
18740 *) _lt_dar_can_shared
=$GCC ;;
18742 if test "$_lt_dar_can_shared" = "yes"; then
18743 output_verbose_link_cmd
=func_echo_all
18744 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}"
18745 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18746 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}"
18747 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}"
18748 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18749 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}"
18750 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}"
18760 case $cc_basename in
18762 # FIXME: insert proper C++ library support
18766 # Green Hills C++ Compiler
18767 # FIXME: insert proper C++ library support
18771 # FIXME: insert proper C++ library support
18778 # C++ shared libraries reported to be fairly broken before
18784 archive_cmds_need_lc_CXX
=no
18787 freebsd
* | dragonfly
*)
18788 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18797 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18798 link_all_deplibs_CXX
=yes
18802 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18803 hardcode_libdir_separator_CXX
=:
18804 export_dynamic_flag_spec_CXX
='${wl}-E'
18805 hardcode_direct_CXX
=yes
18806 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18807 # but as the default
18808 # location of the library.
18810 case $cc_basename in
18812 # FIXME: insert proper C++ library support
18816 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'
18817 # Commands to make compiler produce verbose output that lists
18818 # what "hidden" libraries, object files and flags are used when
18819 # linking a shared library.
18821 # There doesn't appear to be a way to prevent this compiler from
18822 # explicitly linking system object files so we need to strip them
18823 # from the output so that they don't get included in the library
18825 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"'
18828 if test "$GXX" = yes; then
18829 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'
18831 # FIXME: insert proper C++ library support
18839 if test $with_gnu_ld = no
; then
18840 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18841 hardcode_libdir_separator_CXX
=:
18847 export_dynamic_flag_spec_CXX
='${wl}-E'
18853 hardcode_direct_CXX
=no
18854 hardcode_shlibpath_var_CXX
=no
18857 hardcode_direct_CXX
=yes
18858 hardcode_direct_absolute_CXX
=yes
18859 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18860 # but as the default
18861 # location of the library.
18865 case $cc_basename in
18867 # FIXME: insert proper C++ library support
18873 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18876 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18879 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18882 # Commands to make compiler produce verbose output that lists
18883 # what "hidden" libraries, object files and flags are used when
18884 # linking a shared library.
18886 # There doesn't appear to be a way to prevent this compiler from
18887 # explicitly linking system object files so we need to strip them
18888 # from the output so that they don't get included in the library
18890 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"'
18893 if test "$GXX" = yes; then
18894 if test $with_gnu_ld = no
; then
18897 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18900 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18903 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'
18908 # FIXME: insert proper C++ library support
18916 hardcode_direct_CXX
=no
18917 hardcode_shlibpath_var_CXX
=no
18918 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18919 export_dynamic_flag_spec_CXX
='${wl}-E'
18920 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18921 # Instead, shared libraries are loaded at an image base (0x10000000 by
18922 # default) and relocated if they conflict, which is a slow very memory
18923 # consuming and fragmenting process. To avoid this, we pick a random,
18924 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18925 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18926 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'
18927 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'
18930 case $cc_basename in
18933 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'
18935 # Archives containing C++ object files must be created using
18936 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18937 # necessary to make sure instantiated templates are included
18939 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
18942 if test "$GXX" = yes; then
18943 if test "$with_gnu_ld" = no
; then
18944 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'
18946 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'
18949 link_all_deplibs_CXX
=yes
18952 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18953 hardcode_libdir_separator_CXX
=:
18954 inherit_rpath_CXX
=yes
18957 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
18958 case $cc_basename in
18960 # Kuck and Associates, Inc. (KAI) C++ Compiler
18962 # KCC will only create a shared library if the output file
18963 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18964 # to its proper name (with version) after linking.
18965 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'
18966 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'
18967 # Commands to make compiler produce verbose output that lists
18968 # what "hidden" libraries, object files and flags are used when
18969 # linking a shared library.
18971 # There doesn't appear to be a way to prevent this compiler from
18972 # explicitly linking system object files so we need to strip them
18973 # from the output so that they don't get included in the library
18975 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"'
18977 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18978 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18980 # Archives containing C++ object files must be created using
18981 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18982 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
18987 # version 8.0 and above of icpc choke on multiply defined symbols
18988 # if we add $predep_objects and $postdep_objects, however 7.1 and
18989 # earlier do not add the objects themselves.
18990 case `$CC -V 2>&1` in
18992 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18993 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'
18995 *) # Version 8.0 or newer
18998 ia64
*) tmp_idyn
=' -i_dynamic';;
19000 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19001 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'
19004 archive_cmds_need_lc_CXX
=no
19005 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19006 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19007 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19010 # Portland Group C++ compiler
19012 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19013 prelink_cmds_CXX
='tpldir=Template.dir~
19015 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19016 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19017 old_archive_cmds_CXX
='tpldir=Template.dir~
19019 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19020 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19022 archive_cmds_CXX
='tpldir=Template.dir~
19024 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19025 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19026 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19028 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19029 $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'
19031 *) # Version 6 and above use weak symbols
19032 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19033 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'
19037 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19038 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19039 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'
19043 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19044 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'
19046 runpath_var
=LD_RUN_PATH
19047 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19048 hardcode_libdir_separator_CXX
=:
19050 # Commands to make compiler produce verbose output that lists
19051 # what "hidden" libraries, object files and flags are used when
19052 # linking a shared library.
19054 # There doesn't appear to be a way to prevent this compiler from
19055 # explicitly linking system object files so we need to strip them
19056 # from the output so that they don't get included in the library
19058 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'
19060 xl
* | mpixl
* | bgxl
*)
19061 # IBM XL 8.0 on PPC, with GNU ld
19062 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19063 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19064 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19065 if test "x$supports_anon_versioning" = xyes
; then
19066 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19067 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19068 echo "local: *; };" >> $output_objdir/$libname.ver~
19069 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19073 case `$CC -V 2>&1 | sed 5q` in
19076 no_undefined_flag_CXX
=' -zdefs'
19077 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19078 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'
19079 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19080 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'
19081 compiler_needs_object_CXX
=yes
19083 # Not sure whether something based on
19084 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19086 output_verbose_link_cmd
='func_echo_all'
19088 # Archives containing C++ object files must be created using
19089 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19090 # necessary to make sure instantiated templates are included
19092 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19100 # FIXME: insert proper C++ library support
19105 # FIXME: insert proper C++ library support
19110 case $cc_basename in
19112 # FIXME: insert proper C++ library support
19116 # FIXME: insert proper C++ library support
19123 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19124 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19126 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19127 hardcode_direct_CXX
=yes
19128 hardcode_shlibpath_var_CXX
=no
19130 # Workaround some broken pre-1.5 toolchains
19131 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19139 # C++ shared libraries are fairly broken
19144 if test -f /usr
/libexec
/ld.so
; then
19145 hardcode_direct_CXX
=yes
19146 hardcode_shlibpath_var_CXX
=no
19147 hardcode_direct_absolute_CXX
=yes
19148 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19149 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19150 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19151 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19152 export_dynamic_flag_spec_CXX
='${wl}-E'
19153 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19155 output_verbose_link_cmd
=func_echo_all
19161 osf3
* | osf4
* | osf5
*)
19162 case $cc_basename in
19164 # Kuck and Associates, Inc. (KAI) C++ Compiler
19166 # KCC will only create a shared library if the output file
19167 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19168 # to its proper name (with version) after linking.
19169 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'
19171 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19172 hardcode_libdir_separator_CXX
=:
19174 # Archives containing C++ object files must be created using
19175 # the KAI C++ compiler.
19177 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19178 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19182 # Rational C++ 2.4.1
19183 # FIXME: insert proper C++ library support
19189 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19190 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'
19191 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19194 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19195 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'
19196 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19197 echo "-hidden">> $lib.exp~
19198 $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~
19200 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19204 hardcode_libdir_separator_CXX
=:
19206 # Commands to make compiler produce verbose output that lists
19207 # what "hidden" libraries, object files and flags are used when
19208 # linking a shared library.
19210 # There doesn't appear to be a way to prevent this compiler from
19211 # explicitly linking system object files so we need to strip them
19212 # from the output so that they don't get included in the library
19214 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"'
19217 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19218 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19221 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'
19224 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'
19228 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19229 hardcode_libdir_separator_CXX
=:
19231 # Commands to make compiler produce verbose output that lists
19232 # what "hidden" libraries, object files and flags are used when
19233 # linking a shared library.
19234 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19237 # FIXME: insert proper C++ library support
19245 # FIXME: insert proper C++ library support
19250 case $cc_basename in
19253 # FIXME: insert proper C++ library support
19258 # FIXME: insert proper C++ library support
19262 # FIXME: insert proper C++ library support
19269 case $cc_basename in
19271 # Sun C++ 4.2, 5.x and Centerline C++
19272 archive_cmds_need_lc_CXX
=yes
19273 no_undefined_flag_CXX
=' -zdefs'
19274 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19275 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19276 $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'
19278 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19279 hardcode_shlibpath_var_CXX
=no
19281 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19283 # The compiler driver will combine and reorder linker options,
19284 # but understands `-z linker_flag'.
19285 # Supported since Solaris 2.6 (maybe 2.5.1?)
19286 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19289 link_all_deplibs_CXX
=yes
19291 output_verbose_link_cmd
='func_echo_all'
19293 # Archives containing C++ object files must be created using
19294 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19295 # necessary to make sure instantiated templates are included
19297 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19300 # Green Hills C++ Compiler
19301 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19303 # The C++ compiler must be used to create the archive.
19304 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19307 # GNU C++ compiler with Solaris linker
19308 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19309 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19310 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19311 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19312 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19313 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19315 # Commands to make compiler produce verbose output that lists
19316 # what "hidden" libraries, object files and flags are used when
19317 # linking a shared library.
19318 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19320 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19322 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19323 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19324 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19326 # Commands to make compiler produce verbose output that lists
19327 # what "hidden" libraries, object files and flags are used when
19328 # linking a shared library.
19329 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19332 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19334 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19336 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19344 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19345 no_undefined_flag_CXX
='${wl}-z,text'
19346 archive_cmds_need_lc_CXX
=no
19347 hardcode_shlibpath_var_CXX
=no
19348 runpath_var
='LD_RUN_PATH'
19350 case $cc_basename in
19352 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19353 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19356 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19357 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19362 sysv5
* | sco3.2v5
* | sco5v6
*)
19363 # Note: We can NOT use -z defs as we might desire, because we do not
19364 # link with -lc, and that would cause any symbols used from libc to
19365 # always be unresolved, which means just about no library would
19366 # ever link correctly. If we're not using GNU ld we use -z text
19367 # though, which does catch some bad symbols but isn't as heavy-handed
19369 no_undefined_flag_CXX
='${wl}-z,text'
19370 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19371 archive_cmds_need_lc_CXX
=no
19372 hardcode_shlibpath_var_CXX
=no
19373 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19374 hardcode_libdir_separator_CXX
=':'
19375 link_all_deplibs_CXX
=yes
19376 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19377 runpath_var
='LD_RUN_PATH'
19379 case $cc_basename in
19381 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19382 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19383 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19384 '"$old_archive_cmds_CXX"
19385 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19386 '"$reload_cmds_CXX"
19389 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19390 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19396 case $cc_basename in
19398 # NonStop-UX NCC 3.20
19399 # FIXME: insert proper C++ library support
19403 # FIXME: insert proper C++ library support
19410 # FIXME: insert proper C++ library support
19415 # FIXME: insert proper C++ library support
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19421 $as_echo "$ld_shlibs_CXX" >&6; }
19422 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19428 ## There is no encapsulation within the following macros, do not change
19429 ## the running order or otherwise move them around unless you know exactly
19430 ## what you are doing...
19431 # Dependencies to place before and after the object being linked:
19432 predep_objects_CXX
=
19433 postdep_objects_CXX
=
19436 compiler_lib_search_path_CXX
=
19438 cat > conftest.
$ac_ext <<_LT_EOF
19442 Foo (void) { a = 0; }
19448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19449 (eval $ac_compile) 2>&5
19451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19452 test $ac_status = 0; }; then
19453 # Parse the compiler output and extract the necessary
19454 # objects, libraries and library flags.
19456 # Sentinel used to keep track of whether or not we are before
19457 # the conftest object file.
19458 pre_test_object_deps_done
=no
19460 for p
in `eval "$output_verbose_link_cmd"`; do
19464 # Some compilers place space between "-{L,R}" and the path.
19465 # Remove the space.
19466 if test $p = "-L" ||
19467 test $p = "-R"; then
19474 if test "$pre_test_object_deps_done" = no
; then
19477 # Internal compiler library paths should come after those
19478 # provided the user. The postdeps already come after the
19479 # user supplied libs so there is no need to process them.
19480 if test -z "$compiler_lib_search_path_CXX"; then
19481 compiler_lib_search_path_CXX
="${prev}${p}"
19483 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19486 # The "-l" case would never come before the object being
19487 # linked, so don't bother handling this case.
19490 if test -z "$postdeps_CXX"; then
19491 postdeps_CXX
="${prev}${p}"
19493 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19499 # This assumes that the test object file only shows up
19500 # once in the compiler output.
19501 if test "$p" = "conftest.$objext"; then
19502 pre_test_object_deps_done
=yes
19506 if test "$pre_test_object_deps_done" = no
; then
19507 if test -z "$predep_objects_CXX"; then
19508 predep_objects_CXX
="$p"
19510 predep_objects_CXX
="$predep_objects_CXX $p"
19513 if test -z "$postdep_objects_CXX"; then
19514 postdep_objects_CXX
="$p"
19516 postdep_objects_CXX
="$postdep_objects_CXX $p"
19521 *) ;; # Ignore the rest.
19529 echo "libtool.m4: error: problem compiling CXX test program"
19532 $RM -f confest.
$objext
19534 # PORTME: override above test on systems where it is broken
19537 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19538 # hack all around it, let's just trust "g++" to DTRT.
19539 predep_objects_CXX
=
19540 postdep_objects_CXX
=
19545 case `$CC -V 2>&1 | sed 5q` in
19549 # The more standards-conforming stlport4 library is
19550 # incompatible with the Cstd library. Avoid specifying
19551 # it if it's in CXXFLAGS. Ignore libCrun as
19552 # -library=stlport4 depends on it.
19553 case " $CXX $CXXFLAGS " in
19554 *" -library=stlport4 "*)
19555 solaris_use_stlport4
=yes
19559 if test "$solaris_use_stlport4" != yes; then
19560 postdeps_CXX
='-library=Cstd -library=Crun'
19567 case $cc_basename in
19569 # The more standards-conforming stlport4 library is
19570 # incompatible with the Cstd library. Avoid specifying
19571 # it if it's in CXXFLAGS. Ignore libCrun as
19572 # -library=stlport4 depends on it.
19573 case " $CXX $CXXFLAGS " in
19574 *" -library=stlport4 "*)
19575 solaris_use_stlport4
=yes
19579 # Adding this requires a known-good setup of shared libraries for
19580 # Sun compiler versions before 5.6, else PIC objects from an old
19581 # archive will be linked into the output, leading to subtle bugs.
19582 if test "$solaris_use_stlport4" != yes; then
19583 postdeps_CXX
='-library=Cstd -library=Crun'
19591 case " $postdeps_CXX " in
19592 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19594 compiler_lib_search_dirs_CXX
=
19595 if test -n "${compiler_lib_search_path_CXX}"; then
19596 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19629 lt_prog_compiler_wl_CXX
=
19630 lt_prog_compiler_pic_CXX
=
19631 lt_prog_compiler_static_CXX
=
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19634 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19636 # C++ specific cases for pic, static, wl, etc.
19637 if test "$GXX" = yes; then
19638 lt_prog_compiler_wl_CXX
='-Wl,'
19639 lt_prog_compiler_static_CXX
='-static'
19643 # All AIX code is PIC.
19644 if test "$host_cpu" = ia64
; then
19645 # AIX 5 now supports IA64 processor
19646 lt_prog_compiler_static_CXX
='-Bstatic'
19653 # see comment about AmigaOS4 .so support
19654 lt_prog_compiler_pic_CXX
='-fPIC'
19657 # FIXME: we need at least 68020 code to build shared libraries, but
19658 # adding the `-m68020' flag to GCC prevents building anything better,
19660 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19665 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19666 # PIC is the default for these OSes.
19668 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19669 # This hack is so that the source file can tell whether it is being
19670 # built for inclusion in a dll (and should export symbols for example).
19671 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19672 # (--disable-auto-import) libraries
19673 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19675 darwin
* | rhapsody
*)
19676 # PIC is the default on this platform
19677 # Common symbols not allowed in MH_DYLIB files
19678 lt_prog_compiler_pic_CXX
='-fno-common'
19681 # DJGPP does not support shared libraries at all
19682 lt_prog_compiler_pic_CXX
=
19685 # PIC is the default for Haiku.
19686 # The "-static" flag exists, but is broken.
19687 lt_prog_compiler_static_CXX
=
19690 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19691 # Instead, we relocate shared libraries at runtime.
19694 if test -d /usr
/nec
; then
19695 lt_prog_compiler_pic_CXX
=-Kconform_pic
19699 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19700 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19701 # sets the default TLS model and affects inlining.
19706 lt_prog_compiler_pic_CXX
='-fPIC'
19711 # QNX uses GNU C++, but need to define -shared option too, otherwise
19712 # it will coredump.
19713 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19716 lt_prog_compiler_pic_CXX
='-fPIC'
19722 # All AIX code is PIC.
19723 if test "$host_cpu" = ia64
; then
19724 # AIX 5 now supports IA64 processor
19725 lt_prog_compiler_static_CXX
='-Bstatic'
19727 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19731 case $cc_basename in
19733 # Green Hills C++ Compiler
19734 # _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"
19739 case $cc_basename in
19741 lt_prog_compiler_pic_CXX
='-KPIC'
19744 # Green Hills C++ Compiler
19745 lt_prog_compiler_pic_CXX
='-pic'
19751 freebsd
* | dragonfly
*)
19752 # FreeBSD uses GNU C++
19754 hpux9
* | hpux10
* | hpux11
*)
19755 case $cc_basename in
19757 lt_prog_compiler_wl_CXX
='-Wl,'
19758 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19759 if test "$host_cpu" != ia64
; then
19760 lt_prog_compiler_pic_CXX
='+Z'
19764 lt_prog_compiler_wl_CXX
='-Wl,'
19765 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19771 lt_prog_compiler_pic_CXX
='+Z'
19780 # This is c89, which is MS Visual C++ (no shared libs)
19781 # Anyone wants to do a port?
19783 irix5
* | irix6
* | nonstopux
*)
19784 case $cc_basename in
19786 lt_prog_compiler_wl_CXX
='-Wl,'
19787 lt_prog_compiler_static_CXX
='-non_shared'
19788 # CC pic flag -KPIC is the default.
19794 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19795 case $cc_basename in
19798 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19799 lt_prog_compiler_pic_CXX
='-fPIC'
19802 # old Intel C++ for x86_64 which still supported -KPIC.
19803 lt_prog_compiler_wl_CXX
='-Wl,'
19804 lt_prog_compiler_pic_CXX
='-KPIC'
19805 lt_prog_compiler_static_CXX
='-static'
19808 # Intel C++, used to be incompatible with GCC.
19809 # ICC 10 doesn't accept -KPIC any more.
19810 lt_prog_compiler_wl_CXX
='-Wl,'
19811 lt_prog_compiler_pic_CXX
='-fPIC'
19812 lt_prog_compiler_static_CXX
='-static'
19815 # Portland Group C++ compiler
19816 lt_prog_compiler_wl_CXX
='-Wl,'
19817 lt_prog_compiler_pic_CXX
='-fpic'
19818 lt_prog_compiler_static_CXX
='-Bstatic'
19822 # Make sure the PIC flag is empty. It appears that all Alpha
19823 # Linux and Compaq Tru64 Unix objects are PIC.
19824 lt_prog_compiler_pic_CXX
=
19825 lt_prog_compiler_static_CXX
='-non_shared'
19827 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19828 # IBM XL 8.0, 9.0 on PPC and BlueGene
19829 lt_prog_compiler_wl_CXX
='-Wl,'
19830 lt_prog_compiler_pic_CXX
='-qpic'
19831 lt_prog_compiler_static_CXX
='-qstaticlink'
19834 case `$CC -V 2>&1 | sed 5q` in
19837 lt_prog_compiler_pic_CXX
='-KPIC'
19838 lt_prog_compiler_static_CXX
='-Bstatic'
19839 lt_prog_compiler_wl_CXX
='-Qoption ld '
19850 case $cc_basename in
19852 lt_prog_compiler_pic_CXX
='-W c,exportall'
19861 # QNX uses GNU C++, but need to define -shared option too, otherwise
19862 # it will coredump.
19863 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19865 osf3
* | osf4
* | osf5
*)
19866 case $cc_basename in
19868 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19871 # Rational C++ 2.4.1
19872 lt_prog_compiler_pic_CXX
='-pic'
19875 # Digital/Compaq C++
19876 lt_prog_compiler_wl_CXX
='-Wl,'
19877 # Make sure the PIC flag is empty. It appears that all Alpha
19878 # Linux and Compaq Tru64 Unix objects are PIC.
19879 lt_prog_compiler_pic_CXX
=
19880 lt_prog_compiler_static_CXX
='-non_shared'
19889 case $cc_basename in
19891 # Sun C++ 4.2, 5.x and Centerline C++
19892 lt_prog_compiler_pic_CXX
='-KPIC'
19893 lt_prog_compiler_static_CXX
='-Bstatic'
19894 lt_prog_compiler_wl_CXX
='-Qoption ld '
19897 # Green Hills C++ Compiler
19898 lt_prog_compiler_pic_CXX
='-PIC'
19905 case $cc_basename in
19908 lt_prog_compiler_pic_CXX
='-pic'
19909 lt_prog_compiler_static_CXX
='-Bstatic'
19913 lt_prog_compiler_pic_CXX
='-pic'
19919 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
19920 case $cc_basename in
19922 lt_prog_compiler_wl_CXX
='-Wl,'
19923 lt_prog_compiler_pic_CXX
='-KPIC'
19924 lt_prog_compiler_static_CXX
='-Bstatic'
19929 case $cc_basename in
19931 # NonStop-UX NCC 3.20
19932 lt_prog_compiler_pic_CXX
='-KPIC'
19941 lt_prog_compiler_can_build_shared_CXX
=no
19947 # For platforms which do not support PIC, -DPIC is meaningless:
19949 lt_prog_compiler_pic_CXX
=
19952 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19956 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19961 # Check to make sure the PIC flag actually works.
19963 if test -n "$lt_prog_compiler_pic_CXX"; then
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19965 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19966 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19967 $as_echo_n "(cached) " >&6
19969 lt_cv_prog_compiler_pic_works_CXX
=no
19970 ac_outfile
=conftest.
$ac_objext
19971 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19972 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
19973 # Insert the option either (1) after the last *FLAGS variable, or
19974 # (2) before a word containing "conftest.", or (3) at the end.
19975 # Note that $ac_compile itself does not contain backslashes and begins
19976 # with a dollar sign (not a hyphen), so the echo should work correctly.
19977 # The option is referenced via a variable to avoid confusing sed.
19978 lt_compile
=`echo "$ac_compile" | $SED \
19979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19981 -e 's:$: $lt_compiler_flag:'`
19982 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19983 (eval "$lt_compile" 2>conftest.err
)
19985 cat conftest.err
>&5
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 if (exit $ac_status) && test -s "$ac_outfile"; then
19988 # The compiler can only warn and ignore the option if not recognized
19989 # So say no if there are warnings other than the usual output.
19990 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
19991 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19992 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
19993 lt_cv_prog_compiler_pic_works_CXX
=yes
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20000 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20002 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20003 case $lt_prog_compiler_pic_CXX in
20005 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20008 lt_prog_compiler_pic_CXX
=
20009 lt_prog_compiler_can_build_shared_CXX
=no
20017 # Check to make sure the static flag actually works.
20019 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20021 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20022 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20023 $as_echo_n "(cached) " >&6
20025 lt_cv_prog_compiler_static_works_CXX
=no
20026 save_LDFLAGS
="$LDFLAGS"
20027 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20028 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20029 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20030 # The linker can only warn and ignore the option if not recognized
20031 # So say no if there are warnings
20032 if test -s conftest.err
; then
20033 # Append any errors to the config.log.
20034 cat conftest.err
1>&5
20035 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20036 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20037 if diff conftest.exp conftest.er2
>/dev
/null
; then
20038 lt_cv_prog_compiler_static_works_CXX
=yes
20041 lt_cv_prog_compiler_static_works_CXX
=yes
20045 LDFLAGS
="$save_LDFLAGS"
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20049 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20051 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20054 lt_prog_compiler_static_CXX
=
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20061 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20062 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20063 $as_echo_n "(cached) " >&6
20065 lt_cv_prog_compiler_c_o_CXX
=no
20066 $RM -r conftest
2>/dev
/null
20070 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20072 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20073 # Insert the option either (1) after the last *FLAGS variable, or
20074 # (2) before a word containing "conftest.", or (3) at the end.
20075 # Note that $ac_compile itself does not contain backslashes and begins
20076 # with a dollar sign (not a hyphen), so the echo should work correctly.
20077 lt_compile
=`echo "$ac_compile" | $SED \
20078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20080 -e 's:$: $lt_compiler_flag:'`
20081 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20082 (eval "$lt_compile" 2>out
/conftest.err
)
20084 cat out
/conftest.err
>&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20088 # The compiler can only warn and ignore the option if not recognized
20089 # So say no if there are warnings
20090 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20091 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20092 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20093 lt_cv_prog_compiler_c_o_CXX
=yes
20098 # SGI C++ compiler will create directory out/ii_files/ for
20099 # template instantiation
20100 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20101 $RM out
/* && rmdir out
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20108 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20113 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20114 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20115 $as_echo_n "(cached) " >&6
20117 lt_cv_prog_compiler_c_o_CXX
=no
20118 $RM -r conftest
2>/dev
/null
20122 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20124 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20125 # Insert the option either (1) after the last *FLAGS variable, or
20126 # (2) before a word containing "conftest.", or (3) at the end.
20127 # Note that $ac_compile itself does not contain backslashes and begins
20128 # with a dollar sign (not a hyphen), so the echo should work correctly.
20129 lt_compile
=`echo "$ac_compile" | $SED \
20130 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20132 -e 's:$: $lt_compiler_flag:'`
20133 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20134 (eval "$lt_compile" 2>out
/conftest.err
)
20136 cat out
/conftest.err
>&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20140 # The compiler can only warn and ignore the option if not recognized
20141 # So say no if there are warnings
20142 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20143 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20144 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20145 lt_cv_prog_compiler_c_o_CXX
=yes
20150 # SGI C++ compiler will create directory out/ii_files/ for
20151 # template instantiation
20152 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20153 $RM out
/* && rmdir out
20159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20160 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20165 hard_links
="nottested"
20166 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20167 # do not overwrite the value of need_locks provided by the user
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20169 $as_echo_n "checking if we can lock with hard links... " >&6; }
20172 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20174 ln conftest.a conftest.b
2>&5 || hard_links
=no
20175 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20177 $as_echo "$hard_links" >&6; }
20178 if test "$hard_links" = no
; then
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20180 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20190 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20192 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20195 # If we're using GNU nm, then we don't want the "-C" option.
20196 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20197 # Also, AIX nm treats weak defined symbols like other global defined
20198 # symbols, whereas GNU nm marks them as "W".
20199 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20200 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'
20202 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'
20206 export_symbols_cmds_CXX
="$ltdll_cmds"
20208 cygwin
* | mingw
* | cegcc
*)
20209 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'
20212 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20215 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20218 $as_echo "$ld_shlibs_CXX" >&6; }
20219 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20221 with_gnu_ld_CXX
=$with_gnu_ld
20229 # Do we need to explicitly link libc?
20231 case "x$archive_cmds_need_lc_CXX" in
20233 # Assume -lc should be added
20234 archive_cmds_need_lc_CXX
=yes
20236 if test "$enable_shared" = yes && test "$GCC" = yes; then
20237 case $archive_cmds_CXX in
20239 # FIXME: we may have to deal with multi-command sequences.
20242 # Test whether the compiler implicitly links with -lc since on some
20243 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20244 # to ld, don't add -lc before -lgcc.
20245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20246 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20247 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20248 $as_echo_n "(cached) " >&6
20251 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20254 (eval $ac_compile) 2>&5
20256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20257 test $ac_status = 0; } 2>conftest.err
; then
20260 libobjs
=conftest.
$ac_objext
20262 wl
=$lt_prog_compiler_wl_CXX
20263 pic_flag
=$lt_prog_compiler_pic_CXX
20269 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20270 allow_undefined_flag_CXX
=
20271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20272 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20275 test $ac_status = 0; }
20277 lt_cv_archive_cmds_need_lc_CXX
=no
20279 lt_cv_archive_cmds_need_lc_CXX
=yes
20281 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20283 cat conftest.err
1>&5
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20289 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20290 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20361 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20363 library_names_spec
=
20364 libname_spec
='lib$name'
20368 postuninstall_cmds
=
20372 shlibpath_overrides_runpath
=unknown
20374 dynamic_linker
="$host_os ld.so"
20375 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20376 need_lib_prefix
=unknown
20377 hardcode_into_libs
=no
20379 # when you set need_version to no, make sure it does not cause -set_version
20380 # flags to be left without arguments
20381 need_version
=unknown
20386 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20387 shlibpath_var
=LIBPATH
20389 # AIX 3 has no versioning support, so we append a major version to the name.
20390 soname_spec
='${libname}${release}${shared_ext}$major'
20397 hardcode_into_libs
=yes
20398 if test "$host_cpu" = ia64
; then
20399 # AIX 5 supports IA64
20400 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20401 shlibpath_var
=LD_LIBRARY_PATH
20403 # With GCC up to 2.95.x, collect2 would create an import file
20404 # for dependence libraries. The import file would start with
20405 # the line `#! .'. This would cause the generated library to
20406 # depend on `.', always an invalid library. This was fixed in
20407 # development snapshots of GCC prior to 3.0.
20409 aix4 | aix4.
[01] | aix4.
[01].
*)
20410 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20412 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20415 can_build_shared
=no
20419 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20420 # soname into executable. Probably we can add versioning support to
20421 # collect2, so additional links can be useful in future.
20422 if test "$aix_use_runtimelinking" = yes; then
20423 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20424 # instead of lib<name>.a to let people know that these are not
20425 # typical AIX shared libraries.
20426 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20428 # We preserve .a as extension for shared libraries through AIX4.2
20429 # and later when we are not doing run time linking.
20430 library_names_spec
='${libname}${release}.a $libname.a'
20431 soname_spec
='${libname}${release}${shared_ext}$major'
20433 shlibpath_var
=LIBPATH
20440 # Since July 2007 AmigaOS4 officially supports .so libraries.
20441 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20442 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20445 library_names_spec
='$libname.ixlibrary $libname.a'
20446 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20447 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'
20453 library_names_spec
='${libname}${shared_ext}'
20454 dynamic_linker
="$host_os ld.so"
20455 shlibpath_var
=LIBRARY_PATH
20461 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20462 soname_spec
='${libname}${release}${shared_ext}$major'
20463 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20464 shlibpath_var
=LD_LIBRARY_PATH
20465 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20466 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20467 # the default ld.so.conf also contains /usr/contrib/lib and
20468 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20469 # libtool to hard-code these into programs
20472 cygwin
* | mingw
* | pw32
* | cegcc
*)
20473 version_type
=windows
20478 case $GCC,$host_os in
20479 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20480 library_names_spec
='$libname.dll.a'
20481 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20482 postinstall_cmds
='base_file=`basename \${file}`~
20483 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20484 dldir=$destdir/`dirname \$dlpath`~
20485 test -d \$dldir || mkdir -p \$dldir~
20486 $install_prog $dir/$dlname \$dldir/$dlname~
20487 chmod a+x \$dldir/$dlname~
20488 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20489 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20491 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20492 dlpath=$dir/\$dldll~
20494 shlibpath_overrides_runpath
=yes
20498 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20499 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20503 # MinGW DLLs use traditional 'lib' prefix
20504 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20507 # pw32 DLLs use 'pw' prefix rather than 'lib'
20508 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20514 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20517 dynamic_linker
='Win32 ld.exe'
20518 # FIXME: first we should search . and the directory the executable is in
20522 darwin
* | rhapsody
*)
20523 dynamic_linker
="$host_os dyld"
20524 version_type
=darwin
20527 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20528 soname_spec
='${libname}${release}${major}$shared_ext'
20529 shlibpath_overrides_runpath
=yes
20530 shlibpath_var
=DYLD_LIBRARY_PATH
20531 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20533 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20540 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20541 soname_spec
='${libname}${release}${shared_ext}$major'
20542 shlibpath_var
=LD_LIBRARY_PATH
20545 freebsd
* | dragonfly
*)
20546 # DragonFly does not have aout. When/if they implement a new
20547 # versioning mechanism, adjust this.
20548 if test -x /usr
/bin
/objformat
; then
20549 objformat
=`/usr/bin/objformat`
20552 freebsd
[23].
*) objformat
=aout
;;
20553 *) objformat
=elf
;;
20556 version_type
=freebsd-
$objformat
20557 case $version_type in
20559 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20564 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20568 shlibpath_var
=LD_LIBRARY_PATH
20571 shlibpath_overrides_runpath
=yes
20573 freebsd3.
[01]* | freebsdelf3.
[01]*)
20574 shlibpath_overrides_runpath
=yes
20575 hardcode_into_libs
=yes
20577 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20578 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20579 shlibpath_overrides_runpath
=no
20580 hardcode_into_libs
=yes
20582 *) # from 4.6 on, and DragonFly
20583 shlibpath_overrides_runpath
=yes
20584 hardcode_into_libs
=yes
20593 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20594 soname_spec
='${libname}${release}${shared_ext}$major'
20595 shlibpath_var
=LD_LIBRARY_PATH
20596 hardcode_into_libs
=yes
20603 dynamic_linker
="$host_os runtime_loader"
20604 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20605 soname_spec
='${libname}${release}${shared_ext}$major'
20606 shlibpath_var
=LIBRARY_PATH
20607 shlibpath_overrides_runpath
=yes
20608 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20609 hardcode_into_libs
=yes
20612 hpux9
* | hpux10
* | hpux11
*)
20613 # Give a soname corresponding to the major version so that dld.sl refuses to
20614 # link against other versions.
20621 hardcode_into_libs
=yes
20622 dynamic_linker
="$host_os dld.so"
20623 shlibpath_var
=LD_LIBRARY_PATH
20624 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20626 soname_spec
='${libname}${release}${shared_ext}$major'
20627 if test "X$HPUX_IA64_MODE" = X32
; then
20628 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20630 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20632 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20636 hardcode_into_libs
=yes
20637 dynamic_linker
="$host_os dld.sl"
20638 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20639 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20640 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20641 soname_spec
='${libname}${release}${shared_ext}$major'
20642 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20643 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20647 dynamic_linker
="$host_os dld.sl"
20648 shlibpath_var
=SHLIB_PATH
20649 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20650 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20651 soname_spec
='${libname}${release}${shared_ext}$major'
20654 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20655 postinstall_cmds
='chmod 555 $lib'
20656 # or fails outright, so override atomically:
20657 install_override_mode
=555
20664 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20665 soname_spec
='${libname}${release}${shared_ext}$major'
20666 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20667 shlibpath_var
=LD_LIBRARY_PATH
20668 shlibpath_overrides_runpath
=no
20669 hardcode_into_libs
=yes
20672 irix5
* | irix6
* | nonstopux
*)
20674 nonstopux
*) version_type
=nonstopux
;;
20676 if test "$lt_cv_prog_gnu_ld" = yes; then
20684 soname_spec
='${libname}${release}${shared_ext}$major'
20685 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20687 irix5
* | nonstopux
*)
20688 libsuff
= shlibsuff
=
20691 case $LD in # libtool.m4 will add one of these switches to LD
20692 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20693 libsuff
= shlibsuff
= libmagic
=32-bit;;
20694 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20695 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20696 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20697 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20698 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20702 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20703 shlibpath_overrides_runpath
=no
20704 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20705 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20706 hardcode_into_libs
=yes
20709 # No shared lib support for Linux oldld, aout, or coff.
20710 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20714 # This must be Linux ELF.
20715 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20719 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20720 soname_spec
='${libname}${release}${shared_ext}$major'
20721 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20722 shlibpath_var
=LD_LIBRARY_PATH
20723 shlibpath_overrides_runpath
=no
20725 # Some binutils ld are patched to set DT_RUNPATH
20726 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20727 $as_echo_n "(cached) " >&6
20729 lt_cv_shlibpath_overrides_runpath
=no
20730 save_LDFLAGS
=$LDFLAGS
20731 save_libdir
=$libdir
20732 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20733 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20735 /* end confdefs.h. */
20745 if ac_fn_cxx_try_link
"$LINENO"; then :
20746 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20747 lt_cv_shlibpath_overrides_runpath
=yes
20750 rm -f core conftest.err conftest.
$ac_objext \
20751 conftest
$ac_exeext conftest.
$ac_ext
20752 LDFLAGS
=$save_LDFLAGS
20753 libdir
=$save_libdir
20757 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20759 # This implies no fast_install, which is unacceptable.
20760 # Some rework will be needed to allow for fast_install
20761 # before this can be enabled.
20762 hardcode_into_libs
=yes
20764 # Append ld.so.conf contents to the search path
20765 if test -f /etc
/ld.so.conf
; then
20766 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' ' '`
20767 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20770 # We used to test for /lib/ld.so.1 and disable shared libraries on
20771 # powerpc, because MkLinux only supported shared libraries with the
20772 # GNU dynamic linker. Since this was broken with cross compilers,
20773 # most powerpc-linux boxes support dynamic linking these days and
20774 # people can always --disable-shared, the test was removed, and we
20775 # assume the GNU/Linux dynamic linker is in use.
20776 dynamic_linker
='GNU/Linux ld.so'
20783 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20784 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20785 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20786 dynamic_linker
='NetBSD (a.out) ld.so'
20788 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20789 soname_spec
='${libname}${release}${shared_ext}$major'
20790 dynamic_linker
='NetBSD ld.elf_so'
20792 shlibpath_var
=LD_LIBRARY_PATH
20793 shlibpath_overrides_runpath
=yes
20794 hardcode_into_libs
=yes
20799 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20800 shlibpath_var
=LD_LIBRARY_PATH
20801 shlibpath_overrides_runpath
=yes
20808 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20809 soname_spec
='${libname}${release}${shared_ext}$major'
20810 shlibpath_var
=LD_LIBRARY_PATH
20811 shlibpath_overrides_runpath
=no
20812 hardcode_into_libs
=yes
20813 dynamic_linker
='ldqnx.so'
20818 sys_lib_dlsearch_path_spec
="/usr/lib"
20820 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20822 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20823 *) need_version
=no
;;
20825 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20826 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20827 shlibpath_var
=LD_LIBRARY_PATH
20828 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20830 openbsd2.
[89] | openbsd2.
[89].
*)
20831 shlibpath_overrides_runpath
=no
20834 shlibpath_overrides_runpath
=yes
20838 shlibpath_overrides_runpath
=yes
20843 libname_spec
='$name'
20846 library_names_spec
='$libname${shared_ext} $libname.a'
20847 dynamic_linker
='OS/2 ld.exe'
20848 shlibpath_var
=LIBPATH
20851 osf3
* | osf4
* | osf5
*)
20855 soname_spec
='${libname}${release}${shared_ext}$major'
20856 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20857 shlibpath_var
=LD_LIBRARY_PATH
20858 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20859 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20870 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20871 soname_spec
='${libname}${release}${shared_ext}$major'
20872 shlibpath_var
=LD_LIBRARY_PATH
20873 shlibpath_overrides_runpath
=yes
20874 hardcode_into_libs
=yes
20875 # ldd complains unless libraries are executable
20876 postinstall_cmds
='chmod +x $lib'
20881 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20882 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20883 shlibpath_var
=LD_LIBRARY_PATH
20884 shlibpath_overrides_runpath
=yes
20885 if test "$with_gnu_ld" = yes; then
20893 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20894 soname_spec
='${libname}${release}${shared_ext}$major'
20895 shlibpath_var
=LD_LIBRARY_PATH
20896 case $host_vendor in
20898 shlibpath_overrides_runpath
=no
20900 runpath_var
=LD_RUN_PATH
20908 shlibpath_overrides_runpath
=no
20909 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20915 if test -d /usr
/nec
;then
20917 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20918 soname_spec
='$libname${shared_ext}.$major'
20919 shlibpath_var
=LD_LIBRARY_PATH
20923 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20924 version_type
=freebsd-elf
20927 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20928 soname_spec
='${libname}${release}${shared_ext}$major'
20929 shlibpath_var
=LD_LIBRARY_PATH
20930 shlibpath_overrides_runpath
=yes
20931 hardcode_into_libs
=yes
20932 if test "$with_gnu_ld" = yes; then
20933 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20935 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20938 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20942 sys_lib_dlsearch_path_spec
='/usr/lib'
20946 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20950 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20951 shlibpath_var
=LD_LIBRARY_PATH
20952 shlibpath_overrides_runpath
=no
20953 hardcode_into_libs
=yes
20958 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20959 soname_spec
='${libname}${release}${shared_ext}$major'
20960 shlibpath_var
=LD_LIBRARY_PATH
20967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20968 $as_echo "$dynamic_linker" >&6; }
20969 test "$dynamic_linker" = no
&& can_build_shared
=no
20971 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20972 if test "$GCC" = yes; then
20973 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20976 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20977 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
20979 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20980 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21021 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21022 hardcode_action_CXX
=
21023 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21024 test -n "$runpath_var_CXX" ||
21025 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21027 # We can hardcode non-existent directories.
21028 if test "$hardcode_direct_CXX" != no
&&
21029 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21030 # have to relink, otherwise we might link with an installed library
21031 # when we should be linking with a yet-to-be-installed one
21032 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21033 test "$hardcode_minus_L_CXX" != no
; then
21034 # Linking always hardcodes the temporary library directory.
21035 hardcode_action_CXX
=relink
21037 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21038 hardcode_action_CXX
=immediate
21041 # We cannot hardcode anything, or else we can only hardcode existing
21043 hardcode_action_CXX
=unsupported
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21046 $as_echo "$hardcode_action_CXX" >&6; }
21048 if test "$hardcode_action_CXX" = relink ||
21049 test "$inherit_rpath_CXX" = yes; then
21050 # Fast installation is not supported
21051 enable_fast_install
=no
21052 elif test "$shlibpath_overrides_runpath" = yes ||
21053 test "$enable_shared" = no
; then
21054 # Fast installation is not necessary
21055 enable_fast_install
=needless
21064 fi # test -n "$compiler"
21070 with_gnu_ld
=$lt_save_with_gnu_ld
21071 lt_cv_path_LDCXX
=$lt_cv_path_LD
21072 lt_cv_path_LD
=$lt_save_path_LD
21073 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21074 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21075 fi # test "$_lt_caught_CXX_error" != yes
21078 ac_cpp
='$CPP $CPPFLAGS'
21079 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21080 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21081 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21098 # Only expand once:
21104 # Identify the assembler which will work hand-in-glove with the newly
21105 # built GCC, so that we can examine its features. This is the assembler
21106 # which will be driven by the driver program.
21108 # If build != host, and we aren't building gas in-tree, we identify a
21109 # build->target assembler and hope that it will have the same features
21110 # as the host->target assembler we'll be using.
21111 gcc_cv_gas_major_version
=
21112 gcc_cv_gas_minor_version
=
21113 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21115 if test "${gcc_cv_as+set}" = set; then :
21119 if test -x "$DEFAULT_ASSEMBLER"; then
21120 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21121 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21122 && test -f ..
/gas
/Makefile \
21123 && test x
$build = x
$host; then
21124 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21125 elif test -x as
$build_exeext; then
21126 # Build using assembler in the current directory.
21127 gcc_cv_as
=.
/as
$build_exeext
21128 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21129 gcc_cv_as
="$AS_FOR_TARGET"
21131 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21132 set dummy
$AS_FOR_TARGET; ac_word
=$2
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21134 $as_echo_n "checking for $ac_word... " >&6; }
21135 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21136 $as_echo_n "(cached) " >&6
21140 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21144 for as_dir
in $PATH
21147 test -z "$as_dir" && as_dir
=.
21148 for ac_exec_ext
in '' $ac_executable_extensions; do
21149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21150 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21161 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21162 if test -n "$gcc_cv_as"; then
21163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21164 $as_echo "$gcc_cv_as" >&6; }
21166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21167 $as_echo "no" >&6; }
21174 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21176 case "$ORIGINAL_AS_FOR_TARGET" in
21177 .
/as | .
/as
$build_exeext) ;;
21178 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21183 $as_echo_n "checking what assembler to use... " >&6; }
21184 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21185 # Single tree build which includes gas. We want to prefer it
21186 # over whatever linker top-level may have detected, since
21187 # we'll use what we're building after installation anyway.
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21189 $as_echo "newly built gas" >&6; }
21191 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21192 for f
in $gcc_cv_as_bfd_srcdir/configure \
21193 $gcc_cv_as_gas_srcdir/configure \
21194 $gcc_cv_as_gas_srcdir/configure.
in \
21195 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21196 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21197 if test x
$gcc_cv_gas_version != x
; then
21201 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21202 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21203 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21204 case $gcc_cv_gas_patch_version in
21205 "") gcc_cv_gas_patch_version
="0" ;;
21207 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21208 + $gcc_cv_gas_minor_version \) \* 1000 \
21209 + $gcc_cv_gas_patch_version`
21211 in_tree_gas_is_elf
=no
21212 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21213 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21214 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21216 in_tree_gas_is_elf
=yes
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21220 $as_echo "$gcc_cv_as" >&6; }
21224 # Identify the linker which will work hand-in-glove with the newly
21225 # built GCC, so that we can examine its features. This is the linker
21226 # which will be driven by the driver program.
21228 # If build != host, and we aren't building gas in-tree, we identify a
21229 # build->target linker and hope that it will have the same features
21230 # as the host->target linker we'll be using.
21231 gcc_cv_gld_major_version
=
21232 gcc_cv_gld_minor_version
=
21233 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21234 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21236 if test "${gcc_cv_ld+set}" = set; then :
21240 if test -x "$DEFAULT_LINKER"; then
21241 gcc_cv_ld
="$DEFAULT_LINKER"
21242 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21243 && test -f ..
/ld
/Makefile \
21244 && test x
$build = x
$host; then
21245 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21246 elif test -x collect-ld
$build_exeext; then
21247 # Build using linker in the current directory.
21248 gcc_cv_ld
=.
/collect-ld
$build_exeext
21249 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21250 gcc_cv_ld
="$LD_FOR_TARGET"
21252 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21253 set dummy
$LD_FOR_TARGET; ac_word
=$2
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21255 $as_echo_n "checking for $ac_word... " >&6; }
21256 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21257 $as_echo_n "(cached) " >&6
21261 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21265 for as_dir
in $PATH
21268 test -z "$as_dir" && as_dir
=.
21269 for ac_exec_ext
in '' $ac_executable_extensions; do
21270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21271 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21282 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21283 if test -n "$gcc_cv_ld"; then
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21285 $as_echo "$gcc_cv_ld" >&6; }
21287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21288 $as_echo "no" >&6; }
21295 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21296 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21298 # Check whether --with-plugin-ld was given.
21299 if test "${with_plugin_ld+set}" = set; then :
21300 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21301 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21302 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21308 cat >>confdefs.h
<<_ACEOF
21309 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21313 # Check to see if we are using gold instead of ld
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21315 $as_echo_n "checking whether we are using gold... " >&6; }
21317 if test x
$gcc_cv_ld != x
; then
21318 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21319 |
grep "GNU gold" > /dev
/null
; then
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21324 $as_echo "$ld_is_gold" >&6; }
21326 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21328 case "$ORIGINAL_LD_FOR_TARGET" in
21329 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21330 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21335 $as_echo_n "checking what linker to use... " >&6; }
21336 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21337 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21338 # Single tree build which includes ld. We want to prefer it
21339 # over whatever linker top-level may have detected, since
21340 # we'll use what we're building after installation anyway.
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21342 $as_echo "newly built ld" >&6; }
21344 in_tree_ld_is_elf
=no
21345 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21346 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21347 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21348 in_tree_ld_is_elf
=yes
21349 elif test "$ld_is_gold" = yes; then
21350 in_tree_ld_is_elf
=yes
21352 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
21354 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21355 if test x
$gcc_cv_gld_version != x
; then
21359 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21360 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21363 $as_echo "$gcc_cv_ld" >&6; }
21367 # Figure out what nm we will be using.
21368 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21369 if test "${gcc_cv_nm+set}" = set; then :
21373 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21374 && test -f ..
/binutils
/Makefile \
21375 && test x
$build = x
$host; then
21376 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21377 elif test -x nm
$build_exeext; then
21378 gcc_cv_nm
=.
/nm
$build_exeext
21379 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21380 gcc_cv_nm
="$NM_FOR_TARGET"
21382 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21383 set dummy
$NM_FOR_TARGET; ac_word
=$2
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21385 $as_echo_n "checking for $ac_word... " >&6; }
21386 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21387 $as_echo_n "(cached) " >&6
21391 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21395 for as_dir
in $PATH
21398 test -z "$as_dir" && as_dir
=.
21399 for ac_exec_ext
in '' $ac_executable_extensions; do
21400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21401 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21412 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21413 if test -n "$gcc_cv_nm"; then
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21415 $as_echo "$gcc_cv_nm" >&6; }
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21418 $as_echo "no" >&6; }
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21426 $as_echo_n "checking what nm to use... " >&6; }
21427 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21428 # Single tree build which includes binutils.
21429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21430 $as_echo "newly built nm" >&6; }
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21434 $as_echo "$gcc_cv_nm" >&6; }
21438 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21440 case "$ORIGINAL_NM_FOR_TARGET" in
21441 .
/nm | .
/nm
$build_exeext) ;;
21442 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21447 # Figure out what objdump we will be using.
21448 if test "${gcc_cv_objdump+set}" = set; then :
21452 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21453 && test -f ..
/binutils
/Makefile \
21454 && test x
$build = x
$host; then
21455 # Single tree build which includes binutils.
21456 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21457 elif test -x objdump
$build_exeext; then
21458 gcc_cv_objdump
=.
/objdump
$build_exeext
21459 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21460 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21462 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21463 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21465 $as_echo_n "checking for $ac_word... " >&6; }
21466 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21467 $as_echo_n "(cached) " >&6
21469 case $gcc_cv_objdump in
21471 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21475 for as_dir
in $PATH
21478 test -z "$as_dir" && as_dir
=.
21479 for ac_exec_ext
in '' $ac_executable_extensions; do
21480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21481 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21492 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21493 if test -n "$gcc_cv_objdump"; then
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21495 $as_echo "$gcc_cv_objdump" >&6; }
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21498 $as_echo "no" >&6; }
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21506 $as_echo_n "checking what objdump to use... " >&6; }
21507 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21508 # Single tree build which includes binutils.
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21510 $as_echo "newly built objdump" >&6; }
21511 elif test x
$gcc_cv_objdump = x
; then
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21513 $as_echo "not found" >&6; }
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21516 $as_echo "$gcc_cv_objdump" >&6; }
21519 # Figure out what readelf we will be using.
21520 if test "${gcc_cv_readelf+set}" = set; then :
21524 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21525 && test -f ..
/binutils
/Makefile \
21526 && test x
$build = x
$host; then
21527 # Single tree build which includes binutils.
21528 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21529 elif test -x readelf
$build_exeext; then
21530 gcc_cv_readelf
=.
/readelf
$build_exeext
21532 # Extract the first word of "readelf", so it can be a program name with args.
21533 set dummy readelf
; ac_word
=$2
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21535 $as_echo_n "checking for $ac_word... " >&6; }
21536 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21537 $as_echo_n "(cached) " >&6
21539 case $gcc_cv_readelf in
21541 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21545 for as_dir
in $PATH
21548 test -z "$as_dir" && as_dir
=.
21549 for ac_exec_ext
in '' $ac_executable_extensions; do
21550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21551 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21562 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21563 if test -n "$gcc_cv_readelf"; then
21564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21565 $as_echo "$gcc_cv_readelf" >&6; }
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21568 $as_echo "no" >&6; }
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21576 $as_echo_n "checking what readelf to use... " >&6; }
21577 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21578 # Single tree build which includes binutils.
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21580 $as_echo "newly built readelf" >&6; }
21581 elif test x
$gcc_cv_readelf = x
; then
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21583 $as_echo "not found" >&6; }
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21586 $as_echo "$gcc_cv_readelf" >&6; }
21589 # Figure out what assembler alignment features are present.
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21591 $as_echo_n "checking assembler flags... " >&6; }
21592 if test "${gcc_cv_as_flags+set}" = set; then :
21593 $as_echo_n "(cached) " >&6
21596 i
[34567]86-*-linux*)
21597 gcc_cv_as_flags
="--32"
21599 powerpc
*-*-darwin*)
21600 gcc_cv_as_flags
="-arch ppc"
21603 gcc_cv_as_flags
=" "
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21608 $as_echo "$gcc_cv_as_flags" >&6; }
21610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21611 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21612 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21613 $as_echo_n "(cached) " >&6
21615 gcc_cv_as_balign_and_p2align
=no
21616 if test $in_tree_gas = yes; then
21617 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21618 then gcc_cv_as_balign_and_p2align
=yes
21620 elif test x
$gcc_cv_as != x
; then
21621 $as_echo '.balign 4
21622 .p2align 2' > conftest.s
21623 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21625 (eval $ac_try) 2>&5
21627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21628 test $ac_status = 0; }; }
21630 gcc_cv_as_balign_and_p2align
=yes
21632 echo "configure: failed program was" >&5
21635 rm -f conftest.o conftest.s
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21639 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21640 if test $gcc_cv_as_balign_and_p2align = yes; then
21642 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21647 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21648 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21649 $as_echo_n "(cached) " >&6
21651 gcc_cv_as_max_skip_p2align
=no
21652 if test $in_tree_gas = yes; then
21653 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21654 then gcc_cv_as_max_skip_p2align
=yes
21656 elif test x
$gcc_cv_as != x
; then
21657 $as_echo '.p2align 4,,7' > conftest.s
21658 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21660 (eval $ac_try) 2>&5
21662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21663 test $ac_status = 0; }; }
21665 gcc_cv_as_max_skip_p2align
=yes
21667 echo "configure: failed program was" >&5
21670 rm -f conftest.o conftest.s
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21674 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21675 if test $gcc_cv_as_max_skip_p2align = yes; then
21677 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21682 $as_echo_n "checking assembler for .literal16... " >&6; }
21683 if test "${gcc_cv_as_literal16+set}" = set; then :
21684 $as_echo_n "(cached) " >&6
21686 gcc_cv_as_literal16
=no
21687 if test $in_tree_gas = yes; then
21688 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21689 then gcc_cv_as_literal16
=yes
21691 elif test x
$gcc_cv_as != x
; then
21692 $as_echo '.literal16' > conftest.s
21693 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21695 (eval $ac_try) 2>&5
21697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21698 test $ac_status = 0; }; }
21700 gcc_cv_as_literal16
=yes
21702 echo "configure: failed program was" >&5
21705 rm -f conftest.o conftest.s
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21709 $as_echo "$gcc_cv_as_literal16" >&6; }
21710 if test $gcc_cv_as_literal16 = yes; then
21712 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21717 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21718 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21719 $as_echo_n "(cached) " >&6
21721 gcc_cv_as_subsection_m1
=no
21722 if test $in_tree_gas = yes; then
21723 if test $in_tree_gas_is_elf = yes \
21724 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21725 then gcc_cv_as_subsection_m1
=yes
21727 elif test x
$gcc_cv_as != x
; then
21728 $as_echo 'conftest_label1: .word 0
21730 conftest_label2: .word 0
21731 .previous' > conftest.s
21732 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21734 (eval $ac_try) 2>&5
21736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21737 test $ac_status = 0; }; }
21739 if test x
$gcc_cv_nm != x
; then
21740 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21741 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21742 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21744 else gcc_cv_as_subsection_m1
=yes
21746 rm -f conftest.nm1 conftest.nm2
21749 echo "configure: failed program was" >&5
21752 rm -f conftest.o conftest.s
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21756 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21757 if test $gcc_cv_as_subsection_m1 = yes; then
21759 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21764 $as_echo_n "checking assembler for .weak... " >&6; }
21765 if test "${gcc_cv_as_weak+set}" = set; then :
21766 $as_echo_n "(cached) " >&6
21769 if test $in_tree_gas = yes; then
21770 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21771 then gcc_cv_as_weak
=yes
21773 elif test x
$gcc_cv_as != x
; then
21774 $as_echo ' .weak foobar' > conftest.s
21775 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21777 (eval $ac_try) 2>&5
21779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21780 test $ac_status = 0; }; }
21784 echo "configure: failed program was" >&5
21787 rm -f conftest.o conftest.s
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21791 $as_echo "$gcc_cv_as_weak" >&6; }
21792 if test $gcc_cv_as_weak = yes; then
21794 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21799 $as_echo_n "checking assembler for .weakref... " >&6; }
21800 if test "${gcc_cv_as_weakref+set}" = set; then :
21801 $as_echo_n "(cached) " >&6
21803 gcc_cv_as_weakref
=no
21804 if test $in_tree_gas = yes; then
21805 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21806 then gcc_cv_as_weakref
=yes
21808 elif test x
$gcc_cv_as != x
; then
21809 $as_echo ' .weakref foobar, barfnot' > conftest.s
21810 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21812 (eval $ac_try) 2>&5
21814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21815 test $ac_status = 0; }; }
21817 gcc_cv_as_weakref
=yes
21819 echo "configure: failed program was" >&5
21822 rm -f conftest.o conftest.s
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21826 $as_echo "$gcc_cv_as_weakref" >&6; }
21827 if test $gcc_cv_as_weakref = yes; then
21829 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21834 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21835 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21836 $as_echo_n "(cached) " >&6
21838 gcc_cv_as_nsubspa_comdat
=no
21839 if test $in_tree_gas = yes; then
21840 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21841 then gcc_cv_as_nsubspa_comdat
=yes
21843 elif test x
$gcc_cv_as != x
; then
21844 $as_echo ' .SPACE $TEXT$
21845 .NSUBSPA $CODE$,COMDAT' > conftest.s
21846 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21848 (eval $ac_try) 2>&5
21850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21851 test $ac_status = 0; }; }
21853 gcc_cv_as_nsubspa_comdat
=yes
21855 echo "configure: failed program was" >&5
21858 rm -f conftest.o conftest.s
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21862 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21863 if test $gcc_cv_as_nsubspa_comdat = yes; then
21865 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21869 # .hidden needs to be supported in both the assembler and the linker,
21870 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21871 # This is irritatingly difficult to feature test for; we have to check the
21872 # date string after the version number. If we've got an in-tree
21873 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21875 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21877 $as_echo_n "checking assembler for .hidden... " >&6; }
21878 if test "${gcc_cv_as_hidden+set}" = set; then :
21879 $as_echo_n "(cached) " >&6
21881 gcc_cv_as_hidden
=no
21882 if test $in_tree_gas = yes; then
21883 if test $in_tree_gas_is_elf = yes \
21884 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21885 then gcc_cv_as_hidden
=yes
21887 elif test x
$gcc_cv_as != x
; then
21888 $as_echo ' .hidden foobar
21889 foobar:' > conftest.s
21890 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21892 (eval $ac_try) 2>&5
21894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21895 test $ac_status = 0; }; }
21898 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21899 # STV_HIDDEN, so disable .hidden support if so.
21900 case "${target}" in
21901 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
21902 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
21903 cat > conftest.s
<<EOF
21908 .set default,hidden
21910 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
21911 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
21912 grep '\.hidden default' > /dev
/null
; then
21913 gcc_cv_as_hidden
=no
21915 gcc_cv_as_hidden
=yes
21918 # Assume bug is present if objdump is missing.
21919 gcc_cv_as_hidden
=no
21923 gcc_cv_as_hidden
=yes
21927 echo "configure: failed program was" >&5
21930 rm -f conftest.o conftest.s
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21934 $as_echo "$gcc_cv_as_hidden" >&6; }
21936 case "${target}" in
21938 # Darwin as has some visibility support, though with a different syntax.
21939 gcc_cv_as_hidden
=yes
21943 # gnu_indirect_function type is an extension proposed at
21944 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21945 # selection of function implementation
21946 # Check whether --enable-gnu-indirect-function was given.
21947 if test "${enable_gnu_indirect_function+set}" = set; then :
21948 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21950 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21951 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21954 enable_gnu_indirect_function
="$default_gnu_indirect_function"
21957 if test x
$enable_gnu_indirect_function = xyes
; then
21959 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21963 if test $in_tree_ld != yes ; then
21964 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21965 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21966 if test x
"$ld_is_gold" = xyes
; then
21967 # GNU gold --version looks like this:
21969 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
21971 # We extract the binutils version which is more familiar and specific
21972 # than the gold version.
21973 ld_vers
=`echo $ld_ver | sed -n \
21974 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
21976 # GNU ld --version looks like this:
21978 # GNU ld (GNU Binutils) 2.21.51.20110225
21979 ld_vers
=`echo $ld_ver | sed -n \
21980 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21982 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'`
21983 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21984 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21985 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21987 case "${target}" in
21989 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
21992 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
21993 # /usr/ccs/bin/ld has been configured.
21994 ld_ver
=`$gcc_cv_ld -V 2>&1`
21995 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
21996 ld_vers
=`echo $ld_ver | sed -n \
21997 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21998 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21999 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22007 $as_echo_n "checking linker for .hidden support... " >&6; }
22008 if test "${gcc_cv_ld_hidden+set}" = set; then :
22009 $as_echo_n "(cached) " >&6
22011 if test $in_tree_ld = yes ; then
22012 gcc_cv_ld_hidden
=no
22013 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 \
22014 && test $in_tree_ld_is_elf = yes; then
22015 gcc_cv_ld_hidden
=yes
22018 gcc_cv_ld_hidden
=yes
22019 if test x
"$ld_is_gold" = xyes
; then
22021 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22022 if test 0"$ld_date" -lt 20020404; then
22023 if test -n "$ld_date"; then
22024 # If there was date string, but was earlier than 2002-04-04, fail
22025 gcc_cv_ld_hidden
=no
22026 elif test -z "$ld_vers"; then
22027 # If there was no date string nor ld version number, something is wrong
22028 gcc_cv_ld_hidden
=no
22030 test -z "$ld_vers_patch" && ld_vers_patch
=0
22031 if test "$ld_vers_major" -lt 2; then
22032 gcc_cv_ld_hidden
=no
22033 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22034 gcc_cv_ld_hidden
="no"
22035 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22036 gcc_cv_ld_hidden
=no
22041 case "${target}" in
22043 # Darwin ld has some visibility support.
22044 gcc_cv_ld_hidden
=yes
22046 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22047 gcc_cv_ld_hidden
=yes
22049 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22050 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22051 # .symbolic was only added in Solaris 9 12/02.
22052 gcc_cv_ld_hidden
=yes
22055 gcc_cv_ld_hidden
=no
22061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22062 $as_echo "$gcc_cv_ld_hidden" >&6; }
22063 libgcc_visibility
=no
22066 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22067 libgcc_visibility
=yes
22069 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22074 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22075 gcc_cv_ld_ro_rw_mix
=unknown
22076 if test $in_tree_ld = yes ; then
22077 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 \
22078 && test $in_tree_ld_is_elf = yes; then
22079 gcc_cv_ld_ro_rw_mix
=read-write
22081 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22082 echo '.section myfoosect, "a"' > conftest1.s
22083 echo '.section myfoosect, "aw"' > conftest2.s
22084 echo '.byte 1' >> conftest2.s
22085 echo '.section myfoosect, "a"' > conftest3.s
22086 echo '.byte 0' >> conftest3.s
22087 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22088 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22089 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22090 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22091 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22092 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22093 | sed -e '/myfoosect/!d' -e N`
22094 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22095 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22096 gcc_cv_ld_ro_rw_mix
=read-only
22098 gcc_cv_ld_ro_rw_mix
=read-write
22102 rm -f conftest.
* conftest
[123].
*
22104 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22106 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22110 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22112 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22113 case "${target}" in
22116 # Solaris 2 ld -V output looks like this for a regular version:
22118 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22120 # but test versions add stuff at the end:
22122 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22124 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22125 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22126 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22127 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22128 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22129 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22135 # Check whether --enable-initfini-array was given.
22136 if test "${enable_initfini_array+set}" = set; then :
22137 enableval
=$enable_initfini_array;
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22141 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22142 if test "${gcc_cv_initfini_array+set}" = set; then :
22143 $as_echo_n "(cached) " >&6
22145 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22146 case "${target}" in
22148 if test "$cross_compiling" = yes; then :
22149 gcc_cv_initfini_array
=no
22151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22152 /* end confdefs.h. */
22155 #error Not an ELF OS
22157 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22158 if it can be used. */
22160 int main (void) { return x; }
22161 int foo (void) { x = 0; }
22162 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22165 if ac_fn_c_try_run
"$LINENO"; then :
22166 gcc_cv_initfini_array
=yes
22168 gcc_cv_initfini_array
=no
22170 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22171 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22175 gcc_cv_initfini_array
=no
22176 if test $in_tree_ld = yes ; then
22177 if test "$gcc_cv_gld_major_version" -eq 2 \
22178 -a "$gcc_cv_gld_minor_version" -ge 22 \
22179 -o "$gcc_cv_gld_major_version" -gt 2 \
22180 && test $in_tree_ld_is_elf = yes; then
22181 gcc_cv_initfini_array
=yes
22183 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22184 cat > conftest.s
<<\EOF
22185 .section .dtors
,"a",%progbits
22187 .byte
'A', 'A', 'A', 'A'
22188 .section .ctors
,"a",%progbits
22190 .byte
'B', 'B', 'B', 'B'
22191 .section .fini_array
.65530,"a",%progbits
22193 .byte
'C', 'C', 'C', 'C'
22194 .section .init_array
.65530,"a",%progbits
22196 .byte
'D', 'D', 'D', 'D'
22197 .section .dtors
.64528,"a",%progbits
22199 .byte
'E', 'E', 'E', 'E'
22200 .section .ctors
.64528,"a",%progbits
22202 .byte
'F', 'F', 'F', 'F'
22203 .section .fini_array
.01005,"a",%progbits
22205 .byte
'G', 'G', 'G', 'G'
22206 .section .init_array
.01005,"a",%progbits
22208 .byte
'H', 'H', 'H', 'H'
22213 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22214 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22215 && $gcc_cv_objdump -s -j .init_array conftest \
22216 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22217 && $gcc_cv_objdump -s -j .fini_array conftest \
22218 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22219 gcc_cv_initfini_array
=yes
22221 rm -f conftest conftest.
*
22223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22224 /* end confdefs.h. */
22227 # error Not an ELF OS
22229 #include <stdlib.h>
22230 #if defined __GLIBC_PREREQ
22231 # if __GLIBC_PREREQ (2, 4)
22233 # error GLIBC 2.4 required
22236 # if defined __sun__ && defined __svr4__
22237 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22239 # error The C library not known to support .init_array/.fini_array
22244 if ac_fn_c_try_cpp
"$LINENO"; then :
22247 gcc_cv_initfini_array
=no
22249 rm -f conftest.err conftest.
$ac_ext;;
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22253 $as_echo_n "checking cross compile... guessing... " >&6; }
22254 gcc_cv_initfini_array
=no
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22258 $as_echo "$gcc_cv_initfini_array" >&6; }
22259 enable_initfini_array
=$gcc_cv_initfini_array
22263 if test $enable_initfini_array = yes; then
22265 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22269 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22271 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22272 if test "${gcc_cv_as_leb128+set}" = set; then :
22273 $as_echo_n "(cached) " >&6
22275 gcc_cv_as_leb128
=no
22276 if test $in_tree_gas = yes; then
22277 if test $in_tree_gas_is_elf = yes \
22278 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22279 then gcc_cv_as_leb128
=yes
22281 elif test x
$gcc_cv_as != x
; then
22288 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22290 (eval $ac_try) 2>&5
22292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22293 test $ac_status = 0; }; }
22295 # GAS versions before 2.11 do not support uleb128,
22296 # despite appearing to.
22297 # ??? There exists an elf-specific test that will crash
22298 # the assembler. Perhaps it's better to figure out whether
22299 # arbitrary sections are supported and try the test.
22300 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22301 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22302 as_vers
=`echo $as_ver | sed -n \
22303 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22304 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22305 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22306 if test $as_major -eq 2 && test $as_minor -lt 11
22308 else gcc_cv_as_leb128
=yes
22312 echo "configure: failed program was" >&5
22315 rm -f conftest.o conftest.s
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22319 $as_echo "$gcc_cv_as_leb128" >&6; }
22320 if test $gcc_cv_as_leb128 = yes; then
22322 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22326 # Check if we have assembler support for unwind directives.
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22328 $as_echo_n "checking assembler for cfi directives... " >&6; }
22329 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22330 $as_echo_n "(cached) " >&6
22332 gcc_cv_as_cfi_directive
=no
22333 if test x
$gcc_cv_as != x
; then
22339 .cfi_escape 1, 2, 3, 4, 5
22340 .cfi_endproc' > conftest.s
22341 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22343 (eval $ac_try) 2>&5
22345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22346 test $ac_status = 0; }; }
22350 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22351 # read-only and read-write sections, we need to make sure that the
22352 # assembler used emits read-write .eh_frame sections.
22353 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22354 if test "x$gcc_cv_objdump" != x
; then
22355 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22356 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22357 gcc_cv_as_cfi_directive
=no
22360 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22361 # On Solaris/x86, make sure that GCC and gas agree on using
22362 # read-only .eh_frame sections for 64-bit.
22363 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22364 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22365 sed -e /.eh_frame
/!d
-e N | \
22366 grep READONLY
> /dev
/null
; then
22367 gcc_cv_as_cfi_directive
=yes
22369 gcc_cv_as_cfi_directive
=no
22373 gcc_cv_as_cfi_directive
=yes
22378 # no objdump, err on the side of caution
22379 gcc_cv_as_cfi_directive
=no
22382 gcc_cv_as_cfi_directive
=yes
22386 gcc_cv_as_cfi_directive
=yes
22390 echo "configure: failed program was" >&5
22393 rm -f conftest.o conftest.s
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22397 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22399 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22401 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22402 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22403 $as_echo_n "(cached) " >&6
22405 gcc_cv_as_cfi_advance_working
=no
22406 if test x
$gcc_cv_as != x
; then
22409 .cfi_adjust_cfa_offset 64
22411 .cfi_adjust_cfa_offset 128
22412 .cfi_endproc' > conftest.s
22413 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22415 (eval $ac_try) 2>&5
22417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22418 test $ac_status = 0; }; }
22421 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22422 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22423 gcc_cv_as_cfi_advance_working
=yes
22427 echo "configure: failed program was" >&5
22430 rm -f conftest.o conftest.s
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22434 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22437 # no objdump, err on the side of caution
22438 gcc_cv_as_cfi_advance_working
=no
22442 cat >>confdefs.h
<<_ACEOF
22443 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22444 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22450 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22451 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22452 $as_echo_n "(cached) " >&6
22454 gcc_cv_as_cfi_personality_directive
=no
22455 if test x
$gcc_cv_as != x
; then
22458 .cfi_personality 0, symbol
22459 .cfi_endproc' > conftest.s
22460 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22462 (eval $ac_try) 2>&5
22464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22465 test $ac_status = 0; }; }
22467 gcc_cv_as_cfi_personality_directive
=yes
22469 echo "configure: failed program was" >&5
22472 rm -f conftest.o conftest.s
22475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22476 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22479 cat >>confdefs.h
<<_ACEOF
22480 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22481 then echo 1; else echo 0; fi`
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22486 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22487 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22488 $as_echo_n "(cached) " >&6
22490 gcc_cv_as_cfi_sections_directive
=no
22491 if test x
$gcc_cv_as != x
; then
22493 .cfi_sections .debug_frame, .eh_frame
22495 .cfi_endproc' > conftest.s
22496 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22498 (eval $ac_try) 2>&5
22500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22501 test $ac_status = 0; }; }
22504 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22505 # Need to check that we generated the correct relocation for the
22506 # .debug_frame section. This was fixed for binutils 2.21.
22507 gcc_cv_as_cfi_sections_directive
=no
22508 if test "x$gcc_cv_objdump" != x
; then
22509 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22510 grep secrel
> /dev
/null
; then
22511 gcc_cv_as_cfi_sections_directive
=yes
22516 gcc_cv_as_cfi_sections_directive
=yes
22520 echo "configure: failed program was" >&5
22523 rm -f conftest.o conftest.s
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22527 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22531 cat >>confdefs.h
<<_ACEOF
22532 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22533 then echo 1; else echo 0; fi`
22537 # GAS versions up to and including 2.11.0 may mis-optimize
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22540 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22541 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22542 $as_echo_n "(cached) " >&6
22544 gcc_cv_as_eh_frame
=no
22545 if test $in_tree_gas = yes; then
22546 if test $in_tree_gas_is_elf = yes \
22547 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22548 then gcc_cv_as_eh_frame
=yes
22550 elif test x
$gcc_cv_as != x
; then
22557 .section .eh_frame,"aw",@progbits
22559 .4byte .LECIE1-.LSCIE1
22573 .4byte .LEFDE1-.LASFDE1
22575 .4byte .LASFDE1-__FRAME_BEGIN__
22582 .LEFDE1:' > conftest.s
22583 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22585 (eval $ac_try) 2>&5
22587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22588 test $ac_status = 0; }; }
22590 cat > conftest.lit
<<EOF
22591 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22592 0010 01000000 12000000 18000000 00000000 ................
22593 0020 08000000 04080000 0044 .........D
22595 cat > conftest.big
<<EOF
22596 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22597 0010 00000001 00000012 00000018 00000000 ................
22598 0020 00000008 04000000 0844 .........D
22600 # If the assembler didn't choke, and we can objdump,
22601 # and we got the correct data, then succeed.
22602 # The text in the here-document typically retains its unix-style line
22603 # endings, while the output of objdump will use host line endings.
22604 # Therefore, use diff -b for the comparisons.
22605 if test x
$gcc_cv_objdump != x \
22606 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22607 |
tail -3 > conftest.got \
22608 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22609 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22611 gcc_cv_as_eh_frame
=yes
22612 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22614 (eval $ac_try) 2>&5
22616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22617 test $ac_status = 0; }; }; then
22618 gcc_cv_as_eh_frame
=buggy
22620 # Uh oh, what do we do now?
22621 gcc_cv_as_eh_frame
=no
22624 echo "configure: failed program was" >&5
22627 rm -f conftest.o conftest.s
22630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22631 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22634 if test $gcc_cv_as_eh_frame = buggy
; then
22636 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22641 $as_echo_n "checking assembler for section merging support... " >&6; }
22642 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22643 $as_echo_n "(cached) " >&6
22645 gcc_cv_as_shf_merge
=no
22646 if test $in_tree_gas = yes; then
22647 if test $in_tree_gas_is_elf = yes \
22648 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22649 then gcc_cv_as_shf_merge
=yes
22651 elif test x
$gcc_cv_as != x
; then
22652 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22653 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22655 (eval $ac_try) 2>&5
22657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22658 test $ac_status = 0; }; }
22660 gcc_cv_as_shf_merge
=yes
22662 echo "configure: failed program was" >&5
22665 rm -f conftest.o conftest.s
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22669 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22671 if test $gcc_cv_as_shf_merge = no
; then
22672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22673 $as_echo_n "checking assembler for section merging support... " >&6; }
22674 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22675 $as_echo_n "(cached) " >&6
22677 gcc_cv_as_shf_merge
=no
22678 if test $in_tree_gas = yes; then
22679 if test $in_tree_gas_is_elf = yes \
22680 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22681 then gcc_cv_as_shf_merge
=yes
22683 elif test x
$gcc_cv_as != x
; then
22684 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22685 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22687 (eval $ac_try) 2>&5
22689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22690 test $ac_status = 0; }; }
22692 gcc_cv_as_shf_merge
=yes
22694 echo "configure: failed program was" >&5
22697 rm -f conftest.o conftest.s
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22701 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22705 cat >>confdefs.h
<<_ACEOF
22706 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22711 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22712 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22713 $as_echo_n "(cached) " >&6
22715 gcc_cv_as_comdat_group
=no
22716 if test $in_tree_gas = yes; then
22717 if test $in_tree_gas_is_elf = yes \
22718 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22719 then gcc_cv_as_comdat_group
=yes
22721 elif test x
$gcc_cv_as != x
; then
22722 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22723 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22725 (eval $ac_try) 2>&5
22727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22728 test $ac_status = 0; }; }
22730 gcc_cv_as_comdat_group
=yes
22732 echo "configure: failed program was" >&5
22735 rm -f conftest.o conftest.s
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22739 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22741 if test $gcc_cv_as_comdat_group = yes; then
22742 gcc_cv_as_comdat_group_percent
=no
22743 gcc_cv_as_comdat_group_group
=no
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22746 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22747 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22748 $as_echo_n "(cached) " >&6
22750 gcc_cv_as_comdat_group_percent
=no
22751 if test $in_tree_gas = yes; then
22752 if test $in_tree_gas_is_elf = yes \
22753 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22754 then gcc_cv_as_comdat_group_percent
=yes
22756 elif test x
$gcc_cv_as != x
; then
22757 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22758 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22760 (eval $ac_try) 2>&5
22762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22763 test $ac_status = 0; }; }
22765 gcc_cv_as_comdat_group_percent
=yes
22767 echo "configure: failed program was" >&5
22770 rm -f conftest.o conftest.s
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22774 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22776 if test $gcc_cv_as_comdat_group_percent = yes; then
22777 gcc_cv_as_comdat_group_group
=no
22779 case "${target}" in
22780 # Sun as uses a completely different syntax.
22782 case "${target}" in
22783 sparc
*-*-solaris2*)
22785 .group foo,".text%foo",#comdat
22786 .section ".text%foo", #alloc,#execinstr,#progbits
22791 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22793 .group foo,.text%foo,#comdat
22794 .section .text%foo, "ax", @progbits
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22801 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22802 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22803 $as_echo_n "(cached) " >&6
22805 gcc_cv_as_comdat_group_group
=no
22806 if test x
$gcc_cv_as != x
; then
22807 $as_echo "$conftest_s" > conftest.s
22808 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22810 (eval $ac_try) 2>&5
22812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22813 test $ac_status = 0; }; }
22815 gcc_cv_as_comdat_group_group
=yes
22817 echo "configure: failed program was" >&5
22820 rm -f conftest.o conftest.s
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22824 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22830 if test x
"$ld_is_gold" = xyes
; then
22832 elif test $in_tree_ld = yes ; then
22834 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 \
22835 && test $in_tree_ld_is_elf = yes; then
22838 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22840 if test 0"$ld_date" -lt 20050308; then
22841 if test -n "$ld_date"; then
22842 # If there was date string, but was earlier than 2005-03-08, fail
22844 elif test "$ld_vers_major" -lt 2; then
22846 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22851 case "${target}" in
22852 *-*-solaris2.1
[1-9]*)
22854 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22855 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22858 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22859 # least ld version 1.2267.
22860 if test "$ld_vers_major" -gt 1; then
22862 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
22864 elif test "$ld_vers_minor" -ge 2267; then
22869 # Assume linkers other than GNU ld don't support COMDAT group.
22874 # Allow overriding the automatic COMDAT group tests above.
22875 # Check whether --enable-comdat was given.
22876 if test "${enable_comdat+set}" = set; then :
22877 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
22880 if test $comdat_group = no
; then
22881 gcc_cv_as_comdat_group
=no
22882 gcc_cv_as_comdat_group_percent
=no
22883 gcc_cv_as_comdat_group_group
=no
22886 cat >>confdefs.h
<<_ACEOF
22887 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22888 || test $gcc_cv_as_comdat_group_percent = yes \
22889 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22894 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22895 if test "${gcc_cv_as_discriminator+set}" = set; then :
22896 $as_echo_n "(cached) " >&6
22898 gcc_cv_as_discriminator
=no
22899 if test $in_tree_gas = yes; then
22900 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22901 then gcc_cv_as_discriminator
=yes
22903 elif test x
$gcc_cv_as != x
; then
22906 .loc 1 1 0 discriminator 1' > conftest.s
22907 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22909 (eval $ac_try) 2>&5
22911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22912 test $ac_status = 0; }; }
22914 gcc_cv_as_discriminator
=yes
22916 echo "configure: failed program was" >&5
22919 rm -f conftest.o conftest.s
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22923 $as_echo "$gcc_cv_as_discriminator" >&6; }
22924 if test $gcc_cv_as_discriminator = yes; then
22926 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22930 # Thread-local storage - the check is heavily parameterized.
22938 .section ".tdata","awT",@progbits
22941 ldq $27,__tls_get_addr($29) !literal!1
22942 lda $16,foo($29) !tlsgd!1
22943 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22944 ldq $27,__tls_get_addr($29) !literal!2
22945 lda $16,foo($29) !tlsldm!2
22946 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22947 ldq $1,foo($29) !gotdtprel
22948 ldah $2,foo($29) !dtprelhi
22949 lda $3,foo($2) !dtprello
22950 lda $4,foo($29) !dtprel
22951 ldq $1,foo($29) !gottprel
22952 ldah $2,foo($29) !tprelhi
22953 lda $3,foo($2) !tprello
22954 lda $4,foo($29) !tprel'
22957 tls_as_opt
=--fatal-warnings
22959 cris-
*-*|crisv32-
*-*)
22961 .section ".tdata","awT",@progbits
22968 tls_as_opt
=--fatal-warnings
22972 .section ".tdata","awT",@progbits
22975 call #gettlsoff(x)'
22984 .section ".tdata","awT",@progbits
22988 addil LT%foo-$tls_gdidx$,gp
22989 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22992 addil LT%foo-$tls_ldidx$,gp
22994 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22995 addil LR%foo-$tls_dtpoff$,%ret0
22996 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22998 addil LT%foo-$tls_ieoff$,gp
22999 ldw RT%foo-$tls_ieoff$(%r1),%t2
23002 addil LR%foo-$tls_leoff$,%t1
23003 ldo RR%foo-$tls_leoff$(%r1),%t2'
23006 tls_as_opt
=--fatal-warnings
23010 .section ".tdata","awT",%progbits
23013 .word foo(gottpoff)
23021 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23023 i
[34567]86-*-solaris2.
*)
23025 tga_func
=___tls_get_addr
23027 x86_64-
*-solaris2.1
[0-9]*)
23029 tga_func
=__tls_get_addr
23035 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23037 .section .tdata,"awt",@progbits'
23041 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23045 .section ".tdata","awT",@progbits'
23048 tls_as_opt
="--fatal-warnings"
23050 conftest_s
="$conftest_s
23054 leal foo@tlsgd(,%ebx,1), %eax
23055 leal foo@tlsldm(%ebx), %eax
23056 leal foo@dtpoff(%eax), %edx
23057 movl foo@gottpoff(%ebx), %eax
23058 subl foo@gottpoff(%ebx), %eax
23059 addl foo@gotntpoff(%ebx), %eax
23060 movl foo@indntpoff, %eax
23061 movl \$foo@tpoff, %eax
23062 subl \$foo@tpoff, %eax
23063 leal foo@ntpoff(%ecx), %eax"
23067 .section ".tdata","awT",@progbits
23071 leaq foo@TLSGD(%rip), %rdi
23072 leaq foo@TLSLD(%rip), %rdi
23073 leaq foo@DTPOFF(%rax), %rdx
23074 movq foo@GOTTPOFF(%rip), %rax
23075 movq $foo@TPOFF, %rax'
23078 tls_as_opt
=--fatal-warnings
23082 .section ".tdata","awT",@progbits
23085 addl r16 = @ltoff(@dtpmod(foo#)), gp
23086 addl r17 = @ltoff(@dtprel(foo#)), gp
23087 addl r18 = @ltoff(@tprel(foo#)), gp
23088 addl r19 = @dtprel(foo#), gp
23089 adds r21 = @dtprel(foo#), r13
23090 movl r23 = @dtprel(foo#)
23091 addl r20 = @tprel(foo#), gp
23092 adds r22 = @tprel(foo#), r13
23093 movl r24 = @tprel(foo#)'
23096 tls_as_opt
=--fatal-warnings
23100 .section .tdata,"awT",@progbits
23104 addiu $4, $28, %tlsgd(x)
23105 addiu $4, $28, %tlsldm(x)
23106 lui $4, %dtprel_hi(x)
23107 addiu $4, $4, %dtprel_lo(x)
23108 lw $4, %gottprel(x)($28)
23109 lui $4, %tprel_hi(x)
23110 addiu $4, $4, %tprel_lo(x)'
23113 tls_as_opt
='-32 --fatal-warnings'
23117 .section .tdata,"awT",@progbits
23122 move.l x@TLSGD(%a5),%a0
23123 move.l x@TLSLDM(%a5),%a0
23124 move.l x@TLSLDO(%a5),%a0
23125 move.l x@TLSIE(%a5),%a0
23126 move.l x@TLSLE(%a5),%a0'
23129 tls_as_opt
='--fatal-warnings'
23133 .section ".tdata","awT",@progbits
23141 addi 3,31,ld0@got@tlsgd
23143 addi 3,31,x1@got@tlsld
23146 addis 9,3,x2@dtprel@ha
23147 addi 9,9,x2@dtprel@l
23148 lwz 9,x3@got@tprel(31)
23151 addis 9,2,x2@tprel@ha
23152 addi 9,9,x2@tprel@l'
23155 tls_as_opt
="-a32 --fatal-warnings"
23159 .section ".tdata","awT",@progbits
23167 addi 3,2,ld0@got@tlsgd
23173 addi 3,2,x1@got@tlsld
23179 addis 9,3,x2@dtprel@ha
23180 addi 9,9,x2@dtprel@l
23183 ld 9,x3@got@dtprel(2)
23189 tls_as_opt
="-a64 --fatal-warnings"
23193 .section ".tdata","awT",@progbits
23200 .long foo@GOTNTPOFF
23201 .long foo@INDNTPOFF
23202 l %r1,foo@GOTNTPOFF(%r12)
23203 l %r1,0(%r1):tls_load:foo
23204 bas %r14,0(%r1,%r13):tls_gdcall:foo
23205 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23208 tls_as_opt
="-m31 --fatal-warnings"
23212 .section ".tdata","awT",@progbits
23219 .quad foo@GOTNTPOFF
23220 lg %r1,foo@GOTNTPOFF(%r12)
23221 larl %r1,foo@INDNTPOFF
23222 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23223 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23226 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23228 sh-
*-* | sh
[34]-*-*)
23230 .section ".tdata","awT",@progbits
23240 tls_as_opt
=--fatal-warnings
23244 sparc
*-sun-solaris2.
*)
23246 tga_func
=__tls_get_addr
23252 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23254 .section ".tdata",#alloc,#write,#tls'
23259 .section ".tdata","awT",@progbits'
23262 tls_as_opt
="-32 --fatal-warnings"
23264 conftest_s
="$conftest_s
23267 sethi %tgd_hi22(foo), %o0
23268 add %o0, %tgd_lo10(foo), %o1
23269 add %l7, %o1, %o0, %tgd_add(foo)
23270 call __tls_get_addr, %tgd_call(foo)
23271 sethi %tldm_hi22(foo), %l1
23272 add %l1, %tldm_lo10(foo), %l2
23273 add %l7, %l2, %o0, %tldm_add(foo)
23274 call __tls_get_addr, %tldm_call(foo)
23275 sethi %tldo_hix22(foo), %l3
23276 xor %l3, %tldo_lox10(foo), %l4
23277 add %o0, %l4, %l5, %tldo_add(foo)
23278 sethi %tie_hi22(foo), %o3
23279 add %o3, %tie_lo10(foo), %o3
23280 ld [%l7 + %o3], %o2, %tie_ld(foo)
23281 add %g7, %o2, %o4, %tie_add(foo)
23282 sethi %tle_hix22(foo), %l1
23283 xor %l1, %tle_lox10(foo), %o5
23284 ld [%g7 + %o5], %o1"
23288 .section ".tdata","awT",@progbits
23291 addli r0, zero, tls_gd(foo)
23292 auli r0, zero, tls_gd_ha16(foo)
23293 addli r0, r0, tls_gd_lo16(foo)
23295 addli r0, zero, tls_ie(foo)
23296 auli r0, r0, tls_ie_ha16(foo)
23297 addli r0, r0, tls_ie_lo16(foo)'
23300 tls_as_opt
="--fatal-warnings"
23304 .section ".tdata","awT",@progbits
23307 shl16insli r0, zero, hw0_last_tls_gd(foo)
23308 shl16insli r0, zero, hw1_last_tls_gd(foo)
23309 shl16insli r0, r0, hw0_tls_gd(foo)
23311 shl16insli r0, zero, hw1_last_tls_ie(foo)
23312 shl16insli r0, r0, hw0_tls_ie(foo)'
23315 tls_as_opt
="--fatal-warnings"
23319 .section ".tdata","awT",@progbits
23322 movi a8, foo@TLSFUNC
23323 movi a10, foo@TLSARG
23324 callx8.tls a8, foo@TLSCALL'
23330 if test "x$enable_tls" = xno
; then
23331 : # TLS explicitly disabled.
23332 elif test "x$enable_tls" = xyes
; then
23333 set_have_as_tls
=yes # TLS explicitly enabled.
23334 elif test -z "$tls_first_major"; then
23335 : # If we don't have a check, assume no support.
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23338 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23339 if test "${gcc_cv_as_tls+set}" = set; then :
23340 $as_echo_n "(cached) " >&6
23343 if test $in_tree_gas = yes; then
23344 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23345 then gcc_cv_as_tls
=yes
23347 elif test x
$gcc_cv_as != x
; then
23348 $as_echo "$conftest_s" > conftest.s
23349 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23351 (eval $ac_try) 2>&5
23353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23354 test $ac_status = 0; }; }
23358 echo "configure: failed program was" >&5
23361 rm -f conftest.o conftest.s
23364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23365 $as_echo "$gcc_cv_as_tls" >&6; }
23366 if test $gcc_cv_as_tls = yes; then
23367 set_have_as_tls
=yes
23371 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23372 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23373 # Sun style that Sun ld and GCC don't support any longer.
23375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23376 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23378 # Check ld and ld.so.1 TLS support.
23379 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23380 # Assume all interesting versions of GNU ld have TLS support.
23381 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23385 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23387 min_tls_ld_vers_minor
=374
23389 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23390 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23391 min_tls_ld_vers_minor
=343
23394 if test "$ld_vers_major" -gt 1 || \
23395 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23402 $as_echo "$ld_tls_support" >&6; }
23405 save_LDFLAGS
="$LDFLAGS"
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23410 $as_echo_n "checking library containing $tga_func... " >&6; }
23411 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23412 # (32-bit x86) only lived in libthread, so check for that. Keep
23413 # set_have_as_tls if found, disable if not.
23414 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23416 $as_echo_n "checking for library containing $tga_func... " >&6; }
23417 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23418 $as_echo_n "(cached) " >&6
23420 ac_func_search_save_LIBS
=$LIBS
23421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23422 /* end confdefs.h. */
23424 /* Override any GCC internal prototype to avoid an error.
23425 Use char because int might match the return type of a GCC
23426 builtin and then its argument prototype would still apply. */
23434 return $tga_func ();
23439 for ac_lib
in '' thread
; do
23440 if test -z "$ac_lib"; then
23441 ac_res
="none required"
23444 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23446 if ac_fn_c_try_link
"$LINENO"; then :
23447 eval "$as_ac_Search=\$ac_res"
23449 rm -f core conftest.err conftest.
$ac_objext \
23451 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23455 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23458 eval "$as_ac_Search=no"
23460 rm conftest.
$ac_ext
23461 LIBS
=$ac_func_search_save_LIBS
23463 eval ac_res
=\$
$as_ac_Search
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23465 $as_echo "$ac_res" >&6; }
23466 eval ac_res
=\$
$as_ac_Search
23467 if test "$ac_res" != no
; then :
23468 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23474 # Clear LIBS if we cannot support TLS.
23475 if test $set_have_as_tls = no
; then
23478 # Always define LIB_TLS_SPEC, even without TLS support.
23480 cat >>confdefs.h
<<_ACEOF
23481 #define LIB_TLS_SPEC "$LIBS"
23484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23485 $as_echo "$LIBS" >&6; }
23488 LDFLAGS
="$save_LDFLAGS"
23491 if test $set_have_as_tls = yes ; then
23493 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23497 # Target-specific assembler checks.
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23500 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23501 gcc_cv_ld_static_dynamic
=no
23502 gcc_cv_ld_static_option
='-Bstatic'
23503 gcc_cv_ld_dynamic_option
='-Bdynamic'
23504 if test $in_tree_ld = yes ; then
23505 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
23506 gcc_cv_ld_static_dynamic
=yes
23508 elif test x
$gcc_cv_ld != x
; then
23509 # Check if linker supports -Bstatic/-Bdynamic option
23510 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23511 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23512 gcc_cv_ld_static_dynamic
=yes
23515 # HP-UX ld uses -a flags to select between shared and archive.
23517 if test x
"$gnu_ld" = xno
; then
23518 gcc_cv_ld_static_dynamic
=yes
23519 gcc_cv_ld_static_option
="-aarchive_shared"
23520 gcc_cv_ld_dynamic_option
="-adefault"
23523 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23525 gcc_cv_ld_static_dynamic
=yes
23530 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23532 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23535 cat >>confdefs.h
<<_ACEOF
23536 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23540 cat >>confdefs.h
<<_ACEOF
23541 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23546 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23548 if test x
"$demangler_in_ld" = xyes
; then
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23550 $as_echo_n "checking linker --demangle support... " >&6; }
23551 gcc_cv_ld_demangle
=no
23552 if test $in_tree_ld = yes; then
23553 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 \
23554 gcc_cv_ld_demangle
=yes
23556 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23557 # Check if the GNU linker supports --demangle option
23558 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23559 gcc_cv_ld_demangle
=yes
23562 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23564 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23568 $as_echo "$gcc_cv_ld_demangle" >&6; }
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23572 $as_echo_n "checking linker plugin support... " >&6; }
23573 gcc_cv_lto_plugin
=0
23574 if test -f liblto_plugin.la
; then
23575 save_ld_ver
="$ld_ver"
23576 save_ld_vers_major
="$ld_vers_major"
23577 save_ld_vers_minor
="$ld_vers_minor"
23578 save_ld_is_gold
="$ld_is_gold"
23582 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23584 # FIXME: ld_is_gold?
23585 ld_vers_major
="$gcc_cv_gld_major_version"
23586 ld_vers_minor
="$gcc_cv_gld_minor_version"
23588 # Determine plugin linker version.
23589 # FIXME: Partial duplicate from above, generalize.
23590 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23591 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23592 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23594 ld_vers
=`echo $ld_ver | sed -n \
23595 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23597 ld_vers
=`echo $ld_ver | sed -n \
23598 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23600 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23601 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23605 # Determine plugin support.
23606 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23607 # Require GNU ld or gold 2.21+ for plugin support by default.
23608 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23609 gcc_cv_lto_plugin
=2
23610 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23611 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23612 gcc_cv_lto_plugin
=1
23616 ld_ver
="$save_ld_ver"
23617 ld_vers_major
="$save_ld_vers_major"
23618 ld_vers_minor
="$save_ld_vers_minor"
23619 ld_is_gold
="$save_ld_is_gold"
23622 cat >>confdefs.h
<<_ACEOF
23623 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23627 $as_echo "$gcc_cv_lto_plugin" >&6; }
23630 # All TARGET_ABI_OSF targets.
23631 alpha
*-*-linux* | alpha
*-*-*bsd
*)
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23633 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23634 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23635 $as_echo_n "(cached) " >&6
23637 gcc_cv_as_alpha_explicit_relocs
=no
23638 if test $in_tree_gas = yes; then
23639 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23640 then gcc_cv_as_alpha_explicit_relocs
=yes
23642 elif test x
$gcc_cv_as != x
; then
23643 $as_echo ' .set nomacro
23645 extbl $3, $2, $3 !lituse_bytoff!1
23646 ldq $2, a($29) !literal!1
23647 ldq $4, b($29) !literal!2
23648 ldq_u $3, 0($2) !lituse_base!1
23649 ldq $27, f($29) !literal!5
23650 jsr $26, ($27), f !lituse_jsr!5
23651 ldah $29, 0($26) !gpdisp!3
23652 lda $0, c($29) !gprel
23653 ldah $1, d($29) !gprelhigh
23654 lda $1, d($1) !gprellow
23655 lda $29, 0($29) !gpdisp!3' > conftest.s
23656 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23658 (eval $ac_try) 2>&5
23660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23661 test $ac_status = 0; }; }
23663 gcc_cv_as_alpha_explicit_relocs
=yes
23665 echo "configure: failed program was" >&5
23668 rm -f conftest.o conftest.s
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23672 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23673 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23675 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23679 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23680 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23681 $as_echo_n "(cached) " >&6
23683 gcc_cv_as_alpha_jsrdirect_relocs
=no
23684 if test $in_tree_gas = yes; then
23685 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23686 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23688 elif test x
$gcc_cv_as != x
; then
23689 $as_echo ' .set nomacro
23691 ldq $27, a($29) !literal!1
23692 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23693 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23695 (eval $ac_try) 2>&5
23697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23698 test $ac_status = 0; }; }
23700 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23702 echo "configure: failed program was" >&5
23705 rm -f conftest.o conftest.s
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23709 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23710 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23712 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23719 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23720 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23721 $as_echo_n "(cached) " >&6
23723 gcc_cv_as_cris_no_mul_bug
=no
23724 if test $in_tree_gas = yes; then
23725 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23726 then gcc_cv_as_cris_no_mul_bug
=yes
23728 elif test x
$gcc_cv_as != x
; then
23729 $as_echo '.text' > conftest.s
23730 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23732 (eval $ac_try) 2>&5
23734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23735 test $ac_status = 0; }; }
23737 gcc_cv_as_cris_no_mul_bug
=yes
23739 echo "configure: failed program was" >&5
23742 rm -f conftest.o conftest.s
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23746 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23747 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23749 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23756 $as_echo_n "checking assembler for .register... " >&6; }
23757 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23758 $as_echo_n "(cached) " >&6
23760 gcc_cv_as_sparc_register_op
=no
23761 if test x
$gcc_cv_as != x
; then
23762 $as_echo '.register %g2, #scratch' > conftest.s
23763 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23765 (eval $ac_try) 2>&5
23767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23768 test $ac_status = 0; }; }
23770 gcc_cv_as_sparc_register_op
=yes
23772 echo "configure: failed program was" >&5
23775 rm -f conftest.o conftest.s
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23779 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23780 if test $gcc_cv_as_sparc_register_op = yes; then
23782 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23787 $as_echo_n "checking assembler for -relax option... " >&6; }
23788 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23789 $as_echo_n "(cached) " >&6
23791 gcc_cv_as_sparc_relax
=no
23792 if test x
$gcc_cv_as != x
; then
23793 $as_echo '.text' > conftest.s
23794 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23796 (eval $ac_try) 2>&5
23798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23799 test $ac_status = 0; }; }
23801 gcc_cv_as_sparc_relax
=yes
23803 echo "configure: failed program was" >&5
23806 rm -f conftest.o conftest.s
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23810 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23811 if test $gcc_cv_as_sparc_relax = yes; then
23813 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23818 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23819 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23820 $as_echo_n "(cached) " >&6
23822 gcc_cv_as_sparc_gotdata_op
=no
23823 if test x
$gcc_cv_as != x
; then
23829 sethi %gdop_hix22(foo), %g1
23830 xor %g1, %gdop_lox10(foo), %g1
23831 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23832 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23834 (eval $ac_try) 2>&5
23836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23837 test $ac_status = 0; }; }
23839 if test x
$gcc_cv_ld != x \
23840 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23841 if test x
$gcc_cv_objdump != x
; then
23842 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
23843 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
23844 gcc_cv_as_sparc_gotdata_op
=no
23846 gcc_cv_as_sparc_gotdata_op
=yes
23852 echo "configure: failed program was" >&5
23855 rm -f conftest.o conftest.s
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23859 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23860 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23862 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23867 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23868 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23869 $as_echo_n "(cached) " >&6
23871 gcc_cv_as_sparc_ua_pcrel
=no
23872 if test x
$gcc_cv_as != x
; then
23879 .uaword %r_disp32(foo)' > conftest.s
23880 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23882 (eval $ac_try) 2>&5
23884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23885 test $ac_status = 0; }; }
23887 if test x
$gcc_cv_ld != x \
23888 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23889 gcc_cv_as_sparc_ua_pcrel
=yes
23893 echo "configure: failed program was" >&5
23896 rm -f conftest.o conftest.s
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23900 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23901 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23903 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23907 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23908 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23909 $as_echo_n "(cached) " >&6
23911 gcc_cv_as_sparc_ua_pcrel_hidden
=no
23912 if test x
$gcc_cv_as != x
; then
23916 .uaword %r_disp32(foo)
23917 .byte 0x32, 0x33, 0x34
23921 .skip 4' > conftest.s
23922 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23924 (eval $ac_try) 2>&5
23926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23927 test $ac_status = 0; }; }
23929 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
23930 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
23931 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
23932 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
23933 if $gcc_cv_objdump -R conftest
2> /dev
/null \
23934 |
grep 'DISP32' > /dev
/null
2>&1; then
23937 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
23942 echo "configure: failed program was" >&5
23945 rm -f conftest.o conftest.s
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23949 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23950 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23952 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23956 fi # unaligned pcrel relocs
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23959 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23960 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23961 $as_echo_n "(cached) " >&6
23963 gcc_cv_as_sparc_offsetable_lo10
=no
23964 if test x
$gcc_cv_as != x
; then
23966 or %g1, %lo(ab) + 12, %g1
23967 or %g1, %lo(ab + 12), %g1' > conftest.s
23968 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23970 (eval $ac_try) 2>&5
23972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23973 test $ac_status = 0; }; }
23975 if test x
$gcc_cv_objdump != x \
23976 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
23977 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
23978 gcc_cv_as_sparc_offsetable_lo10
=yes
23981 echo "configure: failed program was" >&5
23984 rm -f conftest.o conftest.s
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23988 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23989 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23991 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
23996 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
23997 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
23998 $as_echo_n "(cached) " >&6
24000 gcc_cv_as_sparc_fmaf
=no
24001 if test x
$gcc_cv_as != x
; then
24003 .register %g2, #scratch
24004 .register %g3, #scratch
24006 fmaddd %f0, %f2, %f4, %f6
24007 addxccc %g1, %g2, %g3
24008 fsrl32 %f2, %f4, %f8
24009 fnaddd %f10, %f12, %f14' > conftest.s
24010 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24012 (eval $ac_try) 2>&5
24014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24015 test $ac_status = 0; }; }
24017 gcc_cv_as_sparc_fmaf
=yes
24019 echo "configure: failed program was" >&5
24022 rm -f conftest.o conftest.s
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24026 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24027 if test $gcc_cv_as_sparc_fmaf = yes; then
24029 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24034 i
[34567]86-*-* | x86_64-
*-*)
24037 # Full C++ conformance when using a shared libstdc++-v3 requires some
24038 # support from the Cygwin DLL, which in more recent versions exports
24039 # wrappers to aid in interposing and redirecting operators new, delete,
24040 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24041 # are configuring for a version of Cygwin that exports the wrappers.
24042 if test x
$host = x
$target; then
24043 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24044 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24045 gcc_ac_cygwin_dll_wrappers
=yes
24047 gcc_ac_cygwin_dll_wrappers
=no
24051 # Can't check presence of libc functions during cross-compile, so
24052 # we just have to assume we're building for an up-to-date target.
24053 gcc_ac_cygwin_dll_wrappers
=yes
24056 cat >>confdefs.h
<<_ACEOF
24057 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24062 cygwin
* | pe | mingw32
* | interix
*)
24063 # Recent binutils allows the three-operand form of ".comm" on PE. This
24064 # definition is used unconditionally to initialise the default state of
24065 # the target option variable that governs usage of the feature.
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24067 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24068 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24069 $as_echo_n "(cached) " >&6
24071 gcc_cv_as_comm_has_align
=no
24072 if test $in_tree_gas = yes; then
24073 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24074 then gcc_cv_as_comm_has_align
=yes
24076 elif test x
$gcc_cv_as != x
; then
24077 $as_echo '.comm foo,1,32' > conftest.s
24078 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24080 (eval $ac_try) 2>&5
24082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24083 test $ac_status = 0; }; }
24085 gcc_cv_as_comm_has_align
=yes
24087 echo "configure: failed program was" >&5
24090 rm -f conftest.o conftest.s
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24094 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24097 cat >>confdefs.h
<<_ACEOF
24098 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24101 # Used for DWARF 2 in PE
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24103 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24104 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24105 $as_echo_n "(cached) " >&6
24107 gcc_cv_as_ix86_pe_secrel32
=no
24108 if test $in_tree_gas = yes; then
24109 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24110 then gcc_cv_as_ix86_pe_secrel32
=yes
24112 elif test x
$gcc_cv_as != x
; then
24116 .secrel32 foo' > conftest.s
24117 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24119 (eval $ac_try) 2>&5
24121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24122 test $ac_status = 0; }; }
24124 if test x
$gcc_cv_ld != x \
24125 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24126 gcc_cv_as_ix86_pe_secrel32
=yes
24130 echo "configure: failed program was" >&5
24133 rm -f conftest.o conftest.s
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24137 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24138 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24140 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24143 # Test if the assembler supports the extended form of the .section
24144 # directive that specifies section alignment. LTO support uses this,
24145 # but normally only after installation, so we warn but don't fail the
24146 # configure if LTO is enabled but the assembler does not support it.
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24148 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24149 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24150 $as_echo_n "(cached) " >&6
24152 gcc_cv_as_section_has_align
=no
24153 if test $in_tree_gas = yes; then
24154 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24155 then gcc_cv_as_section_has_align
=yes
24157 elif test x
$gcc_cv_as != x
; then
24158 $as_echo '.section lto_test,"dr0"' > conftest.s
24159 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24161 (eval $ac_try) 2>&5
24163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24164 test $ac_status = 0; }; }
24166 gcc_cv_as_section_has_align
=yes
24168 echo "configure: failed program was" >&5
24171 rm -f conftest.o conftest.s
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24175 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24177 if test x
$gcc_cv_as_section_has_align != xyes
; then
24178 case ",$enable_languages," in
24180 { $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
24181 $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;}
24185 # Test if the assembler supports the section flag 'e' for specifying
24186 # an excluded section.
24187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24188 $as_echo_n "checking assembler for .section with e... " >&6; }
24189 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24190 $as_echo_n "(cached) " >&6
24192 gcc_cv_as_section_has_e
=no
24193 if test $in_tree_gas = yes; then
24194 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24195 then gcc_cv_as_section_has_e
=yes
24197 elif test x
$gcc_cv_as != x
; then
24198 $as_echo '.section foo1,"e"
24199 .byte 0,0,0,0' > conftest.s
24200 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24202 (eval $ac_try) 2>&5
24204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24205 test $ac_status = 0; }; }
24207 gcc_cv_as_section_has_e
=yes
24209 echo "configure: failed program was" >&5
24212 rm -f conftest.o conftest.s
24215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24216 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24219 cat >>confdefs.h
<<_ACEOF
24220 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24227 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24228 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24229 $as_echo_n "(cached) " >&6
24231 gcc_cv_as_ix86_filds
=no
24232 if test x
$gcc_cv_as != x
; then
24233 $as_echo 'filds mem; fists mem' > 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_ix86_filds
=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_ix86_filds" >&5
24250 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24251 if test $gcc_cv_as_ix86_filds = yes; then
24253 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24258 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24259 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24260 $as_echo_n "(cached) " >&6
24262 gcc_cv_as_ix86_fildq
=no
24263 if test x
$gcc_cv_as != x
; then
24264 $as_echo 'fildq mem; fistpq mem' > conftest.s
24265 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24267 (eval $ac_try) 2>&5
24269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24270 test $ac_status = 0; }; }
24272 gcc_cv_as_ix86_fildq
=yes
24274 echo "configure: failed program was" >&5
24277 rm -f conftest.o conftest.s
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24281 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24282 if test $gcc_cv_as_ix86_fildq = yes; then
24284 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24289 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24290 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24291 $as_echo_n "(cached) " >&6
24293 gcc_cv_as_ix86_cmov_sun_syntax
=no
24294 if test x
$gcc_cv_as != x
; then
24295 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24296 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24298 (eval $ac_try) 2>&5
24300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24301 test $ac_status = 0; }; }
24303 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24305 echo "configure: failed program was" >&5
24308 rm -f conftest.o conftest.s
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24312 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24313 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24315 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24320 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24321 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24322 $as_echo_n "(cached) " >&6
24324 gcc_cv_as_ix86_ffreep
=no
24325 if test x
$gcc_cv_as != x
; then
24326 $as_echo 'ffreep %st(1)' > conftest.s
24327 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24329 (eval $ac_try) 2>&5
24331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24332 test $ac_status = 0; }; }
24334 gcc_cv_as_ix86_ffreep
=yes
24336 echo "configure: failed program was" >&5
24339 rm -f conftest.o conftest.s
24342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24343 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24344 if test $gcc_cv_as_ix86_ffreep = yes; then
24346 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24351 $as_echo_n "checking assembler for .quad directive... " >&6; }
24352 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24353 $as_echo_n "(cached) " >&6
24355 gcc_cv_as_ix86_quad
=no
24356 if test x
$gcc_cv_as != x
; then
24357 $as_echo '.quad 0' > conftest.s
24358 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24360 (eval $ac_try) 2>&5
24362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24363 test $ac_status = 0; }; }
24365 gcc_cv_as_ix86_quad
=yes
24367 echo "configure: failed program was" >&5
24370 rm -f conftest.o conftest.s
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24374 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24375 if test $gcc_cv_as_ix86_quad = yes; then
24377 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24382 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24383 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24384 $as_echo_n "(cached) " >&6
24386 gcc_cv_as_ix86_sahf
=no
24387 if test x
$gcc_cv_as != x
; then
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_sahf
=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_sahf" >&5
24406 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24407 if test $gcc_cv_as_ix86_sahf = yes; then
24409 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24414 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24415 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24416 $as_echo_n "(cached) " >&6
24418 gcc_cv_as_ix86_hle
=no
24419 if test x
$gcc_cv_as != x
; then
24421 lock xacquire cmpxchg %esi, (%rcx)
24423 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24425 (eval $ac_try) 2>&5
24427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24428 test $ac_status = 0; }; }
24430 gcc_cv_as_ix86_hle
=yes
24432 echo "configure: failed program was" >&5
24435 rm -f conftest.o conftest.s
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24439 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24440 if test $gcc_cv_as_ix86_hle = yes; then
24442 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24447 $as_echo_n "checking assembler for swap suffix... " >&6; }
24448 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24449 $as_echo_n "(cached) " >&6
24451 gcc_cv_as_ix86_swap
=no
24452 if test x
$gcc_cv_as != x
; then
24453 $as_echo 'movl.s %esp, %ebp' > conftest.s
24454 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24456 (eval $ac_try) 2>&5
24458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24459 test $ac_status = 0; }; }
24461 gcc_cv_as_ix86_swap
=yes
24463 echo "configure: failed program was" >&5
24466 rm -f conftest.o conftest.s
24469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24470 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24471 if test $gcc_cv_as_ix86_swap = yes; then
24473 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24478 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24479 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24480 $as_echo_n "(cached) " >&6
24482 gcc_cv_as_ix86_diff_sect_delta
=no
24483 if test x
$gcc_cv_as != x
; then
24484 $as_echo '.section .rodata
24490 .L2: nop' > conftest.s
24491 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24493 (eval $ac_try) 2>&5
24495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24496 test $ac_status = 0; }; }
24498 gcc_cv_as_ix86_diff_sect_delta
=yes
24500 echo "configure: failed program was" >&5
24503 rm -f conftest.o conftest.s
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24507 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24508 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24510 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24514 # These two are used unconditionally by i386.[ch]; it is to be defined
24515 # to 1 if the feature is present, 0 otherwise.
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24517 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24518 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24519 $as_echo_n "(cached) " >&6
24521 gcc_cv_as_ix86_gotoff_in_data
=no
24522 if test $in_tree_gas = yes; then
24523 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24524 then gcc_cv_as_ix86_gotoff_in_data
=yes
24526 elif test x
$gcc_cv_as != x
; then
24531 .long .L0@GOTOFF' > conftest.s
24532 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24534 (eval $ac_try) 2>&5
24536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24537 test $ac_status = 0; }; }
24539 gcc_cv_as_ix86_gotoff_in_data
=yes
24541 echo "configure: failed program was" >&5
24544 rm -f conftest.o conftest.s
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24548 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24551 cat >>confdefs.h
<<_ACEOF
24552 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24557 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24558 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24559 $as_echo_n "(cached) " >&6
24561 gcc_cv_as_ix86_rep_lock_prefix
=no
24562 if test x
$gcc_cv_as != x
; then
24563 $as_echo 'rep movsl
24568 lock addl %edi, (%eax,%esi)
24569 lock orl $0, (%esp)' > conftest.s
24570 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24572 (eval $ac_try) 2>&5
24574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24575 test $ac_status = 0; }; }
24577 gcc_cv_as_ix86_rep_lock_prefix
=yes
24579 echo "configure: failed program was" >&5
24582 rm -f conftest.o conftest.s
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24586 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24587 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24589 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24594 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24595 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24596 $as_echo_n "(cached) " >&6
24598 gcc_cv_as_ix86_tlsgdplt
=no
24599 if test x
$gcc_cv_as != x
; then
24600 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24601 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24603 (eval $ac_try) 2>&5
24605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24606 test $ac_status = 0; }; }
24608 if test x
$gcc_cv_ld != x \
24609 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24610 gcc_cv_as_ix86_tlsgdplt
=yes
24614 echo "configure: failed program was" >&5
24617 rm -f conftest.o conftest.s
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24621 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24622 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24624 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24629 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24630 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24631 $as_echo_n "(cached) " >&6
24633 gcc_cv_as_ix86_tlsldmplt
=no
24634 if test x
$gcc_cv_as != x
; then
24636 call tls_ld@tlsldmplt' > conftest.s
24637 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24639 (eval $ac_try) 2>&5
24641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24642 test $ac_status = 0; }; }
24644 if test x
$gcc_cv_ld != x \
24645 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24646 gcc_cv_as_ix86_tlsldmplt
=yes
24650 echo "configure: failed program was" >&5
24653 rm -f conftest.o conftest.s
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24657 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24658 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24660 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24668 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24669 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24670 $as_echo_n "(cached) " >&6
24672 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24673 if test $in_tree_gas = yes; then
24674 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24675 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24677 elif test x
$gcc_cv_as != x
; then
24679 addl r15 = @ltoffx(x#), gp
24681 ld8.mov r16 = [r15], x#' > conftest.s
24682 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24684 (eval $ac_try) 2>&5
24686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24687 test $ac_status = 0; }; }
24689 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24691 echo "configure: failed program was" >&5
24694 rm -f conftest.o conftest.s
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24698 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24699 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24701 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24709 *-*-aix*) conftest_s
=' .machine "pwr5"
24713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24714 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24715 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24716 $as_echo_n "(cached) " >&6
24718 gcc_cv_as_machine_directive
=no
24719 if test x
$gcc_cv_as != x
; then
24720 $as_echo ' .machine ppc7400' > conftest.s
24721 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24723 (eval $ac_try) 2>&5
24725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24726 test $ac_status = 0; }; }
24728 gcc_cv_as_machine_directive
=yes
24730 echo "configure: failed program was" >&5
24733 rm -f conftest.o conftest.s
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24737 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24739 if test x
$gcc_cv_as_machine_directive != xyes
; then
24740 echo "*** This target requires an assembler supporting \".machine\"" >&2
24741 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
24742 test x
$build = x
$target && exit 1
24746 *) conftest_s
=' .machine power4
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24752 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24753 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24754 $as_echo_n "(cached) " >&6
24756 gcc_cv_as_powerpc_mfcrf
=no
24757 if test $in_tree_gas = yes; then
24758 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24759 then gcc_cv_as_powerpc_mfcrf
=yes
24761 elif test x
$gcc_cv_as != x
; then
24762 $as_echo "$conftest_s" > conftest.s
24763 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24765 (eval $ac_try) 2>&5
24767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24768 test $ac_status = 0; }; }
24770 gcc_cv_as_powerpc_mfcrf
=yes
24772 echo "configure: failed program was" >&5
24775 rm -f conftest.o conftest.s
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24779 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24780 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24782 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24787 *-*-aix*) conftest_s
=' .machine "pwr5"
24790 *) conftest_s
=' .machine power5
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24796 $as_echo_n "checking assembler for popcntb support... " >&6; }
24797 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24798 $as_echo_n "(cached) " >&6
24800 gcc_cv_as_powerpc_popcntb
=no
24801 if test $in_tree_gas = yes; then
24802 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24803 then gcc_cv_as_powerpc_popcntb
=yes
24805 elif test x
$gcc_cv_as != x
; then
24806 $as_echo "$conftest_s" > conftest.s
24807 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24809 (eval $ac_try) 2>&5
24811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24812 test $ac_status = 0; }; }
24814 gcc_cv_as_powerpc_popcntb
=yes
24816 echo "configure: failed program was" >&5
24819 rm -f conftest.o conftest.s
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24823 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24824 if test $gcc_cv_as_powerpc_popcntb = yes; then
24826 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24831 *-*-aix*) conftest_s
=' .machine "pwr5x"
24834 *) conftest_s
=' .machine power5
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24840 $as_echo_n "checking assembler for fp round support... " >&6; }
24841 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24842 $as_echo_n "(cached) " >&6
24844 gcc_cv_as_powerpc_fprnd
=no
24845 if test $in_tree_gas = yes; then
24846 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24847 then gcc_cv_as_powerpc_fprnd
=yes
24849 elif test x
$gcc_cv_as != x
; then
24850 $as_echo "$conftest_s" > conftest.s
24851 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24853 (eval $ac_try) 2>&5
24855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24856 test $ac_status = 0; }; }
24858 gcc_cv_as_powerpc_fprnd
=yes
24860 echo "configure: failed program was" >&5
24863 rm -f conftest.o conftest.s
24866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24867 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24868 if test $gcc_cv_as_powerpc_fprnd = yes; then
24870 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24875 *-*-aix*) conftest_s
=' .machine "pwr6"
24878 *) conftest_s
=' .machine power6
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24884 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24885 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24886 $as_echo_n "(cached) " >&6
24888 gcc_cv_as_powerpc_mfpgpr
=no
24889 if test $in_tree_gas = yes; then
24890 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24891 then gcc_cv_as_powerpc_mfpgpr
=yes
24893 elif test x
$gcc_cv_as != x
; then
24894 $as_echo "$conftest_s" > conftest.s
24895 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24897 (eval $ac_try) 2>&5
24899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24900 test $ac_status = 0; }; }
24902 gcc_cv_as_powerpc_mfpgpr
=yes
24904 echo "configure: failed program was" >&5
24907 rm -f conftest.o conftest.s
24910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24911 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24912 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24914 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24919 *-*-aix*) conftest_s
=' .csect .text[PR]
24921 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24925 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24926 *) conftest_s
=' .text
24928 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24932 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24933 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24934 $as_echo_n "(cached) " >&6
24936 gcc_cv_as_powerpc_rel16
=no
24937 if test $in_tree_gas = yes; then
24938 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24939 then gcc_cv_as_powerpc_rel16
=yes
24941 elif test x
$gcc_cv_as != x
; then
24942 $as_echo "$conftest_s" > conftest.s
24943 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24945 (eval $ac_try) 2>&5
24947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24948 test $ac_status = 0; }; }
24950 gcc_cv_as_powerpc_rel16
=yes
24952 echo "configure: failed program was" >&5
24955 rm -f conftest.o conftest.s
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24959 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24960 if test $gcc_cv_as_powerpc_rel16 = yes; then
24962 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24967 *-*-aix*) conftest_s
=' .machine "pwr6"
24970 *) conftest_s
=' .machine power6
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24976 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24977 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24978 $as_echo_n "(cached) " >&6
24980 gcc_cv_as_powerpc_cmpb
=no
24981 if test $in_tree_gas = yes; then
24982 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24983 then gcc_cv_as_powerpc_cmpb
=yes
24985 elif test x
$gcc_cv_as != x
; then
24986 $as_echo "$conftest_s" > conftest.s
24987 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24989 (eval $ac_try) 2>&5
24991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24992 test $ac_status = 0; }; }
24994 gcc_cv_as_powerpc_cmpb
=yes
24996 echo "configure: failed program was" >&5
24999 rm -f conftest.o conftest.s
25002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25003 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25004 if test $gcc_cv_as_powerpc_cmpb = yes; then
25006 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25011 *-*-aix*) conftest_s
=' .machine "pwr6"
25014 *) conftest_s
=' .machine power6
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25020 $as_echo_n "checking assembler for decimal float support... " >&6; }
25021 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25022 $as_echo_n "(cached) " >&6
25024 gcc_cv_as_powerpc_dfp
=no
25025 if test $in_tree_gas = yes; then
25026 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25027 then gcc_cv_as_powerpc_dfp
=yes
25029 elif test x
$gcc_cv_as != x
; then
25030 $as_echo "$conftest_s" > conftest.s
25031 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25033 (eval $ac_try) 2>&5
25035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25036 test $ac_status = 0; }; }
25038 gcc_cv_as_powerpc_dfp
=yes
25040 echo "configure: failed program was" >&5
25043 rm -f conftest.o conftest.s
25046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25047 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25048 if test $gcc_cv_as_powerpc_dfp = yes; then
25050 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25055 *-*-aix*) conftest_s
=' .machine "pwr7"
25058 *) conftest_s
=' .machine power7
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25064 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25065 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25066 $as_echo_n "(cached) " >&6
25068 gcc_cv_as_powerpc_vsx
=no
25069 if test $in_tree_gas = yes; then
25070 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25071 then gcc_cv_as_powerpc_vsx
=yes
25073 elif test x
$gcc_cv_as != x
; then
25074 $as_echo "$conftest_s" > conftest.s
25075 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25077 (eval $ac_try) 2>&5
25079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25080 test $ac_status = 0; }; }
25082 gcc_cv_as_powerpc_vsx
=yes
25084 echo "configure: failed program was" >&5
25087 rm -f conftest.o conftest.s
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25091 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25092 if test $gcc_cv_as_powerpc_vsx = yes; then
25094 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25099 *-*-aix*) conftest_s
=' .machine "pwr7"
25102 *) conftest_s
=' .machine power7
25107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25108 $as_echo_n "checking assembler for popcntd support... " >&6; }
25109 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25110 $as_echo_n "(cached) " >&6
25112 gcc_cv_as_powerpc_popcntd
=no
25113 if test $in_tree_gas = yes; then
25114 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25115 then gcc_cv_as_powerpc_popcntd
=yes
25117 elif test x
$gcc_cv_as != x
; then
25118 $as_echo "$conftest_s" > conftest.s
25119 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25121 (eval $ac_try) 2>&5
25123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25124 test $ac_status = 0; }; }
25126 gcc_cv_as_powerpc_popcntd
=yes
25128 echo "configure: failed program was" >&5
25131 rm -f conftest.o conftest.s
25134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25135 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25136 if test $gcc_cv_as_powerpc_popcntd = yes; then
25138 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25143 *-*-aix*) conftest_s
=' .csect .text[PR]
25145 *) conftest_s
=' .text
25149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25150 $as_echo_n "checking assembler for lwsync support... " >&6; }
25151 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25152 $as_echo_n "(cached) " >&6
25154 gcc_cv_as_powerpc_lwsync
=no
25155 if test $in_tree_gas = yes; then
25156 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25157 then gcc_cv_as_powerpc_lwsync
=yes
25159 elif test x
$gcc_cv_as != x
; then
25160 $as_echo "$conftest_s" > conftest.s
25161 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25163 (eval $ac_try) 2>&5
25165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25166 test $ac_status = 0; }; }
25168 gcc_cv_as_powerpc_lwsync
=yes
25170 echo "configure: failed program was" >&5
25173 rm -f conftest.o conftest.s
25176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25177 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25178 if test $gcc_cv_as_powerpc_lwsync = yes; then
25180 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25185 *-*-aix*) conftest_s
=' .machine "476"
25188 *) conftest_s
=' .machine "476"
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25194 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25195 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25196 $as_echo_n "(cached) " >&6
25198 gcc_cv_as_powerpc_dci
=no
25199 if test $in_tree_gas = yes; then
25200 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25201 then gcc_cv_as_powerpc_dci
=yes
25203 elif test x
$gcc_cv_as != x
; then
25204 $as_echo "$conftest_s" > conftest.s
25205 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25207 (eval $ac_try) 2>&5
25209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25210 test $ac_status = 0; }; }
25212 gcc_cv_as_powerpc_dci
=yes
25214 echo "configure: failed program was" >&5
25217 rm -f conftest.o conftest.s
25220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25221 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25222 if test $gcc_cv_as_powerpc_dci = yes; then
25224 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25229 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25230 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25231 $as_echo_n "(cached) " >&6
25233 gcc_cv_as_powerpc_gnu_attribute
=no
25234 if test $in_tree_gas = yes; then
25235 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25236 then gcc_cv_as_powerpc_gnu_attribute
=yes
25238 elif test x
$gcc_cv_as != x
; then
25239 $as_echo '.gnu_attribute 4,1' > conftest.s
25240 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25242 (eval $ac_try) 2>&5
25244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25245 test $ac_status = 0; }; }
25247 gcc_cv_as_powerpc_gnu_attribute
=yes
25249 echo "configure: failed program was" >&5
25252 rm -f conftest.o conftest.s
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25256 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25257 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25259 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25264 $as_echo_n "checking assembler for tls marker support... " >&6; }
25265 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25266 $as_echo_n "(cached) " >&6
25268 gcc_cv_as_powerpc_tls_markers
=no
25269 if test $in_tree_gas = yes; then
25270 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25271 then gcc_cv_as_powerpc_tls_markers
=yes
25273 elif test x
$gcc_cv_as != x
; then
25274 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25275 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25277 (eval $ac_try) 2>&5
25279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25280 test $ac_status = 0; }; }
25282 gcc_cv_as_powerpc_tls_markers
=yes
25284 echo "configure: failed program was" >&5
25287 rm -f conftest.o conftest.s
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25291 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25292 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25294 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25301 $as_echo_n "checking assembler for .ref support... " >&6; }
25302 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25303 $as_echo_n "(cached) " >&6
25305 gcc_cv_as_aix_ref
=no
25306 if test $in_tree_gas = yes; then
25307 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25310 elif test x
$gcc_cv_as != x
; then
25311 $as_echo ' .csect stuff[rw]
25317 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25319 (eval $ac_try) 2>&5
25321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25322 test $ac_status = 0; }; }
25324 gcc_cv_as_aix_ref
=yes
25326 echo "configure: failed program was" >&5
25329 rm -f conftest.o conftest.s
25332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25333 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25334 if test $gcc_cv_as_aix_ref = yes; then
25336 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25345 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25346 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25347 $as_echo_n "(cached) " >&6
25349 gcc_cv_as_mips_explicit_relocs
=no
25350 if test $in_tree_gas = yes; then
25351 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25352 then gcc_cv_as_mips_explicit_relocs
=yes
25354 elif test x
$gcc_cv_as != x
; then
25355 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25356 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25358 (eval $ac_try) 2>&5
25360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25361 test $ac_status = 0; }; }
25363 gcc_cv_as_mips_explicit_relocs
=yes
25365 echo "configure: failed program was" >&5
25368 rm -f conftest.o conftest.s
25371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25372 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25373 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25374 if test x
$target_cpu_default = x
25375 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25376 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25380 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25381 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25382 $as_echo_n "(cached) " >&6
25384 gcc_cv_as_mips_no_shared
=no
25385 if test $in_tree_gas = yes; then
25386 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25387 then gcc_cv_as_mips_no_shared
=yes
25389 elif test x
$gcc_cv_as != x
; then
25390 $as_echo 'nop' > conftest.s
25391 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25393 (eval $ac_try) 2>&5
25395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25396 test $ac_status = 0; }; }
25398 gcc_cv_as_mips_no_shared
=yes
25400 echo "configure: failed program was" >&5
25403 rm -f conftest.o conftest.s
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25407 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25408 if test $gcc_cv_as_mips_no_shared = yes; then
25410 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25415 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25416 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25417 $as_echo_n "(cached) " >&6
25419 gcc_cv_as_mips_gnu_attribute
=no
25420 if test $in_tree_gas = yes; then
25421 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25422 then gcc_cv_as_mips_gnu_attribute
=yes
25424 elif test x
$gcc_cv_as != x
; then
25425 $as_echo '.gnu_attribute 4,1' > conftest.s
25426 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25428 (eval $ac_try) 2>&5
25430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25431 test $ac_status = 0; }; }
25433 gcc_cv_as_mips_gnu_attribute
=yes
25435 echo "configure: failed program was" >&5
25438 rm -f conftest.o conftest.s
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25442 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25443 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25445 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25450 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25451 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25452 $as_echo_n "(cached) " >&6
25454 gcc_cv_as_mips_dtprelword
=no
25455 if test $in_tree_gas = yes; then
25456 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25457 then gcc_cv_as_mips_dtprelword
=yes
25459 elif test x
$gcc_cv_as != x
; then
25460 $as_echo '.section .tdata,"awT",@progbits
25464 .dtprelword x+0x8000' > conftest.s
25465 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25467 (eval $ac_try) 2>&5
25469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25470 test $ac_status = 0; }; }
25472 gcc_cv_as_mips_dtprelword
=yes
25474 echo "configure: failed program was" >&5
25477 rm -f conftest.o conftest.s
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25481 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25482 if test $gcc_cv_as_mips_dtprelword = yes; then
25484 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25489 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25490 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25491 $as_echo_n "(cached) " >&6
25493 gcc_cv_as_mips_dspr1_mult
=no
25494 if test x
$gcc_cv_as != x
; then
25495 $as_echo ' .set mips32r2
25503 multu $ac3,$4,$5' > conftest.s
25504 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25506 (eval $ac_try) 2>&5
25508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25509 test $ac_status = 0; }; }
25511 gcc_cv_as_mips_dspr1_mult
=yes
25513 echo "configure: failed program was" >&5
25516 rm -f conftest.o conftest.s
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25520 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25521 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25523 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25528 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25529 gcc_cv_as_ld_jalr_reloc
=no
25530 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25531 if test $in_tree_ld = yes ; then
25532 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 \
25533 && test $in_tree_ld_is_elf = yes; then
25534 gcc_cv_as_ld_jalr_reloc
=yes
25536 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25537 echo ' .ent x' > conftest.s
25538 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25539 echo ' ld $25,%call16(y)($28)' >> conftest.s
25540 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25541 echo '1: jalr $25' >> conftest.s
25542 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25543 echo '1: jalr $25' >> conftest.s
25544 echo ' .end x' >> conftest.s
25545 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25546 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25547 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25548 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25549 gcc_cv_as_ld_jalr_reloc
=yes
25555 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25556 if test x
$target_cpu_default = x
; then
25557 target_cpu_default
=MASK_RELAX_PIC_CALLS
25559 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25563 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25566 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25567 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25568 $as_echo_n "(cached) " >&6
25570 gcc_cv_ld_mips_personality_relaxation
=no
25571 if test $in_tree_ld = yes ; then
25572 if test "$gcc_cv_gld_major_version" -eq 2 \
25573 -a "$gcc_cv_gld_minor_version" -ge 21 \
25574 -o "$gcc_cv_gld_major_version" -gt 2; then
25575 gcc_cv_ld_mips_personality_relaxation
=yes
25577 elif test x
$gcc_cv_as != x \
25578 -a x
$gcc_cv_ld != x \
25579 -a x
$gcc_cv_readelf != x
; then
25580 cat > conftest.s
<<EOF
25582 .cfi_personality 0x80,indirect_ptr
25589 .section .data,"aw",@progbits
25593 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25594 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25595 if $gcc_cv_readelf -d conftest
2>&1 \
25596 |
grep TEXTREL
> /dev
/null
2>&1; then
25598 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25599 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25602 gcc_cv_ld_mips_personality_relaxation
=yes
25606 rm -f conftest.s conftest.o conftest
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25609 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25610 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25612 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25618 # Mips and HP-UX need the GNU assembler.
25619 # Linux on IA64 might be able to use the Intel assembler.
25622 mips
*-*-* |
*-*-hpux* )
25623 if test x
$gas_flag = xyes \
25624 ||
test x
"$host" != x
"$build" \
25625 ||
test ! -x "$gcc_cv_as" \
25626 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25629 echo "*** This configuration requires the GNU assembler" >&2
25635 # ??? Not all targets support dwarf2 debug_line, even within a version
25636 # of gas. Moreover, we need to emit a valid instruction to trigger any
25637 # info to the output file. So, as supported targets are added to gas 2.11,
25638 # add some instruction here to (also) show we expect this might work.
25639 # ??? Once 2.11 is released, probably need to add first known working
25640 # version to the per-target configury.
25641 case "$cpu_type" in
25642 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25643 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa
)
25653 if test x
"$insn" != x
; then
25655 .file 1 \"conftest.s\"
25658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25659 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25660 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25661 $as_echo_n "(cached) " >&6
25663 gcc_cv_as_dwarf2_debug_line
=no
25664 if test $in_tree_gas = yes; then
25665 if test $in_tree_gas_is_elf = yes \
25666 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25667 then gcc_cv_as_dwarf2_debug_line
=yes
25669 elif test x
$gcc_cv_as != x
; then
25670 $as_echo "$conftest_s" > conftest.s
25671 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25673 (eval $ac_try) 2>&5
25675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25676 test $ac_status = 0; }; }
25678 if test x
$gcc_cv_objdump != x \
25679 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
25680 |
grep debug_line
> /dev
/null
2>&1; then
25681 gcc_cv_as_dwarf2_debug_line
=yes
25684 echo "configure: failed program was" >&5
25687 rm -f conftest.o conftest.s
25690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25691 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25694 # The .debug_line file table must be in the exact order that
25695 # we specified the files, since these indices are also used
25696 # by DW_AT_decl_file. Approximate this test by testing if
25697 # the assembler bitches if the same index is assigned twice.
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25699 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25700 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25701 $as_echo_n "(cached) " >&6
25703 gcc_cv_as_dwarf2_file_buggy
=no
25704 if test x
$gcc_cv_as != x
; then
25705 $as_echo ' .file 1 "foo.s"
25706 .file 1 "bar.s"' > conftest.s
25707 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25709 (eval $ac_try) 2>&5
25711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25712 test $ac_status = 0; }; }
25714 gcc_cv_as_dwarf2_file_buggy
=yes
25716 echo "configure: failed program was" >&5
25719 rm -f conftest.o conftest.s
25722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25723 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25726 if test $gcc_cv_as_dwarf2_debug_line = yes \
25727 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
25729 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25734 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25735 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25736 $as_echo_n "(cached) " >&6
25738 gcc_cv_as_gdwarf2_flag
=no
25739 if test $in_tree_gas = yes; then
25740 if test $in_tree_gas_is_elf = yes \
25741 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25742 then gcc_cv_as_gdwarf2_flag
=yes
25744 elif test x
$gcc_cv_as != x
; then
25745 $as_echo "$insn" > conftest.s
25746 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25748 (eval $ac_try) 2>&5
25750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25751 test $ac_status = 0; }; }
25753 gcc_cv_as_gdwarf2_flag
=yes
25755 echo "configure: failed program was" >&5
25758 rm -f conftest.o conftest.s
25761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25762 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25763 if test $gcc_cv_as_gdwarf2_flag = yes; then
25765 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25770 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25771 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25772 $as_echo_n "(cached) " >&6
25774 gcc_cv_as_gstabs_flag
=no
25775 if test $in_tree_gas = yes; then
25776 if test $in_tree_gas_is_elf = yes \
25777 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25778 then gcc_cv_as_gstabs_flag
=yes
25780 elif test x
$gcc_cv_as != x
; then
25781 $as_echo "$insn" > conftest.s
25782 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25784 (eval $ac_try) 2>&5
25786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25787 test $ac_status = 0; }; }
25789 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25790 # and warns about it, but still exits successfully. So check for
25792 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25794 (eval $ac_try) 2>&5
25796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25797 test $ac_status = 0; }; }
25799 else gcc_cv_as_gstabs_flag
=yes
25802 echo "configure: failed program was" >&5
25805 rm -f conftest.o conftest.s
25808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25809 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25810 if test $gcc_cv_as_gstabs_flag = yes; then
25812 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25817 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25818 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25819 $as_echo_n "(cached) " >&6
25821 gcc_cv_as_debug_prefix_map_flag
=no
25822 if test $in_tree_gas = yes; then
25823 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25824 then gcc_cv_as_debug_prefix_map_flag
=yes
25826 elif test x
$gcc_cv_as != x
; then
25827 $as_echo "$insn" > conftest.s
25828 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25830 (eval $ac_try) 2>&5
25832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25833 test $ac_status = 0; }; }
25835 gcc_cv_as_debug_prefix_map_flag
=yes
25837 echo "configure: failed program was" >&5
25840 rm -f conftest.o conftest.s
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25844 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25845 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25847 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25853 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25854 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25855 $as_echo_n "(cached) " >&6
25857 gcc_cv_as_lcomm_with_alignment
=no
25858 if test x
$gcc_cv_as != x
; then
25859 $as_echo '.lcomm bar,4,16' > conftest.s
25860 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25862 (eval $ac_try) 2>&5
25864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25865 test $ac_status = 0; }; }
25867 gcc_cv_as_lcomm_with_alignment
=yes
25869 echo "configure: failed program was" >&5
25872 rm -f conftest.o conftest.s
25875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25876 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25877 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25879 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25883 # Check whether --enable-gnu-unique-object was given.
25884 if test "${enable_gnu_unique_object+set}" = set; then :
25885 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25887 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25888 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25892 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25893 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25894 $as_echo_n "(cached) " >&6
25896 gcc_cv_as_gnu_unique_object
=no
25897 if test $in_tree_gas = yes; then
25898 if test $in_tree_gas_is_elf = yes \
25899 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25900 then gcc_cv_as_gnu_unique_object
=yes
25902 elif test x
$gcc_cv_as != x
; then
25903 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
25904 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25906 (eval $ac_try) 2>&5
25908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25909 test $ac_status = 0; }; }
25911 gcc_cv_as_gnu_unique_object
=yes
25913 echo "configure: failed program was" >&5
25916 rm -f conftest.o conftest.s
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25920 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25921 if test $gcc_cv_as_gnu_unique_object = yes; then
25922 # We need to unquote above to to use the definition from config.gcc.
25923 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25924 if test x
$host = x
$build -a x
$host = x
$target &&
25925 ldd
--version 2>/dev
/null
&&
25926 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25927 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
25928 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25929 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
25930 if test "$glibcnum" -ge 2011 ; then
25931 enable_gnu_unique_object
=yes
25937 if test x
$enable_gnu_unique_object = xyes
; then
25939 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25944 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25945 if test "${gcc_cv_as_line_zero+set}" = set; then :
25946 $as_echo_n "(cached) " >&6
25948 gcc_cv_as_line_zero
=no
25949 if test $in_tree_gas = yes; then
25950 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25951 then gcc_cv_as_line_zero
=yes
25953 elif test "x$gcc_cv_as" != x
; then
25954 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25955 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25957 (eval $ac_try) 2>&5
25959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25960 test $ac_status = 0; }; } &&
25961 test "x`cat conftest.out`" = x
25963 gcc_cv_as_line_zero
=yes
25965 echo "configure: failed program was" >&5
25967 echo "configure: error output was" >&5
25968 cat conftest.out
>&5
25970 rm -f conftest.o conftest.s conftest.out
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25974 $as_echo "$gcc_cv_as_line_zero" >&6; }
25975 if test "x$gcc_cv_as_line_zero" = xyes
; then
25977 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25982 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25983 gcc_cv_ld_eh_frame_hdr
=no
25984 if test $in_tree_ld = yes ; then
25985 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 \
25986 && test $in_tree_ld_is_elf = yes; then
25987 gcc_cv_ld_eh_frame_hdr
=yes
25989 elif test x
$gcc_cv_ld != x
; then
25990 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25991 # Check if linker supports --eh-frame-hdr option
25992 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
25993 gcc_cv_ld_eh_frame_hdr
=yes
25998 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25999 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26000 gcc_cv_ld_eh_frame_hdr
=yes
26007 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26009 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26013 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26016 $as_echo_n "checking linker position independent executable support... " >&6; }
26018 if test $in_tree_ld = yes ; then
26019 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 \
26020 && test $in_tree_ld_is_elf = yes; then
26023 elif test x
$gcc_cv_ld != x
; then
26024 # Check if linker supports -pie option
26025 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26029 if test x
"$gcc_cv_ld_pie" = xyes
; then
26031 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26035 $as_echo "$gcc_cv_ld_pie" >&6; }
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26038 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26039 gcc_cv_ld_eh_gc_sections
=no
26040 if test $in_tree_ld = yes ; then
26041 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 \
26042 && test $in_tree_ld_is_elf = yes; then
26043 gcc_cv_ld_eh_gc_sections
=yes
26045 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26046 cat > conftest.s
<<EOF
26049 .type _start, @function
26052 .size _start, .-_start
26053 .section .text.foo,"ax",@progbits
26054 .type foo, @function
26058 .section .gcc_except_table.foo,"a",@progbits
26061 .section .eh_frame,"a",@progbits
26064 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26065 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26066 |
grep "gc-sections option ignored" > /dev
/null
; then
26067 gcc_cv_ld_eh_gc_sections
=no
26068 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26069 |
grep gcc_except_table
> /dev
/null
; then
26070 gcc_cv_ld_eh_gc_sections
=yes
26071 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26072 if test x
$gcc_cv_as_comdat_group != xyes
; then
26073 gcc_cv_ld_eh_gc_sections
=no
26074 cat > conftest.s
<<EOF
26077 .type _start, @function
26080 .size _start, .-_start
26081 .section .gnu.linkonce.t.foo,"ax",@progbits
26082 .type foo, @function
26086 .section .gcc_except_table.foo,"a",@progbits
26089 .section .eh_frame,"a",@progbits
26092 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26093 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26094 |
grep "gc-sections option ignored" > /dev
/null
; then
26095 gcc_cv_ld_eh_gc_sections
=no
26096 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26097 |
grep gcc_except_table
> /dev
/null
; then
26098 gcc_cv_ld_eh_gc_sections
=yes
26104 rm -f conftest.s conftest.o conftest
26108 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26109 gcc_cv_ld_eh_gc_sections
=no
26112 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26114 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26118 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26121 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26122 gcc_cv_ld_eh_gc_sections_bug
=no
26123 if test $in_tree_ld = yes ; then
26124 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 \
26125 && test $in_tree_ld_is_elf = yes; then
26126 gcc_cv_ld_eh_gc_sections_bug
=yes
26128 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
26129 gcc_cv_ld_eh_gc_sections_bug
=yes
26130 cat > conftest.s
<<EOF
26133 .type _start, @function
26136 .size _start, .-_start
26137 .section .text.startup.foo,"ax",@progbits
26138 .type foo, @function
26142 .section .gcc_except_table.foo,"a",@progbits
26145 .section .eh_frame,"a",@progbits
26148 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26149 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26150 |
grep "gc-sections option ignored" > /dev
/null
; then
26152 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26153 |
grep gcc_except_table
> /dev
/null
; then
26154 gcc_cv_ld_eh_gc_sections_bug
=no
26157 rm -f conftest.s conftest.o conftest
26159 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26161 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26165 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26172 $as_echo_n "checking linker --as-needed support... " >&6; }
26173 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26174 $as_echo_n "(cached) " >&6
26176 gcc_cv_ld_as_needed
=no
26177 if test $in_tree_ld = yes ; then
26178 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 \
26179 && test $in_tree_ld_is_elf = yes; then
26180 gcc_cv_ld_as_needed
=yes
26182 elif test x
$gcc_cv_ld != x
; then
26183 # Check if linker supports --as-needed and --no-as-needed options
26184 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26185 gcc_cv_ld_as_needed
=yes
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26191 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26192 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26194 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26198 case "$target:$tm_file" in
26199 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26202 emul_name
="-melf64ppc"
26205 emul_name
="-melf64ppc_fbsd"
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26209 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26210 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26211 $as_echo_n "(cached) " >&6
26213 gcc_cv_ld_no_dot_syms
=no
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 16 -o "$gcc_cv_gld_major_version" -gt 2; then
26216 gcc_cv_ld_no_dot_syms
=yes
26218 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26219 cat > conftest1.s
<<EOF
26223 cat > conftest2.s
<<EOF
26224 .section ".opd","aw"
26227 .type foo,@function
26229 .quad .LEfoo,.TOC.@tocbase,0
26235 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26236 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26237 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26238 gcc_cv_ld_no_dot_syms
=yes
26240 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26245 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26246 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26248 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26253 $as_echo_n "checking linker large toc support... " >&6; }
26254 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26255 $as_echo_n "(cached) " >&6
26257 gcc_cv_ld_large_toc
=no
26258 if test $in_tree_ld = yes ; then
26259 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
26260 gcc_cv_ld_large_toc
=yes
26262 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26263 cat > conftest.s
<<EOF
26264 .section ".tbss","awT",@nobits
26270 addis 9,13,ie0@got@tprel@ha
26271 ld 9,ie0@got@tprel@l(9)
26273 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26274 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26275 gcc_cv_ld_large_toc
=yes
26277 rm -f conftest conftest.o conftest.s
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26282 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26283 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26285 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26292 $as_echo_n "checking linker --build-id support... " >&6; }
26293 if test "${gcc_cv_ld_buildid+set}" = set; then :
26294 $as_echo_n "(cached) " >&6
26296 gcc_cv_ld_buildid
=no
26297 if test $in_tree_ld = yes ; then
26298 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26299 "$gcc_cv_gld_minor_version" -ge 18 -o \
26300 "$gcc_cv_gld_major_version" -gt 2 \
26301 && test $in_tree_ld_is_elf = yes; then
26302 gcc_cv_ld_buildid
=yes
26304 elif test x
$gcc_cv_ld != x
; then
26305 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26306 gcc_cv_ld_buildid
=yes
26310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26311 $as_echo "$gcc_cv_ld_buildid" >&6; }
26312 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26314 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26318 # Check whether --enable-linker-build-id was given.
26319 if test "${enable_linker_build_id+set}" = set; then :
26320 enableval
=$enable_linker_build_id;
26322 enable_linker_build_id
=no
26326 if test x
"$enable_linker_build_id" = xyes
; then
26327 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26329 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26333 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26337 # In binutils 2.21, GNU ld gained support for new emulations fully
26338 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26340 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26341 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26342 $as_echo_n "(cached) " >&6
26344 gcc_cv_ld_sol2_emulation
=no
26345 if test $in_tree_ld = yes ; then
26346 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26347 "$gcc_cv_gld_minor_version" -ge 21 -o \
26348 "$gcc_cv_gld_major_version" -gt 2 \
26349 && test $in_tree_ld_is_elf = yes; then
26350 gcc_cv_ld_sol2_emulation
=yes
26352 elif test x
$gcc_cv_ld != x
; then
26353 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26354 grep _sol2
> /dev
/null
; then
26355 gcc_cv_ld_sol2_emulation
=yes
26359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26360 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26361 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26363 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26368 $as_echo_n "checking linker --sysroot support... " >&6; }
26369 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26370 $as_echo_n "(cached) " >&6
26372 gcc_cv_ld_sysroot
=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 ; then
26375 gcc_cv_ld_sysroot
=yes
26377 elif test x
$gcc_cv_ld != x
; then
26378 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26379 gcc_cv_ld_sysroot
=yes
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26384 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26385 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26387 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26391 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26392 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26393 && test "$prefix" != "NONE"; then
26395 cat >>confdefs.h
<<_ACEOF
26396 #define PREFIX_INCLUDE_DIR "$prefix/include"
26401 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26402 if test "x$with_headers" != x
; then
26403 target_header_dir
=$with_headers
26404 elif test "x$with_sysroot" = x
; then
26405 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
26406 elif test "x$with_build_sysroot" != "x"; then
26407 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26408 elif test "x$with_sysroot" = xyes
; then
26409 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26411 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26414 target_header_dir
=${native_system_header_dir}
26417 # Test for stack protector support in target C library.
26418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26419 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26420 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26421 $as_echo_n "(cached) " >&6
26423 gcc_cv_libc_provides_ssp
=no
26425 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26426 # glibc 2.4 and later provides __stack_chk_fail and
26427 # either __stack_chk_guard, or TLS access to stack guard canary.
26428 if test -f $target_header_dir/features.h \
26429 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26430 $target_header_dir/features.h
> /dev
/null
; then
26431 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26432 $target_header_dir/features.h
> /dev
/null
; then
26433 gcc_cv_libc_provides_ssp
=yes
26434 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26435 $target_header_dir/features.h
> /dev
/null \
26436 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26437 $target_header_dir/features.h
> /dev
/null
; then
26438 gcc_cv_libc_provides_ssp
=yes
26439 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26440 $target_header_dir/features.h
> /dev
/null
&& \
26441 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26442 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26443 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26444 gcc_cv_libc_provides_ssp
=yes
26446 # all versions of Bionic support stack protector
26447 elif test -f $target_header_dir/sys
/cdefs.h \
26448 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26449 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
26450 gcc_cv_libc_provides_ssp
=yes
26454 # Avoid complicated tests (see
26455 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26456 # simply assert that glibc does provide this, which is true for all
26457 # realistically usable GNU/Hurd configurations.
26458 gcc_cv_libc_provides_ssp
=yes;;
26459 *-*-darwin* |
*-*-freebsd*)
26460 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26461 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26462 gcc_cv_libc_provides_ssp
=yes
26464 echo "no __stack_chk_fail on this target"
26468 *) gcc_cv_libc_provides_ssp
=no
;;
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26472 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26474 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26476 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26480 # Test for <sys/sdt.h> on the target.
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26483 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26485 if test -f $target_header_dir/sys
/sdt.h
; then
26488 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26492 $as_echo "$have_sys_sdt_h" >&6; }
26494 # Check if TFmode long double should be used by default or not.
26495 # Some glibc targets used DFmode long double, but with glibc 2.4
26496 # and later they can use TFmode.
26498 powerpc
*-*-linux* | \
26499 sparc
*-*-linux* | \
26503 # Check whether --with-long-double-128 was given.
26504 if test "${with_long_double_128+set}" = set; then :
26505 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26507 gcc_cv_target_ldbl128
=no
26508 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26509 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26510 && gcc_cv_target_ldbl128
=yes
26516 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26518 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26523 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26524 gcc_cv_target_dl_iterate_phdr
=unknown
26526 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26527 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26528 # libdl there, both complicating its use and breaking compatibility
26529 # between Solaris 10 updates.
26530 *-*-solaris2.1
[1-9]*)
26531 # <link.h> needs both a dl_iterate_phdr declaration and support for
26532 # compilation with largefile support.
26533 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26534 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26535 gcc_cv_target_dl_iterate_phdr
=yes
26537 gcc_cv_target_dl_iterate_phdr
=no
26542 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26544 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26548 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26550 # Find out what GC implementation we want, or may, use.
26552 # Check whether --with-gc was given.
26553 if test "${with_gc+set}" = set; then :
26554 withval
=$with_gc; case "$withval" in
26561 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26565 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
26573 echo "Using $GGC for garbage collection."
26575 # Libraries to use on the host. This will normally be set by the top
26576 # level Makefile. Here we simply capture the value for our Makefile.
26577 if test -z "${HOST_LIBS+set}"; then
26582 # Use the system's zlib library.
26584 zlibinc
="-I\$(srcdir)/../zlib"
26586 # Check whether --with-system-zlib was given.
26587 if test "${with_system_zlib+set}" = set; then :
26588 withval
=$with_system_zlib; zlibdir
=
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26598 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26599 # Check whether --enable-maintainer-mode was given.
26600 if test "${enable_maintainer_mode+set}" = set; then :
26601 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26608 $as_echo "$maintainer_mode" >&6; }
26610 if test "$maintainer_mode" = "yes"; then
26620 # Make empty files to contain the specs and options for each language.
26621 # Then add #include lines to for a compiler that has specs and/or options.
26627 # These (without "all_") are set in each config-lang.in.
26628 # `language' must be a single word so is spelled singularly.
26631 all_outputs
='Makefile'
26632 # List of language makefile fragments.
26633 all_lang_makefrags
=
26634 # Additional files for gengtype
26635 all_gtfiles
="$target_gtfiles"
26637 # These are the languages that are set in --enable-languages,
26638 # and are available in the GCC tree.
26639 all_selected_languages
=
26641 # Add the language fragments.
26642 # Languages are added via two mechanisms. Some information must be
26643 # recorded in makefile variables, these are defined in config-lang.in.
26644 # We accumulate them and plug them into the main Makefile.
26645 # The other mechanism is a set of hooks for each of the main targets
26646 # like `clean', `install', etc.
26648 language_hooks
="Make-hooks"
26650 for lang
in ${srcdir}/*/config-lang.
in
26652 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26654 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26655 if test "x$lang_alias" = x
26657 echo "$lang doesn't set \$language." 1>&2
26660 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26661 subdirs
="$subdirs $subdir"
26663 # $gcc_subdir is where the gcc integration files are to be found
26664 # for a language, both for internal compiler purposes (compiler
26665 # sources implementing front-end to GCC tree converters), and for
26666 # build infrastructure purposes (Make-lang.in, etc.)
26668 # This will be <subdir> (relative to $srcdir) if a line like
26669 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26670 # is found in <langdir>/config-lang.in, and will remain <langdir>
26673 # Except for the language alias (fetched above), the regular
26674 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26675 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26676 # only this and the language alias.
26678 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26679 if [ "$gcc_subdir" = "" ]; then
26680 gcc_subdir
="$subdir"
26683 case ",$enable_languages," in
26685 all_selected_languages
="$all_selected_languages $lang_alias"
26686 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
26687 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26698 .
${srcdir}/$gcc_subdir/config-lang.
in
26699 if test "x$language" = x
26701 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26706 case ",$enable_languages," in
26707 *,$lang_alias,*) ;;
26709 for i
in $subdir_requires; do
26710 test -f "${srcdir}/$i/config-lang.in" && continue
26718 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26719 if test -f $srcdir/$gcc_subdir/lang.opt
; then
26720 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26721 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26723 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
26724 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26726 all_languages
="$all_languages $language"
26727 all_compilers
="$all_compilers $compilers"
26728 all_outputs
="$all_outputs $outputs"
26729 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
26730 case ",$enable_languages," in
26733 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26743 for language
in $all_selected_languages
26745 check_languages
="$check_languages check-$language"
26748 # We link each language in with a set of hooks, reached indirectly via
26749 # lang.${target}. Only do so for selected languages.
26753 target_list
="all.cross start.encap rest.encap tags \
26754 install-common install-man install-info install-pdf install-html dvi \
26755 pdf html uninstall info man srcextra srcman srcinfo \
26756 mostlyclean clean distclean maintainer-clean install-plugin"
26758 for t
in $target_list
26761 for lang
in $all_selected_languages
26765 echo "lang.$t: $x" >> Make-hooks
26769 # Option include files
26772 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
26773 option_includes
="option-includes.mk"
26782 echo "dir ." > .gdbinit
26783 echo "dir ${srcdir}" >> .gdbinit
26784 if test x
$gdb_needs_out_file_path = xyes
26786 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26788 if test "x$subdirs" != x
; then
26791 echo "dir ${srcdir}/$s" >> .gdbinit
26794 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26796 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26800 # Find a directory in which to install a shared libgcc.
26802 # Check whether --enable-version-specific-runtime-libs was given.
26803 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26804 enableval
=$enable_version_specific_runtime_libs;
26808 # Substitute configuration variables
26872 if test x
${build} = x
${host} ; then
26873 if test x
${host} = x
${target} ; then
26874 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26876 echo "Links are now set up to build a cross-compiler" 1>&2
26877 echo " from ${host} to ${target}." 1>&2
26880 if test x
${host} = x
${target} ; then
26881 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26882 echo " for ${target}." 1>&2
26884 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26885 echo " from ${host} to ${target}." 1>&2
26897 if test "x${CLOOGLIBS}" != "x" ; then
26899 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26903 # Check for plugin support
26904 # Check whether --enable-plugin was given.
26905 if test "${enable_plugin+set}" = set; then :
26906 enableval
=$enable_plugin; enable_plugin
=$enableval
26908 enable_plugin
=yes; default_plugin
=yes
26916 if test x
$build = x
$host; then
26917 export_sym_check
="nm${exeext} -g"
26918 elif test x
$host = x
$target; then
26919 export_sym_check
="$gcc_cv_nm -g"
26925 if test x
$build = x
$host; then
26926 export_sym_check
="objdump${exeext} -T"
26927 elif test x
$host = x
$target; then
26928 export_sym_check
="$gcc_cv_objdump -T"
26935 if test x
"$enable_plugin" = x
"yes"; then
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26938 $as_echo_n "checking for exported symbols... " >&6; }
26939 if test "x$export_sym_check" != x
; then
26940 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26941 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
26942 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
26943 : # No need to use a flag
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26945 $as_echo "yes" >&6; }
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26948 $as_echo "yes" >&6; }
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26950 $as_echo_n "checking for -rdynamic... " >&6; }
26951 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
26952 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
26953 plugin_rdynamic
=yes
26954 pluginlibs
="-rdynamic"
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26960 $as_echo "$plugin_rdynamic" >&6; }
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26964 $as_echo "unable to check" >&6; }
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26970 $as_echo_n "checking for library containing dlopen... " >&6; }
26971 if test "${ac_cv_search_dlopen+set}" = set; then :
26972 $as_echo_n "(cached) " >&6
26974 ac_func_search_save_LIBS
=$LIBS
26975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26976 /* end confdefs.h. */
26978 /* Override any GCC internal prototype to avoid an error.
26979 Use char because int might match the return type of a GCC
26980 builtin and then its argument prototype would still apply. */
26993 for ac_lib
in '' dl
; do
26994 if test -z "$ac_lib"; then
26995 ac_res
="none required"
26998 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27000 if ac_fn_c_try_link
"$LINENO"; then :
27001 ac_cv_search_dlopen
=$ac_res
27003 rm -f core conftest.err conftest.
$ac_objext \
27005 if test "${ac_cv_search_dlopen+set}" = set; then :
27009 if test "${ac_cv_search_dlopen+set}" = set; then :
27012 ac_cv_search_dlopen
=no
27014 rm conftest.
$ac_ext
27015 LIBS
=$ac_func_search_save_LIBS
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27018 $as_echo "$ac_cv_search_dlopen" >&6; }
27019 ac_res
=$ac_cv_search_dlopen
27020 if test "$ac_res" != no
; then :
27021 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27025 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27026 pluginlibs
="$pluginlibs -ldl"
27030 # Check that we can build shared objects with -fPIC -shared
27031 saved_LDFLAGS
="$LDFLAGS"
27032 saved_CFLAGS
="$CFLAGS"
27035 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27036 CFLAGS
="$CFLAGS -fPIC"
27037 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27040 CFLAGS
="$CFLAGS -fPIC"
27041 LDFLAGS
="$LDFLAGS -fPIC -shared"
27044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27045 $as_echo_n "checking for -fPIC -shared... " >&6; }
27046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27047 /* end confdefs.h. */
27057 if ac_fn_c_try_link
"$LINENO"; then :
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27059 $as_echo "yes" >&6; }; have_pic_shared
=yes
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27062 $as_echo "no" >&6; }; have_pic_shared
=no
27064 rm -f core conftest.err conftest.
$ac_objext \
27065 conftest
$ac_exeext conftest.
$ac_ext
27066 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27070 LDFLAGS
="$saved_LDFLAGS"
27071 CFLAGS
="$saved_CFLAGS"
27073 # If plugin support had been requested but not available, fail.
27074 if test x
"$enable_plugin" = x
"no" ; then
27075 if test x
"$default_plugin" != x
"yes"; then
27077 Building GCC with plugin support requires a host that supports
27078 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27085 if test x
"$enable_plugin" = x
"yes"; then
27087 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27092 # Check whether --enable-libquadmath-support was given.
27093 if test "${enable_libquadmath_support+set}" = set; then :
27094 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27096 ENABLE_LIBQUADMATH_SUPPORT
=yes
27099 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27101 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27106 # Specify what hash style to use by default.
27108 # Check whether --with-linker-hash-style was given.
27109 if test "${with_linker_hash_style+set}" = set; then :
27110 withval
=$with_linker_hash_style; case x
"$withval" in
27112 LINKER_HASH_STYLE
=sysv
27115 LINKER_HASH_STYLE
=gnu
27118 LINKER_HASH_STYLE
=both
27121 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27125 LINKER_HASH_STYLE
=''
27128 if test x
"${LINKER_HASH_STYLE}" != x
; then
27130 cat >>confdefs.h
<<_ACEOF
27131 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27136 # Configure the subdirectories
27137 # AC_CONFIG_SUBDIRS($subdirs)
27139 # Create the Makefile
27140 # and configure language subdirectories
27141 ac_config_files
="$ac_config_files $all_outputs"
27144 ac_config_commands
="$ac_config_commands default"
27146 cat >confcache
<<\_ACEOF
27147 # This file is a shell script that caches the results of configure
27148 # tests run on this system so they can be shared between configure
27149 # scripts and configure runs, see configure's option --config-cache.
27150 # It is not useful on other systems. If it contains results you don't
27151 # want to keep, you may remove or edit it.
27153 # config.status only pays attention to the cache file if you give it
27154 # the --recheck option to rerun configure.
27156 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27157 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27158 # following values.
27162 # The following way of writing the cache mishandles newlines in values,
27163 # but we know of no workaround that is simple, portable, and efficient.
27164 # So, we kill variables containing newlines.
27165 # Ultrix sh set writes to stderr and can't be redirected directly,
27166 # and sets the high bit in the cache file unless we assign to the vars.
27168 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27169 eval ac_val
=\$
$ac_var
27173 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27174 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27177 _ | IFS | as_nl
) ;; #(
27178 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27179 *) { eval $ac_var=; unset $ac_var;} ;;
27185 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27186 *${as_nl}ac_space
=\
*)
27187 # `set' does not quote correctly, so add quotes: double-quote
27188 # substitution turns \\\\ into \\, and sed turns \\ into \.
27191 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27194 # `set' quotes correctly as required by POSIX, so do not add quotes.
27195 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27204 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27206 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27208 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27209 if test -w "$cache_file"; then
27210 test "x$cache_file" != "x/dev/null" &&
27211 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27212 $as_echo "$as_me: updating cache $cache_file" >&6;}
27213 cat confcache
>$cache_file
27215 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27216 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27221 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27222 # Let make expand exec_prefix.
27223 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27225 DEFS
=-DHAVE_CONFIG_H
27229 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27230 # 1. Remove the extension, and $U if already installed.
27231 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27232 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27233 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27234 # will be set to the directory where LIBOBJS objects are built.
27235 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27236 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27238 LIBOBJS
=$ac_libobjs
27240 LTLIBOBJS
=$ac_ltlibobjs
27245 : ${CONFIG_STATUS=./config.status}
27247 ac_clean_files_save
=$ac_clean_files
27248 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27250 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27252 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27254 # Generated by $as_me.
27255 # Run this file to recreate the current configuration.
27256 # Compiler output produced by configure, useful for debugging
27257 # configure, is in config.log if it exists.
27260 ac_cs_recheck=false
27263 SHELL=\${CONFIG_SHELL-$SHELL}
27266 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27267 ## -------------------- ##
27268 ## M4sh Initialization. ##
27269 ## -------------------- ##
27271 # Be more Bourne compatible
27272 DUALCASE
=1; export DUALCASE
# for MKS sh
27273 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27276 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27277 # is contrary to our usage. Disable this feature.
27278 alias -g '${1+"$@"}'='"$@"'
27279 setopt NO_GLOB_SUBST
27281 case `(set -o) 2>/dev/null` in #(
27293 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27294 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27295 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27296 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27297 # Prefer a ksh shell builtin over an external printf program on Solaris,
27298 # but without wasting forks for bash or zsh.
27299 if test -z "$BASH_VERSION$ZSH_VERSION" \
27300 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27301 as_echo='print
-r --'
27302 as_echo_n='print
-rn --'
27303 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27304 as_echo='printf %s
\n'
27305 as_echo_n='printf %s
'
27307 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27308 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27309 as_echo_n='/usr
/ucb
/echo -n'
27311 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27312 as_echo_n_body='eval
27316 expr "X$arg" : "X\\(.*\\)$as_nl";
27317 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27319 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27321 export as_echo_n_body
27322 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27324 export as_echo_body
27325 as_echo='sh
-c $as_echo_body as_echo
'
27328 # The user is always right.
27329 if test "${PATH_SEPARATOR+set}" != set; then
27331 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27332 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27339 # We need space, tab and new line, in precisely that order. Quoting is
27340 # there to prevent editors from complaining about space-tab.
27341 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27342 # splitting by setting IFS to empty value.)
27345 # Find who we are. Look in the path if we contain no directory separator.
27347 *[\\/]* ) as_myself=$0 ;;
27348 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27349 for as_dir in $PATH
27352 test -z "$as_dir" && as_dir=.
27353 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27359 # We did not find ourselves, most probably we were run as `sh COMMAND'
27360 # in which case we are not to be found in the path.
27361 if test "x$as_myself" = x
; then
27364 if test ! -f "$as_myself"; then
27365 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27369 # Unset variables that we do not need and which cause bugs (e.g. in
27370 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27371 # suppresses any "Segmentation fault" message there. '((' could
27372 # trigger a bug in pdksh 5.2.14.
27373 for as_var
in BASH_ENV ENV MAIL MAILPATH
27374 do eval test x\
${$as_var+set} = xset \
27375 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27388 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27391 # as_fn_error ERROR [LINENO LOG_FD]
27392 # ---------------------------------
27393 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27394 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27395 # script with status $?, using 1 if that was 0.
27398 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27400 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27401 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27403 $as_echo "$as_me: error: $1" >&2
27404 as_fn_exit
$as_status
27408 # as_fn_set_status STATUS
27409 # -----------------------
27410 # Set $? to STATUS, without forking.
27411 as_fn_set_status
()
27414 } # as_fn_set_status
27416 # as_fn_exit STATUS
27417 # -----------------
27418 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27422 as_fn_set_status
$1
27428 # Portably unset VAR.
27431 { eval $1=; unset $1;}
27433 as_unset
=as_fn_unset
27434 # as_fn_append VAR VALUE
27435 # ----------------------
27436 # Append the text in VALUE to the end of the definition contained in VAR. Take
27437 # advantage of any shell optimizations that allow amortized linear growth over
27438 # repeated appends, instead of the typical quadratic growth present in naive
27440 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27441 eval 'as_fn_append ()
27452 # as_fn_arith ARG...
27453 # ------------------
27454 # Perform arithmetic evaluation on the ARGs, and store the result in the
27455 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27456 # must be portable across $(()) and expr.
27457 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27458 eval 'as_fn_arith ()
27465 as_val
=`expr "$@" || test $? -eq 1`
27470 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27471 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27477 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27478 as_basename
=basename
27483 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27489 as_me
=`$as_basename -- "$0" ||
27490 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27491 X"$0" : 'X\(//\)$' \| \
27492 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27494 sed '/^.*\/\([^/][^/]*\)\/*$/{
27508 # Avoid depending upon Character Ranges.
27509 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27510 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27511 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27512 as_cr_digits
='0123456789'
27513 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27515 ECHO_C
= ECHO_N
= ECHO_T
=
27516 case `echo -n x` in #(((((
27518 case `echo 'xy\c'` in
27519 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27521 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27528 rm -f conf$$ conf$$.exe conf$$.
file
27529 if test -d conf$$.dir
; then
27530 rm -f conf$$.dir
/conf$$.
file
27533 mkdir conf$$.dir
2>/dev
/null
27535 if (echo >conf$$.
file) 2>/dev
/null
; then
27536 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27538 # ... but there are two gotchas:
27539 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27540 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27541 # In both cases, we have to default to `cp -p'.
27542 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27544 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27552 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27553 rmdir conf$$.dir
2>/dev
/null
27558 # Create "$as_dir" as a directory, including parents if necessary.
27563 -*) as_dir
=.
/$as_dir;;
27565 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27569 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27570 *) as_qdir
=$as_dir;;
27572 as_dirs
="'$as_qdir' $as_dirs"
27573 as_dir
=`$as_dirname -- "$as_dir" ||
27574 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27575 X"$as_dir" : 'X\(//\)[^/]' \| \
27576 X"$as_dir" : 'X\(//\)$' \| \
27577 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27578 $as_echo X"$as_dir" |
27579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27583 /^X\(\/\/\)[^/].*/{
27596 test -d "$as_dir" && break
27598 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27599 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27603 if mkdir
-p .
2>/dev
/null
; then
27604 as_mkdir_p
='mkdir -p "$as_dir"'
27606 test -d .
/-p && rmdir .
/-p
27610 if test -x / >/dev
/null
2>&1; then
27611 as_test_x
='test -x'
27613 if ls -dL / >/dev
/null
2>&1; then
27620 if test -d "$1"; then
27626 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27627 ???[sx]*):;;*)false;;esac;fi
27631 as_executable_p
=$as_test_x
27633 # Sed expression to map a string onto a valid CPP name.
27634 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27636 # Sed expression to map a string onto a valid variable name.
27637 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27641 ## ----------------------------------- ##
27642 ## Main body of $CONFIG_STATUS script. ##
27643 ## ----------------------------------- ##
27645 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27648 # Save the log message, to keep $0 and so on meaningful, and to
27649 # report actual input values of CONFIG_FILES etc. instead of their
27650 # values after options handling.
27652 This file was extended by $as_me, which was
27653 generated by GNU Autoconf 2.64. Invocation command line was
27655 CONFIG_FILES = $CONFIG_FILES
27656 CONFIG_HEADERS = $CONFIG_HEADERS
27657 CONFIG_LINKS = $CONFIG_LINKS
27658 CONFIG_COMMANDS = $CONFIG_COMMANDS
27661 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27666 case $ac_config_files in *"
27667 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27670 case $ac_config_headers in *"
27671 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27676 # Files that config.status was made for.
27677 config_files="$ac_config_files"
27678 config_headers="$ac_config_headers"
27679 config_commands="$ac_config_commands"
27683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27685 \`$as_me' instantiates files and other configuration actions
27686 from templates according to the current configuration. Unless the files
27687 and actions are specified as TAGs, all are instantiated by default.
27689 Usage: $0 [OPTION]... [TAG]...
27691 -h, --help print this help, then exit
27692 -V, --version print version number and configuration settings, then exit
27693 -q, --quiet, --silent
27694 do not print progress messages
27695 -d, --debug don't remove temporary files
27696 --recheck update $as_me by reconfiguring in the same conditions
27697 --file=FILE[:TEMPLATE]
27698 instantiate the configuration file FILE
27699 --header=FILE[:TEMPLATE]
27700 instantiate the configuration header FILE
27702 Configuration files:
27705 Configuration headers:
27708 Configuration commands:
27711 Report bugs to the package provider."
27714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27717 configured by $0, generated by GNU Autoconf 2.64,
27718 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27720 Copyright (C) 2009 Free Software Foundation, Inc.
27721 This config.status script is free software; the Free Software Foundation
27722 gives unlimited permission to copy, distribute and modify it."
27727 test -n "\$AWK" || AWK=awk
27730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27731 # The default lists apply if the user does not specify any file.
27737 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27738 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27749 # Handling of the options.
27750 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27752 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27753 $as_echo "$ac_cs_version"; exit ;;
27754 --debug |
--debu |
--deb |
--de |
--d |
-d )
27756 --file |
--fil |
--fi |
--f )
27759 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27761 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27762 ac_need_defaults
=false
;;
27763 --header |
--heade |
--head |
--hea )
27766 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27768 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27769 ac_need_defaults
=false
;;
27771 # Conflict between --help and --header
27772 as_fn_error
"ambiguous option: \`$1'
27773 Try \`$0 --help' for more information.";;
27774 --help |
--hel |
-h )
27775 $as_echo "$ac_cs_usage"; exit ;;
27776 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27777 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27780 # This is an error.
27781 -*) as_fn_error
"unrecognized option: \`$1'
27782 Try \`$0 --help' for more information." ;;
27784 *) as_fn_append ac_config_targets
" $1"
27785 ac_need_defaults
=false
;;
27791 ac_configure_extra_args
=
27793 if $ac_cs_silent; then
27795 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27800 if \$ac_cs_recheck; then
27801 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27803 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27804 CONFIG_SHELL='$SHELL'
27805 export CONFIG_SHELL
27810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27814 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27815 ## Running $as_me. ##
27821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27831 # Handling of arguments.
27832 for ac_config_target
in $ac_config_targets
27834 case $ac_config_target in
27835 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
27836 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
27837 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27838 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
27839 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
27840 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27842 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27847 # If the user did not use the arguments to specify the items to instantiate,
27848 # then the envvar interface is used. Set only those that are not.
27849 # We use the long form for the default assignment because of an extremely
27850 # bizarre bug on SunOS 4.1.3.
27851 if $ac_need_defaults; then
27852 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27853 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27854 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27857 # Have a temporary directory for convenience. Make it in the build tree
27858 # simply because there is no reason against having it here, and in addition,
27859 # creating and moving files from /tmp can sometimes cause problems.
27860 # Hook for its removal unless debugging.
27861 # Note that there is a small window in which the directory will not be cleaned:
27862 # after its creation but before its name has been assigned to `$tmp'.
27866 trap 'exit_status=$?
27867 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27869 trap 'as_fn_exit 1' 1 2 13 15
27871 # Create a (secure) tmp directory for tmp files.
27874 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27875 test -n "$tmp" && test -d "$tmp"
27878 tmp
=.
/conf$$
-$RANDOM
27879 (umask 077 && mkdir
"$tmp")
27880 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
27882 # Set up the scripts for CONFIG_FILES section.
27883 # No need to generate them if there are no CONFIG_FILES.
27884 # This happens for instance with `./config.status config.h'.
27885 if test -n "$CONFIG_FILES"; then
27887 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
27888 ac_cs_awk_getline
=:
27889 ac_cs_awk_pipe_init
=
27890 ac_cs_awk_read_file
='
27891 while ((getline aline < (F[key])) > 0)
27894 ac_cs_awk_pipe_fini
=
27896 ac_cs_awk_getline
=false
27897 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
27898 ac_cs_awk_read_file
='
27900 print "cat " F[key] " &&"
27901 '$ac_cs_awk_pipe_init
27902 # The final `:' finishes the AND list.
27903 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
27905 ac_cr
=`echo X | tr X '\015'`
27906 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27907 # But we know of no other shell where ac_cr would be empty at this
27908 # point, so we can use a bashism as a fallback.
27909 if test "x$ac_cr" = x
; then
27910 eval ac_cr
=\$
\'\\r
\'
27912 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27913 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27916 ac_cs_awk_cr
=$ac_cr
27919 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27922 # Create commands to substitute file output variables.
27924 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27925 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27926 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
27929 } >conf$
$files.sh
&&
27930 . .
/conf$
$files.sh ||
27931 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
27932 rm -f conf$
$files.sh
27935 echo "cat >conf$$subs.awk <<_ACEOF" &&
27936 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27938 } >conf$$subs.sh ||
27939 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27940 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27942 for ac_last_try in false false false false false :; do
27943 . ./conf$$subs.sh ||
27944 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27946 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
27947 if test $ac_delim_n = $ac_delim_num; then
27949 elif $ac_last_try; then
27950 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27952 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27955 rm -f conf$$subs.sh
27957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27958 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27962 s/^/S["/; s
/!.
*/"]=/
27972 s/\(.\{148\}\).*/\1/
27974 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27979 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27986 s/\(.\{148\}\).*/\1/
27988 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27992 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27997 ' <conf$$subs.awk | sed '
28002 ' >>$CONFIG_STATUS || ac_write_fail=1
28003 rm -f conf$$subs.awk
28004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28006 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28007 for (key in S) S_is_set[key] = 1
28009 \$ac_cs_awk_pipe_init
28013 nfields = split(line, field, "@
")
28015 len = length(field[1])
28016 for (i = 2; i < nfields; i++) {
28018 keylen = length(key)
28019 if (S_is_set[key]) {
28021 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28022 len += length(value) + length(field[++i])
28027 if (nfields == 3 && !substed) {
28029 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28030 \$ac_cs_awk_read_file
28036 \$ac_cs_awk_pipe_fini
28039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28040 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28041 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28044 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28045 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28048 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28049 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28050 # trailing colons and then remove the whole line if VPATH becomes empty
28051 # (actually we leave an empty line to preserve line numbers).
28052 if test "x
$srcdir" = x.; then
28053 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28054 s/:*\$(srcdir):*/:/
28055 s/:*\${srcdir}:*/:/
28057 s/^\([^=]*=[ ]*\):*/\1/
28063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28064 fi # test -n "$CONFIG_FILES"
28066 # Set up the scripts for CONFIG_HEADERS section.
28067 # No need to generate them if there are no CONFIG_HEADERS.
28068 # This happens for instance with `./config.status Makefile'.
28069 if test -n "$CONFIG_HEADERS"; then
28070 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28074 # Transform confdefs.h into an awk script `defines.awk', embedded as
28075 # here-document in config.status, that substitutes the proper values into
28076 # config.h.in to produce config.h.
28078 # Create a delimiter string that does not exist in confdefs.h, to ease
28079 # handling of long lines.
28081 for ac_last_try in false false :; do
28082 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28083 if test -z "$ac_t"; then
28085 elif $ac_last_try; then
28086 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28088 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28092 # For the awk script, D is an array of macro values keyed by name,
28093 # likewise P contains macro parameters if any. Preserve backslash
28094 # newline sequences.
28096 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28098 s/.\{148\}/&'"$ac_delim"'/g
28101 s/^[ ]*#[ ]*define[ ][ ]*/ /
28108 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28110 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28114 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28115 D["\
1"]=" \
3\\\\\\n
"\\/p
28117 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28122 s/.\{148\}/&'"$ac_delim"'/g
28127 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28130 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28132 ' <confdefs.h | sed '
28133 s/'"$ac_delim"'/"\\\
28134 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28137 for (key in D) D_is_set[key] = 1
28140 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28142 split(line, arg, " ")
28143 if (arg[1] == "#") {
28147 defundef
= substr
(arg
[1], 2)
28150 split(mac1
, mac2
, "(") #)
28152 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28153 if (D_is_set
[macro
]) {
28154 # Preserve the white space surrounding the "#".
28155 print prefix
"define", macro P
[macro
] D
[macro
]
28158 # Replace #undef with comments. This is necessary, for example,
28159 # in the case of _POSIX_SOURCE, which is predefined and required
28160 # on some systems where configure will not decide to define it.
28161 if (defundef
== "undef") {
28162 print
"/*", prefix defundef
, macro
, "*/"
28170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28171 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28172 fi # test -n "$CONFIG_HEADERS"
28175 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28180 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28182 case $ac_mode$ac_tag in
28184 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28185 :[FH
]-) ac_tag
=-:-;;
28186 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28203 -) ac_f
="$tmp/stdin";;
28204 *) # Look for the file first in the build tree, then in the source tree
28205 # (if the path is not absolute). The absolute path cannot be DOS-style,
28206 # because $ac_f cannot contain `:'.
28210 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28212 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28214 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28215 as_fn_append ac_file_inputs
" '$ac_f'"
28218 # Let's still pretend it is `configure' which instantiates (i.e., don't
28219 # use $as_me), people would be surprised to read:
28220 # /* config.h. Generated by config.status. */
28221 configure_input
='Generated from '`
28222 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28224 if test x
"$ac_file" != x-
; then
28225 configure_input
="$ac_file. $configure_input"
28226 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28227 $as_echo "$as_me: creating $ac_file" >&6;}
28229 # Neutralize special characters interpreted by sed in replacement strings.
28230 case $configure_input in #(
28231 *\
&* |
*\|
* |
*\\* )
28232 ac_sed_conf_input
=`$as_echo "$configure_input" |
28233 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28234 *) ac_sed_conf_input
=$configure_input;;
28238 *:-:* |
*:-) cat >"$tmp/stdin" \
28239 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28244 ac_dir
=`$as_dirname -- "$ac_file" ||
28245 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28246 X"$ac_file" : 'X\(//\)[^/]' \| \
28247 X"$ac_file" : 'X\(//\)$' \| \
28248 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28249 $as_echo X"$ac_file" |
28250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28254 /^X\(\/\/\)[^/].*/{
28267 as_dir
="$ac_dir"; as_fn_mkdir_p
28271 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28273 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28274 # A ".." for each directory in $ac_dir_suffix.
28275 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28276 case $ac_top_builddir_sub in
28277 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28278 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28281 ac_abs_top_builddir
=$ac_pwd
28282 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28283 # for backward compatibility:
28284 ac_top_builddir
=$ac_top_build_prefix
28287 .
) # We are building in place.
28289 ac_top_srcdir
=$ac_top_builddir_sub
28290 ac_abs_top_srcdir
=$ac_pwd ;;
28291 [\\/]* | ?
:[\\/]* ) # Absolute name.
28292 ac_srcdir
=$srcdir$ac_dir_suffix;
28293 ac_top_srcdir
=$srcdir
28294 ac_abs_top_srcdir
=$srcdir ;;
28295 *) # Relative name.
28296 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28297 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28298 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28300 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28312 # If the template does not know about datarootdir, expand it.
28313 # FIXME: This hack should be removed a few years after 2.60.
28314 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28325 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28326 *datarootdir
*) ac_datarootdir_seen
=yes;;
28327 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28329 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28332 ac_datarootdir_hack='
28333 s&@datadir@&$datadir&g
28334 s&@docdir@&$docdir&g
28335 s&@infodir@&$infodir&g
28336 s&@localedir@&$localedir&g
28337 s&@mandir@&$mandir&g
28338 s&\\\${datarootdir}&$datarootdir&g' ;;
28342 # Neutralize VPATH when `$srcdir' = `.'.
28343 # Shell code in configure.ac might set extrasub.
28344 # FIXME: do we really want to maintain this feature?
28345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28346 ac_sed_extra="$ac_vpsub
28349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28351 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28352 s|@configure_input@|
$ac_sed_conf_input|
;t t
28353 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28354 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28355 s
&@srcdir@
&$ac_srcdir&;t t
28356 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28357 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28358 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28359 s
&@builddir@
&$ac_builddir&;t t
28360 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28361 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28362 $ac_datarootdir_hack
28364 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28365 if $ac_cs_awk_getline; then
28366 $AWK -f "$tmp/subs.
awk"
28368 $AWK -f "$tmp/subs.
awk" | $SHELL
28370 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28372 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28373 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28374 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28376 which seems to be undefined. Please make sure it is defined." >&5
28377 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28378 which seems to be undefined. Please make sure it is defined." >&2;}
28382 -) cat "$tmp/out" && rm -f "$tmp/out";;
28383 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28385 || as_fn_error "could not create $ac_file" "$LINENO" 5
28391 if test x"$ac_file" != x-; then
28393 $as_echo "/* $configure_input */" \
28394 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28395 } >"$tmp/config.h" \
28396 || as_fn_error "could not create $ac_file" "$LINENO" 5
28397 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28398 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28399 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28402 mv "$tmp/config.h" "$ac_file" \
28403 || as_fn_error "could not create $ac_file" "$LINENO" 5
28406 $as_echo "/* $configure_input */" \
28407 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28408 || as_fn_error "could not create -" "$LINENO" 5
28412 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28413 $as_echo "$as_me: executing $ac_file commands" >&6;}
28418 case $ac_file$ac_mode in
28419 "as":F) chmod +x as ;;
28420 "collect-ld":F) chmod +x collect-ld ;;
28421 "nm":F) chmod +x nm ;;
28423 case ${CONFIG_HEADERS} in
28424 *auto-host.h:config.in*)
28427 # Make sure all the subdirs exist.
28428 for d in $subdirs doc build common c-family
28430 test -d $d || mkdir $d
28440 ac_clean_files=$ac_clean_files_save
28442 test $ac_write_fail = 0 ||
28443 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28446 # configure is writing to config.log, and then calls config.status.
28447 # config.status does its own redirection, appending to config.log.
28448 # Unfortunately, on DOS this fails, as config.log is still kept open
28449 # by configure, so config.status won't be able to
write to it
; its
28450 # output is simply discarded. So we exec the FD to /dev/null,
28451 # effectively closing config.log, so it can be properly (re)opened and
28452 # appended to by config.status. When coming back to configure, we
28453 # need to make the FD available again.
28454 if test "$no_create" != yes; then
28456 ac_config_status_args
=
28457 test "$silent" = yes &&
28458 ac_config_status_args
="$ac_config_status_args --quiet"
28460 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28462 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28463 # would make configure fail if this is the last instruction.
28464 $ac_cs_success || as_fn_exit $?
28466 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28468 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}