2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
626 common_out_object_file
642 gcc_gxx_include_dir_add_sysroot
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
652 TM_MULTILIB_EXCEPTIONS_CONFIG
661 build_xm_include_list
663 build_install_headers_dir
665 all_selected_languages
683 ORIGINAL_NM_FOR_TARGET
685 ORIGINAL_LD_GOLD_FOR_TARGET
686 ORIGINAL_LD_BFD_FOR_TARGET
687 ORIGINAL_LD_FOR_TARGET
688 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 ORIGINAL_AS_FOR_TARGET
732 NATIVE_SYSTEM_HEADER_DIR
768 CROSS_SYSTEM_HEADER_DIR
769 TARGET_SYSTEM_ROOT_DEFINE
771 SYSROOT_CFLAGS_FOR_TARGET
782 valgrind_path_defines
855 program_transform_name
866 ac_subst_files
='option_includes
869 enable_option_checking
874 enable_generated_files_in_srcdir
881 enable_build_format_warnings
885 enable_gather_detailed_mem_stats
896 with_upc_pts_vaddr_order
897 with_upc_pts_packed_bits
898 enable_upc_link_script
901 with_native_system_header_dir
911 enable_sjlj_exceptions
913 enable_leading_mingw64_underscores
916 enable_win32_registry
924 enable_gnu_indirect_function
925 enable_initfini_array
928 enable_gnu_unique_object
929 enable_linker_build_id
933 enable_maintainer_mode
935 enable_version_specific_runtime_libs
938 enable_libquadmath_support
939 with_linker_hash_style
941 ac_precious_vars
='build_alias
962 # Initialize some variables set by options.
964 ac_init_version
=false
965 ac_unrecognized_opts
=
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
976 program_transform_name
=s
,x
,x
,
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir
='${exec_prefix}/bin'
991 sbindir
='${exec_prefix}/sbin'
992 libexecdir
='${exec_prefix}/libexec'
993 datarootdir
='${prefix}/share'
994 datadir
='${datarootdir}'
995 sysconfdir
='${prefix}/etc'
996 sharedstatedir
='${prefix}/com'
997 localstatedir
='${prefix}/var'
998 includedir
='${prefix}/include'
999 oldincludedir
='/usr/include'
1000 docdir
='${datarootdir}/doc/${PACKAGE}'
1001 infodir
='${datarootdir}/info'
1006 libdir
='${exec_prefix}/lib'
1007 localedir
='${datarootdir}/locale'
1008 mandir
='${datarootdir}/man'
1014 # If the previous option needs an argument, assign it.
1015 if test -n "$ac_prev"; then
1016 eval $ac_prev=\
$ac_option
1022 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026 # Accept the important Cygnus configure options, so we can diagnose typos.
1028 case $ac_dashdash$ac_option in
1032 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1034 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1035 bindir
=$ac_optarg ;;
1037 -build |
--build |
--buil |
--bui |
--bu)
1038 ac_prev
=build_alias
;;
1039 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1040 build_alias
=$ac_optarg ;;
1042 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1043 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1044 ac_prev
=cache_file
;;
1045 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1046 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1047 cache_file
=$ac_optarg ;;
1049 --config-cache |
-C)
1050 cache_file
=config.cache
;;
1052 -datadir |
--datadir |
--datadi |
--datad)
1054 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1055 datadir
=$ac_optarg ;;
1057 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1058 |
--dataroo |
--dataro |
--datar)
1059 ac_prev
=datarootdir
;;
1060 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1061 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1062 datarootdir
=$ac_optarg ;;
1064 -disable-* |
--disable-*)
1065 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1068 as_fn_error
"invalid feature name: $ac_useropt"
1069 ac_useropt_orig
=$ac_useropt
1070 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1073 "enable_
$ac_useropt"
1075 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1076 ac_unrecognized_sep
=', ';;
1078 eval enable_
$ac_useropt=no
;;
1080 -docdir |
--docdir |
--docdi |
--doc |
--do)
1082 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1083 docdir
=$ac_optarg ;;
1085 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1087 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1088 dvidir
=$ac_optarg ;;
1090 -enable-* |
--enable-*)
1091 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1094 as_fn_error
"invalid feature name: $ac_useropt"
1095 ac_useropt_orig
=$ac_useropt
1096 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1099 "enable_
$ac_useropt"
1101 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1102 ac_unrecognized_sep
=', ';;
1104 eval enable_
$ac_useropt=\
$ac_optarg ;;
1106 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1107 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1108 |
--exec |
--exe |
--ex)
1109 ac_prev
=exec_prefix
;;
1110 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1111 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1112 |
--exec=* |
--exe=* |
--ex=*)
1113 exec_prefix
=$ac_optarg ;;
1115 -gas |
--gas |
--ga |
--g)
1116 # Obsolete; use --with-gas.
1119 -help |
--help |
--hel |
--he |
-h)
1120 ac_init_help
=long
;;
1121 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1122 ac_init_help
=recursive
;;
1123 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1124 ac_init_help
=short
;;
1126 -host |
--host |
--hos |
--ho)
1127 ac_prev
=host_alias
;;
1128 -host=* |
--host=* |
--hos=* |
--ho=*)
1129 host_alias
=$ac_optarg ;;
1131 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1133 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1135 htmldir
=$ac_optarg ;;
1137 -includedir |
--includedir |
--includedi |
--included |
--include \
1138 |
--includ |
--inclu |
--incl |
--inc)
1139 ac_prev
=includedir
;;
1140 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1141 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1142 includedir
=$ac_optarg ;;
1144 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1146 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1147 infodir
=$ac_optarg ;;
1149 -libdir |
--libdir |
--libdi |
--libd)
1151 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1152 libdir
=$ac_optarg ;;
1154 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1155 |
--libexe |
--libex |
--libe)
1156 ac_prev
=libexecdir
;;
1157 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1158 |
--libexe=* |
--libex=* |
--libe=*)
1159 libexecdir
=$ac_optarg ;;
1161 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1162 ac_prev
=localedir
;;
1163 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1164 localedir
=$ac_optarg ;;
1166 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1167 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1168 ac_prev
=localstatedir
;;
1169 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1170 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1171 localstatedir
=$ac_optarg ;;
1173 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1175 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1176 mandir
=$ac_optarg ;;
1178 -nfp |
--nfp |
--nf)
1179 # Obsolete; use --without-fp.
1182 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1183 |
--no-cr |
--no-c |
-n)
1186 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1187 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1190 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1191 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1192 |
--oldin |
--oldi |
--old |
--ol |
--o)
1193 ac_prev
=oldincludedir
;;
1194 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1195 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1196 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1197 oldincludedir
=$ac_optarg ;;
1199 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1201 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1202 prefix
=$ac_optarg ;;
1204 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1205 |
--program-pre |
--program-pr |
--program-p)
1206 ac_prev
=program_prefix
;;
1207 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1208 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1209 program_prefix
=$ac_optarg ;;
1211 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1212 |
--program-suf |
--program-su |
--program-s)
1213 ac_prev
=program_suffix
;;
1214 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1215 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1216 program_suffix
=$ac_optarg ;;
1218 -program-transform-name |
--program-transform-name \
1219 |
--program-transform-nam |
--program-transform-na \
1220 |
--program-transform-n |
--program-transform- \
1221 |
--program-transform |
--program-transfor \
1222 |
--program-transfo |
--program-transf \
1223 |
--program-trans |
--program-tran \
1224 |
--progr-tra |
--program-tr |
--program-t)
1225 ac_prev
=program_transform_name
;;
1226 -program-transform-name=* |
--program-transform-name=* \
1227 |
--program-transform-nam=* |
--program-transform-na=* \
1228 |
--program-transform-n=* |
--program-transform-=* \
1229 |
--program-transform=* |
--program-transfor=* \
1230 |
--program-transfo=* |
--program-transf=* \
1231 |
--program-trans=* |
--program-tran=* \
1232 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1233 program_transform_name
=$ac_optarg ;;
1235 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1237 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1238 pdfdir
=$ac_optarg ;;
1240 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1242 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1245 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1246 |
-silent |
--silent |
--silen |
--sile |
--sil)
1249 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1251 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1253 sbindir
=$ac_optarg ;;
1255 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1256 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1257 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1259 ac_prev
=sharedstatedir
;;
1260 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1261 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1262 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1264 sharedstatedir
=$ac_optarg ;;
1266 -site |
--site |
--sit)
1268 -site=* |
--site=* |
--sit=*)
1271 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1273 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1274 srcdir
=$ac_optarg ;;
1276 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1277 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1278 ac_prev
=sysconfdir
;;
1279 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1280 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1281 sysconfdir
=$ac_optarg ;;
1283 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1284 ac_prev
=target_alias
;;
1285 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1286 target_alias
=$ac_optarg ;;
1288 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1291 -version |
--version |
--versio |
--versi |
--vers |
-V)
1292 ac_init_version
=: ;;
1295 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1298 as_fn_error
"invalid package name: $ac_useropt"
1299 ac_useropt_orig
=$ac_useropt
1300 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1305 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1306 ac_unrecognized_sep
=', ';;
1308 eval with_
$ac_useropt=\
$ac_optarg ;;
1310 -without-* |
--without-*)
1311 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1314 as_fn_error
"invalid package name: $ac_useropt"
1315 ac_useropt_orig
=$ac_useropt
1316 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1321 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1322 ac_unrecognized_sep
=', ';;
1324 eval with_
$ac_useropt=no
;;
1327 # Obsolete; use --with-x.
1330 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1331 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1332 ac_prev
=x_includes
;;
1333 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1334 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1335 x_includes
=$ac_optarg ;;
1337 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1338 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1339 ac_prev
=x_libraries
;;
1340 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1341 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1342 x_libraries
=$ac_optarg ;;
1344 -*) as_fn_error
"unrecognized option: \`$ac_option'
1345 Try \`$0 --help' for more information."
1349 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1350 # Reject names that are not valid shell variable names.
1351 case $ac_envvar in #(
1352 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1353 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1355 eval $ac_envvar=\
$ac_optarg
1356 export $ac_envvar ;;
1359 # FIXME: should be removed in autoconf 3.0.
1360 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1361 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1362 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1363 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1369 if test -n "$ac_prev"; then
1370 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1371 as_fn_error
"missing argument to $ac_option"
1374 if test -n "$ac_unrecognized_opts"; then
1375 case $enable_option_checking in
1377 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1378 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382 # Check all directory arguments for consistency.
1383 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1384 datadir sysconfdir sharedstatedir localstatedir includedir \
1385 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1386 libdir localedir mandir
1388 eval ac_val
=\$
$ac_var
1389 # Remove trailing slashes.
1392 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1393 eval $ac_var=\
$ac_val;;
1395 # Be sure to have absolute directory names.
1397 [\\/$
]* | ?
:[\\/]* ) continue;;
1398 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1400 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1403 # There might be people who depend on the old broken behavior: `$host'
1404 # used to hold the argument of --host etc.
1405 # FIXME: To remove some day.
1408 target
=$target_alias
1410 # FIXME: To remove some day.
1411 if test "x$host_alias" != x
; then
1412 if test "x$build_alias" = x
; then
1413 cross_compiling
=maybe
1414 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1415 If a cross compiler is detected then cross compile mode will be used." >&2
1416 elif test "x$build_alias" != "x$host_alias"; then
1422 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1424 test "$silent" = yes && exec 6>/dev
/null
1427 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1428 ac_ls_di
=`ls -di .` &&
1429 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1430 as_fn_error
"working directory cannot be determined"
1431 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1432 as_fn_error
"pwd does not report name of working directory"
1435 # Find the source files, if location was not specified.
1436 if test -z "$srcdir"; then
1437 ac_srcdir_defaulted
=yes
1438 # Try the directory containing this script, then the parent directory.
1439 ac_confdir
=`$as_dirname -- "$as_myself" ||
1440 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1441 X"$as_myself" : 'X\(//\)[^/]' \| \
1442 X"$as_myself" : 'X\(//\)$' \| \
1443 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1444 $as_echo X"$as_myself" |
1445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1463 if test ! -r "$srcdir/$ac_unique_file"; then
1467 ac_srcdir_defaulted
=no
1469 if test ! -r "$srcdir/$ac_unique_file"; then
1470 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1471 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1473 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1475 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1477 # When building in place, set srcdir=.
1478 if test "$ac_abs_confdir" = "$ac_pwd"; then
1481 # Remove unnecessary trailing slashes from srcdir.
1482 # Double slashes in file names in object file debugging info
1483 # mess up M-x gdb in Emacs.
1485 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1487 for ac_var
in $ac_precious_vars; do
1488 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1489 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1490 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1491 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1495 # Report the --help message.
1497 if test "$ac_init_help" = "long"; then
1498 # Omit some internal or obsolete options to make the list less imposing.
1499 # This message is too long to be a string in the A/UX 3.1 sh.
1501 \`configure' configures this package to adapt to many kinds of systems.
1503 Usage: $0 [OPTION]... [VAR=VALUE]...
1505 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1506 VAR=VALUE. See below for descriptions of some of the useful variables.
1508 Defaults for the options are specified in brackets.
1511 -h, --help display this help and exit
1512 --help=short display options specific to this package
1513 --help=recursive display the short help of all the included packages
1514 -V, --version display version information and exit
1515 -q, --quiet, --silent do not print \`checking...' messages
1516 --cache-file=FILE cache test results in FILE [disabled]
1517 -C, --config-cache alias for \`--cache-file=config.cache'
1518 -n, --no-create do not create output files
1519 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1521 Installation directories:
1522 --prefix=PREFIX install architecture-independent files in PREFIX
1523 [$ac_default_prefix]
1524 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1527 By default, \`make install' will install all the files in
1528 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1529 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1530 for instance \`--prefix=\$HOME'.
1532 For better control, use the options below.
1534 Fine tuning of the installation directories:
1535 --bindir=DIR user executables [EPREFIX/bin]
1536 --sbindir=DIR system admin executables [EPREFIX/sbin]
1537 --libexecdir=DIR program executables [EPREFIX/libexec]
1538 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1539 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1540 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1541 --libdir=DIR object code libraries [EPREFIX/lib]
1542 --includedir=DIR C header files [PREFIX/include]
1543 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1544 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1545 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1546 --infodir=DIR info documentation [DATAROOTDIR/info]
1547 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1548 --mandir=DIR man documentation [DATAROOTDIR/man]
1549 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1550 --htmldir=DIR html documentation [DOCDIR]
1551 --dvidir=DIR dvi documentation [DOCDIR]
1552 --pdfdir=DIR pdf documentation [DOCDIR]
1553 --psdir=DIR ps documentation [DOCDIR]
1559 --program-prefix=PREFIX prepend PREFIX to installed program names
1560 --program-suffix=SUFFIX append SUFFIX to installed program names
1561 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1564 --build=BUILD configure
for building on BUILD
[guessed
]
1565 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1566 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1570 if test -n "$ac_init_help"; then
1575 --disable-option-checking ignore unrecognized
--enable/--with options
1576 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1577 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1578 --enable-generated-files-in-srcdir
1579 put copies of generated files
in source dir intended
1580 for creating
source tarballs
for users without
1581 texinfo bison or flex
1582 --disable-largefile omit support
for large files
1583 --disable-build-format-warnings
1584 don
't use -Wformat while building GCC
1585 --enable-werror-always enable -Werror despite compiler version
1586 --enable-checking[=LIST]
1587 enable expensive run-time checks. With LIST, enable
1588 only specific categories of checks. Categories are:
1589 yes,no,all,none,release. Flags are:
1590 assert,df,fold,gc,gcac,gimple,misc,
1591 rtlflag,rtl,runtime,tree,valgrind,types
1592 --enable-coverage[=LEVEL]
1593 enable compiler's code coverage collection. Use to
1594 measure compiler performance and
locate unused parts
1595 of the compiler. With LEVEL
, specify optimization.
1596 Values are opt
, noopt
, default is noopt
1597 --enable-gather-detailed-mem-stats
1598 enable detailed memory allocation stats gathering
1599 --enable-multilib enable library support
for multiple ABIs
1600 --enable-multiarch enable support
for multiarch paths
1601 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1602 --enable-decimal-float={no
,yes,bid
,dpd
}
1603 enable decimal float extension to C. Selecting
'bid'
1604 or
'dpd' choses
which decimal floating point format
1606 --enable-fixed-point enable fixed-point arithmetic extension to C
1607 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1609 --enable-tls enable or disable generation of tls code overriding
1610 the assembler check
for tls support
1611 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1612 GNU Objective-C runtime
1613 --enable-upc-link-script
1614 enable UPC's use of a custom linker
script; this
1615 will define the UPC shared section as a no load
1616 section on targets where this feature is supported
1618 --disable-shared don
't provide a shared libgcc
1619 --enable-languages=LIST specify which front-ends to build
1620 --disable-rpath do not hardcode runtime library paths
1621 --enable-sjlj-exceptions
1622 arrange to use setjmp/longjmp exception handling
1623 --enable-secureplt enable -msecure-plt by default for PowerPC
1624 --enable-leading-mingw64-underscores
1625 enable leading underscores on 64 bit mingw targets
1626 --enable-cld enable -mcld by default for 32bit x86
1627 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1629 --disable-win32-registry
1630 disable lookup of installation paths in the Registry
1632 --enable-win32-registry enable registry lookup (default)
1633 --enable-win32-registry=KEY
1634 use KEY instead of GCC version as the last portion
1636 --enable-shared[=PKGS] build shared libraries [default=yes]
1637 --enable-static[=PKGS] build static libraries [default=yes]
1638 --enable-fast-install[=PKGS]
1639 optimize for fast installation [default=yes]
1640 --disable-libtool-lock avoid locking (might break parallel builds)
1641 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1642 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1643 --enable-gnu-indirect-function
1644 enable the use of the @gnu_indirect_function to
1646 --enable-initfini-array use .init_array/.fini_array sections
1647 --enable-comdat enable COMDAT group support
1648 --enable-gnu-unique-object
1649 enable the use of the @gnu_unique_object ELF
1650 extension on glibc systems
1651 --enable-linker-build-id
1652 compiler will always pass --build-id to linker
1653 --enable-maintainer-mode
1654 enable make rules and dependencies not useful (and
1655 sometimes confusing) to the casual installer
1656 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1657 thrashing on the build machine
1658 --enable-version-specific-runtime-libs
1659 specify that runtime libraries should be installed
1660 in a compiler-specific directory
1661 --enable-plugin enable plugin support
1662 --enable-host-shared build host code as shared libraries
1663 --disable-libquadmath-support
1664 disable libquadmath support for Fortran
1667 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1668 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1669 --with-build-libsubdir=DIR Directory where to find libraries for build system
1670 --with-local-prefix=DIR specifies directory to put local include
1671 --with-gxx-include-dir=DIR
1672 specifies directory to put g++ header files
1673 --with-cpp-install-dir=DIR
1674 install the user visible C preprocessor in DIR
1675 (relative to PREFIX) as well as PREFIX/bin
1676 --with-gnu-ld arrange to work with GNU ld
1677 --with-ld arrange to use the specified ld (full pathname)
1678 --with-demangler-in-ld try to use demangler in GNU ld
1679 --with-gnu-as arrange to work with GNU as
1680 --with-as arrange to use the specified as (full pathname)
1681 --with-stabs arrange to use stabs instead of host debug format
1682 --with-upc-pts={struct,packed}
1683 choose the representation of a UPC pointer-to-shared
1684 --with-upc-pts-vaddr-order={last,first}
1685 choose position of the address field in UPC
1686 pointer-to-shared representation
1687 --with-upc-pts-packed-bits=phase,thread,vaddr
1688 choose bit distribution in packed UPC
1689 pointer-to-shared representation
1690 --with-dwarf2 force the default debug format to be DWARF 2
1691 --with-native-system-header-dir=dir
1692 use dir as the directory to look for standard
1693 system header files in. Defaults to /usr/include.
1694 --with-build-sysroot=sysroot
1695 use sysroot as the system root during the build
1696 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1697 --with-specs=SPECS add SPECS to driver command-line processing
1698 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1699 --with-bugurl=URL Direct users to URL to report a bug
1700 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1701 --with-gnu-ld assume the C compiler uses GNU ld default=no
1702 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1703 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1704 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1706 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1707 --with-plugin-ld=[ARG
] specify the plugin linker
1708 --with-glibc-version=M.N
1709 assume GCC used with glibc version M.N or later
1710 --with-long-double-128 use
128-bit long double by default
1711 --with-gc={page
,zone
} this option is not supported anymore. It used to
1712 choose the garbage collection mechanism to use with
1714 --with-system-zlib use installed libz
1715 --with-linker-hash-style={sysv
,gnu
,both
}
1716 specify the linker
hash style
1718 Some influential environment variables
:
1719 CC C compiler
command
1720 CFLAGS C compiler flags
1721 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1722 nonstandard directory
<lib dir
>
1723 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1724 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1725 you have headers
in a nonstandard directory
<include dir
>
1726 CXX C
++ compiler
command
1727 CXXFLAGS C
++ compiler flags
1729 CXXCPP C
++ preprocessor
1730 GMPLIBS How to link GMP
1731 GMPINC How to
find GMP include files
1732 ISLLIBS How to link ISL
1733 ISLINC How to
find ISL include files
1734 CLOOGLIBS How to link CLOOG
1735 CLOOGINC How to
find CLOOG include files
1737 Use these variables to override the choices made by
`configure' or to help
1738 it to find libraries and programs with nonstandard names/locations.
1740 Report bugs to the package provider.
1745 if test "$ac_init_help" = "recursive"; then
1746 # If there are subdirs, report their specific --help.
1747 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1748 test -d "$ac_dir" ||
1749 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1754 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1756 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1757 # A ".." for each directory in $ac_dir_suffix.
1758 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1759 case $ac_top_builddir_sub in
1760 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1761 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1764 ac_abs_top_builddir=$ac_pwd
1765 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1766 # for backward compatibility:
1767 ac_top_builddir=$ac_top_build_prefix
1770 .) # We are building in place.
1772 ac_top_srcdir=$ac_top_builddir_sub
1773 ac_abs_top_srcdir=$ac_pwd ;;
1774 [\\/]* | ?:[\\/]* ) # Absolute name.
1775 ac_srcdir=$srcdir$ac_dir_suffix;
1776 ac_top_srcdir=$srcdir
1777 ac_abs_top_srcdir=$srcdir ;;
1779 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1780 ac_top_srcdir=$ac_top_build_prefix$srcdir
1781 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1783 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1785 cd "$ac_dir" || { ac_status=$?; continue; }
1786 # Check for guested configure.
1787 if test -f "$ac_srcdir/configure.gnu"; then
1789 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1790 elif test -f "$ac_srcdir/configure"; then
1792 $SHELL "$ac_srcdir/configure" --help=recursive
1794 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1796 cd "$ac_pwd" || { ac_status=$?; break; }
1800 test -n "$ac_init_help" && exit $ac_status
1801 if $ac_init_version; then
1804 generated by GNU Autoconf 2.64
1806 Copyright (C) 2009 Free Software Foundation, Inc.
1807 This configure script is free software; the Free Software Foundation
1808 gives unlimited permission to copy, distribute and modify it.
1813 ## ------------------------ ##
1814 ## Autoconf initialization. ##
1815 ## ------------------------ ##
1817 # ac_fn_c_try_compile LINENO
1818 # --------------------------
1819 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_c_try_compile ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 rm -f conftest.$ac_objext
1824 if { { ac_try="$ac_compile"
1826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1827 *) ac_try_echo
=$ac_try;;
1829 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_compile") 2>conftest.err
1833 if test -s conftest.err
; then
1834 grep -v '^ *+' conftest.err
>conftest.er1
1835 cat conftest.er1
>&5
1836 mv -f conftest.er1 conftest.err
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && {
1840 test -z "$ac_c_werror_flag" ||
1841 test ! -s conftest.err
1842 } && test -s conftest.
$ac_objext; then :
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.
$ac_ext >&5
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1853 } # ac_fn_c_try_compile
1855 # ac_fn_cxx_try_compile LINENO
1856 # ----------------------------
1857 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_cxx_try_compile
()
1860 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1861 rm -f conftest.
$ac_objext
1862 if { { ac_try
="$ac_compile"
1864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_compile") 2>conftest.err
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && {
1878 test -z "$ac_cxx_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest.$ac_objext; then :
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891 } # ac_fn_cxx_try_compile
1893 # ac_fn_c_try_cpp LINENO
1894 # ----------------------
1895 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if { { ac_try="$ac_cpp conftest.$ac_ext"
1901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1902 *) ac_try_echo
=$ac_try;;
1904 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1908 if test -s conftest.err
; then
1909 grep -v '^ *+' conftest.err
>conftest.er1
1910 cat conftest.er1
>&5
1911 mv -f conftest.er1 conftest.err
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } >/dev
/null
&& {
1915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1916 test ! -s conftest.err
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.
$ac_ext >&5
1925 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1930 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1931 # -------------------------------------------------------
1932 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1933 # the include files in INCLUDES and setting the cache variable VAR
1935 ac_fn_c_check_header_mongrel
()
1937 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1938 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1942 $as_echo_n "(cached) " >&6
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1948 # Is the header compilable?
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1950 $as_echo_n "checking $2 usability... " >&6; }
1951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1956 if ac_fn_c_try_compile
"$LINENO"; then :
1957 ac_header_compiler
=yes
1959 ac_header_compiler
=no
1961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1963 $as_echo "$ac_header_compiler" >&6; }
1965 # Is the header present?
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1967 $as_echo_n "checking $2 presence... " >&6; }
1968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1972 if ac_fn_c_try_cpp
"$LINENO"; then :
1973 ac_header_preproc
=yes
1975 ac_header_preproc
=no
1977 rm -f conftest.err conftest.
$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1979 $as_echo "$ac_header_preproc" >&6; }
1981 # So? What about this header?
1982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1985 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1987 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1991 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1993 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1995 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1997 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2005 $as_echo_n "(cached) " >&6
2007 eval "$3=\$ac_header_compiler"
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2015 } # ac_fn_c_check_header_mongrel
2017 # ac_fn_c_try_run LINENO
2018 # ----------------------
2019 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2020 # that executables *can* be run.
2023 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2024 if { { ac_try
="$ac_link"
2026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_link") 2>&5
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2035 { { case "(($ac_try" in
2036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2037 *) ac_try_echo
=$ac_try;;
2039 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2040 $as_echo "$ac_try_echo"; } >&5
2041 (eval "$ac_try") 2>&5
2043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044 test $ac_status = 0; }; }; then :
2047 $as_echo "$as_me: program exited with status $ac_status" >&5
2048 $as_echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.
$ac_ext >&5
2051 ac_retval
=$ac_status
2053 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2054 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2059 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2060 # -------------------------------------------------------
2061 # Tests whether HEADER exists and can be compiled using the include files in
2062 # INCLUDES, setting the cache variable VAR accordingly.
2063 ac_fn_c_check_header_compile
()
2065 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2069 $as_echo_n "(cached) " >&6
2071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2076 if ac_fn_c_try_compile
"$LINENO"; then :
2081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2086 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2088 } # ac_fn_c_check_header_compile
2090 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2091 # --------------------------------------------
2092 # Tries to find the compile-time value of EXPR in a program that includes
2093 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2095 ac_fn_c_compute_int
()
2097 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2098 if test "$cross_compiling" = yes; then
2099 # Depending upon the size, compute the lo and hi bounds.
2100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2106 static int test_array [1 - 2 * !(($2) >= 0)];
2113 if ac_fn_c_try_compile
"$LINENO"; then :
2116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2122 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2129 if ac_fn_c_try_compile
"$LINENO"; then :
2130 ac_hi
=$ac_mid; break
2132 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2133 if test $ac_lo -le $ac_mid; then
2137 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2148 static int test_array [1 - 2 * !(($2) < 0)];
2155 if ac_fn_c_try_compile
"$LINENO"; then :
2158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2164 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2171 if ac_fn_c_try_compile
"$LINENO"; then :
2172 ac_lo
=$ac_mid; break
2174 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2175 if test $ac_mid -le $ac_hi; then
2179 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2189 # Binary search between lo and hi bounds.
2190 while test "x$ac_lo" != "x$ac_hi"; do
2191 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2198 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2205 if ac_fn_c_try_compile
"$LINENO"; then :
2208 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2213 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2220 static long int longval () { return $2; }
2221 static unsigned long int ulongval () { return $2; }
2228 FILE *f = fopen ("conftest.val", "w");
2233 long int i = longval ();
2236 fprintf (f, "%ld", i);
2240 unsigned long int i = ulongval ();
2243 fprintf (f, "%lu", i);
2245 /* Do not output a trailing newline, as this causes \r\n confusion
2246 on some platforms. */
2247 return ferror (f) || fclose (f) != 0;
2253 if ac_fn_c_try_run
"$LINENO"; then :
2254 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2258 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2259 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2263 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2266 } # ac_fn_c_compute_int
2268 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2269 # -------------------------------------------
2270 # Tests whether TYPE exists after having included INCLUDES, setting cache
2271 # variable VAR accordingly.
2272 ac_fn_c_check_type
()
2274 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2276 $as_echo_n "checking for $2... " >&6; }
2277 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2278 $as_echo_n "(cached) " >&6
2281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2293 if ac_fn_c_try_compile
"$LINENO"; then :
2294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2306 if ac_fn_c_try_compile
"$LINENO"; then :
2311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2317 $as_echo "$ac_res" >&6; }
2318 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2320 } # ac_fn_c_check_type
2322 # ac_fn_c_find_intX_t LINENO BITS VAR
2323 # -----------------------------------
2324 # Finds a signed integer type with width BITS, setting cache variable VAR
2326 ac_fn_c_find_intX_t
()
2328 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2330 $as_echo_n "checking for int$2_t... " >&6; }
2331 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2332 $as_echo_n "(cached) " >&6
2335 for ac_type
in int
$2_t 'int' 'long int' \
2336 'long long int' 'short int' 'signed char'; do
2337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2339 $ac_includes_default
2343 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2350 if ac_fn_c_try_compile
"$LINENO"; then :
2351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h. */
2353 $ac_includes_default
2357 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2358 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2365 if ac_fn_c_try_compile
"$LINENO"; then :
2372 eval "$3=\$ac_type" ;;
2375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2379 if test "x$as_val" = x
""no
; then :
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2389 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2391 } # ac_fn_c_find_intX_t
2393 # ac_fn_c_try_link LINENO
2394 # -----------------------
2395 # Try to link conftest.$ac_ext, and return whether this succeeded.
2398 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2399 rm -f conftest.
$ac_objext conftest
$ac_exeext
2400 if { { ac_try
="$ac_link"
2402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2406 $as_echo "$ac_try_echo"; } >&5
2407 (eval "$ac_link") 2>conftest.err
2409 if test -s conftest.err; then
2410 grep -v '^ *+' conftest.err >conftest.er1
2411 cat conftest.er1 >&5
2412 mv -f conftest.er1 conftest.err
2414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2415 test $ac_status = 0; } && {
2416 test -z "$ac_c_werror_flag" ||
2417 test ! -s conftest.err
2418 } && test -s conftest$ac_exeext && {
2419 test "$cross_compiling" = yes ||
2420 $as_test_x conftest$ac_exeext
2424 $as_echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2429 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2430 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2431 # interfere with the next link command; also delete a directory that is
2432 # left behind by Apple's compiler. We do this before executing the actions.
2433 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2434 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2437 } # ac_fn_c_try_link
2439 # ac_fn_c_find_uintX_t LINENO BITS VAR
2440 # ------------------------------------
2441 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2443 ac_fn_c_find_uintX_t ()
2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2447 $as_echo_n "checking for uint$2_t... " >&6; }
2448 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2449 $as_echo_n "(cached) " >&6
2452 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2453 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h. */
2456 $ac_includes_default
2460 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2467 if ac_fn_c_try_compile "$LINENO"; then :
2472 eval "$3=\$ac_type" ;;
2475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477 if test "x$as_val" = x""no; then :
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2486 $as_echo "$ac_res" >&6; }
2487 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2489 } # ac_fn_c_find_uintX_t
2491 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2492 # ----------------------------------------------
2493 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2494 ac_fn_c_check_header_preproc ()
2496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2498 $as_echo_n "checking for $2... " >&6; }
2499 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2500 $as_echo_n "(cached) " >&6
2502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2503 /* end confdefs.h. */
2506 if ac_fn_c_try_cpp "$LINENO"; then :
2511 rm -f conftest.err conftest.$ac_ext
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2515 $as_echo "$ac_res" >&6; }
2516 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2518 } # ac_fn_c_check_header_preproc
2520 # ac_fn_cxx_try_cpp LINENO
2521 # ------------------------
2522 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2523 ac_fn_cxx_try_cpp ()
2525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526 if { { ac_try="$ac_cpp conftest.$ac_ext"
2528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2529 *) ac_try_echo
=$ac_try;;
2531 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2532 $as_echo "$ac_try_echo"; } >&5
2533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2535 if test -s conftest.err
; then
2536 grep -v '^ *+' conftest.err
>conftest.er1
2537 cat conftest.er1
>&5
2538 mv -f conftest.er1 conftest.err
2540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2541 test $ac_status = 0; } >/dev
/null
&& {
2542 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2543 test ! -s conftest.err
2547 $as_echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.
$ac_ext >&5
2552 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2555 } # ac_fn_cxx_try_cpp
2557 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2558 # ------------------------------------------------
2559 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2560 ac_fn_cxx_check_header_preproc
()
2562 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2564 $as_echo_n "checking for $2... " >&6; }
2565 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2566 $as_echo_n "(cached) " >&6
2568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2572 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2577 rm -f conftest.err conftest.
$ac_ext
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2581 $as_echo "$ac_res" >&6; }
2582 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2584 } # ac_fn_cxx_check_header_preproc
2586 # ac_fn_c_check_func LINENO FUNC VAR
2587 # ----------------------------------
2588 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2589 ac_fn_c_check_func
()
2591 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2593 $as_echo_n "checking for $2... " >&6; }
2594 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2595 $as_echo_n "(cached) " >&6
2597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2599 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2601 #define $2 innocuous_$2
2603 /* System header to define __stub macros and hopefully few prototypes,
2604 which can conflict with char $2 (); below.
2605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2606 <limits.h> exists even on freestanding compilers. */
2609 # include <limits.h>
2611 # include <assert.h>
2616 /* Override any GCC internal prototype to avoid an error.
2617 Use char because int might match the return type of a GCC
2618 builtin and then its argument prototype would still apply. */
2623 /* The GNU C library defines this for functions which it implements
2624 to always fail with ENOSYS. Some functions are actually named
2625 something starting with __ and the normal name is an alias. */
2626 #if defined __stub_$2 || defined __stub___$2
2638 if ac_fn_c_try_link
"$LINENO"; then :
2643 rm -f core conftest.err conftest.
$ac_objext \
2644 conftest
$ac_exeext conftest.
$ac_ext
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2648 $as_echo "$ac_res" >&6; }
2649 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2651 } # ac_fn_c_check_func
2653 # ac_fn_cxx_try_link LINENO
2654 # -------------------------
2655 # Try to link conftest.$ac_ext, and return whether this succeeded.
2656 ac_fn_cxx_try_link
()
2658 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2659 rm -f conftest.
$ac_objext conftest
$ac_exeext
2660 if { { ac_try
="$ac_link"
2662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2663 *) ac_try_echo=$ac_try;;
2665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2666 $as_echo "$ac_try_echo"; } >&5
2667 (eval "$ac_link") 2>conftest.err
2669 if test -s conftest.err; then
2670 grep -v '^ *+' conftest.err >conftest.er1
2671 cat conftest.er1 >&5
2672 mv -f conftest.er1 conftest.err
2674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2675 test $ac_status = 0; } && {
2676 test -z "$ac_cxx_werror_flag" ||
2677 test ! -s conftest.err
2678 } && test -s conftest$ac_exeext && {
2679 test "$cross_compiling" = yes ||
2680 $as_test_x conftest$ac_exeext
2684 $as_echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2689 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2690 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2691 # interfere with the next link command; also delete a directory that is
2692 # left behind by Apple's compiler. We do this before executing the actions.
2693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2694 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2697 } # ac_fn_cxx_try_link
2698 cat >config.log <<_ACEOF
2699 This file contains any messages produced by compilers while
2700 running configure, to aid debugging if configure makes a mistake.
2702 It was created by $as_me, which was
2703 generated by GNU Autoconf 2.64. Invocation command line was
2715 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2716 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2717 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2718 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2719 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2721 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2722 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2724 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2725 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2726 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2727 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2728 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2729 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2730 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 test -z "$as_dir" && as_dir=.
2739 $as_echo "PATH: $as_dir"
2755 # Keep a trace of the command line.
2756 # Strip out --no-create and --no-recursion so they do not pile up.
2757 # Strip out --silent because we don't want to record it for future runs.
2758 # Also quote any args containing shell meta-characters.
2759 # Make two passes to allow for proper duplicate-argument suppression.
2763 ac_must_keep_next=false
2769 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2770 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2771 | -silent | --silent | --silen | --sile | --sil)
2774 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2777 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2779 as_fn_append ac_configure_args1 " '$ac_arg'"
2780 if test $ac_must_keep_next = true; then
2781 ac_must_keep_next=false # Got value, back to normal.
2784 *=* | --config-cache | -C | -disable-* | --disable-* \
2785 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2786 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2787 | -with-* | --with-* | -without-* | --without-* | --x)
2788 case "$ac_configure_args0 " in
2789 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2792 -* ) ac_must_keep_next=true ;;
2795 as_fn_append ac_configure_args " '$ac_arg'"
2800 { ac_configure_args0=; unset ac_configure_args0;}
2801 { ac_configure_args1=; unset ac_configure_args1;}
2803 # When interrupted or exit'd, cleanup temporary files, and complete
2804 # config.log. We remove comments because anyway the quotes in there
2805 # would cause problems or look ugly.
2806 # WARNING: Use '\'' to represent an apostrophe within the trap.
2807 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2808 trap 'exit_status=$?
2809 # Save into config.log some information that might help in debugging.
2814 ## ---------------- ##
2815 ## Cache variables. ##
2816 ## ---------------- ##
2819 # The following way of writing the cache mishandles newlines in values,
2821 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2822 eval ac_val=\$$ac_var
2826 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2827 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2830 _ | IFS | as_nl) ;; #(
2831 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2832 *) { eval $ac_var=; unset $ac_var;} ;;
2837 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2838 *${as_nl}ac_space=\ *)
2840 "s/'\''/'\''\\\\'\'''\''/g;
2841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2844 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2852 ## ----------------- ##
2853 ## Output variables. ##
2854 ## ----------------- ##
2857 for ac_var in $ac_subst_vars
2859 eval ac_val=\$$ac_var
2861 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2863 $as_echo "$ac_var='\''$ac_val'\''"
2867 if test -n "$ac_subst_files"; then
2869 ## ------------------- ##
2870 ## File substitutions. ##
2871 ## ------------------- ##
2874 for ac_var in $ac_subst_files
2876 eval ac_val=\$$ac_var
2878 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2880 $as_echo "$ac_var='\''$ac_val'\''"
2885 if test -s confdefs.h; then
2895 test "$ac_signal" != 0 &&
2896 $as_echo "$as_me: caught signal $ac_signal"
2897 $as_echo "$as_me: exit $exit_status"
2899 rm -f core *.core core.conftest.* &&
2900 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2903 for ac_signal in 1 2 13 15; do
2904 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2908 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2909 rm -f -r conftest* confdefs.h
2911 $as_echo "/* confdefs.h */" > confdefs.h
2913 # Predefined preprocessor variables.
2915 cat >>confdefs.h <<_ACEOF
2916 #define PACKAGE_NAME "$PACKAGE_NAME"
2919 cat >>confdefs.h <<_ACEOF
2920 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2923 cat >>confdefs.h <<_ACEOF
2924 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2927 cat >>confdefs.h <<_ACEOF
2928 #define PACKAGE_STRING "$PACKAGE_STRING"
2931 cat >>confdefs.h <<_ACEOF
2932 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2935 cat >>confdefs.h <<_ACEOF
2936 #define PACKAGE_URL "$PACKAGE_URL"
2940 # Let the site file select an alternate cache file if it wants to.
2941 # Prefer an explicitly selected file to automatically selected ones.
2944 if test -n "$CONFIG_SITE"; then
2945 ac_site_file1=$CONFIG_SITE
2946 elif test "x$prefix" != xNONE; then
2947 ac_site_file1=$prefix/share/config.site
2948 ac_site_file2=$prefix/etc/config.site
2950 ac_site_file1=$ac_default_prefix/share/config.site
2951 ac_site_file2=$ac_default_prefix/etc/config.site
2953 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2955 test "x$ac_site_file" = xNONE && continue
2956 if test -r "$ac_site_file"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2958 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2959 sed 's/^/| /' "$ac_site_file" >&5
2964 if test -r "$cache_file"; then
2965 # Some versions of bash will fail to source /dev/null (special
2966 # files actually), so we avoid doing that.
2967 if test -f "$cache_file"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2969 $as_echo "$as_me: loading cache $cache_file" >&6;}
2971 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2972 *) . "./$cache_file";;
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2977 $as_echo "$as_me: creating cache $cache_file" >&6;}
2981 # Check that the precious variables saved in the cache have kept the same
2983 ac_cache_corrupted=false
2984 for ac_var in $ac_precious_vars; do
2985 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2986 eval ac_new_set=\$ac_env_${ac_var}_set
2987 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2988 eval ac_new_val=\$ac_env_${ac_var}_value
2989 case $ac_old_set,$ac_new_set in
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2992 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2993 ac_cache_corrupted=: ;;
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2996 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2997 ac_cache_corrupted=: ;;
3000 if test "x$ac_old_val" != "x$ac_new_val"; then
3001 # differences in whitespace do not lead to failure.
3002 ac_old_val_w=`echo x
$ac_old_val`
3003 ac_new_val_w=`echo x
$ac_new_val`
3004 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3006 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3007 ac_cache_corrupted=:
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3010 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3011 eval $ac_var=\$ac_old_val
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3014 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3016 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3019 # Pass precious variables to config.status.
3020 if test "$ac_new_set" = set; then
3022 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3023 *) ac_arg=$ac_var=$ac_new_val ;;
3025 case " $ac_configure_args " in
3026 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3027 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3031 if $ac_cache_corrupted; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3035 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3036 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3038 ## -------------------- ##
3039 ## Main body of script. ##
3040 ## -------------------- ##
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3056 gcc_version=`cat $srcdir/BASE-VER
`
3058 # Determine the host, build, and target systems
3060 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3061 for ac_t in install-sh install.sh shtool; do
3062 if test -f "$ac_dir/$ac_t"; then
3064 ac_install_sh="$ac_aux_dir/$ac_t -c"
3069 if test -z "$ac_aux_dir"; then
3070 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3073 # These three variables are undocumented and unsupported,
3074 # and are intended to be withdrawn in a future Autoconf release.
3075 # They can cause serious problems if a builder's source tree is in a directory
3076 # whose full name contains unusual characters.
3077 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3078 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3079 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3082 # Make sure we can run config.sub.
3083 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3084 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3087 $as_echo_n "checking build system type... " >&6; }
3088 if test "${ac_cv_build+set}" = set; then :
3089 $as_echo_n "(cached) " >&6
3091 ac_build_alias=$build_alias
3092 test "x$ac_build_alias" = x &&
3093 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3094 test "x$ac_build_alias" = x &&
3095 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3096 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3097 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3101 $as_echo "$ac_cv_build" >&6; }
3102 case $ac_cv_build in
3104 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3107 ac_save_IFS=$IFS; IFS='-'
3113 # Remember, the first character of IFS is used to create $*,
3114 # except with old shells:
3117 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3121 $as_echo_n "checking host system type... " >&6; }
3122 if test "${ac_cv_host+set}" = set; then :
3123 $as_echo_n "(cached) " >&6
3125 if test "x$host_alias" = x; then
3126 ac_cv_host=$ac_cv_build
3128 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3129 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3134 $as_echo "$ac_cv_host" >&6; }
3137 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3140 ac_save_IFS=$IFS; IFS='-'
3146 # Remember, the first character of IFS is used to create $*,
3147 # except with old shells:
3150 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3154 $as_echo_n "checking target system type... " >&6; }
3155 if test "${ac_cv_target+set}" = set; then :
3156 $as_echo_n "(cached) " >&6
3158 if test "x$target_alias" = x; then
3159 ac_cv_target=$ac_cv_host
3161 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3162 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3167 $as_echo "$ac_cv_target" >&6; }
3168 case $ac_cv_target in
3170 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3172 target=$ac_cv_target
3173 ac_save_IFS=$IFS; IFS='-'
3179 # Remember, the first character of IFS is used to create $*,
3180 # except with old shells:
3183 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3186 # The aliases save the names the user supplied, while $host etc.
3187 # will get canonicalized.
3188 test -n "$target_alias" &&
3189 test "$program_prefix$program_suffix$program_transform_name" = \
3191 program_prefix=${target_alias}-
3193 # Determine the noncanonical target name, for directory use.
3194 case ${build_alias} in
3195 "") build_noncanonical=${build} ;;
3196 *) build_noncanonical=${build_alias} ;;
3199 case ${host_alias} in
3200 "") host_noncanonical=${build_noncanonical} ;;
3201 *) host_noncanonical=${host_alias} ;;
3204 case ${target_alias} in
3205 "") target_noncanonical=${host_noncanonical} ;;
3206 *) target_noncanonical=${target_alias} ;;
3212 # Determine the target- and build-specific subdirectories
3214 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3215 # have matching libraries, they should use host libraries: Makefile.tpl
3216 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3217 # However, they still use the build modules, because the corresponding
3218 # host modules (e.g. bison) are only built for the host when bootstrap
3220 # - build_subdir is where we find build modules, and never changes.
3221 # - build_libsubdir is where we find build libraries, and can be overridden.
3223 # Prefix 'build-' so this never conflicts with target_subdir.
3224 build_subdir="build-${build_noncanonical}"
3226 # Check whether --with-build-libsubdir was given.
3227 if test "${with_build_libsubdir+set}" = set; then :
3228 withval=$with_build_libsubdir; build_libsubdir="$withval"
3230 build_libsubdir="$build_subdir"
3233 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3234 if ( test $srcdir = . && test -d gcc ) \
3235 || test -d $srcdir/../host-${host_noncanonical}; then
3236 host_subdir="host-${host_noncanonical}"
3241 target_subdir=${target_noncanonical}
3244 # Set program_transform_name
3245 test "$program_prefix" != NONE &&
3246 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3247 # Use a double $ so make ignores it.
3248 test "$program_suffix" != NONE &&
3249 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3250 # Double any \ or $.
3251 # By default was `s
,x
,x
', remove it if useless.
3252 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3253 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3256 # Check for bogus environment variables.
3257 # Test if LIBRARY_PATH contains the notation for the current directory
3258 # since this would lead to problems installing/building glibc.
3259 # LIBRARY_PATH contains the current directory if one of the following
3261 # - one of the terminals (":" and ";") is the first or last sign
3262 # - two terminals occur directly after each other
3263 # - the path contains an element with a dot in it
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3265 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3266 case ${LIBRARY_PATH} in
3267 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3268 library_path_setting="contains current directory"
3271 library_path_setting="ok"
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3275 $as_echo "$library_path_setting" >&6; }
3276 if test "$library_path_setting" != "ok"; then
3278 *** LIBRARY_PATH shouldn't contain the current directory when
3279 *** building gcc. Please change the environment variable
3280 *** and run configure again.
" "$LINENO" 5
3283 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3284 # since this would lead to problems installing/building glibc.
3285 # GCC_EXEC_PREFIX contains the current directory if one of the following
3287 # - one of the terminals (":" and ";") is the first or last sign
3288 # - two terminals occur directly after each other
3289 # - the path contains an element with a dot in it
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3291 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3292 case ${GCC_EXEC_PREFIX} in
3293 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3294 gcc_exec_prefix_setting="contains current directory
"
3297 gcc_exec_prefix_setting="ok
"
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3301 $as_echo "$gcc_exec_prefix_setting" >&6; }
3302 if test "$gcc_exec_prefix_setting" != "ok
"; then
3304 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3305 *** building gcc. Please change the environment variable
3306 *** and run configure again." "$LINENO" 5
3313 # Specify the local prefix
3316 # Check whether --with-local-prefix was given.
3317 if test "${with_local_prefix+set}" = set; then :
3318 withval=$with_local_prefix; case "${withval}" in
3319 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3321 *) local_prefix=$with_local_prefix ;;
3326 # Default local prefix if it is empty
3327 if test x$local_prefix = x; then
3328 local_prefix=/usr/local
3331 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3332 # passed in by the toplevel make and thus we'd get different behavior
3333 # depending on where we built the sources.
3334 gcc_gxx_include_dir
=
3335 # Specify the g++ header file directory
3337 # Check whether --with-gxx-include-dir was given.
3338 if test "${with_gxx_include_dir+set}" = set; then :
3339 withval
=$with_gxx_include_dir; case "${withval}" in
3340 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3342 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3347 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3348 if test x
${gcc_gxx_include_dir} = x
; then
3349 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3350 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3352 libstdcxx_incdir
='include/c++/$(version)'
3353 if test x
$host != x
$target; then
3354 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3356 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3360 gcc_gxx_include_dir_add_sysroot
=0
3361 if test "${with_sysroot+set}" = set; then
3362 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3363 if test "${gcc_gxx_without_sysroot}"; then
3364 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3365 gcc_gxx_include_dir_add_sysroot
=1
3370 # Check whether --with-cpp_install_dir was given.
3371 if test "${with_cpp_install_dir+set}" = set; then :
3372 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3373 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3374 elif test x
$withval != xno
; then
3375 cpp_install_dir
=$withval
3380 # We would like to our source tree to be readonly. However when releases or
3381 # pre-releases are generated, the flex/bison generated files as well as the
3382 # various formats of manuals need to be included along with the rest of the
3383 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3387 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3388 # Check whether --enable-generated-files-in-srcdir was given.
3389 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3390 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3392 generated_files_in_srcdir
=no
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3397 $as_echo "$generated_files_in_srcdir" >&6; }
3399 if test "$generated_files_in_srcdir" = "yes"; then
3406 # -------------------
3407 # Find default linker
3408 # -------------------
3412 # Check whether --with-gnu-ld was given.
3413 if test "${with_gnu_ld+set}" = set; then :
3414 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3420 # With pre-defined ld
3422 # Check whether --with-ld was given.
3423 if test "${with_ld+set}" = set; then :
3424 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3427 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3428 if test ! -x "$DEFAULT_LINKER"; then
3429 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3430 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3434 cat >>confdefs.h
<<_ACEOF
3435 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3441 $as_echo_n "checking whether a default linker was specified... " >&6; }
3442 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3443 if test x
"$gnu_ld_flag" = x
"no"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3445 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3448 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3455 # With demangler in GNU ld
3457 # Check whether --with-demangler-in-ld was given.
3458 if test "${with_demangler_in_ld+set}" = set; then :
3459 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3465 # ----------------------
3466 # Find default assembler
3467 # ----------------------
3471 # Check whether --with-gnu-as was given.
3472 if test "${with_gnu_as+set}" = set; then :
3473 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3480 # Check whether --with-as was given.
3481 if test "${with_as+set}" = set; then :
3482 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3485 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3486 if test ! -x "$DEFAULT_ASSEMBLER"; then
3487 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3488 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3492 cat >>confdefs.h
<<_ACEOF
3493 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3499 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3500 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3501 if test x
"$gas_flag" = x
"no"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3503 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3506 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3517 # If a non-executable a.out is present (e.g. created by GNU as above even if
3518 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3519 # file, even when creating an executable, so an execution test fails.
3520 # Remove possible default executable files to avoid this.
3522 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3523 # Autoconf includes it.
3524 rm -f a.out a.exe b.out
3526 # Find the native compiler
3528 ac_cpp
='$CPP $CPPFLAGS'
3529 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3532 if test -n "$ac_tool_prefix"; then
3533 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3534 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if test "${ac_cv_prog_CC+set}" = set; then :
3538 $as_echo_n "(cached) " >&6
3540 if test -n "$CC"; then
3541 ac_cv_prog_CC
="$CC" # Let the user override the test.
3543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3547 test -z "$as_dir" && as_dir
=.
3548 for ac_exec_ext
in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 if test -n "$CC"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3563 $as_echo "$CC" >&6; }
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3571 if test -z "$ac_cv_prog_CC"; then
3573 # Extract the first word of "gcc", so it can be a program name with args.
3574 set dummy gcc
; ac_word
=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3578 $as_echo_n "(cached) " >&6
3580 if test -n "$ac_ct_CC"; then
3581 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3587 test -z "$as_dir" && as_dir
=.
3588 for ac_exec_ext
in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590 ac_cv_prog_ac_ct_CC
="gcc"
3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3601 if test -n "$ac_ct_CC"; then
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3603 $as_echo "$ac_ct_CC" >&6; }
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606 $as_echo "no" >&6; }
3609 if test "x$ac_ct_CC" = x
; then
3612 case $cross_compiling:$ac_tool_warned in
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3616 ac_tool_warned
=yes ;;
3624 if test -z "$CC"; then
3625 if test -n "$ac_tool_prefix"; then
3626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3627 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if test "${ac_cv_prog_CC+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3633 if test -n "$CC"; then
3634 ac_cv_prog_CC
="$CC" # Let the user override the test.
3636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3640 test -z "$as_dir" && as_dir
=.
3641 for ac_exec_ext
in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 if test -n "$CC"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3656 $as_echo "$CC" >&6; }
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3665 if test -z "$CC"; then
3666 # Extract the first word of "cc", so it can be a program name with args.
3667 set dummy cc
; ac_word
=$2
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3669 $as_echo_n "checking for $ac_word... " >&6; }
3670 if test "${ac_cv_prog_CC+set}" = set; then :
3671 $as_echo_n "(cached) " >&6
3673 if test -n "$CC"; then
3674 ac_cv_prog_CC
="$CC" # Let the user override the test.
3677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3681 test -z "$as_dir" && as_dir
=.
3682 for ac_exec_ext
in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3685 ac_prog_rejected
=yes
3689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 if test $ac_prog_rejected = yes; then
3697 # We found a bogon in the path, so make sure we never use it.
3698 set dummy
$ac_cv_prog_CC
3700 if test $# != 0; then
3701 # We chose a different compiler from the bogus one.
3702 # However, it has the same basename, so the bogon will be chosen
3703 # first if we set CC to just the basename; use the full file name.
3705 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3711 if test -n "$CC"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3713 $as_echo "$CC" >&6; }
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716 $as_echo "no" >&6; }
3721 if test -z "$CC"; then
3722 if test -n "$ac_tool_prefix"; then
3723 for ac_prog
in cl.exe
3725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3726 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3728 $as_echo_n "checking for $ac_word... " >&6; }
3729 if test "${ac_cv_prog_CC+set}" = set; then :
3730 $as_echo_n "(cached) " >&6
3732 if test -n "$CC"; then
3733 ac_cv_prog_CC
="$CC" # Let the user override the test.
3735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3739 test -z "$as_dir" && as_dir
=.
3740 for ac_exec_ext
in '' $ac_executable_extensions; do
3741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3742 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 if test -n "$CC"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3755 $as_echo "$CC" >&6; }
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3762 test -n "$CC" && break
3765 if test -z "$CC"; then
3767 for ac_prog
in cl.exe
3769 # Extract the first word of "$ac_prog", so it can be a program name with args.
3770 set dummy
$ac_prog; ac_word
=$2
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3772 $as_echo_n "checking for $ac_word... " >&6; }
3773 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3774 $as_echo_n "(cached) " >&6
3776 if test -n "$ac_ct_CC"; then
3777 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3779 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3783 test -z "$as_dir" && as_dir
=.
3784 for ac_exec_ext
in '' $ac_executable_extensions; do
3785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3786 ac_cv_prog_ac_ct_CC
="$ac_prog"
3787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3797 if test -n "$ac_ct_CC"; then
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3799 $as_echo "$ac_ct_CC" >&6; }
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3802 $as_echo "no" >&6; }
3806 test -n "$ac_ct_CC" && break
3809 if test "x$ac_ct_CC" = x
; then
3812 case $cross_compiling:$ac_tool_warned in
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3816 ac_tool_warned
=yes ;;
3825 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3827 as_fn_error
"no acceptable C compiler found in \$PATH
3828 See \`config.log' for more details." "$LINENO" 5; }
3830 # Provide some information about the compiler.
3831 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3834 for ac_option
in --version -v -V -qversion; do
3835 { { ac_try
="$ac_compiler $ac_option >&5"
3837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3841 $as_echo "$ac_try_echo"; } >&5
3842 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3844 if test -s conftest.err; then
3846 ... rest of stderr output deleted ...
3847 10q' conftest.err >conftest.er1
3848 cat conftest.er1 >&5
3849 rm -f conftest.er1 conftest.err
3851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3852 test $ac_status = 0; }
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3866 ac_clean_files_save=$ac_clean_files
3867 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3868 # Try to create an executable without -o first, disregard a.out.
3869 # It will help us diagnose broken compilers, and finding out an intuition
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3872 $as_echo_n "checking for C compiler default output file name... " >&6; }
3873 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3875 # The possible output files:
3876 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3879 for ac_file in $ac_files
3882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3883 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3888 if { { ac_try="$ac_link_default"
3890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3891 *) ac_try_echo
=$ac_try;;
3893 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894 $as_echo "$ac_try_echo"; } >&5
3895 (eval "$ac_link_default") 2>&5
3897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898 test $ac_status = 0; }; then :
3899 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3900 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3901 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3902 # so that the user can short-circuit this test for compilers unknown to
3904 for ac_file
in $ac_files ''
3906 test -f "$ac_file" ||
continue
3908 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3911 # We found the default executable, but exeext='' is most
3915 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3917 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3919 # We set ac_cv_exeext here because the later test for it is not
3920 # safe: cross compilers may not add the suffix if given an `-o'
3921 # argument, so we may need to know it at that point already.
3922 # Even if this section looks crufty: it has the advantage of
3929 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3935 $as_echo "$ac_file" >&6; }
3936 if test -z "$ac_file"; then :
3937 $as_echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.
$ac_ext >&5
3940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3942 { as_fn_set_status
77
3943 as_fn_error
"C compiler cannot create executables
3944 See \`config.log' for more details." "$LINENO" 5; }; }
3946 ac_exeext
=$ac_cv_exeext
3948 # Check that the compiler produces executables we can run. If not, either
3949 # the compiler is broken, or we cross compile.
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3951 $as_echo_n "checking whether the C compiler works... " >&6; }
3952 # If not cross compiling, check that we can run a simple program.
3953 if test "$cross_compiling" != yes; then
3954 if { ac_try
='./$ac_file'
3955 { { case "(($ac_try" in
3956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_try") 2>&5
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; }; then
3967 if test "$cross_compiling" = maybe; then
3970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3972 as_fn_error "cannot run C compiled programs.
3973 If you meant to cross compile
, use \
`--host'.
3974 See \`config.log
' for more details." "$LINENO" 5; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3979 $as_echo "yes" >&6; }
3981 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3982 ac_clean_files=$ac_clean_files_save
3983 # Check that the compiler produces executables we can run. If not, either
3984 # the compiler is broken, or we cross compile.
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3986 $as_echo_n "checking whether we are cross compiling... " >&6; }
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3988 $as_echo "$cross_compiling" >&6; }
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3991 $as_echo_n "checking for suffix of executables... " >&6; }
3992 if { { ac_try="$ac_link"
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 $as_echo "$ac_try_echo"; } >&5
3999 (eval "$ac_link") 2>&5
4001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002 test $ac_status = 0; }; then :
4003 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4004 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4005 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4007 for ac_file
in conftest.exe conftest conftest.
*; do
4008 test -f "$ac_file" ||
continue
4010 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4011 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4019 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4020 See \`config.log' for more details." "$LINENO" 5; }
4022 rm -f conftest
$ac_cv_exeext
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4024 $as_echo "$ac_cv_exeext" >&6; }
4026 rm -f conftest.
$ac_ext
4027 EXEEXT
=$ac_cv_exeext
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4030 $as_echo_n "checking for suffix of object files... " >&6; }
4031 if test "${ac_cv_objext+set}" = set; then :
4032 $as_echo_n "(cached) " >&6
4034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4045 rm -f conftest.o conftest.obj
4046 if { { ac_try
="$ac_compile"
4048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052 $as_echo "$ac_try_echo"; } >&5
4053 (eval "$ac_compile") 2>&5
4055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056 test $ac_status = 0; }; then :
4057 for ac_file in conftest.o conftest.obj conftest.*; do
4058 test -f "$ac_file" || continue;
4060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4061 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4066 $as_echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071 as_fn_error "cannot compute suffix of object files
: cannot compile
4072 See \
`config.log' for more details." "$LINENO" 5; }
4074 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4077 $as_echo "$ac_cv_objext" >&6; }
4078 OBJEXT=$ac_cv_objext
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4081 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4082 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4083 $as_echo_n "(cached) " >&6
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4099 if ac_fn_c_try_compile "$LINENO"; then :
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4109 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4110 if test $ac_compiler_gnu = yes; then
4115 ac_test_CFLAGS=${CFLAGS+set}
4116 ac_save_CFLAGS=$CFLAGS
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4118 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4119 if test "${ac_cv_prog_cc_g+set}" = set; then :
4120 $as_echo_n "(cached) " >&6
4122 ac_save_c_werror_flag=$ac_c_werror_flag
4123 ac_c_werror_flag=yes
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4137 if ac_fn_c_try_compile "$LINENO"; then :
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4152 if ac_fn_c_try_compile "$LINENO"; then :
4155 ac_c_werror_flag=$ac_save_c_werror_flag
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4168 if ac_fn_c_try_compile "$LINENO"; then :
4171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 ac_c_werror_flag=$ac_save_c_werror_flag
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4179 $as_echo "$ac_cv_prog_cc_g" >&6; }
4180 if test "$ac_test_CFLAGS" = set; then
4181 CFLAGS=$ac_save_CFLAGS
4182 elif test $ac_cv_prog_cc_g = yes; then
4183 if test "$GCC" = yes; then
4189 if test "$GCC" = yes; then
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4196 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4197 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4198 $as_echo_n "(cached) " >&6
4200 ac_cv_prog_cc_c89=no
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4206 #include <sys/types.h>
4207 #include <sys/stat.h>
4208 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4209 struct buf { int x; };
4210 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4211 static char *e (p, i)
4217 static char *f (char * (*g) (char **, int), char **p, ...)
4222 s = g (p, va_arg (v,int));
4227 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4228 function prototypes and stuff, but not '\xHH' hex character constants.
4229 These don't provoke an error unfortunately, instead are silently treated
4230 as 'x'. The following induces an error, until -std is added to get
4231 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4232 array size at least. It's necessary to write '\x00'==0 to get something
4233 that's true only with -std. */
4234 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4236 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4237 inside strings and character constants. */
4239 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4241 int test (int i, double x);
4242 struct s1 {int (*f) (int a);};
4243 struct s2 {int (*f) (double a);};
4244 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4250 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4255 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4256 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4258 CC="$ac_save_CC $ac_arg"
4259 if ac_fn_c_try_compile "$LINENO"; then :
4260 ac_cv_prog_cc_c89=$ac_arg
4262 rm -f core conftest.err conftest.$ac_objext
4263 test "x$ac_cv_prog_cc_c89" != "xno" && break
4265 rm -f conftest.$ac_ext
4270 case "x$ac_cv_prog_cc_c89" in
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4273 $as_echo "none needed" >&6; } ;;
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4276 $as_echo "unsupported" >&6; } ;;
4278 CC="$CC $ac_cv_prog_cc_c89"
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4280 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4282 if test "x$ac_cv_prog_cc_c89" != xno; then :
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293 ac_cpp='$CXXCPP $CPPFLAGS'
4294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4297 if test -z "$CXX"; then
4298 if test -n "$CCC"; then
4301 if test -n "$ac_tool_prefix"; then
4302 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 $as_echo_n "checking for $ac_word... " >&6; }
4308 if test "${ac_cv_prog_CXX+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4311 if test -n "$CXX"; then
4312 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4321 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 if test -n "$CXX"; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4334 $as_echo "$CXX" >&6; }
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4341 test -n "$CXX" && break
4344 if test -z "$CXX"; then
4346 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4348 # Extract the first word of "$ac_prog", so it can be a program name with args.
4349 set dummy $ac_prog; ac_word=$2
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4351 $as_echo_n "checking for $ac_word... " >&6; }
4352 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4353 $as_echo_n "(cached) " >&6
4355 if test -n "$ac_ct_CXX"; then
4356 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4365 ac_cv_prog_ac_ct_CXX="$ac_prog"
4366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4376 if test -n "$ac_ct_CXX"; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4378 $as_echo "$ac_ct_CXX" >&6; }
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381 $as_echo "no" >&6; }
4385 test -n "$ac_ct_CXX" && break
4388 if test "x$ac_ct_CXX" = x; then
4391 case $cross_compiling:$ac_tool_warned in
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4395 ac_tool_warned=yes ;;
4403 # Provide some information about the compiler.
4404 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4407 for ac_option in --version -v -V -qversion; do
4408 { { ac_try="$ac_compiler $ac_option >&5"
4410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4411 *) ac_try_echo
=$ac_try;;
4413 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 $as_echo "$ac_try_echo"; } >&5
4415 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4417 if test -s conftest.err
; then
4419 ... rest of stderr output deleted ...
4420 10q' conftest.err
>conftest.er1
4421 cat conftest.er1
>&5
4422 rm -f conftest.er1 conftest.err
4424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4425 test $ac_status = 0; }
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4429 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4430 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4431 $as_echo_n "(cached) " >&6
4433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4447 if ac_fn_cxx_try_compile
"$LINENO"; then :
4452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4453 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4457 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4458 if test $ac_compiler_gnu = yes; then
4463 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4464 ac_save_CXXFLAGS
=$CXXFLAGS
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4466 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4467 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4468 $as_echo_n "(cached) " >&6
4470 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4471 ac_cxx_werror_flag
=yes
4474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4485 if ac_fn_cxx_try_compile
"$LINENO"; then :
4486 ac_cv_prog_cxx_g
=yes
4489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4500 if ac_fn_cxx_try_compile
"$LINENO"; then :
4503 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4516 if ac_fn_cxx_try_compile
"$LINENO"; then :
4517 ac_cv_prog_cxx_g
=yes
4519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4524 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4527 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4528 if test "$ac_test_CXXFLAGS" = set; then
4529 CXXFLAGS
=$ac_save_CXXFLAGS
4530 elif test $ac_cv_prog_cxx_g = yes; then
4531 if test "$GXX" = yes; then
4537 if test "$GXX" = yes; then
4544 ac_cpp
='$CPP $CPPFLAGS'
4545 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4552 if test -n "$ac_tool_prefix"; then
4553 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4554 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4560 if test -n "$GNATBIND"; then
4561 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4567 test -z "$as_dir" && as_dir
=.
4568 for ac_exec_ext
in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 GNATBIND
=$ac_cv_prog_GNATBIND
4581 if test -n "$GNATBIND"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4583 $as_echo "$GNATBIND" >&6; }
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4591 if test -z "$ac_cv_prog_GNATBIND"; then
4592 ac_ct_GNATBIND
=$GNATBIND
4593 # Extract the first word of "gnatbind", so it can be a program name with args.
4594 set dummy gnatbind
; ac_word
=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
4600 if test -n "$ac_ct_GNATBIND"; then
4601 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4607 test -z "$as_dir" && as_dir
=.
4608 for ac_exec_ext
in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4621 if test -n "$ac_ct_GNATBIND"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4623 $as_echo "$ac_ct_GNATBIND" >&6; }
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4629 if test "x$ac_ct_GNATBIND" = x
; then
4632 case $cross_compiling:$ac_tool_warned in
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636 ac_tool_warned
=yes ;;
4638 GNATBIND
=$ac_ct_GNATBIND
4641 GNATBIND
="$ac_cv_prog_GNATBIND"
4644 if test -n "$ac_tool_prefix"; then
4645 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4646 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4652 if test -n "$GNATMAKE"; then
4653 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4659 test -z "$as_dir" && as_dir
=.
4660 for ac_exec_ext
in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 GNATMAKE
=$ac_cv_prog_GNATMAKE
4673 if test -n "$GNATMAKE"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4675 $as_echo "$GNATMAKE" >&6; }
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4683 if test -z "$ac_cv_prog_GNATMAKE"; then
4684 ac_ct_GNATMAKE
=$GNATMAKE
4685 # Extract the first word of "gnatmake", so it can be a program name with args.
4686 set dummy gnatmake
; ac_word
=$2
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688 $as_echo_n "checking for $ac_word... " >&6; }
4689 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4692 if test -n "$ac_ct_GNATMAKE"; then
4693 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4699 test -z "$as_dir" && as_dir
=.
4700 for ac_exec_ext
in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4702 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4713 if test -n "$ac_ct_GNATMAKE"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4715 $as_echo "$ac_ct_GNATMAKE" >&6; }
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718 $as_echo "no" >&6; }
4721 if test "x$ac_ct_GNATMAKE" = x
; then
4724 case $cross_compiling:$ac_tool_warned in
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4728 ac_tool_warned
=yes ;;
4730 GNATMAKE
=$ac_ct_GNATMAKE
4733 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4737 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4738 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4741 cat >conftest.adb
<<EOF
4742 procedure conftest is begin null; end conftest;
4744 acx_cv_cc_gcc_supports_ada
=no
4745 # There is a bug in old released versions of GCC which causes the
4746 # driver to exit successfully when the appropriate language module
4747 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4748 # Therefore we must check for the error message as well as an
4749 # unsuccessful exit.
4750 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4751 # given a .adb file, but produce no object file. So we must check
4752 # if an object file was really produced to guard against this.
4753 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4754 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4755 acx_cv_cc_gcc_supports_ada
=yes
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4760 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4762 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4769 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4770 # optimizations to be activated explicitly by the toplevel.
4772 */prev-gcc
/xgcc
*) ;;
4773 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4774 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4779 # Determine PICFLAG for target gnatlib.
4785 # PIC is the default on some targets or must not be used.
4787 # PIC is the default on this platform
4788 # Common symbols not allowed in MH_DYLIB files
4789 PICFLAG_FOR_TARGET
=-fno-common
4792 # PIC is the default.
4795 # PIC is the default for 64-bit PA HP-UX.
4797 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
4799 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
4801 i
[34567]86-*-interix[3-9]*)
4802 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4803 # Instead, we relocate shared libraries at runtime.
4805 i
[34567]86-*-nto-qnx*)
4806 # QNX uses GNU C++, but need to define -shared option too, otherwise
4808 PICFLAG_FOR_TARGET
='-fPIC -shared'
4810 i
[34567]86-pc-msdosdjgpp*)
4811 # DJGPP does not support shared libraries at all.
4814 # On IA64 HP-UX, PIC is the default but the pic flag
4815 # sets the default TLS model and affects inlining.
4816 PICFLAG_FOR_TARGET
=-fPIC
4819 # PIC is the default.
4821 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
4822 # All AIX code is PIC.
4825 # Some targets support both -fPIC and -fpic, but prefer the latter.
4827 i
[34567]86-*-* | x86_64-
*-*)
4828 PICFLAG_FOR_TARGET
=-fpic
4830 # FIXME: Override -fPIC default in libgcc only?
4831 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
4832 PICFLAG_FOR_TARGET
=-fpic
4834 # FIXME: Simplify to sh*-*-netbsd*?
4835 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
4836 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
4837 PICFLAG_FOR_TARGET
=-fpic
4839 # Default to -fPIC unless specified otherwise.
4841 PICFLAG_FOR_TARGET
=-fPIC
4845 # If the user explicitly uses -fpic/-fPIC, keep that.
4846 case "${CFLAGS_FOR_TARGET}" in
4848 PICFLAG_FOR_TARGET
=-fpic
4851 PICFLAG_FOR_TARGET
=-fPIC
4857 # -------------------------
4858 # Check C compiler features
4859 # -------------------------
4863 ac_cpp
='$CPP $CPPFLAGS'
4864 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4868 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4869 # On Suns, sometimes $CPP names a directory.
4870 if test -n "$CPP" && test -d "$CPP"; then
4873 if test -z "$CPP"; then
4874 if test "${ac_cv_prog_CPP+set}" = set; then :
4875 $as_echo_n "(cached) " >&6
4877 # Double quotes because CPP needs to be expanded
4878 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4881 for ac_c_preproc_warn_flag
in '' yes
4883 # Use a header file that comes with gcc, so configuring glibc
4884 # with a fresh cross-compiler works.
4885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4886 # <limits.h> exists even on freestanding compilers.
4887 # On the NeXT, cc -E runs the code through the compiler's parser,
4888 # not just through cpp. "Syntax error" is here to catch this case.
4889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h. */
4892 # include <limits.h>
4894 # include <assert.h>
4898 if ac_fn_c_try_cpp
"$LINENO"; then :
4901 # Broken: fails on valid input.
4904 rm -f conftest.err conftest.
$ac_ext
4906 # OK, works on sane cases. Now check whether nonexistent headers
4907 # can be detected and how.
4908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4910 #include <ac_nonexistent.h>
4912 if ac_fn_c_try_cpp
"$LINENO"; then :
4913 # Broken: success on invalid input.
4916 # Passes both tests.
4920 rm -f conftest.err conftest.
$ac_ext
4923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4924 rm -f conftest.err conftest.
$ac_ext
4925 if $ac_preproc_ok; then :
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4938 $as_echo "$CPP" >&6; }
4940 for ac_c_preproc_warn_flag
in '' yes
4942 # Use a header file that comes with gcc, so configuring glibc
4943 # with a fresh cross-compiler works.
4944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4945 # <limits.h> exists even on freestanding compilers.
4946 # On the NeXT, cc -E runs the code through the compiler's parser,
4947 # not just through cpp. "Syntax error" is here to catch this case.
4948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4951 # include <limits.h>
4953 # include <assert.h>
4957 if ac_fn_c_try_cpp
"$LINENO"; then :
4960 # Broken: fails on valid input.
4963 rm -f conftest.err conftest.
$ac_ext
4965 # OK, works on sane cases. Now check whether nonexistent headers
4966 # can be detected and how.
4967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4969 #include <ac_nonexistent.h>
4971 if ac_fn_c_try_cpp
"$LINENO"; then :
4972 # Broken: success on invalid input.
4975 # Passes both tests.
4979 rm -f conftest.err conftest.
$ac_ext
4982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4983 rm -f conftest.err conftest.
$ac_ext
4984 if $ac_preproc_ok; then :
4987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4989 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4990 See \`config.log' for more details." "$LINENO" 5; }
4994 ac_cpp
='$CPP $CPPFLAGS'
4995 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4996 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4997 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5001 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5002 if test "${ac_cv_path_GREP+set}" = set; then :
5003 $as_echo_n "(cached) " >&6
5005 if test -z "$GREP"; then
5006 ac_path_GREP_found
=false
5007 # Loop through the user's path and test for each of PROGNAME-LIST
5008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5009 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5012 test -z "$as_dir" && as_dir
=.
5013 for ac_prog
in grep ggrep
; do
5014 for ac_exec_ext
in '' $ac_executable_extensions; do
5015 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5016 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5017 # Check for GNU ac_path_GREP and select it if it is found.
5018 # Check for GNU $ac_path_GREP
5019 case `"$ac_path_GREP" --version 2>&1` in
5021 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5024 $as_echo_n 0123456789 >"conftest.in"
5027 cat "conftest.in" "conftest.in" >"conftest.tmp"
5028 mv "conftest.tmp" "conftest.in"
5029 cp "conftest.in" "conftest.nl"
5030 $as_echo 'GREP' >> "conftest.nl"
5031 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5032 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5033 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5034 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5035 # Best one so far, save it but keep looking for a better one
5036 ac_cv_path_GREP
="$ac_path_GREP"
5037 ac_path_GREP_max
=$ac_count
5039 # 10*(2^10) chars as input seems more than enough
5040 test $ac_count -gt 10 && break
5042 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5045 $ac_path_GREP_found && break 3
5050 if test -z "$ac_cv_path_GREP"; then
5051 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5054 ac_cv_path_GREP
=$GREP
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5059 $as_echo "$ac_cv_path_GREP" >&6; }
5060 GREP
="$ac_cv_path_GREP"
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5064 $as_echo_n "checking for egrep... " >&6; }
5065 if test "${ac_cv_path_EGREP+set}" = set; then :
5066 $as_echo_n "(cached) " >&6
5068 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5069 then ac_cv_path_EGREP
="$GREP -E"
5071 if test -z "$EGREP"; then
5072 ac_path_EGREP_found
=false
5073 # Loop through the user's path and test for each of PROGNAME-LIST
5074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5075 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5078 test -z "$as_dir" && as_dir
=.
5079 for ac_prog
in egrep; do
5080 for ac_exec_ext
in '' $ac_executable_extensions; do
5081 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5082 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5083 # Check for GNU ac_path_EGREP and select it if it is found.
5084 # Check for GNU $ac_path_EGREP
5085 case `"$ac_path_EGREP" --version 2>&1` in
5087 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5090 $as_echo_n 0123456789 >"conftest.in"
5093 cat "conftest.in" "conftest.in" >"conftest.tmp"
5094 mv "conftest.tmp" "conftest.in"
5095 cp "conftest.in" "conftest.nl"
5096 $as_echo 'EGREP' >> "conftest.nl"
5097 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5098 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5099 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5100 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5101 # Best one so far, save it but keep looking for a better one
5102 ac_cv_path_EGREP
="$ac_path_EGREP"
5103 ac_path_EGREP_max
=$ac_count
5105 # 10*(2^10) chars as input seems more than enough
5106 test $ac_count -gt 10 && break
5108 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5111 $ac_path_EGREP_found && break 3
5116 if test -z "$ac_cv_path_EGREP"; then
5117 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5120 ac_cv_path_EGREP
=$EGREP
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5126 $as_echo "$ac_cv_path_EGREP" >&6; }
5127 EGREP
="$ac_cv_path_EGREP"
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5131 $as_echo_n "checking for ANSI C header files... " >&6; }
5132 if test "${ac_cv_header_stdc+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5150 if ac_fn_c_try_compile
"$LINENO"; then :
5151 ac_cv_header_stdc
=yes
5153 ac_cv_header_stdc
=no
5155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5157 if test $ac_cv_header_stdc = yes; then
5158 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h. */
5164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5165 $EGREP "memchr" >/dev
/null
2>&1; then :
5168 ac_cv_header_stdc
=no
5174 if test $ac_cv_header_stdc = yes; then
5175 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5182 $EGREP "free" >/dev
/null
2>&1; then :
5185 ac_cv_header_stdc
=no
5191 if test $ac_cv_header_stdc = yes; then
5192 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5193 if test "$cross_compiling" = yes; then :
5196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5200 #if ((' ' & 0x0FF) == 0x020)
5201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5204 # define ISLOWER(c) \
5205 (('a' <= (c) && (c) <= 'i') \
5206 || ('j' <= (c) && (c) <= 'r') \
5207 || ('s' <= (c) && (c) <= 'z'))
5208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5216 for (i = 0; i < 256; i++)
5217 if (XOR (islower (i), ISLOWER (i))
5218 || toupper (i) != TOUPPER (i))
5223 if ac_fn_c_try_run
"$LINENO"; then :
5226 ac_cv_header_stdc
=no
5228 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5229 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5235 $as_echo "$ac_cv_header_stdc" >&6; }
5236 if test $ac_cv_header_stdc = yes; then
5238 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5242 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5243 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5244 inttypes.h stdint.h unistd.h
5246 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5247 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5249 eval as_val
=\$
$as_ac_Header
5250 if test "x$as_val" = x
""yes; then :
5251 cat >>confdefs.h
<<_ACEOF
5252 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5261 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5262 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5269 if test "$MINIX" = yes; then
5271 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5274 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5277 $as_echo "#define _MINIX 1" >>confdefs.h
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5283 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5284 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5290 # define __EXTENSIONS__ 1
5291 $ac_includes_default
5300 if ac_fn_c_try_compile
"$LINENO"; then :
5301 ac_cv_safe_to_define___extensions__
=yes
5303 ac_cv_safe_to_define___extensions__
=no
5305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5308 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5309 test $ac_cv_safe_to_define___extensions__ = yes &&
5310 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5312 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5314 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5316 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5318 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5322 ac_cpp
='$CPP $CPPFLAGS'
5323 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5324 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5325 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5327 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5328 # On Suns, sometimes $CPP names a directory.
5329 if test -n "$CPP" && test -d "$CPP"; then
5332 if test -z "$CPP"; then
5333 if test "${ac_cv_prog_CPP+set}" = set; then :
5334 $as_echo_n "(cached) " >&6
5336 # Double quotes because CPP needs to be expanded
5337 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5340 for ac_c_preproc_warn_flag
in '' yes
5342 # Use a header file that comes with gcc, so configuring glibc
5343 # with a fresh cross-compiler works.
5344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5345 # <limits.h> exists even on freestanding compilers.
5346 # On the NeXT, cc -E runs the code through the compiler's parser,
5347 # not just through cpp. "Syntax error" is here to catch this case.
5348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5351 # include <limits.h>
5353 # include <assert.h>
5357 if ac_fn_c_try_cpp
"$LINENO"; then :
5360 # Broken: fails on valid input.
5363 rm -f conftest.err conftest.
$ac_ext
5365 # OK, works on sane cases. Now check whether nonexistent headers
5366 # can be detected and how.
5367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5369 #include <ac_nonexistent.h>
5371 if ac_fn_c_try_cpp
"$LINENO"; then :
5372 # Broken: success on invalid input.
5375 # Passes both tests.
5379 rm -f conftest.err conftest.
$ac_ext
5382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5383 rm -f conftest.err conftest.
$ac_ext
5384 if $ac_preproc_ok; then :
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5397 $as_echo "$CPP" >&6; }
5399 for ac_c_preproc_warn_flag
in '' yes
5401 # Use a header file that comes with gcc, so configuring glibc
5402 # with a fresh cross-compiler works.
5403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5404 # <limits.h> exists even on freestanding compilers.
5405 # On the NeXT, cc -E runs the code through the compiler's parser,
5406 # not just through cpp. "Syntax error" is here to catch this case.
5407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5410 # include <limits.h>
5412 # include <assert.h>
5416 if ac_fn_c_try_cpp
"$LINENO"; then :
5419 # Broken: fails on valid input.
5422 rm -f conftest.err conftest.
$ac_ext
5424 # OK, works on sane cases. Now check whether nonexistent headers
5425 # can be detected and how.
5426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5428 #include <ac_nonexistent.h>
5430 if ac_fn_c_try_cpp
"$LINENO"; then :
5431 # Broken: success on invalid input.
5434 # Passes both tests.
5438 rm -f conftest.err conftest.
$ac_ext
5441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5442 rm -f conftest.err conftest.
$ac_ext
5443 if $ac_preproc_ok; then :
5446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5448 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5449 See \`config.log' for more details." "$LINENO" 5; }
5453 ac_cpp
='$CPP $CPPFLAGS'
5454 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5455 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5456 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5459 $as_echo_n "checking for inline... " >&6; }
5460 if test "${ac_cv_c_inline+set}" = set; then :
5461 $as_echo_n "(cached) " >&6
5464 for ac_kw
in inline __inline__ __inline
; do
5465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5469 static $ac_kw foo_t static_foo () {return 0; }
5470 $ac_kw foo_t foo () {return 0; }
5474 if ac_fn_c_try_compile
"$LINENO"; then :
5475 ac_cv_c_inline
=$ac_kw
5477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5478 test "$ac_cv_c_inline" != no
&& break
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5483 $as_echo "$ac_cv_c_inline" >&6; }
5485 case $ac_cv_c_inline in
5488 case $ac_cv_c_inline in
5490 *) ac_val
=$ac_cv_c_inline;;
5492 cat >>confdefs.h
<<_ACEOF
5494 #define inline $ac_val
5501 # Check whether --enable-largefile was given.
5502 if test "${enable_largefile+set}" = set; then :
5503 enableval
=$enable_largefile;
5506 if test "$enable_largefile" != no
; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5509 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5510 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5511 $as_echo_n "(cached) " >&6
5513 ac_cv_sys_largefile_CC
=no
5514 if test "$GCC" != yes; then
5517 # IRIX 6.2 and later do not support large files by default,
5518 # so use the C compiler's -n32 option if that helps.
5519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 #include <sys/types.h>
5522 /* Check that off_t can represent 2**63 - 1 correctly.
5523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5524 since some C++ compilers masquerading as C compilers
5525 incorrectly reject 9223372036854775807. */
5526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5528 && LARGE_OFF_T % 2147483647 == 1)
5538 if ac_fn_c_try_compile
"$LINENO"; then :
5541 rm -f core conftest.err conftest.
$ac_objext
5543 if ac_fn_c_try_compile
"$LINENO"; then :
5544 ac_cv_sys_largefile_CC
=' -n32'; break
5546 rm -f core conftest.err conftest.
$ac_objext
5550 rm -f conftest.
$ac_ext
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5554 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5555 if test "$ac_cv_sys_largefile_CC" != no
; then
5556 CC
=$CC$ac_cv_sys_largefile_CC
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5560 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5561 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5562 $as_echo_n "(cached) " >&6
5565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5567 #include <sys/types.h>
5568 /* Check that off_t can represent 2**63 - 1 correctly.
5569 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5570 since some C++ compilers masquerading as C compilers
5571 incorrectly reject 9223372036854775807. */
5572 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5573 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5574 && LARGE_OFF_T % 2147483647 == 1)
5584 if ac_fn_c_try_compile
"$LINENO"; then :
5585 ac_cv_sys_file_offset_bits
=no
; break
5587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590 #define _FILE_OFFSET_BITS 64
5591 #include <sys/types.h>
5592 /* Check that off_t can represent 2**63 - 1 correctly.
5593 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5594 since some C++ compilers masquerading as C compilers
5595 incorrectly reject 9223372036854775807. */
5596 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5597 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5598 && LARGE_OFF_T % 2147483647 == 1)
5608 if ac_fn_c_try_compile
"$LINENO"; then :
5609 ac_cv_sys_file_offset_bits
=64; break
5611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5612 ac_cv_sys_file_offset_bits
=unknown
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5617 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5618 case $ac_cv_sys_file_offset_bits in #(
5621 cat >>confdefs.h
<<_ACEOF
5622 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5627 if test $ac_cv_sys_file_offset_bits = unknown
; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5629 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5630 if test "${ac_cv_sys_large_files+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5636 #include <sys/types.h>
5637 /* Check that off_t can represent 2**63 - 1 correctly.
5638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5639 since some C++ compilers masquerading as C compilers
5640 incorrectly reject 9223372036854775807. */
5641 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5643 && LARGE_OFF_T % 2147483647 == 1)
5653 if ac_fn_c_try_compile
"$LINENO"; then :
5654 ac_cv_sys_large_files
=no
; break
5656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659 #define _LARGE_FILES 1
5660 #include <sys/types.h>
5661 /* Check that off_t can represent 2**63 - 1 correctly.
5662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5663 since some C++ compilers masquerading as C compilers
5664 incorrectly reject 9223372036854775807. */
5665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5667 && LARGE_OFF_T % 2147483647 == 1)
5677 if ac_fn_c_try_compile
"$LINENO"; then :
5678 ac_cv_sys_large_files
=1; break
5680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5681 ac_cv_sys_large_files
=unknown
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5686 $as_echo "$ac_cv_sys_large_files" >&6; }
5687 case $ac_cv_sys_large_files in #(
5690 cat >>confdefs.h
<<_ACEOF
5691 #define _LARGE_FILES $ac_cv_sys_large_files
5700 # sizeof(char) is 1 by definition.
5701 # The cast to long int works around a bug in the HP C Compiler
5702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5703 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5704 # This bug is HP SR number 8606223364.
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5706 $as_echo_n "checking size of void *... " >&6; }
5707 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5708 $as_echo_n "(cached) " >&6
5710 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5713 if test "$ac_cv_type_void_p" = yes; then
5714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5716 { as_fn_set_status
77
5717 as_fn_error
"cannot compute sizeof (void *)
5718 See \`config.log' for more details." "$LINENO" 5; }; }
5720 ac_cv_sizeof_void_p
=0
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5726 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5730 cat >>confdefs.h
<<_ACEOF
5731 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5735 # The cast to long int works around a bug in the HP C Compiler
5736 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5737 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5738 # This bug is HP SR number 8606223364.
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5740 $as_echo_n "checking size of short... " >&6; }
5741 if test "${ac_cv_sizeof_short+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5744 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5747 if test "$ac_cv_type_short" = yes; then
5748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5750 { as_fn_set_status
77
5751 as_fn_error
"cannot compute sizeof (short)
5752 See \`config.log' for more details." "$LINENO" 5; }; }
5754 ac_cv_sizeof_short
=0
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5760 $as_echo "$ac_cv_sizeof_short" >&6; }
5764 cat >>confdefs.h
<<_ACEOF
5765 #define SIZEOF_SHORT $ac_cv_sizeof_short
5769 # The cast to long int works around a bug in the HP C Compiler
5770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5772 # This bug is HP SR number 8606223364.
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5774 $as_echo_n "checking size of int... " >&6; }
5775 if test "${ac_cv_sizeof_int+set}" = set; then :
5776 $as_echo_n "(cached) " >&6
5778 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5781 if test "$ac_cv_type_int" = yes; then
5782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5784 { as_fn_set_status
77
5785 as_fn_error
"cannot compute sizeof (int)
5786 See \`config.log' for more details." "$LINENO" 5; }; }
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5794 $as_echo "$ac_cv_sizeof_int" >&6; }
5798 cat >>confdefs.h
<<_ACEOF
5799 #define SIZEOF_INT $ac_cv_sizeof_int
5803 # The cast to long int works around a bug in the HP C Compiler
5804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5806 # This bug is HP SR number 8606223364.
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5808 $as_echo_n "checking size of long... " >&6; }
5809 if test "${ac_cv_sizeof_long+set}" = set; then :
5810 $as_echo_n "(cached) " >&6
5812 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5815 if test "$ac_cv_type_long" = yes; then
5816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5818 { as_fn_set_status
77
5819 as_fn_error
"cannot compute sizeof (long)
5820 See \`config.log' for more details." "$LINENO" 5; }; }
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5828 $as_echo "$ac_cv_sizeof_long" >&6; }
5832 cat >>confdefs.h
<<_ACEOF
5833 #define SIZEOF_LONG $ac_cv_sizeof_long
5837 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5838 if test "x$ac_cv_type_long_long" = x
""yes; then :
5840 cat >>confdefs.h
<<_ACEOF
5841 #define HAVE_LONG_LONG 1
5844 # The cast to long int works around a bug in the HP C Compiler
5845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5847 # This bug is HP SR number 8606223364.
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5849 $as_echo_n "checking size of long long... " >&6; }
5850 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5853 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5856 if test "$ac_cv_type_long_long" = yes; then
5857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5859 { as_fn_set_status
77
5860 as_fn_error
"cannot compute sizeof (long long)
5861 See \`config.log' for more details." "$LINENO" 5; }; }
5863 ac_cv_sizeof_long_long
=0
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5869 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5873 cat >>confdefs.h
<<_ACEOF
5874 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5880 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5881 if test "x$ac_cv_type___int64" = x
""yes; then :
5883 cat >>confdefs.h
<<_ACEOF
5884 #define HAVE___INT64 1
5887 # The cast to long int works around a bug in the HP C Compiler
5888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5890 # This bug is HP SR number 8606223364.
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5892 $as_echo_n "checking size of __int64... " >&6; }
5893 if test "${ac_cv_sizeof___int64+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
5896 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5899 if test "$ac_cv_type___int64" = yes; then
5900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5902 { as_fn_set_status
77
5903 as_fn_error
"cannot compute sizeof (__int64)
5904 See \`config.log' for more details." "$LINENO" 5; }; }
5906 ac_cv_sizeof___int64
=0
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5912 $as_echo "$ac_cv_sizeof___int64" >&6; }
5916 cat >>confdefs.h
<<_ACEOF
5917 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5923 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5924 case $ac_cv_c_int8_t in #(
5928 cat >>confdefs.h
<<_ACEOF
5929 #define int8_t $ac_cv_c_int8_t
5934 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5935 case $ac_cv_c_int16_t in #(
5939 cat >>confdefs.h
<<_ACEOF
5940 #define int16_t $ac_cv_c_int16_t
5945 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5946 case $ac_cv_c_int32_t in #(
5950 cat >>confdefs.h
<<_ACEOF
5951 #define int32_t $ac_cv_c_int32_t
5956 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5957 case $ac_cv_c_int64_t in #(
5961 cat >>confdefs.h
<<_ACEOF
5962 #define int64_t $ac_cv_c_int64_t
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5969 $as_echo_n "checking for long long int... " >&6; }
5970 if test "${ac_cv_type_long_long_int+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5976 /* For now, do not test the preprocessor; as of 2007 there are too many
5977 implementations with broken preprocessors. Perhaps this can
5978 be revisited in 2012. In the meantime, code should not expect
5979 #if to work with literals wider than 32 bits. */
5980 /* Test literals. */
5981 long long int ll = 9223372036854775807ll;
5982 long long int nll = -9223372036854775807LL;
5983 unsigned long long int ull = 18446744073709551615ULL;
5984 /* Test constant expressions. */
5985 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5987 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5993 /* Test availability of runtime routines for shift and division. */
5994 long long int llmax = 9223372036854775807ll;
5995 unsigned long long int ullmax = 18446744073709551615ull;
5996 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5997 | (llmax / ll) | (llmax % ll)
5998 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5999 | (ullmax / ull) | (ullmax % ull));
6005 if ac_fn_c_try_link
"$LINENO"; then :
6006 if test "$cross_compiling" = yes; then :
6007 ac_cv_type_long_long_int
=yes
6009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6014 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6015 # define LLONG_MAX (HALF - 1 + HALF)
6020 long long int n = 1;
6024 long long int m = n << i;
6027 if (LLONG_MAX / 2 < m)
6035 if ac_fn_c_try_run
"$LINENO"; then :
6036 ac_cv_type_long_long_int
=yes
6038 ac_cv_type_long_long_int
=no
6040 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6041 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6045 ac_cv_type_long_long_int
=no
6047 rm -f core conftest.err conftest.
$ac_objext \
6048 conftest
$ac_exeext conftest.
$ac_ext
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6051 $as_echo "$ac_cv_type_long_long_int" >&6; }
6052 if test $ac_cv_type_long_long_int = yes; then
6054 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6060 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6061 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6063 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6066 test $ac_cv_type_long_long_int = yes \
6067 && ac_type
='long long int' \
6068 || ac_type
='long int'
6070 cat >>confdefs.h
<<_ACEOF
6071 #define intmax_t $ac_type
6078 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6079 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6081 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6084 for ac_type
in 'int' 'long int' 'long long int'; do
6085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6087 $ac_includes_default
6091 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6098 if ac_fn_c_try_compile
"$LINENO"; then :
6100 cat >>confdefs.h
<<_ACEOF
6101 #define intptr_t $ac_type
6106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6107 test -z "$ac_type" && break
6112 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6113 case $ac_cv_c_uint8_t in #(
6117 $as_echo "#define _UINT8_T 1" >>confdefs.h
6120 cat >>confdefs.h
<<_ACEOF
6121 #define uint8_t $ac_cv_c_uint8_t
6126 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6127 case $ac_cv_c_uint16_t in #(
6132 cat >>confdefs.h
<<_ACEOF
6133 #define uint16_t $ac_cv_c_uint16_t
6138 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6139 case $ac_cv_c_uint32_t in #(
6143 $as_echo "#define _UINT32_T 1" >>confdefs.h
6146 cat >>confdefs.h
<<_ACEOF
6147 #define uint32_t $ac_cv_c_uint32_t
6152 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6153 case $ac_cv_c_uint64_t in #(
6157 $as_echo "#define _UINT64_T 1" >>confdefs.h
6160 cat >>confdefs.h
<<_ACEOF
6161 #define uint64_t $ac_cv_c_uint64_t
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6168 $as_echo_n "checking for unsigned long long int... " >&6; }
6169 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6170 $as_echo_n "(cached) " >&6
6172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6175 /* For now, do not test the preprocessor; as of 2007 there are too many
6176 implementations with broken preprocessors. Perhaps this can
6177 be revisited in 2012. In the meantime, code should not expect
6178 #if to work with literals wider than 32 bits. */
6179 /* Test literals. */
6180 long long int ll = 9223372036854775807ll;
6181 long long int nll = -9223372036854775807LL;
6182 unsigned long long int ull = 18446744073709551615ULL;
6183 /* Test constant expressions. */
6184 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6186 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6192 /* Test availability of runtime routines for shift and division. */
6193 long long int llmax = 9223372036854775807ll;
6194 unsigned long long int ullmax = 18446744073709551615ull;
6195 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6196 | (llmax / ll) | (llmax % ll)
6197 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6198 | (ullmax / ull) | (ullmax % ull));
6204 if ac_fn_c_try_link
"$LINENO"; then :
6205 ac_cv_type_unsigned_long_long_int
=yes
6207 ac_cv_type_unsigned_long_long_int
=no
6209 rm -f core conftest.err conftest.
$ac_objext \
6210 conftest
$ac_exeext conftest.
$ac_ext
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6213 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6214 if test $ac_cv_type_unsigned_long_long_int = yes; then
6216 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6222 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6223 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6225 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6228 test $ac_cv_type_unsigned_long_long_int = yes \
6229 && ac_type
='unsigned long long int' \
6230 || ac_type
='unsigned long int'
6232 cat >>confdefs.h
<<_ACEOF
6233 #define uintmax_t $ac_type
6240 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6241 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6243 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6246 for ac_type
in 'unsigned int' 'unsigned long int' \
6247 'unsigned long long int'; do
6248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250 $ac_includes_default
6254 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6261 if ac_fn_c_try_compile
"$LINENO"; then :
6263 cat >>confdefs.h
<<_ACEOF
6264 #define uintptr_t $ac_type
6269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6270 test -z "$ac_type" && break
6288 # ---------------------
6289 # Warnings and checking
6290 # ---------------------
6292 # Check $CC warning features (if it's GCC).
6293 # We want to use -pedantic, but we don't want warnings about
6296 # * overlong strings
6297 # * C++11 narrowing conversions in { }
6298 # So, we only use -pedantic if we can disable those warnings.
6300 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6301 # Check whether --enable-build-format-warnings was given.
6302 if test "${enable_build_format_warnings+set}" = set; then :
6303 enableval
=$enable_build_format_warnings;
6305 enable_build_format_warnings
=yes
6308 if test $enable_build_format_warnings = no
; then :
6314 save_CFLAGS
="$CFLAGS"
6315 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6316 # Do the check with the no- prefix removed since gcc silently
6317 # accepts any -Wno-* option on purpose
6318 case $real_option in
6319 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6320 *) option
=$real_option ;;
6322 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6325 $as_echo_n "checking whether $CC supports $option... " >&6; }
6326 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6327 $as_echo_n "(cached) " >&6
6330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6341 if ac_fn_c_try_compile
"$LINENO"; then :
6342 eval "$as_acx_Woption=yes"
6344 eval "$as_acx_Woption=no"
6346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6349 eval ac_res
=\$
$as_acx_Woption
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6351 $as_echo "$ac_res" >&6; }
6352 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6353 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6356 CFLAGS
="$save_CFLAGS"
6359 save_CFLAGS
="$CFLAGS"
6360 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6361 # Do the check with the no- prefix removed since gcc silently
6362 # accepts any -Wno-* option on purpose
6363 case $real_option in
6364 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6365 *) option
=$real_option ;;
6367 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6370 $as_echo_n "checking whether $CC supports $option... " >&6; }
6371 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6372 $as_echo_n "(cached) " >&6
6375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6376 /* end confdefs.h. */
6386 if ac_fn_c_try_compile
"$LINENO"; then :
6387 eval "$as_acx_Woption=yes"
6389 eval "$as_acx_Woption=no"
6391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6394 eval ac_res
=\$
$as_acx_Woption
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6396 $as_echo "$ac_res" >&6; }
6397 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6398 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6401 CFLAGS
="$save_CFLAGS"
6404 save_CFLAGS
="$CFLAGS"
6405 for real_option
in -Wmissing-format-attribute; do
6406 # Do the check with the no- prefix removed since gcc silently
6407 # accepts any -Wno-* option on purpose
6408 case $real_option in
6409 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6410 *) option
=$real_option ;;
6412 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6415 $as_echo_n "checking whether $CC supports $option... " >&6; }
6416 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6417 $as_echo_n "(cached) " >&6
6420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6431 if ac_fn_c_try_compile
"$LINENO"; then :
6432 eval "$as_acx_Woption=yes"
6434 eval "$as_acx_Woption=no"
6436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6439 eval ac_res
=\$
$as_acx_Woption
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6441 $as_echo "$ac_res" >&6; }
6442 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6443 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6446 CFLAGS
="$save_CFLAGS"
6449 save_CFLAGS
="$CFLAGS"
6450 for real_option
in -Wold-style-definition -Wc++-compat; do
6451 # Do the check with the no- prefix removed since gcc silently
6452 # accepts any -Wno-* option on purpose
6453 case $real_option in
6454 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6455 *) option
=$real_option ;;
6457 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6460 $as_echo_n "checking whether $CC supports $option... " >&6; }
6461 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6462 $as_echo_n "(cached) " >&6
6465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6476 if ac_fn_c_try_compile
"$LINENO"; then :
6477 eval "$as_acx_Woption=yes"
6479 eval "$as_acx_Woption=no"
6481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6484 eval ac_res
=\$
$as_acx_Woption
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6486 $as_echo "$ac_res" >&6; }
6487 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6488 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6491 CFLAGS
="$save_CFLAGS"
6493 # Do the check with the no- prefix removed from the warning options
6494 # since gcc silently accepts any -Wno-* option on purpose
6495 if test "$GCC" = yes; then :
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6497 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6498 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
6501 save_CFLAGS
="$CFLAGS"
6502 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6514 if ac_fn_c_try_compile
"$LINENO"; then :
6515 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6517 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6520 CFLAGS
="$save_CFLAGS"
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6523 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6524 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6525 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6530 # Check whether --enable-werror-always was given.
6531 if test "${enable_werror_always+set}" = set; then :
6532 enableval
=$enable_werror_always;
6534 enable_werror_always
=no
6537 if test $enable_werror_always = yes; then :
6538 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6543 # The above macros do nothing if the compiler is not GCC. However, the
6544 # Makefile has more goo to add other flags, so these variables are used
6545 # to enable warnings only for GCC.
6548 if test "x$GCC" = "xyes"; then
6549 warn_cflags
='$(GCC_WARN_CFLAGS)'
6550 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6555 # Disable exceptions and RTTI if building with g++
6557 save_CFLAGS
="$CFLAGS"
6558 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6559 # Do the check with the no- prefix removed since gcc silently
6560 # accepts any -Wno-* option on purpose
6561 case $real_option in
6562 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6563 *) option
=$real_option ;;
6565 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6568 $as_echo_n "checking whether $CC supports $option... " >&6; }
6569 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6570 $as_echo_n "(cached) " >&6
6573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6584 if ac_fn_c_try_compile
"$LINENO"; then :
6585 eval "$as_acx_Woption=yes"
6587 eval "$as_acx_Woption=no"
6589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6592 eval ac_res
=\$
$as_acx_Woption
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6594 $as_echo "$ac_res" >&6; }
6595 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6596 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6599 CFLAGS
="$save_CFLAGS"
6602 # Enable expensive internal checks
6604 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6608 # Check whether --enable-checking was given.
6609 if test "${enable_checking+set}" = set; then :
6610 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6613 # Determine the default checks.
6614 if test x
$is_release = x
; then
6615 ac_checking_flags
=yes
6617 ac_checking_flags
=release
6621 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6622 for check
in release
$ac_checking_flags
6625 # these set all the flags to specific states
6626 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6627 ac_fold_checking
= ; ac_gc_checking
=1 ;
6628 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6629 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6630 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6631 ac_types_checking
=1 ;;
6632 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6633 ac_fold_checking
= ; ac_gc_checking
= ;
6634 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6635 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6636 ac_tree_checking
= ; ac_valgrind_checking
= ;
6637 ac_types_checking
= ;;
6638 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6639 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6640 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6641 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6642 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6643 ac_types_checking
=1 ;;
6644 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6645 ac_fold_checking
= ; ac_gc_checking
= ;
6646 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6647 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6648 ac_tree_checking
= ; ac_valgrind_checking
= ;
6649 ac_types_checking
= ;;
6650 # these enable particular checks
6651 assert
) ac_assert_checking
=1 ;;
6652 df
) ac_df_checking
=1 ;;
6653 fold) ac_fold_checking
=1 ;;
6654 gc
) ac_gc_checking
=1 ;;
6655 gcac
) ac_gc_always_collect
=1 ;;
6656 gimple
) ac_gimple_checking
=1 ;;
6657 misc
) ac_checking
=1 ;;
6658 rtl
) ac_rtl_checking
=1 ;;
6659 rtlflag
) ac_rtlflag_checking
=1 ;;
6660 runtime
) ac_runtime_checking
=1 ;;
6661 tree
) ac_tree_checking
=1 ;;
6662 types
) ac_types_checking
=1 ;;
6663 valgrind
) ac_valgrind_checking
=1 ;;
6664 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6670 if test x
$ac_checking != x
; then
6672 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6674 nocommon_flag
=-fno-common
6677 if test x
$ac_df_checking != x
; then
6679 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6682 if test x
$ac_assert_checking != x
; then
6684 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6687 if test x
$ac_gimple_checking != x
; then
6689 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6693 if test x
$ac_runtime_checking != x
; then
6695 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6698 if test x
$ac_tree_checking != x
; then
6700 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6702 TREEBROWSER
=tree-browser.o
6705 if test x
$ac_types_checking != x
; then
6707 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6712 if test x
$ac_rtl_checking != x
; then
6714 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6717 if test x
$ac_rtlflag_checking != x
; then
6719 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6722 if test x
$ac_gc_checking != x
; then
6724 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6727 if test x
$ac_gc_always_collect != x
; then
6729 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6732 if test x
$ac_fold_checking != x
; then
6734 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6737 valgrind_path_defines
=
6740 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6741 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6749 if test x
$ac_valgrind_checking != x
; then
6750 # It is certainly possible that there's valgrind but no valgrind.h.
6751 # GCC relies on making annotations so we must have both.
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6753 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h. */
6756 #include <valgrind/memcheck.h>
6757 #ifndef VALGRIND_DISCARD
6758 #error VALGRIND_DISCARD not defined
6761 if ac_fn_c_try_cpp
"$LINENO"; then :
6762 gcc_cv_header_valgrind_memcheck_h
=yes
6764 gcc_cv_header_valgrind_memcheck_h
=no
6766 rm -f conftest.err conftest.
$ac_ext
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6768 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6770 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h. */
6773 #include <memcheck.h>
6774 #ifndef VALGRIND_DISCARD
6775 #error VALGRIND_DISCARD not defined
6778 if ac_fn_c_try_cpp
"$LINENO"; then :
6779 gcc_cv_header_memcheck_h
=yes
6781 gcc_cv_header_memcheck_h
=no
6783 rm -f conftest.err conftest.
$ac_ext
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6785 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6787 # Prepare PATH_SEPARATOR.
6788 # The user is always right.
6789 if test "${PATH_SEPARATOR+set}" != set; then
6790 echo "#! /bin/sh" >conf$$.sh
6791 echo "exit 0" >>conf$$.sh
6793 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6801 # Find out how to test for executable files. Don't use a zero-byte file,
6802 # as systems may use methods other than mode bits to determine executability.
6803 cat >conf$$.
file <<_ASEOF
6807 chmod +x conf$$.
file
6808 if test -x conf$$.
file >/dev
/null
2>&1; then
6809 ac_executable_p
="test -x"
6811 ac_executable_p
="test -f"
6815 # Extract the first word of "valgrind", so it can be a program name with args.
6816 set dummy valgrind
; ac_word
=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6820 $as_echo_n "(cached) " >&6
6822 case "$valgrind_path" in
6824 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6827 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6828 for ac_dir
in $PATH; do
6830 test -z "$ac_dir" && ac_dir
=.
6831 for ac_exec_ext
in '' $ac_executable_extensions; do
6832 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6833 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6834 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6844 valgrind_path
="$ac_cv_path_valgrind_path"
6845 if test -n "$valgrind_path"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6847 $as_echo "$valgrind_path" >&6; }
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6853 if test "x$valgrind_path" = "x" \
6854 ||
(test $have_valgrind_h = no \
6855 && test $gcc_cv_header_memcheck_h = no \
6856 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6857 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6859 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6860 valgrind_command
="$valgrind_path -q"
6862 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6864 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6866 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6869 if test $gcc_cv_header_memcheck_h = yes; then
6871 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6878 # Enable code coverage collection
6879 # Check whether --enable-coverage was given.
6880 if test "${enable_coverage+set}" = set; then :
6881 enableval
=$enable_coverage; case "${enableval}" in
6883 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6886 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6889 # a.k.a. --disable-coverage
6893 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6902 # Check whether --enable-gather-detailed-mem-stats was given.
6903 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6904 enableval
=$enable_gather_detailed_mem_stats;
6906 enable_gather_detailed_mem_stats
=no
6909 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6911 cat >>confdefs.h
<<_ACEOF
6912 #define GATHER_STATISTICS $gather_stats
6916 # -------------------------------
6917 # Miscenalleous configure options
6918 # -------------------------------
6922 # Check whether --with-stabs was given.
6923 if test "${with_stabs+set}" = set; then :
6924 withval
=$with_stabs; stabs
="$with_stabs"
6930 # Determine whether or not multilibs are enabled.
6931 # Check whether --enable-multilib was given.
6932 if test "${enable_multilib+set}" = set; then :
6933 enableval
=$enable_multilib;
6940 # Determine whether or not multiarch is enabled.
6941 # Check whether --enable-multiarch was given.
6942 if test "${enable_multiarch+set}" = set; then :
6943 enableval
=$enable_multiarch; case "${enableval}" in
6944 yes|no|auto
) enable_multiarch
=$enableval;;
6945 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6948 enable_multiarch
=auto
6951 if test x
${enable_multiarch} = xauto
; then
6952 if test x
${with_native_system_header_dir} != x
; then
6953 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
6956 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
6957 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6962 $as_echo_n "checking for multiarch configuration... " >&6; }
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6965 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6967 # needed for setting the multiarch name for soft-float/hard-float ABIs
6971 # Enable __cxa_atexit for C++.
6972 # Check whether --enable-__cxa_atexit was given.
6973 if test "${enable___cxa_atexit+set}" = set; then :
6974 enableval
=$enable___cxa_atexit;
6978 # Enable C extension for decimal float if target supports it.
6980 # Check whether --enable-decimal-float was given.
6981 if test "${enable_decimal_float+set}" = set; then :
6982 enableval
=$enable_decimal_float;
6983 case $enable_decimal_float in
6984 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
6985 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6986 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6992 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
6994 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
6995 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
6996 enable_decimal_float
=yes
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7000 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7001 enable_decimal_float
=no
7008 # x86's use BID format instead of DPD
7009 case x
$enable_decimal_float in
7012 i?
86*-*-* | x86_64
*-*-*)
7013 enable_decimal_float
=bid
7016 enable_decimal_float
=dpd
7019 default_decimal_float
=$enable_decimal_float
7022 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7023 # dependency on libdecnumber.
7024 default_decimal_float
=dpd
7031 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7033 cat >>confdefs.h
<<_ACEOF
7034 #define ENABLE_DECIMAL_FLOAT $dfp
7038 # Use default_decimal_float for dependency.
7039 enable_decimal_float
=$default_decimal_float
7041 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7043 cat >>confdefs.h
<<_ACEOF
7044 #define ENABLE_DECIMAL_BID_FORMAT $bid
7048 # Enable C extension for fixed-point arithmetic.
7049 # Check whether --enable-fixed-point was given.
7050 if test "${enable_fixed_point+set}" = set; then :
7051 enableval
=$enable_fixed_point;
7056 enable_fixed_point
=yes
7060 enable_fixed_point
=yes
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7064 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7065 enable_fixed_point
=no
7073 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7075 cat >>confdefs.h
<<_ACEOF
7076 #define ENABLE_FIXED_POINT $fixedpoint
7081 # Pass with no value to take the default
7082 # Pass with a value to specify a thread package
7083 # Check whether --enable-threads was given.
7084 if test "${enable_threads+set}" = set; then :
7085 enableval
=$enable_threads;
7091 # Check whether --enable-tls was given.
7092 if test "${enable_tls+set}" = set; then :
7093 enableval
=$enable_tls;
7096 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7097 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7105 # Check whether --enable-objc-gc was given.
7106 if test "${enable_objc_gc+set}" = set; then :
7107 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7118 # Check whether --with-upc-pts was given.
7119 if test "${with_upc_pts+set}" = set; then :
7120 withval
=$with_upc_pts;
7122 packed|struct
) upc_pts_rep
="$withval" ;;
7123 *) as_fn_error
"$withval is an invalid option to --with-upc-pts" "$LINENO" 5
7128 upc_pts_rep
="packed"
7133 # Perl is required for checking pts representation
7134 # Extract the first word of "perl", so it can be a program name with args.
7135 set dummy perl
; ac_word
=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if test "${ac_cv_prog_PERL+set}" = set; then :
7139 $as_echo_n "(cached) " >&6
7141 if test -n "$PERL"; then
7142 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
7144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7148 test -z "$as_dir" && as_dir
=.
7149 for ac_exec_ext
in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_PERL
="perl"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 PERL
=$ac_cv_prog_PERL
7162 if test -n "$PERL"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7164 $as_echo "$PERL" >&6; }
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7173 # Check whether --with-upc-pts-vaddr-order was given.
7174 if test "${with_upc_pts_vaddr_order+set}" = set; then :
7175 withval
=$with_upc_pts_vaddr_order;
7176 upc_vaddr_order
="$withval"
7177 case "$upc_vaddr_order" in
7179 *) as_fn_error
"$withval is an invalid option to --with-upc-pts-vaddr-order" "$LINENO" 5 ;;
7183 upc_vaddr_order
="first"
7188 # Check whether --with-upc-pts-packed-bits was given.
7189 if test "${with_upc_pts_packed_bits+set}" = set; then :
7190 withval
=$with_upc_pts_packed_bits;
7191 if test x
"$upc_pts_rep" = x
"packed"; then
7192 UPC_PTS_PHASE_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7193 print $1 if ($1+$2+$3 == 64) && $1>=1;'`
7194 UPC_PTS_THREAD_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7195 print $2 if ($1+$2+$3 == 64) && $2>=1;'`
7196 UPC_PTS_VADDR_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7197 print $3 if ($1+$2+$3 == 64) && $3>=20;'`
7198 if test -z "$UPC_PTS_PHASE_SIZE" \
7199 ||
test -z "$UPC_PTS_THREAD_SIZE" \
7200 ||
test -z "$UPC_PTS_VADDR_SIZE" ; then
7201 as_fn_error
"--with-upc-pts-packed-bits=phase,thread,vaddr requires
7202 phase+thread+vaddr=64 and phase >= 1 and thread >= 1 and vaddr >= 20" "$LINENO" 5
7205 as_fn_error
"--with-upc-pts-packed-bits is only supported for
7206 the packed UPC pointer-to-shared representation" "$LINENO" 5
7211 # GNU UPC packed pointer representation defaults.
7214 UPC_PTS_PHASE_SIZE
=20
7215 UPC_PTS_THREAD_SIZE
=12
7216 UPC_PTS_VADDR_SIZE
=32
7219 UPC_PTS_PHASE_SIZE
=20
7220 UPC_PTS_THREAD_SIZE
=10
7221 UPC_PTS_VADDR_SIZE
=34
7227 # Check whether --enable-upc-link-script was given.
7228 if test "${enable_upc_link_script+set}" = set; then :
7229 enableval
=$enable_upc_link_script;
7233 as_fn_error
"--enable-upc-link-script accepts only yes or no." "$LINENO" 5
7237 enable_upc_link_script
=no
7242 # Process UPC-specific configuration options.
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared representation" >&5
7245 $as_echo_n "checking for UPC pointer-to-shared representation... " >&6; }
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_pts_rep" >&5
7247 $as_echo "$upc_pts_rep" >&6; }
7248 case "$upc_pts_rep" in
7251 $as_echo "#define HAVE_UPC_PTS_PACKED_REP 1" >>confdefs.h
7256 $as_echo "#define HAVE_UPC_PTS_STRUCT_REP 1" >>confdefs.h
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared address field position" >&5
7261 $as_echo_n "checking for UPC pointer-to-shared address field position... " >&6; }
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_vaddr_order" >&5
7263 $as_echo "$upc_vaddr_order" >&6; }
7264 if test x
"$upc_vaddr_order" = x
"first"; then
7266 $as_echo "#define HAVE_UPC_PTS_VADDR_FIRST 1" >>confdefs.h
7269 if test x
"$upc_pts_rep" = x
"packed"; then
7271 cat >>confdefs.h
<<_ACEOF
7272 #define UPC_PTS_PHASE_SIZE $UPC_PTS_PHASE_SIZE
7276 cat >>confdefs.h
<<_ACEOF
7277 #define UPC_PTS_THREAD_SIZE $UPC_PTS_THREAD_SIZE
7281 cat >>confdefs.h
<<_ACEOF
7282 #define UPC_PTS_VADDR_SIZE $UPC_PTS_VADDR_SIZE
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for packed UPC pointer-to-shared layout" >&5
7286 $as_echo_n "checking for packed UPC pointer-to-shared layout... " >&6; }
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7288 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&5
7289 $as_echo "\"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7290 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&6; }
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
7293 $as_echo_n "checking for UPC link script support... " >&6; }
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_link_script" >&5
7295 $as_echo "$enable_upc_link_script" >&6; }
7296 if test "$enable_upc_link_script" = yes; then
7298 $as_echo "#define HAVE_UPC_LINK_SCRIPT 1" >>confdefs.h
7303 # Check whether --with-dwarf2 was given.
7304 if test "${with_dwarf2+set}" = set; then :
7305 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7311 # Check whether --enable-shared was given.
7312 if test "${enable_shared+set}" = set; then :
7313 enableval
=$enable_shared;
7314 case $enable_shared in
7318 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7319 for pkg
in $enableval; do
7320 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7335 # Check whether --with-native-system-header-dir was given.
7336 if test "${with_native_system_header_dir+set}" = set; then :
7337 withval
=$with_native_system_header_dir;
7338 case ${with_native_system_header_dir} in
7339 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7340 /* |
[A-Za-z
]:[\\/]*) ;;
7341 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7343 configured_native_system_header_dir
="${withval}"
7346 configured_native_system_header_dir
=
7351 # Check whether --with-build-sysroot was given.
7352 if test "${with_build_sysroot+set}" = set; then :
7353 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7354 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7357 SYSROOT_CFLAGS_FOR_TARGET
=
7362 if test "x$prefix" = xNONE
; then
7363 test_prefix
=/usr
/local
7367 if test "x$exec_prefix" = xNONE
; then
7368 test_exec_prefix
=$test_prefix
7370 test_exec_prefix
=$exec_prefix
7374 # Check whether --with-sysroot was given.
7375 if test "${with_sysroot+set}" = set; then :
7376 withval
=$with_sysroot;
7377 case ${with_sysroot} in
7378 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7379 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7382 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7383 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7385 case ${TARGET_SYSTEM_ROOT} in
7386 "${test_prefix}"|
"${test_prefix}/"*|\
7387 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7388 '${prefix}'|
'${prefix}/'*|\
7389 '${exec_prefix}'|
'${exec_prefix}/'*)
7390 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7391 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7398 TARGET_SYSTEM_ROOT_DEFINE
=
7399 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7408 # Check whether --with-specs was given.
7409 if test "${with_specs+set}" = set; then :
7410 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7420 # Check whether --with-pkgversion was given.
7421 if test "${with_pkgversion+set}" = set; then :
7422 withval
=$with_pkgversion; case "$withval" in
7423 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7425 *) PKGVERSION
="($withval) " ;;
7436 # Check whether --with-bugurl was given.
7437 if test "${with_bugurl+set}" = set; then :
7438 withval
=$with_bugurl; case "$withval" in
7439 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7442 *) BUGURL
="$withval"
7446 BUGURL
="http://gccupc.org/bugs"
7456 REPORT_BUGS_TO
="<$BUGURL>"
7457 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7464 # Sanity check enable_languages in case someone does not run the toplevel
7465 # configure # script.
7466 # Check whether --enable-languages was given.
7467 if test "${enable_languages+set}" = set; then :
7468 enableval
=$enable_languages; case ,${enable_languages}, in
7470 # go safe -- we cannot be much sure without the toplevel
7472 # analysis of which target libs are present and usable
7476 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7481 enable_languages
=c
,${enable_languages}
7490 # Check whether --with-multilib-list was given.
7491 if test "${with_multilib_list+set}" = set; then :
7492 withval
=$with_multilib_list; :
7494 with_multilib_list
=default
7498 # -------------------------
7499 # Checks for other programs
7500 # -------------------------
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7503 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7505 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7506 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7507 $as_echo_n "(cached) " >&6
7509 cat >conftest.
make <<\_ACEOF
7512 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7514 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7515 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7517 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7519 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7523 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7525 $as_echo "yes" >&6; }
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529 $as_echo "no" >&6; }
7530 SET_MAKE
="MAKE=${MAKE-make}"
7534 # Find some useful tools
7535 for ac_prog
in gawk mawk nawk
awk
7537 # Extract the first word of "$ac_prog", so it can be a program name with args.
7538 set dummy
$ac_prog; ac_word
=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if test "${ac_cv_prog_AWK+set}" = set; then :
7542 $as_echo_n "(cached) " >&6
7544 if test -n "$AWK"; then
7545 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7551 test -z "$as_dir" && as_dir
=.
7552 for ac_exec_ext
in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7554 ac_cv_prog_AWK
="$ac_prog"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 if test -n "$AWK"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7567 $as_echo "$AWK" >&6; }
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7574 test -n "$AWK" && break
7577 # We need awk to create options.c and options.h.
7578 # Bail out if it's missing.
7580 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7584 $as_echo_n "checking whether ln -s works... " >&6; }
7585 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
7588 rm -f conftestdata_t
7589 echo >conftestdata_f
7590 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7592 gcc_cv_prog_LN_S
="ln -s"
7594 if ln conftestdata_f conftestdata_t
2>/dev
/null
7598 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7600 gcc_cv_prog_LN_S
="cp -p"
7606 rm -f conftestdata_f conftestdata_t
7609 LN_S
="$gcc_cv_prog_LN_S"
7610 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7612 $as_echo "yes" >&6; }
7614 if test "$gcc_cv_prog_LN_S" = "ln"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7616 $as_echo "no, using ln" >&6; }
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7619 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7624 $as_echo_n "checking whether ln works... " >&6; }
7625 if test "${acx_cv_prog_LN+set}" = set; then :
7626 $as_echo_n "(cached) " >&6
7628 rm -f conftestdata_t
7629 echo >conftestdata_f
7630 if ln conftestdata_f conftestdata_t
2>/dev
/null
7636 rm -f conftestdata_f conftestdata_t
7639 if test $acx_cv_prog_LN = no
; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7642 $as_echo "no, using $LN" >&6; }
7644 LN
="$acx_cv_prog_LN"
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7646 $as_echo "yes" >&6; }
7649 if test -n "$ac_tool_prefix"; then
7650 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7651 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653 $as_echo_n "checking for $ac_word... " >&6; }
7654 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7655 $as_echo_n "(cached) " >&6
7657 if test -n "$RANLIB"; then
7658 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7664 test -z "$as_dir" && as_dir
=.
7665 for ac_exec_ext
in '' $ac_executable_extensions; do
7666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7667 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 RANLIB
=$ac_cv_prog_RANLIB
7678 if test -n "$RANLIB"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7680 $as_echo "$RANLIB" >&6; }
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7688 if test -z "$ac_cv_prog_RANLIB"; then
7689 ac_ct_RANLIB
=$RANLIB
7690 # Extract the first word of "ranlib", so it can be a program name with args.
7691 set dummy ranlib
; ac_word
=$2
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 $as_echo_n "checking for $ac_word... " >&6; }
7694 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7695 $as_echo_n "(cached) " >&6
7697 if test -n "$ac_ct_RANLIB"; then
7698 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7704 test -z "$as_dir" && as_dir
=.
7705 for ac_exec_ext
in '' $ac_executable_extensions; do
7706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7707 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7718 if test -n "$ac_ct_RANLIB"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7720 $as_echo "$ac_ct_RANLIB" >&6; }
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 $as_echo "no" >&6; }
7726 if test "x$ac_ct_RANLIB" = x
; then
7729 case $cross_compiling:$ac_tool_warned in
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7733 ac_tool_warned
=yes ;;
7735 RANLIB
=$ac_ct_RANLIB
7738 RANLIB
="$ac_cv_prog_RANLIB"
7744 # Find a good install program. We prefer a C program (faster),
7745 # so one script is as good as another. But avoid the broken or
7746 # incompatible versions:
7747 # SysV /etc/install, /usr/sbin/install
7748 # SunOS /usr/etc/install
7749 # IRIX /sbin/install
7751 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7752 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7753 # ./install, which can be erroneously created by make from ./install.sh.
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7755 $as_echo_n "checking for a BSD compatible install... " >&6; }
7756 if test -z "$INSTALL"; then
7757 if test "${ac_cv_path_install+set}" = set; then :
7758 $as_echo_n "(cached) " >&6
7760 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7761 for ac_dir
in $PATH; do
7762 # Account for people who put trailing slashes in PATH elements.
7764 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7766 # OSF1 and SCO ODT 3.0 have their own names for install.
7767 for ac_prog
in ginstall scoinst
install; do
7768 if test -f $ac_dir/$ac_prog; then
7769 if test $ac_prog = install &&
7770 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7771 # AIX install. It has an incompatible calling convention.
7772 # OSF/1 installbsd also uses dspmsg, but is usable.
7775 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7786 if test "${ac_cv_path_install+set}" = set; then
7787 INSTALL
="$ac_cv_path_install"
7789 # As a last resort, use the slow shell script. We don't cache a
7790 # path for INSTALL within a source directory, because that will
7791 # break other packages using the cache if that directory is
7792 # removed, or if the path is relative.
7793 INSTALL
="$ac_install_sh"
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7797 $as_echo "$INSTALL" >&6; }
7799 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7800 # It thinks the first close brace ends the variable substitution.
7801 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7803 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7806 # See if cmp has --ignore-initial.
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7808 $as_echo_n "checking for cmp's capabilities... " >&6; }
7809 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7814 gcc_cv_prog_cmp_skip
=slowcompare
7815 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7816 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7819 gcc_cv_prog_cmp_skip
=gnucompare
7822 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7823 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7824 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7827 gcc_cv_prog_cmp_skip
=fastcompare
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7835 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7836 make_compare_target
=$gcc_cv_prog_cmp_skip
7840 # See if we have the mktemp command.
7841 # Extract the first word of "mktemp", so it can be a program name with args.
7842 set dummy mktemp
; ac_word
=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
7848 if test -n "$have_mktemp_command"; then
7849 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7855 test -z "$as_dir" && as_dir
=.
7856 for ac_exec_ext
in '' $ac_executable_extensions; do
7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7858 ac_cv_prog_have_mktemp_command
="yes"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7869 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7870 if test -n "$have_mktemp_command"; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7872 $as_echo "$have_mktemp_command" >&6; }
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7880 # See if makeinfo has been installed and is modern enough
7881 # that we can use it.
7883 # Extract the first word of "makeinfo", so it can be a program name with args.
7884 set dummy makeinfo
; 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_MAKEINFO+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7890 if test -n "$MAKEINFO"; then
7891 ac_cv_prog_MAKEINFO
="$MAKEINFO" # 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_MAKEINFO
="makeinfo"
7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 MAKEINFO
=$ac_cv_prog_MAKEINFO
7911 if test -n "$MAKEINFO"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7913 $as_echo "$MAKEINFO" >&6; }
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }
7920 if test -n "$MAKEINFO"; then
7921 # Found it, now check the version.
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7923 $as_echo_n "checking for modern makeinfo... " >&6; }
7924 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7925 $as_echo_n "(cached) " >&6
7927 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7928 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7930 case $ac_prog_version in
7931 '') gcc_cv_prog_makeinfo_modern
=no
;;
7932 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7933 *) gcc_cv_prog_makeinfo_modern
=no
;;
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7938 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7940 gcc_cv_prog_makeinfo_modern
=no
7942 if test $gcc_cv_prog_makeinfo_modern = no
; then
7943 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7946 if test $gcc_cv_prog_makeinfo_modern = no
; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7948 *** Makeinfo is missing or too old.
7949 *** Info documentation will not be built." >&5
7950 $as_echo "$as_me: WARNING:
7951 *** Makeinfo is missing or too old.
7952 *** Info documentation will not be built." >&2;}
7959 # Is pod2man recent enough to regenerate manpages?
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7961 $as_echo_n "checking for recent Pod::Man... " >&6; }
7962 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7964 $as_echo "yes" >&6; }
7965 GENERATED_MANPAGES
=generated-manpages
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7973 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7978 # Extract the first word of "$ac_prog", so it can be a program name with args.
7979 set dummy
$ac_prog; 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_FLEX+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7985 if test -n "$FLEX"; then
7986 ac_cv_prog_FLEX
="$FLEX" # 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
7995 ac_cv_prog_FLEX
="$ac_prog"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 FLEX
=$ac_cv_prog_FLEX
8006 if test -n "$FLEX"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8008 $as_echo "$FLEX" >&6; }
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8015 test -n "$FLEX" && break
8017 test -n "$FLEX" || FLEX
="$MISSING flex"
8021 for ac_prog
in bison
8023 # Extract the first word of "$ac_prog", so it can be a program name with args.
8024 set dummy
$ac_prog; ac_word
=$2
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026 $as_echo_n "checking for $ac_word... " >&6; }
8027 if test "${ac_cv_prog_BISON+set}" = set; then :
8028 $as_echo_n "(cached) " >&6
8030 if test -n "$BISON"; then
8031 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8037 test -z "$as_dir" && as_dir
=.
8038 for ac_exec_ext
in '' $ac_executable_extensions; do
8039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8040 ac_cv_prog_BISON
="$ac_prog"
8041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 BISON
=$ac_cv_prog_BISON
8051 if test -n "$BISON"; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8053 $as_echo "$BISON" >&6; }
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8060 test -n "$BISON" && break
8062 test -n "$BISON" || BISON
="$MISSING bison"
8065 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8066 # check for build == host before using them.
8069 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8070 && test -d ..
/binutils
; then
8071 NM
='${objdir}/../binutils/nm-new'
8073 # Extract the first word of "nm", so it can be a program name with args.
8074 set dummy nm
; ac_word
=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if test "${ac_cv_prog_NM+set}" = set; then :
8078 $as_echo_n "(cached) " >&6
8080 if test -n "$NM"; then
8081 ac_cv_prog_NM
="$NM" # Let the user override the test.
8083 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8087 test -z "$as_dir" && as_dir
=.
8088 for ac_exec_ext
in '' $ac_executable_extensions; do
8089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8102 if test -n "$NM"; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8104 $as_echo "$NM" >&6; }
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107 $as_echo "no" >&6; }
8114 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8115 && test -d ..
/binutils
; then
8116 AR
='${objdir}/../binutils/ar'
8118 # Extract the first word of "ar", so it can be a program name with args.
8119 set dummy
ar; ac_word
=$2
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121 $as_echo_n "checking for $ac_word... " >&6; }
8122 if test "${ac_cv_prog_AR+set}" = set; then :
8123 $as_echo_n "(cached) " >&6
8125 if test -n "$AR"; then
8126 ac_cv_prog_AR
="$AR" # Let the user override the test.
8128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8132 test -z "$as_dir" && as_dir
=.
8133 for ac_exec_ext
in '' $ac_executable_extensions; do
8134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8143 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8147 if test -n "$AR"; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8149 $as_echo "$AR" >&6; }
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8159 # --------------------
8160 # Checks for C headers
8161 # --------------------
8163 # Need to reject headers which give warnings, so that the -Werror bootstrap
8164 # works later. *sigh* This needs to come before all header checks.
8166 ac_c_preproc_warn_flag
=yes
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8169 $as_echo_n "checking for ANSI C header files... " >&6; }
8170 if test "${ac_cv_header_stdc+set}" = set; then :
8171 $as_echo_n "(cached) " >&6
8173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8188 if ac_fn_c_try_compile
"$LINENO"; then :
8189 ac_cv_header_stdc
=yes
8191 ac_cv_header_stdc
=no
8193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8195 if test $ac_cv_header_stdc = yes; then
8196 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8203 $EGREP "memchr" >/dev
/null
2>&1; then :
8206 ac_cv_header_stdc
=no
8212 if test $ac_cv_header_stdc = yes; then
8213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8220 $EGREP "free" >/dev
/null
2>&1; then :
8223 ac_cv_header_stdc
=no
8229 if test $ac_cv_header_stdc = yes; then
8230 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8231 if test "$cross_compiling" = yes; then :
8234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8238 #if ((' ' & 0x0FF) == 0x020)
8239 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8240 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8242 # define ISLOWER(c) \
8243 (('a' <= (c) && (c) <= 'i') \
8244 || ('j' <= (c) && (c) <= 'r') \
8245 || ('s' <= (c) && (c) <= 'z'))
8246 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8249 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8254 for (i = 0; i < 256; i++)
8255 if (XOR (islower (i), ISLOWER (i))
8256 || toupper (i) != TOUPPER (i))
8261 if ac_fn_c_try_run
"$LINENO"; then :
8264 ac_cv_header_stdc
=no
8266 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8267 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8273 $as_echo "$ac_cv_header_stdc" >&6; }
8274 if test $ac_cv_header_stdc = yes; then
8276 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8281 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8282 if test "${ac_cv_header_time+set}" = set; then :
8283 $as_echo_n "(cached) " >&6
8285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8287 #include <sys/types.h>
8288 #include <sys/time.h>
8294 if ((struct tm *) 0)
8300 if ac_fn_c_try_compile
"$LINENO"; then :
8301 ac_cv_header_time
=yes
8303 ac_cv_header_time
=no
8305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8308 $as_echo "$ac_cv_header_time" >&6; }
8309 if test $ac_cv_header_time = yes; then
8311 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8316 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8317 if test "${gcc_cv_header_string+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8323 #include <strings.h>
8332 if ac_fn_c_try_compile
"$LINENO"; then :
8333 gcc_cv_header_string
=yes
8335 gcc_cv_header_string
=no
8337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8340 $as_echo "$gcc_cv_header_string" >&6; }
8341 if test $gcc_cv_header_string = yes; then
8343 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8348 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8349 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8350 $as_echo_n "(cached) " >&6
8352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8354 #include <sys/types.h>
8355 #include <sys/wait.h>
8357 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8360 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8368 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8373 if ac_fn_c_try_compile
"$LINENO"; then :
8374 ac_cv_header_sys_wait_h
=yes
8376 ac_cv_header_sys_wait_h
=no
8378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8381 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8382 if test $ac_cv_header_sys_wait_h = yes; then
8384 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8389 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8390 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
8393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 #include <sys/types.h>
8396 #include <termios.h>
8402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8403 $EGREP "yes" >/dev
/null
2>&1; then :
8404 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8406 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8412 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8414 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8416 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8417 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8418 $as_echo_n "(cached) " >&6
8420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h. */
8422 #include <sys/types.h>
8423 #include <sys/ioctl.h>
8429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8430 $EGREP "yes" >/dev
/null
2>&1; then :
8431 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8433 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8439 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8441 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8443 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8448 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8449 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8450 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8451 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8453 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8454 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8455 eval as_val
=\$
$as_ac_Header
8456 if test "x$as_val" = x
""yes; then :
8457 cat >>confdefs.h
<<_ACEOF
8458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8465 # Check for thread headers.
8466 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8467 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8473 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8474 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8481 # These tests can't be done till we know if we have limits.h.
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8483 $as_echo_n "checking for CHAR_BIT... " >&6; }
8484 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8485 $as_echo_n "(cached) " >&6
8487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8488 /* end confdefs.h. */
8489 #ifdef HAVE_LIMITS_H
8496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8497 $EGREP "found" >/dev
/null
2>&1; then :
8498 gcc_cv_decl_char_bit
=yes
8500 gcc_cv_decl_char_bit
=no
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8507 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8508 if test $gcc_cv_decl_char_bit = no
; then
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8510 $as_echo_n "checking number of bits in a byte... " >&6; }
8511 if test "${gcc_cv_c_nbby+set}" = set; then :
8512 $as_echo_n "(cached) " >&6
8516 while test $i -lt 65; do
8517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8524 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8525 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8531 if ac_fn_c_try_compile
"$LINENO"; then :
8532 gcc_cv_c_nbby
=$i; break
8534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8537 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8541 $as_echo "$gcc_cv_c_nbby" >&6; }
8542 if test $gcc_cv_c_nbby = failed
; then
8543 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8546 cat >>confdefs.h
<<_ACEOF
8547 #define CHAR_BIT $gcc_cv_c_nbby
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8553 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8554 if test "${ac_cv_c_bigendian+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
8557 ac_cv_c_bigendian
=unknown
8558 # See if we're dealing with a universal compiler.
8559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h. */
8561 #ifndef __APPLE_CC__
8562 not a universal capable compiler
8567 if ac_fn_c_try_compile
"$LINENO"; then :
8569 # Check for potential -arch flags. It is not universal unless
8570 # there are at least two -arch flags with different values.
8573 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8574 if test -n "$ac_prev"; then
8576 i?
86 | x86_64 | ppc | ppc64
)
8577 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8580 ac_cv_c_bigendian
=universal
8586 elif test "x$ac_word" = "x-arch"; then
8591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8592 if test $ac_cv_c_bigendian = unknown
; then
8593 # See if sys/param.h defines the BYTE_ORDER macro.
8594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 #include <sys/types.h>
8597 #include <sys/param.h>
8602 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8603 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8612 if ac_fn_c_try_compile
"$LINENO"; then :
8613 # It does; now see whether it defined to BIG_ENDIAN or not.
8614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8616 #include <sys/types.h>
8617 #include <sys/param.h>
8622 #if BYTE_ORDER != BIG_ENDIAN
8630 if ac_fn_c_try_compile
"$LINENO"; then :
8631 ac_cv_c_bigendian
=yes
8633 ac_cv_c_bigendian
=no
8635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8639 if test $ac_cv_c_bigendian = unknown
; then
8640 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8648 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8656 if ac_fn_c_try_compile
"$LINENO"; then :
8657 # It does; now see whether it defined to _BIG_ENDIAN or not.
8658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8673 if ac_fn_c_try_compile
"$LINENO"; then :
8674 ac_cv_c_bigendian
=yes
8676 ac_cv_c_bigendian
=no
8678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8682 if test $ac_cv_c_bigendian = unknown
; then
8683 # Compile a test program.
8684 if test "$cross_compiling" = yes; then :
8685 # Try to guess by grepping values from an object file.
8686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h. */
8688 short int ascii_mm[] =
8689 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8690 short int ascii_ii[] =
8691 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8692 int use_ascii (int i) {
8693 return ascii_mm[i] + ascii_ii[i];
8695 short int ebcdic_ii[] =
8696 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8697 short int ebcdic_mm[] =
8698 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8699 int use_ebcdic (int i) {
8700 return ebcdic_mm[i] + ebcdic_ii[i];
8707 return use_ascii (foo) == use_ebcdic (foo);
8712 if ac_fn_c_try_compile
"$LINENO"; then :
8713 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8714 ac_cv_c_bigendian
=yes
8716 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8717 if test "$ac_cv_c_bigendian" = unknown
; then
8718 ac_cv_c_bigendian
=no
8720 # finding both strings is unlikely to happen, but who knows?
8721 ac_cv_c_bigendian
=unknown
8725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729 $ac_includes_default
8734 /* Are we little or big endian? From Harbison&Steele. */
8738 char c[sizeof (long int)];
8741 return u.c[sizeof (long int) - 1] == 1;
8747 if ac_fn_c_try_run
"$LINENO"; then :
8748 ac_cv_c_bigendian
=no
8750 ac_cv_c_bigendian
=yes
8752 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8753 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8759 $as_echo "$ac_cv_c_bigendian" >&6; }
8760 case $ac_cv_c_bigendian in #(
8762 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8768 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8772 as_fn_error
"unknown endianness
8773 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8777 # ----------------------
8778 # Checks for C++ headers
8779 # ----------------------
8782 ac_cpp
='$CXXCPP $CPPFLAGS'
8783 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8784 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8785 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8787 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8788 if test -z "$CXXCPP"; then
8789 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8790 $as_echo_n "(cached) " >&6
8792 # Double quotes because CXXCPP needs to be expanded
8793 for CXXCPP
in "$CXX -E" "/lib/cpp"
8796 for ac_cxx_preproc_warn_flag
in '' yes
8798 # Use a header file that comes with gcc, so configuring glibc
8799 # with a fresh cross-compiler works.
8800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8801 # <limits.h> exists even on freestanding compilers.
8802 # On the NeXT, cc -E runs the code through the compiler's parser,
8803 # not just through cpp. "Syntax error" is here to catch this case.
8804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8807 # include <limits.h>
8809 # include <assert.h>
8813 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8816 # Broken: fails on valid input.
8819 rm -f conftest.err conftest.
$ac_ext
8821 # OK, works on sane cases. Now check whether nonexistent headers
8822 # can be detected and how.
8823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8825 #include <ac_nonexistent.h>
8827 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8828 # Broken: success on invalid input.
8831 # Passes both tests.
8835 rm -f conftest.err conftest.
$ac_ext
8838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8839 rm -f conftest.err conftest.
$ac_ext
8840 if $ac_preproc_ok; then :
8845 ac_cv_prog_CXXCPP
=$CXXCPP
8848 CXXCPP
=$ac_cv_prog_CXXCPP
8850 ac_cv_prog_CXXCPP
=$CXXCPP
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8853 $as_echo "$CXXCPP" >&6; }
8855 for ac_cxx_preproc_warn_flag
in '' yes
8857 # Use a header file that comes with gcc, so configuring glibc
8858 # with a fresh cross-compiler works.
8859 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8860 # <limits.h> exists even on freestanding compilers.
8861 # On the NeXT, cc -E runs the code through the compiler's parser,
8862 # not just through cpp. "Syntax error" is here to catch this case.
8863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8866 # include <limits.h>
8868 # include <assert.h>
8872 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8875 # Broken: fails on valid input.
8878 rm -f conftest.err conftest.
$ac_ext
8880 # OK, works on sane cases. Now check whether nonexistent headers
8881 # can be detected and how.
8882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8884 #include <ac_nonexistent.h>
8886 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8887 # Broken: success on invalid input.
8890 # Passes both tests.
8894 rm -f conftest.err conftest.
$ac_ext
8897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8898 rm -f conftest.err conftest.
$ac_ext
8899 if $ac_preproc_ok; then :
8902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8905 See \`config.log' for more details." >&5
8906 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8907 See \`config.log' for more details." >&2;}; }
8911 ac_cpp
='$CPP $CPPFLAGS'
8912 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8913 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8914 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8918 ac_cpp
='$CXXCPP $CPPFLAGS'
8919 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8920 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8921 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8926 for ac_header
in unordered_map
8928 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8929 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8930 cat >>confdefs.h
<<_ACEOF
8931 #define HAVE_UNORDERED_MAP 1
8937 for ac_header
in tr1/unordered_map
8939 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8940 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8941 cat >>confdefs.h
<<_ACEOF
8942 #define HAVE_TR1_UNORDERED_MAP 1
8948 for ac_header
in ext
/hash_map
8950 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8951 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8952 cat >>confdefs.h
<<_ACEOF
8953 #define HAVE_EXT_HASH_MAP 1
8961 ac_cpp
='$CPP $CPPFLAGS'
8962 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8963 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8964 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8968 # Dependency checking.
8972 ac_cpp
='$CXXCPP $CPPFLAGS'
8973 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8974 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8975 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8977 rm -rf .tst
2>/dev
/null
8978 mkdir .tst
2>/dev
/null
8979 if test -d .tst
; then
8984 rmdir .tst
2>/dev
/null
8986 DEPDIR
="${am__leading_dot}deps"
8988 ac_config_commands
="$ac_config_commands depdir"
8991 ac_config_commands
="$ac_config_commands gccdepdir"
8994 depcc
="$CXX" am_compiler_list
=
8996 am_depcomp
=$ac_aux_dir/depcomp
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8998 $as_echo_n "checking dependency style of $depcc... " >&6; }
8999 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9000 $as_echo_n "(cached) " >&6
9002 if test -f "$am_depcomp"; then
9003 # We make a subdir and do the tests there. Otherwise we can end up
9004 # making bogus files that we don't know about and never remove. For
9005 # instance it was reported that on HP-UX the gcc test will end up
9006 # making a dummy file named `D' -- because `-MD' means `put the output
9009 # Copy depcomp to subdir because otherwise we won't find it if we're
9010 # using a relative directory.
9011 cp "$am_depcomp" conftest.dir
9013 # We will build objects and dependencies in a subdirectory because
9014 # it helps to detect inapplicable dependency modes. For instance
9015 # both Tru64's cc and ICC support -MD to output dependencies as a
9016 # side effect of compilation, but ICC will put the dependencies in
9017 # the current directory while Tru64 will put them in the object
9021 am_cv_CXX_dependencies_compiler_type
=none
9022 if test "$am_compiler_list" = ""; then
9023 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9025 for depmode
in $am_compiler_list; do
9026 if test $depmode = none
; then break; fi
9028 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9029 # Setup a source with many dependencies, because some compilers
9030 # like to wrap large dependency lists on column 80 (with \), and
9031 # we should not choose a depcomp mode which is confused by this.
9033 # We need to recreate these files for each test, as the compiler may
9034 # overwrite some of them when testing with obscure command lines.
9035 # This happens at least with the AIX C compiler.
9037 for i
in 1 2 3 4 5 6; do
9038 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9039 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9040 # Solaris 8's {/usr,}/bin/sh.
9041 touch sub
/conftst
$i.h
9043 echo "include sub/conftest.Po" > confmf
9045 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9046 # mode. It turns out that the SunPro C++ compiler does not properly
9047 # handle `-M -o', and we need to detect this.
9048 depcmd
="depmode=$depmode \
9049 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9050 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9051 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9052 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9053 if env
$depcmd > conftest.err
2>&1 &&
9054 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9055 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9056 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9057 # icc doesn't choke on unknown options, it will just issue warnings
9058 # or remarks (even with -Werror). So we grep stderr for any message
9059 # that says an option was ignored or not supported.
9060 # When given -MP, icc 7.0 and 7.1 complain thusly:
9061 # icc: Command line warning: ignoring option '-M'; no argument required
9062 # The diagnosis changed in icc 8.0:
9063 # icc: Command line remark: option '-MP' not supported
9064 if (grep 'ignoring option' conftest.err ||
9065 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9066 am_cv_CXX_dependencies_compiler_type
=$depmode
9067 $as_echo "$as_me:$LINENO: success" >&5
9071 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9072 sed -e 's/^/| /' < conftest.err
>&5
9078 am_cv_CXX_dependencies_compiler_type
=none
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9083 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9084 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9085 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9086 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9091 ac_cpp
='$CPP $CPPFLAGS'
9092 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9093 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9094 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9102 # These libraries may be used by collect2.
9103 # We may need a special search path to get them linked.
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9105 $as_echo_n "checking for collect2 libraries... " >&6; }
9106 if test "${gcc_cv_collect2_libs+set}" = set; then :
9107 $as_echo_n "(cached) " >&6
9110 for libs
in '' -lld -lmld \
9111 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9112 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9118 /* Override any GCC internal prototype to avoid an error.
9119 Use char because int might match the return type of a GCC
9120 builtin and then its argument prototype would still apply. */
9133 if ac_fn_c_try_link
"$LINENO"; then :
9134 gcc_cv_collect2_libs
="$libs"; break
9136 rm -f core conftest.err conftest.
$ac_objext \
9137 conftest
$ac_exeext conftest.
$ac_ext
9140 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9143 $as_echo "$gcc_cv_collect2_libs" >&6; }
9144 case $gcc_cv_collect2_libs in
9146 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9150 # When building Ada code on Alpha, we need exc_resume which is usually in
9151 # -lexc. So test for it.
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9155 $as_echo_n "checking for library containing exc_resume... " >&6; }
9156 if test "${ac_cv_search_exc_resume+set}" = set; then :
9157 $as_echo_n "(cached) " >&6
9159 ac_func_search_save_LIBS
=$LIBS
9160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9163 /* Override any GCC internal prototype to avoid an error.
9164 Use char because int might match the return type of a GCC
9165 builtin and then its argument prototype would still apply. */
9173 return exc_resume ();
9178 for ac_lib
in '' exc
; do
9179 if test -z "$ac_lib"; then
9180 ac_res
="none required"
9183 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9185 if ac_fn_c_try_link
"$LINENO"; then :
9186 ac_cv_search_exc_resume
=$ac_res
9188 rm -f core conftest.err conftest.
$ac_objext \
9190 if test "${ac_cv_search_exc_resume+set}" = set; then :
9194 if test "${ac_cv_search_exc_resume+set}" = set; then :
9197 ac_cv_search_exc_resume
=no
9200 LIBS
=$ac_func_search_save_LIBS
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9203 $as_echo "$ac_cv_search_exc_resume" >&6; }
9204 ac_res
=$ac_cv_search_exc_resume
9205 if test "$ac_res" != no
; then :
9206 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9214 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9218 $as_echo_n "checking for library containing kstat_open... " >&6; }
9219 if test "${ac_cv_search_kstat_open+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
9222 ac_func_search_save_LIBS
=$LIBS
9223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9224 /* end confdefs.h. */
9226 /* Override any GCC internal prototype to avoid an error.
9227 Use char because int might match the return type of a GCC
9228 builtin and then its argument prototype would still apply. */
9236 return kstat_open ();
9241 for ac_lib
in '' kstat
; do
9242 if test -z "$ac_lib"; then
9243 ac_res
="none required"
9246 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9248 if ac_fn_c_try_link
"$LINENO"; then :
9249 ac_cv_search_kstat_open
=$ac_res
9251 rm -f core conftest.err conftest.
$ac_objext \
9253 if test "${ac_cv_search_kstat_open+set}" = set; then :
9257 if test "${ac_cv_search_kstat_open+set}" = set; then :
9260 ac_cv_search_kstat_open
=no
9263 LIBS
=$ac_func_search_save_LIBS
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9266 $as_echo "$ac_cv_search_kstat_open" >&6; }
9267 ac_res
=$ac_cv_search_kstat_open
9268 if test "$ac_res" != no
; then :
9269 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9273 EXTRA_GCC_LIBS
="$LIBS"
9277 # Some systems put ldexp and frexp in libm instead of libc; assume
9278 # they're both in the same place. jcf-dump needs them.
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9282 $as_echo_n "checking for library containing ldexp... " >&6; }
9283 if test "${ac_cv_search_ldexp+set}" = set; then :
9284 $as_echo_n "(cached) " >&6
9286 ac_func_search_save_LIBS
=$LIBS
9287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9290 /* Override any GCC internal prototype to avoid an error.
9291 Use char because int might match the return type of a GCC
9292 builtin and then its argument prototype would still apply. */
9305 for ac_lib
in '' m
; do
9306 if test -z "$ac_lib"; then
9307 ac_res
="none required"
9310 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9312 if ac_fn_c_try_link
"$LINENO"; then :
9313 ac_cv_search_ldexp
=$ac_res
9315 rm -f core conftest.err conftest.
$ac_objext \
9317 if test "${ac_cv_search_ldexp+set}" = set; then :
9321 if test "${ac_cv_search_ldexp+set}" = set; then :
9324 ac_cv_search_ldexp
=no
9327 LIBS
=$ac_func_search_save_LIBS
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9330 $as_echo "$ac_cv_search_ldexp" >&6; }
9331 ac_res
=$ac_cv_search_ldexp
9332 if test "$ac_res" != no
; then :
9333 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9341 # Use <inttypes.h> only if it exists,
9342 # doesn't clash with <sys/types.h>, and declares intmax_t.
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9344 $as_echo_n "checking for inttypes.h... " >&6; }
9345 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9346 $as_echo_n "(cached) " >&6
9348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9349 /* end confdefs.h. */
9350 #include <sys/types.h>
9351 #include <inttypes.h>
9360 if ac_fn_c_try_compile
"$LINENO"; then :
9361 gcc_cv_header_inttypes_h
=yes
9363 gcc_cv_header_inttypes_h
=no
9365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9369 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9370 if test $gcc_cv_header_inttypes_h = yes; then
9372 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9378 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9379 sysconf strsignal getrusage nl_langinfo \
9380 gettimeofday mbstowcs wcswidth mmap setlocale \
9381 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
9383 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9384 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9385 eval as_val
=\$
$as_ac_var
9386 if test "x$as_val" = x
""yes; then :
9387 cat >>confdefs.h
<<_ACEOF
9388 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9395 if test x
$ac_cv_func_mbstowcs = xyes
; then
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9397 $as_echo_n "checking whether mbstowcs works... " >&6; }
9398 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9399 $as_echo_n "(cached) " >&6
9401 if test "$cross_compiling" = yes; then :
9402 gcc_cv_func_mbstowcs_works
=yes
9404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9413 if ac_fn_c_try_run
"$LINENO"; then :
9414 gcc_cv_func_mbstowcs_works
=yes
9416 gcc_cv_func_mbstowcs_works
=no
9418 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9419 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9424 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9425 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9427 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9432 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9433 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9437 cat >>confdefs.h
<<_ACEOF
9443 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9444 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9448 cat >>confdefs.h
<<_ACEOF
9449 #define caddr_t char *
9456 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9457 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9458 gcc_header_sys_mman_h
=yes
9460 gcc_header_sys_mman_h
=no
9463 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9464 if test "x$ac_cv_func_mmap" = x
""yes; then :
9470 if test "$gcc_header_sys_mman_h" != yes \
9471 ||
test "$gcc_func_mmap" != yes; then
9472 gcc_cv_func_mmap_file
=no
9473 gcc_cv_func_mmap_dev_zero
=no
9474 gcc_cv_func_mmap_anon
=no
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9477 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9478 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
9481 # Add a system to this blacklist if
9482 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9483 # memory area containing the same data that you'd get if you applied
9484 # read() to the same fd. The only system known to have a problem here
9485 # is VMS, where text files have record structure.
9488 gcc_cv_func_mmap_file
=no
;;
9490 gcc_cv_func_mmap_file
=yes;;
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9494 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9496 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9497 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9498 $as_echo_n "(cached) " >&6
9500 # Add a system to this blacklist if it has mmap() but /dev/zero
9501 # does not exist, or if mmapping /dev/zero does not give anonymous
9502 # zeroed pages with both the following properties:
9503 # 1. If you map N consecutive pages in with one call, and then
9504 # unmap any subset of those pages, the pages that were not
9505 # explicitly unmapped remain accessible.
9506 # 2. If you map two adjacent blocks of memory and then unmap them
9507 # both at once, they must both go away.
9508 # Systems known to be in this category are Windows (all variants),
9511 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9512 gcc_cv_func_mmap_dev_zero
=no
;;
9514 gcc_cv_func_mmap_dev_zero
=yes;;
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9518 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9520 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9522 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9523 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9524 $as_echo_n "(cached) " >&6
9526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h. */
9528 #include <sys/types.h>
9529 #include <sys/mman.h>
9532 #ifndef MAP_ANONYMOUS
9533 #define MAP_ANONYMOUS MAP_ANON
9539 int n = MAP_ANONYMOUS;
9544 if ac_fn_c_try_compile
"$LINENO"; then :
9545 gcc_cv_decl_map_anon
=yes
9547 gcc_cv_decl_map_anon
=no
9549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9552 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9554 if test $gcc_cv_decl_map_anon = no
; then
9555 gcc_cv_func_mmap_anon
=no
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9558 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9559 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9560 $as_echo_n "(cached) " >&6
9562 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9563 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9564 # doesn't give anonymous zeroed pages with the same properties listed
9565 # above for use of /dev/zero.
9566 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9568 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9569 gcc_cv_func_mmap_anon
=no
;;
9571 gcc_cv_func_mmap_anon
=yes;;
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9575 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9579 if test $gcc_cv_func_mmap_file = yes; then
9581 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9584 if test $gcc_cv_func_mmap_dev_zero = yes; then
9586 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9589 if test $gcc_cv_func_mmap_anon = yes; then
9591 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9598 # Under VMS, vfork works very differently than on Unix. The standard test
9599 # won't work, and it isn't easily adaptable. It makes more sense to
9601 ac_cv_func_vfork_works
=yes
9604 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9605 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9609 cat >>confdefs.h
<<_ACEOF
9615 for ac_header
in vfork.h
9617 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9618 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9619 cat >>confdefs.h
<<_ACEOF
9620 #define HAVE_VFORK_H 1
9626 for ac_func
in fork vfork
9628 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9629 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9630 eval as_val
=\$
$as_ac_var
9631 if test "x$as_val" = x
""yes; then :
9632 cat >>confdefs.h
<<_ACEOF
9633 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9639 if test "x$ac_cv_func_fork" = xyes
; then
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9641 $as_echo_n "checking for working fork... " >&6; }
9642 if test "${ac_cv_func_fork_works+set}" = set; then :
9643 $as_echo_n "(cached) " >&6
9645 if test "$cross_compiling" = yes; then :
9646 ac_cv_func_fork_works
=cross
9648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9650 $ac_includes_default
9655 /* By Ruediger Kuhlmann. */
9662 if ac_fn_c_try_run
"$LINENO"; then :
9663 ac_cv_func_fork_works
=yes
9665 ac_cv_func_fork_works
=no
9667 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9668 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9673 $as_echo "$ac_cv_func_fork_works" >&6; }
9676 ac_cv_func_fork_works
=$ac_cv_func_fork
9678 if test "x$ac_cv_func_fork_works" = xcross
; then
9680 *-*-amigaos* |
*-*-msdosdjgpp*)
9681 # Override, as these systems have only a dummy fork() stub
9682 ac_cv_func_fork_works
=no
9685 ac_cv_func_fork_works
=yes
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9689 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9691 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9692 if test "x$ac_cv_func_vfork" = xyes
; then
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9694 $as_echo_n "checking for working vfork... " >&6; }
9695 if test "${ac_cv_func_vfork_works+set}" = set; then :
9696 $as_echo_n "(cached) " >&6
9698 if test "$cross_compiling" = yes; then :
9699 ac_cv_func_vfork_works
=cross
9701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h. */
9703 /* Thanks to Paul Eggert for this test. */
9704 $ac_includes_default
9705 #include <sys/wait.h>
9709 /* On some sparc systems, changes by the child to local and incoming
9710 argument registers are propagated back to the parent. The compiler
9711 is told about this with #include <vfork.h>, but some compilers
9712 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9713 static variable whose address is put into a register that is
9714 clobbered by the vfork. */
9717 sparc_address_test (int arg)
9719 sparc_address_test (arg) int arg;
9740 pid_t parent = getpid ();
9743 sparc_address_test (0);
9748 /* Here is another test for sparc vfork register problems. This
9749 test uses lots of local variables, at least as many local
9750 variables as main has allocated so far including compiler
9751 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9752 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9753 reuse the register of parent for one of the local variables,
9754 since it will think that parent can't possibly be used any more
9755 in this routine. Assigning to the local variable will thus
9756 munge parent in the parent process. */
9758 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9759 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9760 /* Convince the compiler that p..p7 are live; otherwise, it might
9761 use the same hardware register for all 8 local variables. */
9762 if (p != p1 || p != p2 || p != p3 || p != p4
9763 || p != p5 || p != p6 || p != p7)
9766 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9767 from child file descriptors. If the child closes a descriptor
9768 before it execs or exits, this munges the parent's descriptor
9769 as well. Test for this by closing stdout in the child. */
9770 _exit(close(fileno(stdout)) != 0);
9775 while (wait(&status) != child)
9778 /* Was there some problem with vforking? */
9781 /* Did the child fail? (This shouldn't happen.) */
9784 /* Did the vfork/compiler bug occur? */
9785 || parent != getpid()
9787 /* Did the file descriptor bug occur? */
9788 || fstat(fileno(stdout), &st) != 0
9793 if ac_fn_c_try_run
"$LINENO"; then :
9794 ac_cv_func_vfork_works
=yes
9796 ac_cv_func_vfork_works
=no
9798 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9799 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9804 $as_echo "$ac_cv_func_vfork_works" >&6; }
9807 if test "x$ac_cv_func_fork_works" = xcross
; then
9808 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9810 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9813 if test "x$ac_cv_func_vfork_works" = xyes
; then
9815 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9819 $as_echo "#define vfork fork" >>confdefs.h
9822 if test "x$ac_cv_func_fork_works" = xyes
; then
9824 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9829 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9830 # iconv() prototype.
9832 ac_cpp
='$CXXCPP $CPPFLAGS'
9833 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9834 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9835 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9838 if test "X$prefix" = "XNONE"; then
9839 acl_final_prefix
="$ac_default_prefix"
9841 acl_final_prefix
="$prefix"
9843 if test "X$exec_prefix" = "XNONE"; then
9844 acl_final_exec_prefix
='${prefix}'
9846 acl_final_exec_prefix
="$exec_prefix"
9848 acl_save_prefix
="$prefix"
9849 prefix
="$acl_final_prefix"
9850 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9851 prefix
="$acl_save_prefix"
9854 # Check whether --with-gnu-ld was given.
9855 if test "${with_gnu_ld+set}" = set; then :
9856 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9861 # Prepare PATH_SEPARATOR.
9862 # The user is always right.
9863 if test "${PATH_SEPARATOR+set}" != set; then
9864 echo "#! /bin/sh" >conf$$.sh
9865 echo "exit 0" >>conf$$.sh
9867 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9875 if test "$GCC" = yes; then
9876 # Check if gcc -print-prog-name=ld gives a path.
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9878 $as_echo_n "checking for ld used by GCC... " >&6; }
9881 # gcc leaves a trailing carriage return which upsets mingw
9882 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9884 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9887 # Accept absolute paths.
9888 [\\/]* |
[A-Za-z
]:[\\/]*)
9889 re_direlt
='/[^/][^/]*/\.\./'
9890 # Canonicalize the path of ld
9891 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9892 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9893 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9895 test -z "$LD" && LD
="$ac_prog"
9898 # If it fails, then pretend we aren't using GCC.
9902 # If it is relative, then search for the first ld in PATH.
9906 elif test "$with_gnu_ld" = yes; then
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9908 $as_echo_n "checking for GNU ld... " >&6; }
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9911 $as_echo_n "checking for non-GNU ld... " >&6; }
9913 if test "${acl_cv_path_LD+set}" = set; then :
9914 $as_echo_n "(cached) " >&6
9916 if test -z "$LD"; then
9917 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9918 for ac_dir
in $PATH; do
9919 test -z "$ac_dir" && ac_dir
=.
9920 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9921 acl_cv_path_LD
="$ac_dir/$ac_prog"
9922 # Check to see if the program is GNU ld. I'd rather use --version,
9923 # but apparently some GNU ld's only accept -v.
9924 # Break only if it was the GNU/non-GNU ld that we prefer.
9925 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9926 test "$with_gnu_ld" != no
&& break
9928 test "$with_gnu_ld" != yes && break
9934 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9938 LD
="$acl_cv_path_LD"
9939 if test -n "$LD"; then
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9941 $as_echo "$LD" >&6; }
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9944 $as_echo "no" >&6; }
9946 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9948 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9949 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9950 $as_echo_n "(cached) " >&6
9952 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9953 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9954 acl_cv_prog_gnu_ld
=yes
9956 acl_cv_prog_gnu_ld
=no
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9960 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9961 with_gnu_ld
=$acl_cv_prog_gnu_ld
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9966 $as_echo_n "checking for shared library run path origin... " >&6; }
9967 if test "${acl_cv_rpath+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
9971 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9972 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9979 $as_echo "$acl_cv_rpath" >&6; }
9981 libext
="$acl_cv_libext"
9982 shlibext
="$acl_cv_shlibext"
9983 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9984 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9985 hardcode_direct
="$acl_cv_hardcode_direct"
9986 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9987 # Check whether --enable-rpath was given.
9988 if test "${enable_rpath+set}" = set; then :
9989 enableval
=$enable_rpath; :
10003 acl_save_prefix
="$prefix"
10004 prefix
="$acl_final_prefix"
10005 acl_save_exec_prefix
="$exec_prefix"
10006 exec_prefix
="$acl_final_exec_prefix"
10008 eval additional_includedir
=\"$includedir\"
10009 eval additional_libdir
=\"$libdir\"
10011 exec_prefix
="$acl_save_exec_prefix"
10012 prefix
="$acl_save_prefix"
10015 # Check whether --with-libiconv-prefix was given.
10016 if test "${with_libiconv_prefix+set}" = set; then :
10017 withval
=$with_libiconv_prefix;
10018 if test "X$withval" = "Xno"; then
10021 if test "X$withval" = "X"; then
10023 acl_save_prefix
="$prefix"
10024 prefix
="$acl_final_prefix"
10025 acl_save_exec_prefix
="$exec_prefix"
10026 exec_prefix
="$acl_final_exec_prefix"
10028 eval additional_includedir
=\"$includedir\"
10029 eval additional_libdir
=\"$libdir\"
10031 exec_prefix
="$acl_save_exec_prefix"
10032 prefix
="$acl_save_prefix"
10035 additional_includedir
="$withval/include"
10036 additional_libdir
="$withval/lib"
10047 names_already_handled
=
10048 names_next_round
='iconv '
10049 while test -n "$names_next_round"; do
10050 names_this_round
="$names_next_round"
10052 for name
in $names_this_round; do
10054 for n
in $names_already_handled; do
10055 if test "$n" = "$name"; then
10056 already_handled
=yes
10060 if test -z "$already_handled"; then
10061 names_already_handled
="$names_already_handled $name"
10062 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10063 eval value
=\"\
$HAVE_LIB$uppername\"
10064 if test -n "$value"; then
10065 if test "$value" = yes; then
10066 eval value
=\"\
$LIB$uppername\"
10067 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10068 eval value
=\"\
$LTLIB$uppername\"
10069 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10078 if test $use_additional = yes; then
10079 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10080 found_dir
="$additional_libdir"
10081 found_so
="$additional_libdir/lib$name.$shlibext"
10082 if test -f "$additional_libdir/lib$name.la"; then
10083 found_la
="$additional_libdir/lib$name.la"
10086 if test -f "$additional_libdir/lib$name.$libext"; then
10087 found_dir
="$additional_libdir"
10088 found_a
="$additional_libdir/lib$name.$libext"
10089 if test -f "$additional_libdir/lib$name.la"; then
10090 found_la
="$additional_libdir/lib$name.la"
10095 if test "X$found_dir" = "X"; then
10096 for x
in $LDFLAGS $LTLIBICONV; do
10098 acl_save_prefix
="$prefix"
10099 prefix
="$acl_final_prefix"
10100 acl_save_exec_prefix
="$exec_prefix"
10101 exec_prefix
="$acl_final_exec_prefix"
10103 exec_prefix
="$acl_save_exec_prefix"
10104 prefix
="$acl_save_prefix"
10108 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10109 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10111 found_so
="$dir/lib$name.$shlibext"
10112 if test -f "$dir/lib$name.la"; then
10113 found_la
="$dir/lib$name.la"
10116 if test -f "$dir/lib$name.$libext"; then
10118 found_a
="$dir/lib$name.$libext"
10119 if test -f "$dir/lib$name.la"; then
10120 found_la
="$dir/lib$name.la"
10126 if test "X$found_dir" != "X"; then
10131 if test "X$found_dir" != "X"; then
10132 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10133 if test "X$found_so" != "X"; then
10134 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10135 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10138 for x
in $ltrpathdirs; do
10139 if test "X$x" = "X$found_dir"; then
10144 if test -z "$haveit"; then
10145 ltrpathdirs
="$ltrpathdirs $found_dir"
10147 if test "$hardcode_direct" = yes; then
10148 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10150 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10151 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10153 for x
in $rpathdirs; do
10154 if test "X$x" = "X$found_dir"; then
10159 if test -z "$haveit"; then
10160 rpathdirs
="$rpathdirs $found_dir"
10164 for x
in $LDFLAGS $LIBICONV; do
10166 acl_save_prefix
="$prefix"
10167 prefix
="$acl_final_prefix"
10168 acl_save_exec_prefix
="$exec_prefix"
10169 exec_prefix
="$acl_final_exec_prefix"
10171 exec_prefix
="$acl_save_exec_prefix"
10172 prefix
="$acl_save_prefix"
10174 if test "X$x" = "X-L$found_dir"; then
10179 if test -z "$haveit"; then
10180 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10182 if test "$hardcode_minus_L" != no
; then
10183 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10185 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10191 if test "X$found_a" != "X"; then
10192 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10194 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10197 additional_includedir
=
10198 case "$found_dir" in
10200 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10201 additional_includedir
="$basedir/include"
10204 if test "X$additional_includedir" != "X"; then
10205 if test "X$additional_includedir" != "X/usr/include"; then
10207 if test "X$additional_includedir" = "X/usr/local/include"; then
10208 if test -n "$GCC"; then
10210 linux
*) haveit
=yes;;
10214 if test -z "$haveit"; then
10215 for x
in $CPPFLAGS $INCICONV; do
10217 acl_save_prefix
="$prefix"
10218 prefix
="$acl_final_prefix"
10219 acl_save_exec_prefix
="$exec_prefix"
10220 exec_prefix
="$acl_final_exec_prefix"
10222 exec_prefix
="$acl_save_exec_prefix"
10223 prefix
="$acl_save_prefix"
10225 if test "X$x" = "X-I$additional_includedir"; then
10230 if test -z "$haveit"; then
10231 if test -d "$additional_includedir"; then
10232 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10238 if test -n "$found_la"; then
10239 save_libdir
="$libdir"
10240 case "$found_la" in
10241 */* |
*\\*) .
"$found_la" ;;
10242 *) .
"./$found_la" ;;
10244 libdir
="$save_libdir"
10245 for dep
in $dependency_libs; do
10248 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10249 if test "X$additional_libdir" != "X/usr/lib"; then
10251 if test "X$additional_libdir" = "X/usr/local/lib"; then
10252 if test -n "$GCC"; then
10254 linux
*) haveit
=yes;;
10258 if test -z "$haveit"; then
10260 for x
in $LDFLAGS $LIBICONV; do
10262 acl_save_prefix
="$prefix"
10263 prefix
="$acl_final_prefix"
10264 acl_save_exec_prefix
="$exec_prefix"
10265 exec_prefix
="$acl_final_exec_prefix"
10267 exec_prefix
="$acl_save_exec_prefix"
10268 prefix
="$acl_save_prefix"
10270 if test "X$x" = "X-L$additional_libdir"; then
10275 if test -z "$haveit"; then
10276 if test -d "$additional_libdir"; then
10277 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10281 for x
in $LDFLAGS $LTLIBICONV; do
10283 acl_save_prefix
="$prefix"
10284 prefix
="$acl_final_prefix"
10285 acl_save_exec_prefix
="$exec_prefix"
10286 exec_prefix
="$acl_final_exec_prefix"
10288 exec_prefix
="$acl_save_exec_prefix"
10289 prefix
="$acl_save_prefix"
10291 if test "X$x" = "X-L$additional_libdir"; then
10296 if test -z "$haveit"; then
10297 if test -d "$additional_libdir"; then
10298 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10305 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10306 if test "$enable_rpath" != no
; then
10308 for x
in $rpathdirs; do
10309 if test "X$x" = "X$dir"; then
10314 if test -z "$haveit"; then
10315 rpathdirs
="$rpathdirs $dir"
10318 for x
in $ltrpathdirs; do
10319 if test "X$x" = "X$dir"; then
10324 if test -z "$haveit"; then
10325 ltrpathdirs
="$ltrpathdirs $dir"
10330 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10333 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10336 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10337 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10343 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10344 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10350 if test "X$rpathdirs" != "X"; then
10351 if test -n "$hardcode_libdir_separator"; then
10353 for found_dir
in $rpathdirs; do
10354 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10356 acl_save_libdir
="$libdir"
10358 eval flag
=\"$hardcode_libdir_flag_spec\"
10359 libdir
="$acl_save_libdir"
10360 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10362 for found_dir
in $rpathdirs; do
10363 acl_save_libdir
="$libdir"
10364 libdir
="$found_dir"
10365 eval flag
=\"$hardcode_libdir_flag_spec\"
10366 libdir
="$acl_save_libdir"
10367 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10371 if test "X$ltrpathdirs" != "X"; then
10372 for found_dir
in $ltrpathdirs; do
10373 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10383 am_save_CPPFLAGS
="$CPPFLAGS"
10385 for element
in $INCICONV; do
10387 for x
in $CPPFLAGS; do
10389 acl_save_prefix
="$prefix"
10390 prefix
="$acl_final_prefix"
10391 acl_save_exec_prefix
="$exec_prefix"
10392 exec_prefix
="$acl_final_exec_prefix"
10394 exec_prefix
="$acl_save_exec_prefix"
10395 prefix
="$acl_save_prefix"
10397 if test "X$x" = "X$element"; then
10402 if test -z "$haveit"; then
10403 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10409 $as_echo_n "checking for iconv... " >&6; }
10410 if test "${am_cv_func_iconv+set}" = set; then :
10411 $as_echo_n "(cached) " >&6
10414 am_cv_func_iconv
="no, consider installing GNU libiconv"
10416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10418 #include <stdlib.h>
10423 iconv_t cd = iconv_open("","");
10424 iconv(cd,NULL,NULL,NULL,NULL);
10430 if ac_fn_cxx_try_link
"$LINENO"; then :
10431 am_cv_func_iconv
=yes
10433 rm -f core conftest.err conftest.
$ac_objext \
10434 conftest
$ac_exeext conftest.
$ac_ext
10435 if test "$am_cv_func_iconv" != yes; then
10436 am_save_LIBS
="$LIBS"
10437 LIBS
="$LIBS $LIBICONV"
10438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10439 /* end confdefs.h. */
10440 #include <stdlib.h>
10445 iconv_t cd = iconv_open("","");
10446 iconv(cd,NULL,NULL,NULL,NULL);
10452 if ac_fn_cxx_try_link
"$LINENO"; then :
10453 am_cv_lib_iconv
=yes
10454 am_cv_func_iconv
=yes
10456 rm -f core conftest.err conftest.
$ac_objext \
10457 conftest
$ac_exeext conftest.
$ac_ext
10458 LIBS
="$am_save_LIBS"
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10463 $as_echo "$am_cv_func_iconv" >&6; }
10464 if test "$am_cv_func_iconv" = yes; then
10466 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10469 if test "$am_cv_lib_iconv" = yes; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10471 $as_echo_n "checking how to link with libiconv... " >&6; }
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10473 $as_echo "$LIBICONV" >&6; }
10475 CPPFLAGS
="$am_save_CPPFLAGS"
10482 if test "$am_cv_func_iconv" = yes; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10484 $as_echo_n "checking for iconv declaration... " >&6; }
10485 if test "${am_cv_proto_iconv+set}" = set; then :
10486 $as_echo_n "(cached) " >&6
10489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h. */
10492 #include <stdlib.h>
10498 #if defined(__STDC__) || defined(__cplusplus)
10499 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10512 if ac_fn_cxx_try_compile
"$LINENO"; then :
10513 am_cv_proto_iconv_arg1
=""
10515 am_cv_proto_iconv_arg1
="const"
10517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10518 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);"
10521 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10523 }$am_cv_proto_iconv" >&5
10525 }$am_cv_proto_iconv" >&6; }
10527 cat >>confdefs.h
<<_ACEOF
10528 #define ICONV_CONST $am_cv_proto_iconv_arg1
10534 ac_cpp
='$CPP $CPPFLAGS'
10535 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10536 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10537 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10540 # Until we have in-tree GNU iconv:
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10546 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10547 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10548 $as_echo_n "(cached) " >&6
10550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10551 /* end confdefs.h. */
10552 #include <locale.h>
10561 if ac_fn_c_try_link
"$LINENO"; then :
10562 am_cv_val_LC_MESSAGES
=yes
10564 am_cv_val_LC_MESSAGES
=no
10566 rm -f core conftest.err conftest.
$ac_objext \
10567 conftest
$ac_exeext conftest.
$ac_ext
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10570 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10571 if test $am_cv_val_LC_MESSAGES = yes; then
10573 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10580 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10581 if test "${am_cv_langinfo_codeset+set}" = set; then :
10582 $as_echo_n "(cached) " >&6
10584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10585 /* end confdefs.h. */
10586 #include <langinfo.h>
10590 char* cs = nl_langinfo(CODESET);
10595 if ac_fn_c_try_link
"$LINENO"; then :
10596 am_cv_langinfo_codeset
=yes
10598 am_cv_langinfo_codeset
=no
10600 rm -f core conftest.err conftest.
$ac_objext \
10601 conftest
$ac_exeext conftest.
$ac_ext
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10605 $as_echo "$am_cv_langinfo_codeset" >&6; }
10606 if test $am_cv_langinfo_codeset = yes; then
10608 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10613 # We will need to find libiberty.h and ansidecl.h
10614 saved_CFLAGS
="$CFLAGS"
10615 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10616 saved_CXXFLAGS
="$CXXFLAGS"
10617 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10618 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10619 strsignal strstr stpcpy strverscmp \
10620 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10621 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
10623 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10625 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10626 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10627 $as_echo_n "(cached) " >&6
10629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10632 #define $ac_tr_decl 1
10634 #include "ansidecl.h"
10635 #include "system.h"
10641 char *(*pfn) = (char *(*)) $ac_func ;
10647 if ac_fn_c_try_compile
"$LINENO"; then :
10648 eval "gcc_cv_have_decl_$ac_func=yes"
10650 eval "gcc_cv_have_decl_$ac_func=no"
10652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10655 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10657 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10658 #define $ac_tr_decl 1
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10663 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10664 #define $ac_tr_decl 0
10672 for ac_func
in getrlimit setrlimit getrusage
10674 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10676 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10677 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10678 $as_echo_n "(cached) " >&6
10680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10681 /* end confdefs.h. */
10683 #define $ac_tr_decl 1
10685 #include "ansidecl.h"
10686 #include "system.h"
10687 #ifdef HAVE_SYS_RESOURCE_H
10688 #include <sys/resource.h>
10696 char *(*pfn) = (char *(*)) $ac_func ;
10702 if ac_fn_c_try_compile
"$LINENO"; then :
10703 eval "gcc_cv_have_decl_$ac_func=yes"
10705 eval "gcc_cv_have_decl_$ac_func=no"
10707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10710 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10712 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10713 #define $ac_tr_decl 1
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10718 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10719 #define $ac_tr_decl 0
10727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10730 #include "ansidecl.h"
10731 #include "system.h"
10732 #ifdef HAVE_SYS_RESOURCE_H
10733 #include <sys/resource.h>
10744 if ac_fn_c_try_compile
"$LINENO"; then :
10748 $as_echo "#define rlim_t long" >>confdefs.h
10751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10753 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10754 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10755 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10756 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10757 for ac_func
in ldgetname
10759 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10761 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10762 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10763 $as_echo_n "(cached) " >&6
10765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10766 /* end confdefs.h. */
10768 #define $ac_tr_decl 1
10770 #include "ansidecl.h"
10771 #include "system.h"
10772 #ifdef HAVE_LDFCN_H
10783 char *(*pfn) = (char *(*)) $ac_func ;
10789 if ac_fn_c_try_compile
"$LINENO"; then :
10790 eval "gcc_cv_have_decl_$ac_func=yes"
10792 eval "gcc_cv_have_decl_$ac_func=no"
10794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10797 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10799 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10800 #define $ac_tr_decl 1
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10805 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10806 #define $ac_tr_decl 0
10814 for ac_func
in times
10816 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10818 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10819 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10820 $as_echo_n "(cached) " >&6
10822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10825 #define $ac_tr_decl 1
10827 #include "ansidecl.h"
10828 #include "system.h"
10829 #ifdef HAVE_SYS_TIMES_H
10830 #include <sys/times.h>
10838 char *(*pfn) = (char *(*)) $ac_func ;
10844 if ac_fn_c_try_compile
"$LINENO"; then :
10845 eval "gcc_cv_have_decl_$ac_func=yes"
10847 eval "gcc_cv_have_decl_$ac_func=no"
10849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10852 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10854 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10855 #define $ac_tr_decl 1
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10861 #define $ac_tr_decl 0
10869 for ac_func
in sigaltstack
10871 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10873 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10874 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10875 $as_echo_n "(cached) " >&6
10877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10878 /* end confdefs.h. */
10880 #define $ac_tr_decl 1
10882 #include "ansidecl.h"
10883 #include "system.h"
10884 #include <signal.h>
10891 char *(*pfn) = (char *(*)) $ac_func ;
10897 if ac_fn_c_try_compile
"$LINENO"; then :
10898 eval "gcc_cv_have_decl_$ac_func=yes"
10900 eval "gcc_cv_have_decl_$ac_func=no"
10902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10905 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10907 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10908 #define $ac_tr_decl 1
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10913 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10914 #define $ac_tr_decl 0
10922 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10925 ac_cpp
='$CXXCPP $CPPFLAGS'
10926 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10927 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10928 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10930 for ac_func
in madvise
10932 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10934 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10935 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10936 $as_echo_n "(cached) " >&6
10938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h. */
10941 #define $ac_tr_decl 1
10943 #include "ansidecl.h"
10944 #include "system.h"
10951 char *(*pfn) = (char *(*)) $ac_func ;
10957 if ac_fn_cxx_try_compile
"$LINENO"; then :
10958 eval "gcc_cv_have_decl_$ac_func=yes"
10960 eval "gcc_cv_have_decl_$ac_func=no"
10962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10965 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10967 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10968 #define $ac_tr_decl 1
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10974 #define $ac_tr_decl 0
10982 ac_cpp
='$CPP $CPPFLAGS'
10983 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10984 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10985 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10988 # More time-related stuff.
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10990 $as_echo_n "checking for struct tms... " >&6; }
10991 if test "${ac_cv_struct_tms+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
10995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10998 #include "ansidecl.h"
10999 #include "system.h"
11000 #ifdef HAVE_SYS_TIMES_H
11001 #include <sys/times.h>
11012 if ac_fn_c_try_compile
"$LINENO"; then :
11013 ac_cv_struct_tms
=yes
11015 ac_cv_struct_tms
=no
11017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11020 $as_echo "$ac_cv_struct_tms" >&6; }
11021 if test $ac_cv_struct_tms = yes; then
11023 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11027 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11028 # revisit after autoconf 2.50.
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11030 $as_echo_n "checking for clock_t... " >&6; }
11031 if test "${gcc_cv_type_clock_t+set}" = set; then :
11032 $as_echo_n "(cached) " >&6
11035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11038 #include "ansidecl.h"
11039 #include "system.h"
11049 if ac_fn_c_try_compile
"$LINENO"; then :
11050 gcc_cv_type_clock_t
=yes
11052 gcc_cv_type_clock_t
=no
11054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11057 $as_echo "$gcc_cv_type_clock_t" >&6; }
11058 if test $gcc_cv_type_clock_t = yes; then
11060 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11064 # Check if F_SETLKW is supported by fcntl.
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11066 $as_echo_n "checking for F_SETLKW... " >&6; }
11067 if test "${ac_cv_f_setlkw+set}" = set; then :
11068 $as_echo_n "(cached) " >&6
11071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11072 /* end confdefs.h. */
11084 return fcntl (1, F_SETLKW, &fl);
11089 if ac_fn_c_try_compile
"$LINENO"; then :
11094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11097 $as_echo "$ac_cv_f_setlkw" >&6; }
11098 if test $ac_cv_f_setlkw = yes; then
11100 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11104 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11105 CFLAGS
="$saved_CFLAGS"
11106 CXXFLAGS
="$saved_CXXFLAGS"
11108 # mkdir takes a single argument on some systems.
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11110 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11111 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11112 $as_echo_n "(cached) " >&6
11114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11115 /* end confdefs.h. */
11117 #include <sys/types.h>
11118 #ifdef HAVE_SYS_STAT_H
11119 # include <sys/stat.h>
11121 #ifdef HAVE_UNISTD_H
11122 # include <unistd.h>
11124 #ifdef HAVE_DIRECT_H
11125 # include <direct.h>
11135 if ac_fn_c_try_compile
"$LINENO"; then :
11136 gcc_cv_mkdir_takes_one_arg
=no
11138 gcc_cv_mkdir_takes_one_arg
=yes
11140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11143 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11144 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11146 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11157 # With Setjmp/Longjmp based exception handling.
11158 # Check whether --enable-sjlj-exceptions was given.
11159 if test "${enable_sjlj_exceptions+set}" = set; then :
11160 enableval
=$enable_sjlj_exceptions; case $target in
11162 if test $enableval != yes; then
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11164 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11169 force_sjlj_exceptions
=yes
11173 force_sjlj_exceptions
=yes
11177 force_sjlj_exceptions
=no
11182 if test $force_sjlj_exceptions = yes; then
11183 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11185 cat >>confdefs.h
<<_ACEOF
11186 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11191 # --------------------------------------------------------
11192 # Build, host, and target specific configuration fragments
11193 # --------------------------------------------------------
11195 # Collect build-machine-specific information.
11196 .
${srcdir}/config.build
11198 # Collect host-machine-specific information.
11199 .
${srcdir}/config.
host
11203 # Collect target-machine-specific information.
11204 .
${srcdir}/config.gcc
11206 extra_objs
="${host_extra_objs} ${extra_objs}"
11207 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11209 # Default the target-machine variables that were not explicitly set.
11210 if test x
"$tm_file" = x
11211 then tm_file
=$cpu_type/$cpu_type.h
; fi
11213 if test x
"$extra_headers" = x
11214 then extra_headers
=; fi
11216 if test x
$md_file = x
11217 then md_file
=$cpu_type/$cpu_type.md
; fi
11219 if test x
$out_file = x
11220 then out_file
=$cpu_type/$cpu_type.c
; fi
11222 if test x
"$tmake_file" = x
11223 then tmake_file
=$cpu_type/t-
$cpu_type
11226 # Support --enable-initfini-array.
11227 if test x
$enable_initfini_array != xno
; then
11228 tm_file
="${tm_file} initfini-array.h"
11231 if test x
"$dwarf2" = xyes
11232 then tm_file
="$tm_file tm-dwarf2.h"
11235 # Say what files are being used for the output code and MD file.
11236 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11237 echo "Using \`$srcdir/config/$md_file' as machine description file."
11239 # If any of the xm_file variables contain nonexistent files, warn
11240 # about them and drop them.
11243 for x
in $build_xm_file; do
11244 if test -f $srcdir/config
/$x
11246 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11247 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11250 build_xm_file
="$bx"
11253 for x
in $host_xm_file; do
11254 if test -f $srcdir/config
/$x
11256 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11257 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11263 for x
in $xm_file; do
11264 if test -f $srcdir/config
/$x
11266 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11267 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11273 for f
in $tm_file; do
11276 if test $count = ax
; then
11277 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11279 echo "Using the following target machine macro files:"
11280 for f
in $tm_file; do
11281 echo " $srcdir/config/$f"
11285 if test x
$need_64bit_hwint = xyes
; then
11287 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11291 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11293 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11297 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11299 cat >>confdefs.h
<<_ACEOF
11300 #define HAVE_GNU_LD $gnu_ld_bool
11304 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11306 cat >>confdefs.h
<<_ACEOF
11307 #define HAVE_GNU_AS $gnu_as_bool
11312 for f
in $host_xm_file; do
11315 if test $count = a
; then
11317 elif test $count = ax
; then
11318 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11320 echo "Using the following host machine macro files:"
11321 for f
in $host_xm_file; do
11322 echo " $srcdir/config/$f"
11325 echo "Using ${out_host_hook_obj} for host machine hooks."
11327 if test "$host_xm_file" != "$build_xm_file"; then
11329 for f
in $build_xm_file; do
11332 if test $count = a
; then
11334 elif test $count = ax
; then
11335 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11337 echo "Using the following build machine macro files:"
11338 for f
in $build_xm_file; do
11339 echo " $srcdir/config/$f"
11344 if test -n "$configured_native_system_header_dir"; then
11345 native_system_header_dir
=$configured_native_system_header_dir
11347 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11351 powerpc
*-*-darwin*)
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11353 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11354 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11355 $as_echo_n "(cached) " >&6
11357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11358 /* end confdefs.h. */
11360 #include <sys/cdefs.h>
11361 #include <sys/signal.h>
11362 #include <ucontext.h>
11363 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11366 if ac_fn_c_try_compile
"$LINENO"; then :
11367 gcc_cv_mcontext_underscores
=no
11369 gcc_cv_mcontext_underscores
=yes
11371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11374 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11375 if test $gcc_cv_mcontext_underscores = yes; then
11377 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11387 # Check if a valid thread package
11388 case ${enable_threads} in
11391 target_thread_file
='single'
11395 target_thread_file
='single'
11397 aix | dce | lynx | mipssde | posix | rtems | \
11398 single | tpf | vxworks | win32
)
11399 target_thread_file
=${enable_threads}
11402 echo "${enable_threads} is an unknown thread package" 1>&2
11407 if test x
${thread_file} = x
; then
11408 # No thread file set by target-specific clauses in config.gcc,
11409 # so use file chosen by default logic above
11410 thread_file
=${target_thread_file}
11418 if test x
$enable___cxa_atexit = xyes || \
11419 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11420 if test x
$host = x
$target; then
11422 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11423 # keyed to flag_use_cxa_atexit
11431 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11432 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11435 echo "__cxa_atexit can't be enabled on this target"
11441 # We can't check for __cxa_atexit when building a cross, so assume
11445 if test x
$use_cxa_atexit = xyes
; then
11447 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11452 # Look for a file containing extra machine modes.
11453 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11454 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11457 cat >>confdefs.h
<<_ACEOF
11458 #define EXTRA_MODES_FILE "config/$extra_modes"
11463 # Convert extra_options into a form suitable for Makefile use.
11466 for f
in $extra_options; do
11467 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11468 all_opt_files
="$all_opt_files $srcdir/config/$f"
11472 # auto-host.h is the file containing items generated by autoconf and is
11473 # the first file included by config.h.
11474 # If host=build, it is correct to have bconfig include auto-host.h
11475 # as well. If host!=build, we are in error and need to do more
11476 # work to find out the build config parameters.
11477 if test x
$host = x
$build
11479 build_auto
=auto-host.h
11481 # We create a subdir, then run autoconf in the subdir.
11482 # To prevent recursion we set host and build for the new
11483 # invocation of configure to the build for this invocation
11490 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11491 *) realsrcdir
=..
/${srcdir};;
11493 # Clearing GMPINC is necessary to prevent host headers being
11494 # used by the build compiler. Defining GENERATOR_FILE stops
11495 # system.h from including gmp.h.
11496 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11497 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11498 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11499 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11500 ${realsrcdir}/configure \
11501 --enable-languages=${enable_languages-all} \
11502 --target=$target_alias --host=$build_alias --build=$build_alias
11504 # We just finished tests for the build machine, so rename
11505 # the file auto-build.h in the gcc directory.
11506 mv auto-host.h ..
/auto-build.h
11509 build_auto
=auto-build.h
11513 tm_file
="${tm_file} defaults.h"
11514 tm_p_file
="${tm_p_file} tm-preds.h"
11515 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11516 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11517 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11518 # put this back in temporarily.
11519 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11525 # Compile in configure arguments.
11526 if test -f configargs.h
; then
11527 # Being re-configured.
11528 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11529 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11531 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11534 # Double all backslashes and backslash all quotes to turn
11535 # gcc_config_arguments into a C string.
11536 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11537 $gcc_config_arguments
11539 gcc_config_arguments_str
=`cat conftest.out`
11542 cat > configargs.h
<<EOF
11543 /* Generated automatically. */
11544 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11545 static const char thread_model[] = "$thread_file";
11547 static const struct {
11548 const char *name, *value;
11549 } configure_default_options[] = $configure_default_options;
11552 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11553 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11554 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11555 if test -f $srcdir/REVISION
; then
11556 gcc_REVISION
=`cat $srcdir/REVISION`
11560 cat > plugin-version.h
<<EOF
11561 #include "configargs.h"
11563 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11564 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11565 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11566 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11568 static char basever[] = "$gcc_BASEVER";
11569 static char datestamp[] = "$gcc_DATESTAMP";
11570 static char devphase[] = "$gcc_DEVPHASE";
11571 static char revision[] = "$gcc_REVISION";
11573 /* FIXME plugins: We should make the version information more precise.
11574 One way to do is to add a checksum. */
11576 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11577 devphase, revision,
11578 configuration_arguments};
11581 # Internationalization
11582 # If we haven't got the data from the intl directory,
11583 # assume NLS is disabled.
11592 if test -f ..
/intl
/config.intl
; then
11593 . ..
/intl
/config.intl
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11596 $as_echo_n "checking whether NLS is requested... " >&6; }
11597 if test x
"$USE_NLS" != xyes
; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599 $as_echo "no" >&6; }
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11602 $as_echo "yes" >&6; }
11604 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11608 $as_echo_n "checking for catalogs to be installed... " >&6; }
11609 # Look for .po and .gmo files in the source directory.
11612 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11613 # If there aren't any .gmo files the shell will give us the
11614 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11616 case "$cat" in *\
**)
11619 # The quadruple backslash is collapsed to a double backslash
11620 # by the backticks, then collapsed again by the double quotes,
11621 # leaving us with one backslash in the sed expression (right
11622 # before the dot that mustn't act as a wildcard).
11623 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11624 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11625 # The user is allowed to set LINGUAS to a list of languages to
11626 # install catalogs for. If it's empty that means "all of them."
11627 if test "x$LINGUAS" = x
; then
11628 CATALOGS
="$CATALOGS $cat"
11629 XLINGUAS
="$XLINGUAS $lang"
11631 case "$LINGUAS" in *$lang*)
11632 CATALOGS
="$CATALOGS $cat"
11633 XLINGUAS
="$XLINGUAS $lang"
11638 LINGUAS
="$XLINGUAS"
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11640 $as_echo "$LINGUAS" >&6; }
11653 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11654 # -liconv on the link line twice.
11655 case "$LIBINTL" in *$LIBICONV*)
11659 # Check whether --enable-secureplt was given.
11660 if test "${enable_secureplt+set}" = set; then :
11661 enableval
=$enable_secureplt;
11665 # Check whether --enable-leading-mingw64-underscores was given.
11666 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11667 enableval
=$enable_leading_mingw64_underscores;
11670 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11672 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11676 # Check whether --enable-cld was given.
11677 if test "${enable_cld+set}" = set; then :
11678 enableval
=$enable_cld;
11684 # Check whether --enable-frame-pointer was given.
11685 if test "${enable_frame_pointer+set}" = set; then :
11686 enableval
=$enable_frame_pointer;
11690 linux
* | darwin
[8912]*)
11691 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11693 enable_frame_pointer
=no
11696 enable_frame_pointer
=yes
11703 # Windows32 Registry support for specifying GCC installation paths.
11704 # Check whether --enable-win32-registry was given.
11705 if test "${enable_win32_registry+set}" = set; then :
11706 enableval
=$enable_win32_registry;
11711 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11712 if test "x$enable_win32_registry" != xno
; then
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11714 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11715 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11716 $as_echo_n "(cached) " >&6
11718 ac_func_search_save_LIBS
=$LIBS
11719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11722 /* Override any GCC internal prototype to avoid an error.
11723 Use char because int might match the return type of a GCC
11724 builtin and then its argument prototype would still apply. */
11728 char RegOpenKeyExA ();
11732 return RegOpenKeyExA ();
11737 for ac_lib
in '' advapi32
; do
11738 if test -z "$ac_lib"; then
11739 ac_res
="none required"
11742 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11744 if ac_fn_c_try_link
"$LINENO"; then :
11745 ac_cv_search_RegOpenKeyExA
=$ac_res
11747 rm -f core conftest.err conftest.
$ac_objext \
11749 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11753 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11756 ac_cv_search_RegOpenKeyExA
=no
11758 rm conftest.
$ac_ext
11759 LIBS
=$ac_func_search_save_LIBS
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11762 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11763 ac_res
=$ac_cv_search_RegOpenKeyExA
11764 if test "$ac_res" != no
; then :
11765 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11768 enable_win32_registry
=no
11773 if test "x$enable_win32_registry" != xno
; then
11775 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11778 if test "x$enable_win32_registry" != xyes \
11779 && test "x$enable_win32_registry" != x
; then
11781 cat >>confdefs.h
<<_ACEOF
11782 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11790 # Get an absolute path to the GCC top-level source directory
11791 holddir
=`${PWDCMD-pwd}`
11793 topdir
=`${PWDCMD-pwd}`
11796 # Conditionalize the makefile for this host machine.
11798 for f
in ${host_xmake_file}
11800 if test -f ${srcdir}/config
/$f
11802 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11806 # Conditionalize the makefile for this target machine.
11808 for f
in ${tmake_file}
11810 if test -f ${srcdir}/config
/$f
11812 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11815 tmake_file
="${tmake_file_}"
11817 out_object_file
=`basename $out_file .c`.o
11818 common_out_object_file
=`basename $common_out_file .c`.o
11820 tm_file_list
="options.h"
11821 tm_include_list
="options.h insn-constants.h"
11822 for f
in $tm_file; do
11825 f
=`echo $f | sed 's/^..//'`
11826 tm_file_list
="${tm_file_list} $f"
11827 tm_include_list
="${tm_include_list} $f"
11830 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11831 tm_include_list
="${tm_include_list} $f"
11834 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11835 tm_include_list
="${tm_include_list} config/$f"
11842 for f
in $tm_p_file; do
11845 tm_p_file_list
="${tm_p_file_list} $f"
11846 tm_p_include_list
="${tm_p_include_list} $f"
11849 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11850 tm_p_include_list
="${tm_p_include_list} config/$f"
11856 for f
in $xm_file; do
11859 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11860 xm_include_list
="${xm_include_list} $f"
11863 xm_file_list
="${xm_file_list} $f"
11864 xm_include_list
="${xm_include_list} $f"
11867 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11868 xm_include_list
="${xm_include_list} config/$f"
11874 host_xm_include_list
=
11875 for f
in $host_xm_file; do
11878 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11879 host_xm_include_list
="${host_xm_include_list} $f"
11882 host_xm_file_list
="${host_xm_file_list} $f"
11883 host_xm_include_list
="${host_xm_include_list} $f"
11886 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11887 host_xm_include_list
="${host_xm_include_list} config/$f"
11892 build_xm_file_list
=
11893 for f
in $build_xm_file; do
11896 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11897 build_xm_include_list
="${build_xm_include_list} $f"
11899 auto-build.h | auto-host.h
)
11900 build_xm_file_list
="${build_xm_file_list} $f"
11901 build_xm_include_list
="${build_xm_include_list} $f"
11904 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11905 build_xm_include_list
="${build_xm_include_list} config/$f"
11910 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11911 # cross-compiler which does not use the native headers and libraries.
11912 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11915 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11917 if test "x$with_build_sysroot" != x
; then
11918 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11920 # This value is used, even on a native system, because
11921 # CROSS_SYSTEM_HEADER_DIR is just
11922 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11923 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11926 if test x
$host != x
$target
11928 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11930 SYSTEM_HEADER_DIR
=$build_system_header_dir
11931 case "$host","$target" in
11932 # Darwin crosses can use the host system's libraries and headers,
11933 # because of the fat library support. Of course, it must be the
11934 # same version of Darwin on both sides. Allow the user to
11935 # just say --target=foo-darwin without a version number to mean
11936 # "the version on this system".
11937 *-*-darwin*,*-*-darwin*)
11938 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11939 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11940 if test $hostos = $targetos -o $targetos = darwin
; then
11942 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11947 i?
86-*-*,x86_64-
*-* \
11948 | powerpc
*-*-*,powerpc64
*-*-*)
11949 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11954 if test "x$with_headers" = x
; then
11961 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11962 SYSTEM_HEADER_DIR
=$build_system_header_dir
11965 # If this is a cross-compiler that does not
11966 # have its own set of headers then define
11969 # If this is using newlib, without having the headers available now,
11970 # then define inhibit_libc in LIBGCC2_CFLAGS.
11971 # This prevents libgcc2 from containing any code which requires libc
11973 : ${inhibit_libc=false}
11974 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11975 test x
$with_newlib = xyes
; } &&
11976 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11981 # When building gcc with a cross-compiler, we need to adjust things so
11982 # that the generator programs are still built with the native compiler.
11983 # Also, we cannot run fixincludes.
11985 # These are the normal (build=host) settings:
11986 CC_FOR_BUILD
='$(CC)'
11987 CXX_FOR_BUILD
='$(CXX)'
11988 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11989 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11990 BUILD_LDFLAGS
='$(LDFLAGS)'
11991 STMP_FIXINC
=stmp-fixinc
11993 # And these apply if build != host, or we are generating coverage data
11994 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11996 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11997 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11998 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12001 # Expand extra_headers to include complete path.
12002 # This substitutes for lots of t-* files.
12003 extra_headers_list
=
12004 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12005 for file in ${extra_headers} ; do
12006 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12009 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12010 if test x
"$use_gcc_tgmath" = xyes
12011 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12014 # Define collect2 in Makefile.
12015 case $host_can_use_collect2 in
12017 *) collect2
='collect2$(exeext)' ;;
12021 # Add a definition of USE_COLLECT2 if system wants one.
12022 case $use_collect2 in
12023 no
) use_collect2
= ;;
12026 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12027 xm_defines
="${xm_defines} USE_COLLECT2"
12028 case $host_can_use_collect2 in
12030 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12037 cat >>confdefs.h
<<_ACEOF
12038 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12042 # ---------------------------
12043 # Assembler & linker features
12044 # ---------------------------
12046 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12047 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12048 # However when ld-new is first executed from the build tree, libtool will
12049 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12050 # to the build tree. While doing this we need to use the previous-stage
12051 # linker, or we have an infinite loop. The presence of a shell script as
12052 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12053 # the gcc/collect-ld script. So we need to know how libtool works, or
12054 # exec-tool will fail.
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12060 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12065 macro_version
='2.2.7a'
12066 macro_revision
='1.3134'
12080 ltmain
="$ac_aux_dir/ltmain.sh"
12082 # Backslashify metacharacters that are still active within
12083 # double-quoted strings.
12084 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12086 # Same as above, but do not quote variable references.
12087 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12089 # Sed substitution to delay expansion of an escaped shell variable in a
12090 # double_quote_subst'ed string.
12091 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12093 # Sed substitution to delay expansion of an escaped single quote.
12094 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12096 # Sed substitution to avoid accidental globbing in evaled expressions
12097 no_glob_subst
='s/\*/\\\*/g'
12099 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12100 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12101 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12104 $as_echo_n "checking how to print strings... " >&6; }
12105 # Test print first, because it will be a builtin if present.
12106 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12107 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12109 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12112 # Use this function as a fallback that always works.
12113 func_fallback_echo ()
12115 eval 'cat <<_LTECHO_EOF
12119 ECHO='func_fallback_echo
'
12122 # func_echo_all arg...
12123 # Invoke $ECHO with all args, space-separated.
12130 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12131 $as_echo "printf" >&6; } ;;
12132 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12133 $as_echo "print -r" >&6; } ;;
12134 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12135 $as_echo "cat" >&6; } ;;
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12152 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12153 if test "${ac_cv_path_SED+set}" = set; then :
12154 $as_echo_n "(cached) " >&6
12156 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12157 for ac_i in 1 2 3 4 5 6 7; do
12158 ac_script="$ac_script$as_nl$ac_script"
12160 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12161 { ac_script=; unset ac_script;}
12162 if test -z "$SED"; then
12163 ac_path_SED_found=false
12164 # Loop through the user's path and
test for each of PROGNAME-LIST
12165 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12166 for as_dir
in $PATH
12169 test -z "$as_dir" && as_dir
=.
12170 for ac_prog
in sed gsed
; do
12171 for ac_exec_ext
in '' $ac_executable_extensions; do
12172 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12173 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12174 # Check for GNU ac_path_SED and select it if it is found.
12175 # Check for GNU $ac_path_SED
12176 case `"$ac_path_SED" --version 2>&1` in
12178 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12181 $as_echo_n 0123456789 >"conftest.in"
12184 cat "conftest.in" "conftest.in" >"conftest.tmp"
12185 mv "conftest.tmp" "conftest.in"
12186 cp "conftest.in" "conftest.nl"
12187 $as_echo '' >> "conftest.nl"
12188 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12189 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12190 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12191 if test $ac_count -gt ${ac_path_SED_max-0}; then
12192 # Best one so far, save it but keep looking for a better one
12193 ac_cv_path_SED
="$ac_path_SED"
12194 ac_path_SED_max
=$ac_count
12196 # 10*(2^10) chars as input seems more than enough
12197 test $ac_count -gt 10 && break
12199 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12202 $ac_path_SED_found && break 3
12207 if test -z "$ac_cv_path_SED"; then
12208 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12211 ac_cv_path_SED
=$SED
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12216 $as_echo "$ac_cv_path_SED" >&6; }
12217 SED
="$ac_cv_path_SED"
12220 test -z "$SED" && SED
=sed
12221 Xsed
="$SED -e 1s/^X//"
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12234 $as_echo_n "checking for fgrep... " >&6; }
12235 if test "${ac_cv_path_FGREP+set}" = set; then :
12236 $as_echo_n "(cached) " >&6
12238 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12239 then ac_cv_path_FGREP
="$GREP -F"
12241 if test -z "$FGREP"; then
12242 ac_path_FGREP_found
=false
12243 # Loop through the user's path and test for each of PROGNAME-LIST
12244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12245 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12248 test -z "$as_dir" && as_dir
=.
12249 for ac_prog
in fgrep
; do
12250 for ac_exec_ext
in '' $ac_executable_extensions; do
12251 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12252 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12253 # Check for GNU ac_path_FGREP and select it if it is found.
12254 # Check for GNU $ac_path_FGREP
12255 case `"$ac_path_FGREP" --version 2>&1` in
12257 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12260 $as_echo_n 0123456789 >"conftest.in"
12263 cat "conftest.in" "conftest.in" >"conftest.tmp"
12264 mv "conftest.tmp" "conftest.in"
12265 cp "conftest.in" "conftest.nl"
12266 $as_echo 'FGREP' >> "conftest.nl"
12267 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12268 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12269 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12270 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12271 # Best one so far, save it but keep looking for a better one
12272 ac_cv_path_FGREP
="$ac_path_FGREP"
12273 ac_path_FGREP_max
=$ac_count
12275 # 10*(2^10) chars as input seems more than enough
12276 test $ac_count -gt 10 && break
12278 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12281 $ac_path_FGREP_found && break 3
12286 if test -z "$ac_cv_path_FGREP"; then
12287 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12290 ac_cv_path_FGREP
=$FGREP
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12296 $as_echo "$ac_cv_path_FGREP" >&6; }
12297 FGREP
="$ac_cv_path_FGREP"
12300 test -z "$GREP" && GREP
=grep
12320 # Check whether --with-gnu-ld was given.
12321 if test "${with_gnu_ld+set}" = set; then :
12322 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12328 if test "$GCC" = yes; then
12329 # Check if gcc -print-prog-name=ld gives a path.
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12331 $as_echo_n "checking for ld used by $CC... " >&6; }
12334 # gcc leaves a trailing carriage return which upsets mingw
12335 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12337 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12340 # Accept absolute paths.
12342 re_direlt
='/[^/][^/]*/\.\./'
12343 # Canonicalize the pathname of ld
12344 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12345 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12346 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12348 test -z "$LD" && LD
="$ac_prog"
12351 # If it fails, then pretend we aren't using GCC.
12355 # If it is relative, then search for the first ld in PATH.
12356 with_gnu_ld
=unknown
12359 elif test "$with_gnu_ld" = yes; then
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12361 $as_echo_n "checking for GNU ld... " >&6; }
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12364 $as_echo_n "checking for non-GNU ld... " >&6; }
12366 if test "${lt_cv_path_LD+set}" = set; then :
12367 $as_echo_n "(cached) " >&6
12369 if test -z "$LD"; then
12370 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12371 for ac_dir
in $PATH; do
12373 test -z "$ac_dir" && ac_dir
=.
12374 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12375 lt_cv_path_LD
="$ac_dir/$ac_prog"
12376 # Check to see if the program is GNU ld. I'd rather use --version,
12377 # but apparently some variants of GNU ld only accept -v.
12378 # Break only if it was the GNU/non-GNU ld that we prefer.
12379 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12380 *GNU
* |
*'with BFD'*)
12381 test "$with_gnu_ld" != no
&& break
12384 test "$with_gnu_ld" != yes && break
12391 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12395 LD
="$lt_cv_path_LD"
12396 if test -n "$LD"; then
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12398 $as_echo "$LD" >&6; }
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12401 $as_echo "no" >&6; }
12403 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12405 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12406 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12407 $as_echo_n "(cached) " >&6
12409 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12410 case `$LD -v 2>&1 </dev/null` in
12411 *GNU
* |
*'with BFD'*)
12412 lt_cv_prog_gnu_ld
=yes
12415 lt_cv_prog_gnu_ld
=no
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12420 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12421 with_gnu_ld
=$lt_cv_prog_gnu_ld
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12432 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12433 if test "${lt_cv_path_NM+set}" = set; then :
12434 $as_echo_n "(cached) " >&6
12436 if test -n "$NM"; then
12437 # Let the user override the test.
12438 lt_cv_path_NM
="$NM"
12440 lt_nm_to_check
="${ac_tool_prefix}nm"
12441 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12442 lt_nm_to_check
="$lt_nm_to_check nm"
12444 for lt_tmp_nm
in $lt_nm_to_check; do
12445 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12446 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12448 test -z "$ac_dir" && ac_dir
=.
12449 tmp_nm
="$ac_dir/$lt_tmp_nm"
12450 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12451 # Check to see if the nm accepts a BSD-compat flag.
12452 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12453 # nm: unknown option "B" ignored
12454 # Tru64's nm complains that /dev/null is an invalid object file
12455 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12456 */dev
/null
* |
*'Invalid file or object type'*)
12457 lt_cv_path_NM
="$tmp_nm -B"
12461 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12463 lt_cv_path_NM
="$tmp_nm -p"
12467 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12468 continue # so that we can try to find one that supports BSD flags
12477 : ${lt_cv_path_NM=no}
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12481 $as_echo "$lt_cv_path_NM" >&6; }
12482 if test "$lt_cv_path_NM" != "no"; then
12483 NM
="$lt_cv_path_NM"
12485 # Didn't find any BSD compatible name lister, look for dumpbin.
12486 if test -n "$DUMPBIN"; then :
12487 # Let the user override the test.
12489 if test -n "$ac_tool_prefix"; then
12490 for ac_prog
in dumpbin
"link -dump"
12492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12493 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495 $as_echo_n "checking for $ac_word... " >&6; }
12496 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12497 $as_echo_n "(cached) " >&6
12499 if test -n "$DUMPBIN"; then
12500 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12503 for as_dir
in $PATH
12506 test -z "$as_dir" && as_dir
=.
12507 for ac_exec_ext
in '' $ac_executable_extensions; do
12508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12509 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12519 DUMPBIN
=$ac_cv_prog_DUMPBIN
12520 if test -n "$DUMPBIN"; then
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12522 $as_echo "$DUMPBIN" >&6; }
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12529 test -n "$DUMPBIN" && break
12532 if test -z "$DUMPBIN"; then
12533 ac_ct_DUMPBIN
=$DUMPBIN
12534 for ac_prog
in dumpbin
"link -dump"
12536 # Extract the first word of "$ac_prog", so it can be a program name with args.
12537 set dummy
$ac_prog; ac_word
=$2
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12539 $as_echo_n "checking for $ac_word... " >&6; }
12540 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12541 $as_echo_n "(cached) " >&6
12543 if test -n "$ac_ct_DUMPBIN"; then
12544 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12547 for as_dir
in $PATH
12550 test -z "$as_dir" && as_dir
=.
12551 for ac_exec_ext
in '' $ac_executable_extensions; do
12552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12553 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12563 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12564 if test -n "$ac_ct_DUMPBIN"; then
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12566 $as_echo "$ac_ct_DUMPBIN" >&6; }
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569 $as_echo "no" >&6; }
12573 test -n "$ac_ct_DUMPBIN" && break
12576 if test "x$ac_ct_DUMPBIN" = x
; then
12579 case $cross_compiling:$ac_tool_warned in
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12583 ac_tool_warned
=yes ;;
12585 DUMPBIN
=$ac_ct_DUMPBIN
12589 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12591 DUMPBIN
="$DUMPBIN -symbols"
12599 if test "$DUMPBIN" != ":"; then
12603 test -z "$NM" && NM
=nm
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12611 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12612 if test "${lt_cv_nm_interface+set}" = set; then :
12613 $as_echo_n "(cached) " >&6
12615 lt_cv_nm_interface
="BSD nm"
12616 echo "int some_variable = 0;" > conftest.
$ac_ext
12617 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12618 (eval "$ac_compile" 2>conftest.err
)
12619 cat conftest.err
>&5
12620 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12621 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12622 cat conftest.err
>&5
12623 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12624 cat conftest.out
>&5
12625 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12626 lt_cv_nm_interface
="MS dumpbin"
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12631 $as_echo "$lt_cv_nm_interface" >&6; }
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12634 $as_echo_n "checking whether ln -s works... " >&6; }
12636 if test "$LN_S" = "ln -s"; then
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12638 $as_echo "yes" >&6; }
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12641 $as_echo "no, using $LN_S" >&6; }
12644 # find the maximum length of command line arguments
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12646 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12647 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12648 $as_echo_n "(cached) " >&6
12655 # On DJGPP, this test can blow up pretty badly due to problems in libc
12656 # (any single argument exceeding 2000 bytes causes a buffer overrun
12657 # during glob expansion). Even if it were fixed, the result of this
12658 # check would be larger than it should be.
12659 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12663 # Under GNU Hurd, this test is not required because there is
12664 # no limit to the length of command line arguments.
12665 # Libtool will interpret -1 as no limit whatsoever
12666 lt_cv_sys_max_cmd_len
=-1;
12669 cygwin
* | mingw
* | cegcc
*)
12670 # On Win9x/ME, this test blows up -- it succeeds, but takes
12671 # about 5 minutes as the teststring grows exponentially.
12672 # Worse, since 9x/ME are not pre-emptively multitasking,
12673 # you end up with a "frozen" computer, even though with patience
12674 # the test eventually succeeds (with a max line length of 256k).
12675 # Instead, let's just punt: use the minimum linelength reported by
12676 # all of the supported platforms: 8192 (on NT/2K/XP).
12677 lt_cv_sys_max_cmd_len
=8192;
12681 # On MiNT this can take a long time and run out of memory.
12682 lt_cv_sys_max_cmd_len
=8192;
12686 # On AmigaOS with pdksh, this test takes hours, literally.
12687 # So we just punt and use a minimum line length of 8192.
12688 lt_cv_sys_max_cmd_len
=8192;
12691 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12692 # This has been around since 386BSD, at least. Likely further.
12693 if test -x /sbin
/sysctl
; then
12694 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12695 elif test -x /usr
/sbin
/sysctl
; then
12696 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12698 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12700 # And add a safety zone
12701 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12702 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12706 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12707 lt_cv_sys_max_cmd_len
=196608
12711 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12712 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12713 # nice to cause kernel panics so lets avoid the loop below.
12714 # First set a reasonable default.
12715 lt_cv_sys_max_cmd_len
=16384
12717 if test -x /sbin
/sysconfig
; then
12718 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12719 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12724 lt_cv_sys_max_cmd_len
=102400
12726 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12727 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12728 if test -n "$kargmax"; then
12729 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12731 lt_cv_sys_max_cmd_len
=32768
12735 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12736 if test -n "$lt_cv_sys_max_cmd_len"; then
12737 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12738 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12740 # Make teststring a little bigger before we do anything with it.
12741 # a 1K string should be a reasonable start.
12742 for i
in 1 2 3 4 5 6 7 8 ; do
12743 teststring
=$teststring$teststring
12745 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12746 # If test is not a shell built-in, we'll probably end up computing a
12747 # maximum length that is only half of the actual maximum length, but
12749 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12750 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12751 test $i != 17 # 1/2 MB should be enough
12754 teststring
=$teststring$teststring
12756 # Only check the string length outside the loop.
12757 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12759 # Add a significant safety factor because C++ compilers can tack on
12760 # massive amounts of additional arguments before passing them to the
12761 # linker. It appears as though 1/2 is a usable value.
12762 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12769 if test -n $lt_cv_sys_max_cmd_len ; then
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12771 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12774 $as_echo "none" >&6; }
12776 max_cmd_len
=$lt_cv_sys_max_cmd_len
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12788 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12789 # Try some XSI features
12791 ( _lt_dummy
="a/b/c"
12792 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12794 && eval 'test $(( 1 + 1 )) -eq 2 \
12795 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12798 $as_echo "$xsi_shell" >&6; }
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12802 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12804 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12806 && lt_shell_append=yes
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12808 $as_echo "$lt_shell_append" >&6; }
12811 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12821 # test EBCDIC or ASCII
12822 case `echo X|tr X '\101'` in
12823 A) # ASCII based system
12824 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12825 lt_SP2NL='tr \040 \012'
12826 lt_NL2SP='tr \015\012 \040\040'
12828 *) # EBCDIC based system
12829 lt_SP2NL='tr \100 \n'
12830 lt_NL2SP='tr \r\n \100\100'
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12843 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12844 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12845 $as_echo_n "(cached
) " >&6
12847 lt_cv_ld_reload_flag='-r'
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12850 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12851 reload_flag=$lt_cv_ld_reload_flag
12852 case $reload_flag in
12854 *) reload_flag=" $reload_flag" ;;
12856 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12859 if test "$GCC" = yes; then
12860 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12862 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12875 if test -n "$ac_tool_prefix"; then
12876 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12877 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12879 $as_echo_n "checking
for $ac_word...
" >&6; }
12880 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12881 $as_echo_n "(cached
) " >&6
12883 if test -n "$OBJDUMP"; then
12884 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12887 for as_dir in $PATH
12890 test -z "$as_dir" && as_dir=.
12891 for ac_exec_ext in '' $ac_executable_extensions; do
12892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12893 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12894 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12903 OBJDUMP=$ac_cv_prog_OBJDUMP
12904 if test -n "$OBJDUMP"; then
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12906 $as_echo "$OBJDUMP" >&6; }
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12909 $as_echo "no
" >&6; }
12914 if test -z "$ac_cv_prog_OBJDUMP"; then
12915 ac_ct_OBJDUMP=$OBJDUMP
12916 # Extract the first word of "objdump
", so it can be a program name with args.
12917 set dummy objdump; ac_word=$2
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12919 $as_echo_n "checking
for $ac_word...
" >&6; }
12920 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12921 $as_echo_n "(cached
) " >&6
12923 if test -n "$ac_ct_OBJDUMP"; then
12924 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927 for as_dir in $PATH
12930 test -z "$as_dir" && as_dir=.
12931 for ac_exec_ext in '' $ac_executable_extensions; do
12932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12933 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12934 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12943 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12944 if test -n "$ac_ct_OBJDUMP"; then
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12946 $as_echo "$ac_ct_OBJDUMP" >&6; }
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12949 $as_echo "no
" >&6; }
12952 if test "x
$ac_ct_OBJDUMP" = x; then
12955 case $cross_compiling:$ac_tool_warned in
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12958 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12959 ac_tool_warned=yes ;;
12961 OBJDUMP=$ac_ct_OBJDUMP
12964 OBJDUMP="$ac_cv_prog_OBJDUMP"
12967 test -z "$OBJDUMP" && OBJDUMP=objdump
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12978 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12979 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12980 $as_echo_n "(cached
) " >&6
12982 lt_cv_file_magic_cmd='$MAGIC_CMD'
12983 lt_cv_file_magic_test_file=
12984 lt_cv_deplibs_check_method='unknown'
12985 # Need to set the preceding variable on all platforms that support
12986 # interlibrary dependencies.
12987 # 'none' -- dependencies not supported.
12988 # `unknown' -- same as none, but documents that we really don't know.
12989 # 'pass_all' -- all dependencies passed with no checks.
12990 # 'test_compile' -- check by making test program.
12991 # 'file_magic [[regex]]' -- check by looking for files in library path
12992 # which responds to the $file_magic_cmd with a given extended regex.
12993 # If you have `file' or equivalent on your system and you're not sure
12994 # whether `pass_all' will *always* work, you probably want this one.
12998 lt_cv_deplibs_check_method=pass_all
13002 lt_cv_deplibs_check_method=pass_all
13006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13007 lt_cv_file_magic_cmd='/usr/bin/file -L'
13008 lt_cv_file_magic_test_file=/shlib/libc.so
13012 # func_win32_libid is a shell function defined in ltmain.sh
13013 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13014 lt_cv_file_magic_cmd='func_win32_libid'
13018 # Base MSYS/MinGW do not provide the 'file' command needed by
13019 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13020 # unless we find 'file', for example because we are cross-compiling.
13021 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13022 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13023 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13024 lt_cv_file_magic_cmd='func_win32_libid'
13026 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13027 lt_cv_file_magic_cmd='$OBJDUMP -f'
13032 # use the weaker test based on 'objdump'. See mingw*.
13033 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13034 lt_cv_file_magic_cmd='$OBJDUMP -f'
13037 darwin* | rhapsody*)
13038 lt_cv_deplibs_check_method=pass_all
13041 freebsd* | dragonfly*)
13042 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13045 # Not sure whether the presence of OpenBSD here was a mistake.
13046 # Let's accept both of them until this is cleared up.
13047 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13048 lt_cv_file_magic_cmd=/usr/bin/file
13049 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13053 lt_cv_deplibs_check_method=pass_all
13058 lt_cv_deplibs_check_method=pass_all
13062 lt_cv_deplibs_check_method=pass_all
13065 hpux10.20* | hpux11*)
13066 lt_cv_file_magic_cmd=/usr/bin/file
13069 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13070 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13073 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]'
13074 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13078 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13084 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13088 irix5* | irix6* | nonstopux*)
13090 *-32|*"-32 ") libmagic=32-bit;;
13091 *-n32|*"-n32 ") libmagic=N32;;
13092 *-64|*"-64 ") libmagic=64-bit;;
13093 *) libmagic=never-match;;
13095 lt_cv_deplibs_check_method=pass_all
13098 # This must be Linux ELF.
13099 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13100 lt_cv_deplibs_check_method=pass_all
13104 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13112 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13113 lt_cv_file_magic_cmd=/usr/bin/file
13114 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13118 lt_cv_deplibs_check_method=pass_all
13122 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13129 osf3* | osf4* | osf5*)
13130 lt_cv_deplibs_check_method=pass_all
13134 lt_cv_deplibs_check_method=pass_all
13138 lt_cv_deplibs_check_method=pass_all
13141 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13142 lt_cv_deplibs_check_method=pass_all
13146 case $host_vendor in
13148 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]'
13149 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13152 lt_cv_deplibs_check_method=pass_all
13155 lt_cv_file_magic_cmd='/bin/file'
13156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13159 lt_cv_file_magic_cmd='/bin/file'
13160 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13161 lt_cv_file_magic_test_file=/lib/libc.so
13164 lt_cv_deplibs_check_method=pass_all
13167 lt_cv_deplibs_check_method=pass_all
13173 lt_cv_deplibs_check_method=pass_all
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13179 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13180 file_magic_cmd=$lt_cv_file_magic_cmd
13181 deplibs_check_method=$lt_cv_deplibs_check_method
13182 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13195 if test -n "$ac_tool_prefix"; then
13196 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13197 set dummy ${ac_tool_prefix}ar; ac_word=$2
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13199 $as_echo_n "checking
for $ac_word...
" >&6; }
13200 if test "${ac_cv_prog_AR+set}" = set; then :
13201 $as_echo_n "(cached
) " >&6
13203 if test -n "$AR"; then
13204 ac_cv_prog_AR="$AR" # Let the user override the test.
13206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13207 for as_dir in $PATH
13210 test -z "$as_dir" && as_dir=.
13211 for ac_exec_ext in '' $ac_executable_extensions; do
13212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13213 ac_cv_prog_AR="${ac_tool_prefix}ar"
13214 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13224 if test -n "$AR"; then
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13226 $as_echo "$AR" >&6; }
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13229 $as_echo "no
" >&6; }
13234 if test -z "$ac_cv_prog_AR"; then
13236 # Extract the first word of "ar", so it can be a program name with args.
13237 set dummy ar; ac_word=$2
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13239 $as_echo_n "checking
for $ac_word...
" >&6; }
13240 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13241 $as_echo_n "(cached
) " >&6
13243 if test -n "$ac_ct_AR"; then
13244 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247 for as_dir in $PATH
13250 test -z "$as_dir" && as_dir=.
13251 for ac_exec_ext in '' $ac_executable_extensions; do
13252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13253 ac_cv_prog_ac_ct_AR="ar"
13254 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13263 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13264 if test -n "$ac_ct_AR"; then
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13266 $as_echo "$ac_ct_AR" >&6; }
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13269 $as_echo "no
" >&6; }
13272 if test "x
$ac_ct_AR" = x; then
13275 case $cross_compiling:$ac_tool_warned in
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13278 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13279 ac_tool_warned=yes ;;
13284 AR="$ac_cv_prog_AR"
13287 test -z "$AR" && AR=ar
13288 test -z "$AR_FLAGS" && AR_FLAGS=cru
13300 if test -n "$ac_tool_prefix"; then
13301 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13302 set dummy ${ac_tool_prefix}strip; ac_word=$2
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13304 $as_echo_n "checking
for $ac_word...
" >&6; }
13305 if test "${ac_cv_prog_STRIP+set}" = set; then :
13306 $as_echo_n "(cached
) " >&6
13308 if test -n "$STRIP"; then
13309 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 for as_dir in $PATH
13315 test -z "$as_dir" && as_dir=.
13316 for ac_exec_ext in '' $ac_executable_extensions; do
13317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13318 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13319 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13328 STRIP=$ac_cv_prog_STRIP
13329 if test -n "$STRIP"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13331 $as_echo "$STRIP" >&6; }
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13334 $as_echo "no
" >&6; }
13339 if test -z "$ac_cv_prog_STRIP"; then
13341 # Extract the first word of "strip
", so it can be a program name with args.
13342 set dummy strip; ac_word=$2
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13344 $as_echo_n "checking
for $ac_word...
" >&6; }
13345 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13346 $as_echo_n "(cached
) " >&6
13348 if test -n "$ac_ct_STRIP"; then
13349 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13352 for as_dir in $PATH
13355 test -z "$as_dir" && as_dir=.
13356 for ac_exec_ext in '' $ac_executable_extensions; do
13357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13358 ac_cv_prog_ac_ct_STRIP="strip
"
13359 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13368 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13369 if test -n "$ac_ct_STRIP"; then
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13371 $as_echo "$ac_ct_STRIP" >&6; }
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13374 $as_echo "no
" >&6; }
13377 if test "x
$ac_ct_STRIP" = x; then
13380 case $cross_compiling:$ac_tool_warned in
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13383 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13384 ac_tool_warned=yes ;;
13389 STRIP="$ac_cv_prog_STRIP"
13392 test -z "$STRIP" && STRIP=:
13399 if test -n "$ac_tool_prefix"; then
13400 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13401 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13403 $as_echo_n "checking
for $ac_word...
" >&6; }
13404 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13405 $as_echo_n "(cached
) " >&6
13407 if test -n "$RANLIB"; then
13408 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13411 for as_dir in $PATH
13414 test -z "$as_dir" && as_dir=.
13415 for ac_exec_ext in '' $ac_executable_extensions; do
13416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13417 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13418 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13427 RANLIB=$ac_cv_prog_RANLIB
13428 if test -n "$RANLIB"; then
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13430 $as_echo "$RANLIB" >&6; }
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13433 $as_echo "no
" >&6; }
13438 if test -z "$ac_cv_prog_RANLIB"; then
13439 ac_ct_RANLIB=$RANLIB
13440 # Extract the first word of "ranlib
", so it can be a program name with args.
13441 set dummy ranlib; ac_word=$2
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13443 $as_echo_n "checking
for $ac_word...
" >&6; }
13444 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13445 $as_echo_n "(cached
) " >&6
13447 if test -n "$ac_ct_RANLIB"; then
13448 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13451 for as_dir in $PATH
13454 test -z "$as_dir" && as_dir=.
13455 for ac_exec_ext in '' $ac_executable_extensions; do
13456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13457 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13458 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13467 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13468 if test -n "$ac_ct_RANLIB"; then
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13470 $as_echo "$ac_ct_RANLIB" >&6; }
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13473 $as_echo "no
" >&6; }
13476 if test "x
$ac_ct_RANLIB" = x; then
13479 case $cross_compiling:$ac_tool_warned in
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13482 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13483 ac_tool_warned=yes ;;
13485 RANLIB=$ac_ct_RANLIB
13488 RANLIB="$ac_cv_prog_RANLIB"
13491 test -z "$RANLIB" && RANLIB=:
13498 # Determine commands to create old-style static archives.
13499 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13500 old_postinstall_cmds='chmod 644 $oldlib'
13501 old_postuninstall_cmds=
13503 if test -n "$RANLIB"; then
13506 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13509 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13512 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13517 lock_old_archive_extraction=yes ;;
13519 lock_old_archive_extraction=no ;;
13560 # If no C compiler was specified, use CC.
13563 # If no C compiler flags were specified, use CFLAGS.
13564 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13566 # Allow CC to be a program name with arguments.
13570 # Check for command to grab the raw symbol name followed by C symbol from nm.
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13572 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13573 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13574 $as_echo_n "(cached
) " >&6
13577 # These are sane defaults that work on at least a few old systems.
13578 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13580 # Character class describing NM global symbol codes.
13581 symcode='[BCDEGRST]'
13583 # Regexp to match symbols that can be accessed directly from C.
13584 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13586 # Define system-specific variables.
13591 cygwin* | mingw* | pw32* | cegcc*)
13592 symcode='[ABCDGISTW]'
13595 if test "$host_cpu" = ia64; then
13596 symcode='[ABCDEGRST]'
13599 irix* | nonstopux*)
13600 symcode='[BCDEGRST]'
13603 symcode='[BCDEGQRST]'
13614 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13622 # If we're using GNU nm, then use its standard symbol codes.
13623 case `$NM -V 2>&1` in
13624 *GNU* | *'with BFD'*)
13625 symcode='[ABCDGIRSTW]' ;;
13628 # Transform an extracted symbol line into a proper C declaration.
13629 # Some systems (esp. on ia64) link data and code symbols differently,
13630 # so use this general approach.
13631 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13633 # Transform an extracted symbol line into symbol name and symbol address
13634 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13635 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'"
13637 # Handle CRLF in mingw tool chain
13641 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13645 # Try without a prefix underscore, then with it.
13646 for ac_symprfx in "" "_
"; do
13648 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13649 symxfrm="\\1 $ac_symprfx\\2 \\2"
13651 # Write the raw and C identifiers.
13652 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13653 # Fake it for dumpbin and say T for any non-static function
13654 # and D for any global variable.
13655 # Also find C++ and __fastcall symbols from MSVC++,
13656 # which start with @ or ?.
13657 lt_cv_sys_global_symbol_pipe="$AWK '"\
13658 " {last_section=section; section=\$ 3};"\
13659 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13660 " \$ 0!~/External *\|/{next};"\
13661 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13662 " {if(hide[section]) next};"\
13663 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13664 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13665 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13666 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13667 " ' prfx
=^
$ac_symprfx"
13669 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13672 # Check to see that the pipe works correctly.
13676 cat > conftest.$ac_ext <<_LT_EOF
13681 void nm_test_func(void);
13682 void nm_test_func(void){}
13686 int main(){nm_test_var='a';nm_test_func();return(0);}
13689 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13690 (eval $ac_compile) 2>&5
13692 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13693 test $ac_status = 0; }; then
13694 # Now try to grab the symbols.
13696 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13697 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13699 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13700 test $ac_status = 0; } && test -s "$nlist"; then
13701 # Try sorting and uniquifying the output.
13702 if sort "$nlist" | uniq > "$nlist"T; then
13703 mv -f "$nlist"T "$nlist"
13708 # Make sure that we snagged all the symbols we need.
13709 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13710 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13711 cat <<_LT_EOF > conftest.$ac_ext
13717 # Now generate the symbol file.
13718 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13720 cat <<_LT_EOF >> conftest.$ac_ext
13722 /* The mapping between symbol names and symbols. */
13727 lt__PROGRAM__LTX_preloaded_symbols[] =
13729 { "@PROGRAM@
", (void *) 0 },
13731 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13732 cat <<\_LT_EOF >> conftest.$ac_ext
13736 /* This works around a problem in FreeBSD linker */
13737 #ifdef FREEBSD_WORKAROUND
13738 static const void *lt_preloaded_setup() {
13739 return lt__PROGRAM__LTX_preloaded_symbols;
13747 # Now try linking the two files.
13748 mv conftest.$ac_objext conftstm.$ac_objext
13749 lt_save_LIBS="$LIBS"
13750 lt_save_CFLAGS="$CFLAGS"
13751 LIBS="conftstm.
$ac_objext"
13752 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13753 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13754 (eval $ac_link) 2>&5
13756 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13757 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13760 LIBS="$lt_save_LIBS"
13761 CFLAGS="$lt_save_CFLAGS"
13763 echo "cannot
find nm_test_func
in $nlist" >&5
13766 echo "cannot
find nm_test_var
in $nlist" >&5
13769 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13772 echo "$progname: failed program was
:" >&5
13773 cat conftest.$ac_ext >&5
13775 rm -rf conftest* conftst*
13777 # Do not use the global_symbol_pipe unless it works.
13778 if test "$pipe_works" = yes; then
13781 lt_cv_sys_global_symbol_pipe=
13787 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13788 lt_cv_sys_global_symbol_to_cdecl=
13790 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13792 $as_echo "failed
" >&6; }
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13795 $as_echo "ok
" >&6; }
13819 # Check whether --enable-libtool-lock was given.
13820 if test "${enable_libtool_lock+set}" = set; then :
13821 enableval=$enable_libtool_lock;
13824 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13826 # Some flags need to be propagated to the compiler or linker for good
13830 # Find out which ABI we are using.
13831 echo 'int i;' > conftest.$ac_ext
13832 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13833 (eval $ac_compile) 2>&5
13835 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13836 test $ac_status = 0; }; then
13837 case `/usr/bin/file conftest.$ac_objext` in
13839 HPUX_IA64_MODE="32"
13842 HPUX_IA64_MODE="64"
13849 # Find out which ABI we are using.
13850 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13851 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13852 (eval $ac_compile) 2>&5
13854 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13855 test $ac_status = 0; }; then
13856 if test "$lt_cv_prog_gnu_ld" = yes; then
13857 case `/usr/bin/file conftest.$ac_objext` in
13859 LD="${LD-ld} -melf32bsmip"
13862 LD="${LD-ld} -melf32bmipn32"
13865 LD="${LD-ld} -melf64bmip"
13869 case `/usr/bin/file conftest.$ac_objext` in
13885 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13886 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13887 # Find out which ABI we are using.
13888 echo 'int i;' > conftest.$ac_ext
13889 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13890 (eval $ac_compile) 2>&5
13892 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13893 test $ac_status = 0; }; then
13894 case `/usr/bin/file conftest.o` in
13897 x86_64-*kfreebsd*-gnu)
13898 LD="${LD-ld} -m elf_i386_fbsd
"
13901 case `/usr/bin/file conftest.o` in
13903 LD="${LD-ld} -m elf32_x86_64
"
13906 LD="${LD-ld} -m elf_i386
"
13910 powerpc64le-*linux*)
13911 LD="${LD-ld} -m elf32lppclinux
"
13914 LD="${LD-ld} -m elf32ppclinux
"
13917 LD="${LD-ld} -m elf_s390
"
13920 LD="${LD-ld} -m elf32_sparc
"
13926 x86_64-*kfreebsd*-gnu)
13927 LD="${LD-ld} -m elf_x86_64_fbsd
"
13930 LD="${LD-ld} -m elf_x86_64
"
13933 LD="${LD-ld} -m elf64lppc
"
13936 LD="${LD-ld} -m elf64ppc
"
13938 s390*-*linux*|s390*-*tpf*)
13939 LD="${LD-ld} -m elf64_s390
"
13942 LD="${LD-ld} -m elf64_sparc
"
13952 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13953 SAVE_CFLAGS="$CFLAGS"
13954 CFLAGS="$CFLAGS -belf"
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13956 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13957 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13958 $as_echo_n "(cached
) " >&6
13961 ac_cpp='$CPP $CPPFLAGS'
13962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13977 if ac_fn_c_try_link "$LINENO"; then :
13978 lt_cv_cc_needs_belf=yes
13980 lt_cv_cc_needs_belf=no
13982 rm -f core conftest.err conftest.$ac_objext \
13983 conftest$ac_exeext conftest.$ac_ext
13985 ac_cpp='$CPP $CPPFLAGS'
13986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13992 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13993 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13994 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13995 CFLAGS="$SAVE_CFLAGS"
13999 # Find out which ABI we are using.
14000 echo 'int i;' > conftest.$ac_ext
14001 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14002 (eval $ac_compile) 2>&5
14004 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14005 test $ac_status = 0; }; then
14006 case `/usr/bin/file conftest.o` in
14008 case $lt_cv_prog_gnu_ld in
14009 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14011 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14023 need_locks="$enable_libtool_lock"
14027 rhapsody* | darwin*)
14028 if test -n "$ac_tool_prefix"; then
14029 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14030 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14032 $as_echo_n "checking
for $ac_word...
" >&6; }
14033 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14034 $as_echo_n "(cached
) " >&6
14036 if test -n "$DSYMUTIL"; then
14037 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14040 for as_dir in $PATH
14043 test -z "$as_dir" && as_dir=.
14044 for ac_exec_ext in '' $ac_executable_extensions; do
14045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14046 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14047 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14056 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14057 if test -n "$DSYMUTIL"; then
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14059 $as_echo "$DSYMUTIL" >&6; }
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14062 $as_echo "no
" >&6; }
14067 if test -z "$ac_cv_prog_DSYMUTIL"; then
14068 ac_ct_DSYMUTIL=$DSYMUTIL
14069 # Extract the first word of "dsymutil
", so it can be a program name with args.
14070 set dummy dsymutil; ac_word=$2
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14072 $as_echo_n "checking
for $ac_word...
" >&6; }
14073 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14074 $as_echo_n "(cached
) " >&6
14076 if test -n "$ac_ct_DSYMUTIL"; then
14077 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14080 for as_dir in $PATH
14083 test -z "$as_dir" && as_dir=.
14084 for ac_exec_ext in '' $ac_executable_extensions; do
14085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14086 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14087 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14096 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14097 if test -n "$ac_ct_DSYMUTIL"; then
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14099 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14102 $as_echo "no
" >&6; }
14105 if test "x
$ac_ct_DSYMUTIL" = x; then
14108 case $cross_compiling:$ac_tool_warned in
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14111 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14112 ac_tool_warned=yes ;;
14114 DSYMUTIL=$ac_ct_DSYMUTIL
14117 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14120 if test -n "$ac_tool_prefix"; then
14121 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14122 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14124 $as_echo_n "checking
for $ac_word...
" >&6; }
14125 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14126 $as_echo_n "(cached
) " >&6
14128 if test -n "$NMEDIT"; then
14129 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14132 for as_dir in $PATH
14135 test -z "$as_dir" && as_dir=.
14136 for ac_exec_ext in '' $ac_executable_extensions; do
14137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14138 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14139 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14148 NMEDIT=$ac_cv_prog_NMEDIT
14149 if test -n "$NMEDIT"; then
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14151 $as_echo "$NMEDIT" >&6; }
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14154 $as_echo "no
" >&6; }
14159 if test -z "$ac_cv_prog_NMEDIT"; then
14160 ac_ct_NMEDIT=$NMEDIT
14161 # Extract the first word of "nmedit
", so it can be a program name with args.
14162 set dummy nmedit; ac_word=$2
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14164 $as_echo_n "checking
for $ac_word...
" >&6; }
14165 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14166 $as_echo_n "(cached
) " >&6
14168 if test -n "$ac_ct_NMEDIT"; then
14169 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14172 for as_dir in $PATH
14175 test -z "$as_dir" && as_dir=.
14176 for ac_exec_ext in '' $ac_executable_extensions; do
14177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14178 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14179 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14188 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14189 if test -n "$ac_ct_NMEDIT"; then
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14191 $as_echo "$ac_ct_NMEDIT" >&6; }
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14194 $as_echo "no
" >&6; }
14197 if test "x
$ac_ct_NMEDIT" = x; then
14200 case $cross_compiling:$ac_tool_warned in
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14203 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14204 ac_tool_warned=yes ;;
14206 NMEDIT=$ac_ct_NMEDIT
14209 NMEDIT="$ac_cv_prog_NMEDIT"
14212 if test -n "$ac_tool_prefix"; then
14213 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14214 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14216 $as_echo_n "checking
for $ac_word...
" >&6; }
14217 if test "${ac_cv_prog_LIPO+set}" = set; then :
14218 $as_echo_n "(cached
) " >&6
14220 if test -n "$LIPO"; then
14221 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14224 for as_dir in $PATH
14227 test -z "$as_dir" && as_dir=.
14228 for ac_exec_ext in '' $ac_executable_extensions; do
14229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14230 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14231 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14240 LIPO=$ac_cv_prog_LIPO
14241 if test -n "$LIPO"; then
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14243 $as_echo "$LIPO" >&6; }
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14246 $as_echo "no
" >&6; }
14251 if test -z "$ac_cv_prog_LIPO"; then
14253 # Extract the first word of "lipo
", so it can be a program name with args.
14254 set dummy lipo; ac_word=$2
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14256 $as_echo_n "checking
for $ac_word...
" >&6; }
14257 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14258 $as_echo_n "(cached
) " >&6
14260 if test -n "$ac_ct_LIPO"; then
14261 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14264 for as_dir in $PATH
14267 test -z "$as_dir" && as_dir=.
14268 for ac_exec_ext in '' $ac_executable_extensions; do
14269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14270 ac_cv_prog_ac_ct_LIPO="lipo
"
14271 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14280 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14281 if test -n "$ac_ct_LIPO"; then
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14283 $as_echo "$ac_ct_LIPO" >&6; }
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14286 $as_echo "no
" >&6; }
14289 if test "x
$ac_ct_LIPO" = x; then
14292 case $cross_compiling:$ac_tool_warned in
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14295 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14296 ac_tool_warned=yes ;;
14301 LIPO="$ac_cv_prog_LIPO"
14304 if test -n "$ac_tool_prefix"; then
14305 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14306 set dummy ${ac_tool_prefix}otool; ac_word=$2
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14308 $as_echo_n "checking
for $ac_word...
" >&6; }
14309 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14310 $as_echo_n "(cached
) " >&6
14312 if test -n "$OTOOL"; then
14313 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14316 for as_dir in $PATH
14319 test -z "$as_dir" && as_dir=.
14320 for ac_exec_ext in '' $ac_executable_extensions; do
14321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14322 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14323 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14332 OTOOL=$ac_cv_prog_OTOOL
14333 if test -n "$OTOOL"; then
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14335 $as_echo "$OTOOL" >&6; }
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14338 $as_echo "no
" >&6; }
14343 if test -z "$ac_cv_prog_OTOOL"; then
14345 # Extract the first word of "otool
", so it can be a program name with args.
14346 set dummy otool; ac_word=$2
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14348 $as_echo_n "checking
for $ac_word...
" >&6; }
14349 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14350 $as_echo_n "(cached
) " >&6
14352 if test -n "$ac_ct_OTOOL"; then
14353 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14356 for as_dir in $PATH
14359 test -z "$as_dir" && as_dir=.
14360 for ac_exec_ext in '' $ac_executable_extensions; do
14361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14362 ac_cv_prog_ac_ct_OTOOL="otool
"
14363 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14372 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14373 if test -n "$ac_ct_OTOOL"; then
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14375 $as_echo "$ac_ct_OTOOL" >&6; }
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14378 $as_echo "no
" >&6; }
14381 if test "x
$ac_ct_OTOOL" = x; then
14384 case $cross_compiling:$ac_tool_warned in
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14387 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14388 ac_tool_warned=yes ;;
14393 OTOOL="$ac_cv_prog_OTOOL"
14396 if test -n "$ac_tool_prefix"; then
14397 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14398 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14400 $as_echo_n "checking
for $ac_word...
" >&6; }
14401 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14402 $as_echo_n "(cached
) " >&6
14404 if test -n "$OTOOL64"; then
14405 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14408 for as_dir in $PATH
14411 test -z "$as_dir" && as_dir=.
14412 for ac_exec_ext in '' $ac_executable_extensions; do
14413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14414 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14415 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14424 OTOOL64=$ac_cv_prog_OTOOL64
14425 if test -n "$OTOOL64"; then
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14427 $as_echo "$OTOOL64" >&6; }
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14430 $as_echo "no
" >&6; }
14435 if test -z "$ac_cv_prog_OTOOL64"; then
14436 ac_ct_OTOOL64=$OTOOL64
14437 # Extract the first word of "otool64
", so it can be a program name with args.
14438 set dummy otool64; ac_word=$2
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14440 $as_echo_n "checking
for $ac_word...
" >&6; }
14441 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14442 $as_echo_n "(cached
) " >&6
14444 if test -n "$ac_ct_OTOOL64"; then
14445 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14448 for as_dir in $PATH
14451 test -z "$as_dir" && as_dir=.
14452 for ac_exec_ext in '' $ac_executable_extensions; do
14453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14454 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14455 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14464 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14465 if test -n "$ac_ct_OTOOL64"; then
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14467 $as_echo "$ac_ct_OTOOL64" >&6; }
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14470 $as_echo "no
" >&6; }
14473 if test "x
$ac_ct_OTOOL64" = x; then
14476 case $cross_compiling:$ac_tool_warned in
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14479 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14480 ac_tool_warned=yes ;;
14482 OTOOL64=$ac_ct_OTOOL64
14485 OTOOL64="$ac_cv_prog_OTOOL64"
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14515 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14516 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14517 $as_echo_n "(cached
) " >&6
14519 lt_cv_apple_cc_single_mod=no
14520 if test -z "${LT_MULTI_MODULE}"; then
14521 # By default we will add the -single_module flag. You can override
14522 # by either setting the environment variable LT_MULTI_MODULE
14523 # non-empty at configure time, or by adding -multi_module to the
14525 rm -rf libconftest.dylib*
14526 echo "int foo
(void
){return 1;}" > conftest.c
14527 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14528 -dynamiclib -Wl,-single_module conftest.c
" >&5
14529 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14530 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14532 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14533 lt_cv_apple_cc_single_mod=yes
14535 cat conftest.err >&5
14537 rm -rf libconftest.dylib*
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14542 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14544 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14545 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14546 $as_echo_n "(cached
) " >&6
14548 lt_cv_ld_exported_symbols_list=no
14549 save_LDFLAGS=$LDFLAGS
14550 echo "_main
" > conftest.sym
14551 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553 /* end confdefs.h. */
14563 if ac_fn_c_try_link "$LINENO"; then :
14564 lt_cv_ld_exported_symbols_list=yes
14566 lt_cv_ld_exported_symbols_list=no
14568 rm -f core conftest.err conftest.$ac_objext \
14569 conftest$ac_exeext conftest.$ac_ext
14570 LDFLAGS="$save_LDFLAGS"
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14574 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14576 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14577 if test "${lt_cv_ld_force_load+set}" = set; then :
14578 $as_echo_n "(cached
) " >&6
14580 lt_cv_ld_force_load=no
14581 cat > conftest.c << _LT_EOF
14582 int forced_loaded() { return 2;}
14584 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14585 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14586 echo "$AR cru libconftest.a conftest.o
" >&5
14587 $AR cru libconftest.a conftest.o 2>&5
14588 cat > conftest.c << _LT_EOF
14589 int main() { return 0;}
14591 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14592 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14594 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14595 lt_cv_ld_force_load=yes
14597 cat conftest.err >&5
14599 rm -f conftest.err libconftest.a conftest conftest.c
14600 rm -rf conftest.dSYM
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14604 $as_echo "$lt_cv_ld_force_load" >&6; }
14606 rhapsody* | darwin1.[012])
14607 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14609 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14610 darwin*) # darwin 5.x on
14611 # if running on 10.5 or later, the deployment target defaults
14612 # to the OS version, if on x86, and 10.4, the deployment
14613 # target defaults to 10.4. Don't you love it?
14614 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14615 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14616 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14618 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14620 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14624 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14625 _lt_dar_single_mod='$single_module'
14627 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14628 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14630 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14632 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14633 _lt_dsymutil='~$DSYMUTIL $lib || :'
14640 for ac_header in dlfcn.h
14642 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14643 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14644 cat >>confdefs.h <<_ACEOF
14645 #define HAVE_DLFCN_H 1
14662 enable_win32_dll=no
14665 # Check whether --enable-shared was given.
14666 if test "${enable_shared+set}" = set; then :
14667 enableval=$enable_shared; p=${PACKAGE-default}
14669 yes) enable_shared=yes ;;
14670 no) enable_shared=no ;;
14673 # Look at the argument we got. We use all the common list separators.
14674 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14675 for pkg in $enableval; do
14677 if test "X
$pkg" = "X
$p"; then
14696 # Check whether --enable-static was given.
14697 if test "${enable_static+set}" = set; then :
14698 enableval=$enable_static; p=${PACKAGE-default}
14700 yes) enable_static=yes ;;
14701 no) enable_static=no ;;
14704 # Look at the argument we got. We use all the common list separators.
14705 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14706 for pkg in $enableval; do
14708 if test "X
$pkg" = "X
$p"; then
14728 # Check whether --with-pic was given.
14729 if test "${with_pic+set}" = set; then :
14730 withval=$with_pic; pic_mode="$withval"
14736 test -z "$pic_mode" && pic_mode=default
14744 # Check whether --enable-fast-install was given.
14745 if test "${enable_fast_install+set}" = set; then :
14746 enableval=$enable_fast_install; p=${PACKAGE-default}
14748 yes) enable_fast_install=yes ;;
14749 no) enable_fast_install=no ;;
14751 enable_fast_install=no
14752 # Look at the argument we got. We use all the common list separators.
14753 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14754 for pkg in $enableval; do
14756 if test "X
$pkg" = "X
$p"; then
14757 enable_fast_install=yes
14764 enable_fast_install=yes
14777 # This can be used to rebuild libtool when needed
14778 LIBTOOL_DEPS="$ltmain"
14780 # Always use our own libtool.
14781 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14808 test -z "$LN_S" && LN_S="ln -s"
14823 if test -n "${ZSH_VERSION+set}" ; then
14824 setopt NO_GLOB_SUBST
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14828 $as_echo_n "checking
for objdir...
" >&6; }
14829 if test "${lt_cv_objdir+set}" = set; then :
14830 $as_echo_n "(cached
) " >&6
14832 rm -f .libs 2>/dev/null
14833 mkdir .libs 2>/dev/null
14834 if test -d .libs; then
14837 # MS-DOS does not allow filenames that begin with a dot.
14840 rmdir .libs 2>/dev/null
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14843 $as_echo "$lt_cv_objdir" >&6; }
14844 objdir=$lt_cv_objdir
14850 cat >>confdefs.h <<_ACEOF
14851 #define LT_OBJDIR "$lt_cv_objdir/"
14859 # AIX sometimes has problems with the GCC collect2 program. For some
14860 # reason, if we set the COLLECT_NAMES environment variable, the problems
14861 # vanish in a puff of smoke.
14862 if test "X
${COLLECT_NAMES+set}" != Xset; then
14864 export COLLECT_NAMES
14869 # Global variables:
14871 can_build_shared=yes
14873 # All known linkers require a `.a' archive for static linking (except MSVC,
14874 # which needs '.lib').
14877 with_gnu_ld="$lt_cv_prog_gnu_ld"
14880 old_CFLAGS="$CFLAGS"
14882 # Set sane defaults for various variables
14883 test -z "$CC" && CC=cc
14884 test -z "$LTCC" && LTCC=$CC
14885 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14886 test -z "$LD" && LD=ld
14887 test -z "$ac_objext" && ac_objext=o
14889 for cc_temp in $compiler""; do
14891 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14892 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14897 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14900 # Only perform the check for file, if the check method requires it
14901 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14902 case $deplibs_check_method in
14904 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14906 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14907 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14908 $as_echo_n "(cached
) " >&6
14912 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14915 lt_save_MAGIC_CMD="$MAGIC_CMD"
14916 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14917 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14918 for ac_dir in $ac_dummy; do
14920 test -z "$ac_dir" && ac_dir=.
14921 if test -f $ac_dir/${ac_tool_prefix}file; then
14922 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14923 if test -n "$file_magic_test_file"; then
14924 case $deplibs_check_method in
14926 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14927 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14928 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14929 $EGREP "$file_magic_regex" > /dev/null; then
14934 *** Warning: the command libtool uses to detect shared libraries,
14935 *** $file_magic_cmd, produces output that libtool cannot recognize.
14936 *** The result is that libtool may fail to recognize shared libraries
14937 *** as such. This will affect the creation of libtool libraries that
14938 *** depend on shared libraries, but programs linked with such libtool
14939 *** libraries will work regardless of this problem. Nevertheless, you
14940 *** may want to report the problem to your system manager and/or to
14941 *** bug-libtool@gnu.org
14951 MAGIC_CMD="$lt_save_MAGIC_CMD"
14956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14957 if test -n "$MAGIC_CMD"; then
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14959 $as_echo "$MAGIC_CMD" >&6; }
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14962 $as_echo "no
" >&6; }
14969 if test -z "$lt_cv_path_MAGIC_CMD"; then
14970 if test -n "$ac_tool_prefix"; then
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14972 $as_echo_n "checking
for file...
" >&6; }
14973 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14974 $as_echo_n "(cached
) " >&6
14978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14981 lt_save_MAGIC_CMD="$MAGIC_CMD"
14982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14983 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14984 for ac_dir in $ac_dummy; do
14986 test -z "$ac_dir" && ac_dir=.
14987 if test -f $ac_dir/file; then
14988 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14989 if test -n "$file_magic_test_file"; then
14990 case $deplibs_check_method in
14992 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14994 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14995 $EGREP "$file_magic_regex" > /dev/null; then
15000 *** Warning: the command libtool uses to detect shared libraries,
15001 *** $file_magic_cmd, produces output that libtool cannot recognize.
15002 *** The result is that libtool may fail to recognize shared libraries
15003 *** as such. This will affect the creation of libtool libraries that
15004 *** depend on shared libraries, but programs linked with such libtool
15005 *** libraries will work regardless of this problem. Nevertheless, you
15006 *** may want to report the problem to your system manager and/or to
15007 *** bug-libtool@gnu.org
15017 MAGIC_CMD="$lt_save_MAGIC_CMD"
15022 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15023 if test -n "$MAGIC_CMD"; then
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15025 $as_echo "$MAGIC_CMD" >&6; }
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15028 $as_echo "no
" >&6; }
15041 # Use C for the default configuration in the libtool script
15045 ac_cpp='$CPP $CPPFLAGS'
15046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15051 # Source file extension for C test sources.
15054 # Object file extension for compiled C test sources.
15058 # Code to be used in simple compile tests
15059 lt_simple_compile_test_code="int some_variable
= 0;"
15061 # Code to be used in simple link tests
15062 lt_simple_link_test_code='int main(){return(0);}'
15070 # If no C compiler was specified, use CC.
15073 # If no C compiler flags were specified, use CFLAGS.
15074 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15076 # Allow CC to be a program name with arguments.
15079 # Save the default compiler, since it gets overwritten when the other
15080 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15081 compiler_DEFAULT=$CC
15083 # save warnings/boilerplate of simple test code
15084 ac_outfile=conftest.$ac_objext
15085 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15086 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15087 _lt_compiler_boilerplate=`cat conftest.err`
15090 ac_outfile=conftest.$ac_objext
15091 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15092 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15093 _lt_linker_boilerplate=`cat conftest.err`
15098 ## There is no encapsulation within the following macros, do not change
15099 ## the running order or otherwise move them around unless you know exactly
15100 ## what you are doing...
15101 if test -n "$compiler"; then
15103 lt_prog_compiler_no_builtin_flag=
15105 if test "$GCC" = yes; then
15106 case $cc_basename in
15108 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15110 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15114 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15115 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15116 $as_echo_n "(cached
) " >&6
15118 lt_cv_prog_compiler_rtti_exceptions=no
15119 ac_outfile=conftest.$ac_objext
15120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15121 lt_compiler_flag="-fno-rtti -fno-exceptions"
15122 # Insert the option either (1) after the last *FLAGS variable, or
15123 # (2) before a word containing "conftest.
", or (3) at the end.
15124 # Note that $ac_compile itself does not contain backslashes and begins
15125 # with a dollar sign (not a hyphen), so the echo should work correctly.
15126 # The option is referenced via a variable to avoid confusing sed.
15127 lt_compile=`echo "$ac_compile" | $SED \
15128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15130 -e 's:$: $lt_compiler_flag:'`
15131 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15132 (eval "$lt_compile" 2>conftest.err)
15134 cat conftest.err >&5
15135 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15136 if (exit $ac_status) && test -s "$ac_outfile"; then
15137 # The compiler can only warn and ignore the option if not recognized
15138 # So say no if there are warnings other than the usual output.
15139 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15141 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15142 lt_cv_prog_compiler_rtti_exceptions=yes
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15149 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15151 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15152 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15164 lt_prog_compiler_wl=
15165 lt_prog_compiler_pic=
15166 lt_prog_compiler_static=
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15169 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15171 if test "$GCC" = yes; then
15172 lt_prog_compiler_wl='-Wl,'
15173 lt_prog_compiler_static='-static'
15177 # All AIX code is PIC.
15178 if test "$host_cpu" = ia64; then
15179 # AIX 5 now supports IA64 processor
15180 lt_prog_compiler_static='-Bstatic'
15182 lt_prog_compiler_pic='-fPIC'
15188 # see comment about AmigaOS4 .so support
15189 lt_prog_compiler_pic='-fPIC'
15192 # FIXME: we need at least 68020 code to build shared libraries, but
15193 # adding the `-m68020' flag to GCC prevents building anything better,
15195 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15200 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15201 # PIC is the default for these OSes.
15204 mingw* | cygwin* | pw32* | os2* | cegcc*)
15205 # This hack is so that the source file can tell whether it is being
15206 # built for inclusion in a dll (and should export symbols for example).
15207 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15208 # (--disable-auto-import) libraries
15209 lt_prog_compiler_pic='-DDLL_EXPORT'
15212 darwin* | rhapsody*)
15213 # PIC is the default on this platform
15214 # Common symbols not allowed in MH_DYLIB files
15215 lt_prog_compiler_pic='-fno-common'
15219 # PIC is the default for Haiku.
15220 # The "-static" flag exists, but is broken.
15221 lt_prog_compiler_static=
15225 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15226 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15227 # sets the default TLS model and affects inlining.
15233 lt_prog_compiler_pic='-fPIC'
15239 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15240 # Instead, we relocate shared libraries at runtime.
15244 # Just because we use GCC doesn't mean we suddenly get shared libraries
15245 # on systems that don't support them.
15246 lt_prog_compiler_can_build_shared=no
15251 # QNX uses GNU C++, but need to define -shared option too, otherwise
15252 # it will coredump.
15253 lt_prog_compiler_pic='-fPIC -shared'
15257 if test -d /usr/nec; then
15258 lt_prog_compiler_pic=-Kconform_pic
15263 lt_prog_compiler_pic='-fPIC'
15267 case $cc_basename in
15268 nvcc*) # Cuda Compiler Driver 2.2
15269 lt_prog_compiler_wl='-Xlinker '
15270 lt_prog_compiler_pic='-Xcompiler -fPIC'
15274 # PORTME Check for flag to pass linker flags through the system compiler.
15277 lt_prog_compiler_wl='-Wl,'
15278 if test "$host_cpu" = ia64; then
15279 # AIX 5 now supports IA64 processor
15280 lt_prog_compiler_static='-Bstatic'
15282 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15286 mingw* | cygwin* | pw32* | os2* | cegcc*)
15287 # This hack is so that the source file can tell whether it is being
15288 # built for inclusion in a dll (and should export symbols for example).
15289 lt_prog_compiler_pic='-DDLL_EXPORT'
15292 hpux9* | hpux10* | hpux11*)
15293 lt_prog_compiler_wl='-Wl,'
15294 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15295 # not for PA HP-UX.
15301 lt_prog_compiler_pic='+Z'
15304 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15305 lt_prog_compiler_static='${wl}-a ${wl}archive'
15308 irix5* | irix6* | nonstopux*)
15309 lt_prog_compiler_wl='-Wl,'
15310 # PIC (with -KPIC) is the default.
15311 lt_prog_compiler_static='-non_shared'
15314 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15315 case $cc_basename in
15316 # old Intel for x86_64 which still supported -KPIC.
15318 lt_prog_compiler_wl='-Wl,'
15319 lt_prog_compiler_pic='-KPIC'
15320 lt_prog_compiler_static='-static'
15322 # icc used to be incompatible with GCC.
15323 # ICC 10 doesn't accept -KPIC any more.
15325 lt_prog_compiler_wl='-Wl,'
15326 lt_prog_compiler_pic='-fPIC'
15327 lt_prog_compiler_static='-static'
15329 # Lahey Fortran 8.1.
15331 lt_prog_compiler_wl='-Wl,'
15332 lt_prog_compiler_pic='--shared'
15333 lt_prog_compiler_static='--static'
15335 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15336 # Portland Group compilers (*not* the Pentium gcc compiler,
15337 # which looks to be a dead project)
15338 lt_prog_compiler_wl='-Wl,'
15339 lt_prog_compiler_pic='-fpic'
15340 lt_prog_compiler_static='-Bstatic'
15343 lt_prog_compiler_wl='-Wl,'
15344 # All Alpha code is PIC.
15345 lt_prog_compiler_static='-non_shared'
15347 xl* | bgxl* | bgf* | mpixl*)
15348 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15349 lt_prog_compiler_wl='-Wl,'
15350 lt_prog_compiler_pic='-qpic'
15351 lt_prog_compiler_static='-qstaticlink'
15354 case `$CC -V 2>&1 | sed 5q` in
15355 *Sun\ F* | *Sun*Fortran*)
15356 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15357 lt_prog_compiler_pic='-KPIC'
15358 lt_prog_compiler_static='-Bstatic'
15359 lt_prog_compiler_wl=''
15363 lt_prog_compiler_pic='-KPIC'
15364 lt_prog_compiler_static='-Bstatic'
15365 lt_prog_compiler_wl='-Wl,'
15373 lt_prog_compiler_pic='-KPIC'
15374 lt_prog_compiler_static='-Bstatic'
15378 # QNX uses GNU C++, but need to define -shared option too, otherwise
15379 # it will coredump.
15380 lt_prog_compiler_pic='-fPIC -shared'
15383 osf3* | osf4* | osf5*)
15384 lt_prog_compiler_wl='-Wl,'
15385 # All OSF/1 code is PIC.
15386 lt_prog_compiler_static='-non_shared'
15390 lt_prog_compiler_static='-non_shared'
15394 lt_prog_compiler_pic='-KPIC'
15395 lt_prog_compiler_static='-Bstatic'
15396 case $cc_basename in
15397 f77* | f90* | f95*)
15398 lt_prog_compiler_wl='-Qoption ld ';;
15400 lt_prog_compiler_wl='-Wl,';;
15405 lt_prog_compiler_wl='-Qoption ld '
15406 lt_prog_compiler_pic='-PIC'
15407 lt_prog_compiler_static='-Bstatic'
15410 sysv4 | sysv4.2uw2* | sysv4.3*)
15411 lt_prog_compiler_wl='-Wl,'
15412 lt_prog_compiler_pic='-KPIC'
15413 lt_prog_compiler_static='-Bstatic'
15417 if test -d /usr/nec ;then
15418 lt_prog_compiler_pic='-Kconform_pic'
15419 lt_prog_compiler_static='-Bstatic'
15423 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15424 lt_prog_compiler_wl='-Wl,'
15425 lt_prog_compiler_pic='-KPIC'
15426 lt_prog_compiler_static='-Bstatic'
15430 lt_prog_compiler_wl='-Wl,'
15431 lt_prog_compiler_can_build_shared=no
15435 lt_prog_compiler_pic='-pic'
15436 lt_prog_compiler_static='-Bstatic'
15440 lt_prog_compiler_can_build_shared=no
15446 # For platforms which do not support PIC, -DPIC is meaningless:
15448 lt_prog_compiler_pic=
15451 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15455 $as_echo "$lt_prog_compiler_pic" >&6; }
15463 # Check to make sure the PIC flag actually works.
15465 if test -n "$lt_prog_compiler_pic"; then
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15467 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15468 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15469 $as_echo_n "(cached
) " >&6
15471 lt_cv_prog_compiler_pic_works=no
15472 ac_outfile=conftest.$ac_objext
15473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15474 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15475 # Insert the option either (1) after the last *FLAGS variable, or
15476 # (2) before a word containing "conftest.
", or (3) at the end.
15477 # Note that $ac_compile itself does not contain backslashes and begins
15478 # with a dollar sign (not a hyphen), so the echo should work correctly.
15479 # The option is referenced via a variable to avoid confusing sed.
15480 lt_compile=`echo "$ac_compile" | $SED \
15481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15483 -e 's:$: $lt_compiler_flag:'`
15484 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15485 (eval "$lt_compile" 2>conftest.err)
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15489 if (exit $ac_status) && test -s "$ac_outfile"; then
15490 # The compiler can only warn and ignore the option if not recognized
15491 # So say no if there are warnings other than the usual output.
15492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15494 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15495 lt_cv_prog_compiler_pic_works=yes
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15502 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15504 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15505 case $lt_prog_compiler_pic in
15507 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15510 lt_prog_compiler_pic=
15511 lt_prog_compiler_can_build_shared=no
15522 # Check to make sure the static flag actually works.
15524 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15526 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15527 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15528 $as_echo_n "(cached
) " >&6
15530 lt_cv_prog_compiler_static_works=no
15531 save_LDFLAGS="$LDFLAGS"
15532 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15533 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15534 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15535 # The linker can only warn and ignore the option if not recognized
15536 # So say no if there are warnings
15537 if test -s conftest.err; then
15538 # Append any errors to the config.log.
15539 cat conftest.err 1>&5
15540 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15542 if diff conftest.exp conftest.er2 >/dev/null; then
15543 lt_cv_prog_compiler_static_works=yes
15546 lt_cv_prog_compiler_static_works=yes
15550 LDFLAGS="$save_LDFLAGS"
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15554 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15556 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15559 lt_prog_compiler_static=
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15569 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15570 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15571 $as_echo_n "(cached
) " >&6
15573 lt_cv_prog_compiler_c_o=no
15574 $RM -r conftest 2>/dev/null
15578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15580 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15581 # Insert the option either (1) after the last *FLAGS variable, or
15582 # (2) before a word containing "conftest.
", or (3) at the end.
15583 # Note that $ac_compile itself does not contain backslashes and begins
15584 # with a dollar sign (not a hyphen), so the echo should work correctly.
15585 lt_compile=`echo "$ac_compile" | $SED \
15586 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15587 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15588 -e 's:$: $lt_compiler_flag:'`
15589 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15590 (eval "$lt_compile" 2>out/conftest.err)
15592 cat out/conftest.err >&5
15593 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15594 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15596 # The compiler can only warn and ignore the option if not recognized
15597 # So say no if there are warnings
15598 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15599 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15600 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15601 lt_cv_prog_compiler_c_o=yes
15606 # SGI C++ compiler will create directory out/ii_files/ for
15607 # template instantiation
15608 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15609 $RM out/* && rmdir out
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15616 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15624 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15625 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15626 $as_echo_n "(cached
) " >&6
15628 lt_cv_prog_compiler_c_o=no
15629 $RM -r conftest 2>/dev/null
15633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15635 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15636 # Insert the option either (1) after the last *FLAGS variable, or
15637 # (2) before a word containing "conftest.
", or (3) at the end.
15638 # Note that $ac_compile itself does not contain backslashes and begins
15639 # with a dollar sign (not a hyphen), so the echo should work correctly.
15640 lt_compile=`echo "$ac_compile" | $SED \
15641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15643 -e 's:$: $lt_compiler_flag:'`
15644 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15645 (eval "$lt_compile" 2>out/conftest.err)
15647 cat out/conftest.err >&5
15648 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15649 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15651 # The compiler can only warn and ignore the option if not recognized
15652 # So say no if there are warnings
15653 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15654 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15655 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15656 lt_cv_prog_compiler_c_o=yes
15661 # SGI C++ compiler will create directory out/ii_files/ for
15662 # template instantiation
15663 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15664 $RM out/* && rmdir out
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15671 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15676 hard_links="nottested
"
15677 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15678 # do not overwrite the value of need_locks provided by the user
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15680 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15683 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15685 ln conftest.a conftest.b 2>&5 || hard_links=no
15686 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15688 $as_echo "$hard_links" >&6; }
15689 if test "$hard_links" = no; then
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15691 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15704 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15707 allow_undefined_flag=
15708 always_export_symbols=no
15710 archive_expsym_cmds=
15711 compiler_needs_object=no
15712 enable_shared_with_static_runtimes=no
15713 export_dynamic_flag_spec=
15714 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15715 hardcode_automatic=no
15717 hardcode_direct_absolute=no
15718 hardcode_libdir_flag_spec=
15719 hardcode_libdir_flag_spec_ld=
15720 hardcode_libdir_separator=
15721 hardcode_minus_L=no
15722 hardcode_shlibpath_var=unsupported
15724 link_all_deplibs=unknown
15726 module_expsym_cmds=
15727 old_archive_from_new_cmds=
15728 old_archive_from_expsyms_cmds=
15729 thread_safe_flag_spec=
15730 whole_archive_flag_spec=
15731 # include_expsyms should be a list of space-separated symbols to be *always*
15732 # included in the symbol list
15734 # exclude_expsyms can be an extended regexp of symbols to exclude
15735 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15736 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15737 # as well as any symbol that contains `d'.
15738 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15739 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15740 # platforms (ab)use it in PIC code, but their linkers get confused if
15741 # the symbol is explicitly referenced. Since portable code cannot
15742 # rely on this symbol name, it's probably fine to never include it in
15743 # preloaded symbol tables.
15744 # Exclude shared library initialization/finalization symbols.
15745 extract_expsyms_cmds=
15748 cygwin* | mingw* | pw32* | cegcc*)
15749 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15750 # When not using gcc, we currently assume that we are using
15751 # Microsoft Visual C++.
15752 if test "$GCC" != yes; then
15757 # we just hope/assume this is gcc and not c89 (= MSVC++)
15767 # On some targets, GNU ld is compatible enough with the native linker
15768 # that we're better off using the native interface for both.
15769 lt_use_gnu_ld_interface=no
15770 if test "$with_gnu_ld" = yes; then
15773 # The AIX port of GNU ld has always aspired to compatibility
15774 # with the native linker. However, as the warning in the GNU ld
15775 # block says, versions before 2.19.5* couldn't really create working
15776 # shared libraries, regardless of the interface used.
15777 case `$LD -v 2>&1` in
15778 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15779 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15780 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15782 lt_use_gnu_ld_interface=yes
15787 lt_use_gnu_ld_interface=yes
15792 if test "$lt_use_gnu_ld_interface" = yes; then
15793 # If archive_cmds runs LD, not CC, wlarc should be empty
15796 # Set some defaults for GNU ld with shared library support. These
15797 # are reset later if shared libraries are not supported. Putting them
15798 # here allows them to be overridden if necessary.
15799 runpath_var=LD_RUN_PATH
15800 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15801 export_dynamic_flag_spec='${wl}--export-dynamic'
15802 # ancient GNU ld didn't support --whole-archive et. al.
15803 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15804 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15806 whole_archive_flag_spec=
15808 supports_anon_versioning=no
15809 case `$LD -v 2>&1` in
15810 *GNU\ gold*) supports_anon_versioning=yes ;;
15811 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15812 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15813 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15814 *\ 2.11.*) ;; # other 2.11 versions
15815 *) supports_anon_versioning=yes ;;
15818 # See if GNU ld supports shared libraries.
15821 # On AIX/PPC, the GNU linker is very broken
15822 if test "$host_cpu" != ia64; then
15826 *** Warning: the GNU linker, at least up to release 2.19, is reported
15827 *** to be unable to reliably create shared libraries on AIX.
15828 *** Therefore, libtool is disabling shared libraries support. If you
15829 *** really care for shared libraries, you may want to install binutils
15830 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15831 *** You will then need to restart the configuration process.
15840 # see comment about AmigaOS4 .so support
15841 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15842 archive_expsym_cmds=''
15845 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)'
15846 hardcode_libdir_flag_spec
='-L$libdir'
15847 hardcode_minus_L
=yes
15853 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15854 allow_undefined_flag
=unsupported
15855 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15856 # support --undefined. This deserves some investigation. FIXME
15857 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15863 cygwin
* | mingw
* | pw32
* | cegcc
*)
15864 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15865 # as there is no search path for DLLs.
15866 hardcode_libdir_flag_spec
='-L$libdir'
15867 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15868 allow_undefined_flag
=unsupported
15869 always_export_symbols
=no
15870 enable_shared_with_static_runtimes
=yes
15871 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15873 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15874 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15875 # If the export-symbols file already is a .def file (1st line
15876 # is EXPORTS), use it as is; otherwise, prepend...
15877 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15878 cp $export_symbols $output_objdir/$soname.def;
15880 echo EXPORTS > $output_objdir/$soname.def;
15881 cat $export_symbols >> $output_objdir/$soname.def;
15883 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15890 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15891 link_all_deplibs
=yes
15896 hardcode_shlibpath_var
=no
15897 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15898 export_dynamic_flag_spec
='${wl}-E'
15899 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15900 # Instead, shared libraries are loaded at an image base (0x10000000 by
15901 # default) and relocated if they conflict, which is a slow very memory
15902 # consuming and fragmenting process. To avoid this, we pick a random,
15903 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15904 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15905 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15906 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'
15909 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15911 if test "$host_os" = linux-dietlibc
; then
15912 case $cc_basename in
15913 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15916 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15917 && test "$tmp_diet" = no
15920 tmp_sharedflag
='-shared'
15921 case $cc_basename,$host_cpu in
15922 pgcc
*) # Portland Group C compiler
15923 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'
15924 tmp_addflag
=' $pic_flag'
15926 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15927 # Portland Group f77 and f90 compilers
15928 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'
15929 tmp_addflag
=' $pic_flag -Mnomain' ;;
15930 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15931 tmp_addflag
=' -i_dynamic' ;;
15932 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15933 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15934 ifc
* | ifort
*) # Intel Fortran compiler
15935 tmp_addflag
=' -nofor_main' ;;
15936 lf95
*) # Lahey Fortran 8.1
15937 whole_archive_flag_spec
=
15938 tmp_sharedflag
='--shared' ;;
15939 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15940 tmp_sharedflag
='-qmkshrobj'
15942 nvcc
*) # Cuda Compiler Driver 2.2
15943 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'
15944 compiler_needs_object
=yes
15947 case `$CC -V 2>&1 | sed 5q` in
15948 *Sun\ C
*) # Sun C 5.9
15949 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'
15950 compiler_needs_object
=yes
15951 tmp_sharedflag
='-G' ;;
15952 *Sun\ F
*) # Sun Fortran 8.3
15953 tmp_sharedflag
='-G' ;;
15955 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15957 if test "x$supports_anon_versioning" = xyes
; then
15958 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15959 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15960 echo "local: *; };" >> $output_objdir/$libname.ver~
15961 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15964 case $cc_basename in
15965 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15966 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15967 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15968 hardcode_libdir_flag_spec
=
15969 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15970 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15971 if test "x$supports_anon_versioning" = xyes
; then
15972 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15973 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15974 echo "local: *; };" >> $output_objdir/$libname.ver~
15975 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15985 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15986 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15989 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15990 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15995 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15999 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16000 *** create shared libraries on Solaris systems. Therefore, libtool
16001 *** is disabling shared libraries support. We urge you to upgrade GNU
16002 *** binutils to release 2.9.1 or newer. Another option is to modify
16003 *** your PATH or compiler configuration so that the native linker is
16004 *** used, and then restart.
16007 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16008 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16009 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16015 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16016 case `$LD -v 2>&1` in
16017 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16021 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16022 *** reliably create shared libraries on SCO systems. Therefore, libtool
16023 *** is disabling shared libraries support. We urge you to upgrade GNU
16024 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16025 *** your PATH or compiler configuration so that the native linker is
16026 *** used, and then restart.
16031 # For security reasons, it is highly recommended that you always
16032 # use absolute paths for naming shared libraries, and exclude the
16033 # DT_RUNPATH tag from executables and libraries. But doing so
16034 # requires that you compile everything twice, which is a pain.
16035 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16036 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16037 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16038 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16047 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16049 hardcode_direct
=yes
16050 hardcode_shlibpath_var
=no
16054 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16055 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16056 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16063 if test "$ld_shlibs" = no
; then
16065 hardcode_libdir_flag_spec
=
16066 export_dynamic_flag_spec
=
16067 whole_archive_flag_spec
=
16070 # PORTME fill in a description of your system's linker (not GNU ld)
16073 allow_undefined_flag
=unsupported
16074 always_export_symbols
=yes
16075 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'
16076 # Note: this linker hardcodes the directories in LIBPATH if there
16077 # are no directories specified by -L.
16078 hardcode_minus_L
=yes
16079 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16080 # Neither direct hardcoding nor static linking is supported with a
16082 hardcode_direct
=unsupported
16087 if test "$host_cpu" = ia64
; then
16088 # On IA64, the linker does run time linking by default, so we don't
16089 # have to do anything special.
16090 aix_use_runtimelinking
=no
16091 exp_sym_flag
='-Bexport'
16094 # If we're using GNU nm, then we don't want the "-C" option.
16095 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16096 # Also, AIX nm treats weak defined symbols like other global
16097 # defined symbols, whereas GNU nm marks them as "W".
16098 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16099 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'
16101 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'
16103 aix_use_runtimelinking
=no
16105 # Test if we are trying to use run time linking or normal
16106 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16107 # need to do runtime linking.
16108 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16109 for ld_flag
in $LDFLAGS; do
16110 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16111 aix_use_runtimelinking
=yes
16118 exp_sym_flag
='-bexport'
16119 no_entry_flag
='-bnoentry'
16122 # When large executables or shared objects are built, AIX ld can
16123 # have problems creating the table of contents. If linking a library
16124 # or program results in "error TOC overflow" add -mminimal-toc to
16125 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16126 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16129 hardcode_direct
=yes
16130 hardcode_direct_absolute
=yes
16131 hardcode_libdir_separator
=':'
16132 link_all_deplibs
=yes
16133 file_list_spec
='${wl}-f,'
16135 if test "$GCC" = yes; then
16136 case $host_os in aix4.
[012]|aix4.
[012].
*)
16137 # We only want to do this on AIX 4.2 and lower, the check
16138 # below for broken collect2 doesn't work under 4.3+
16139 collect2name
=`${CC} -print-prog-name=collect2`
16140 if test -f "$collect2name" &&
16141 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16143 # We have reworked collect2
16146 # We have old collect2
16147 hardcode_direct
=unsupported
16148 # It fails to find uninstalled libraries when the uninstalled
16149 # path is not listed in the libpath. Setting hardcode_minus_L
16150 # to unsupported forces relinking
16151 hardcode_minus_L
=yes
16152 hardcode_libdir_flag_spec
='-L$libdir'
16153 hardcode_libdir_separator
=
16157 shared_flag
='-shared'
16158 if test "$aix_use_runtimelinking" = yes; then
16159 shared_flag
="$shared_flag "'${wl}-G'
16163 if test "$host_cpu" = ia64
; then
16164 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16165 # chokes on -Wl,-G. The following line is correct:
16168 if test "$aix_use_runtimelinking" = yes; then
16169 shared_flag
='${wl}-G'
16171 shared_flag
='${wl}-bM:SRE'
16176 export_dynamic_flag_spec
='${wl}-bexpall'
16177 # It seems that -bexpall does not export symbols beginning with
16178 # underscore (_), so it is better to generate a list of symbols to export.
16179 always_export_symbols
=yes
16180 if test "$aix_use_runtimelinking" = yes; then
16181 # Warning - without using the other runtime loading flags (-brtl),
16182 # -berok will link without error, but may produce a broken library.
16183 allow_undefined_flag
='-berok'
16184 # Determine the default libpath from the value encoded in an
16185 # empty executable.
16186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16187 /* end confdefs.h. */
16197 if ac_fn_c_try_link
"$LINENO"; then :
16199 lt_aix_libpath_sed
='
16200 /Import File Strings/,/^$/ {
16206 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16207 # Check for a 64-bit object if we didn't find anything.
16208 if test -z "$aix_libpath"; then
16209 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16212 rm -f core conftest.err conftest.
$ac_objext \
16213 conftest
$ac_exeext conftest.
$ac_ext
16214 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16216 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16217 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"
16219 if test "$host_cpu" = ia64
; then
16220 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16221 allow_undefined_flag
="-z nodefs"
16222 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"
16224 # Determine the default libpath from the value encoded in an
16225 # empty executable.
16226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16227 /* end confdefs.h. */
16237 if ac_fn_c_try_link
"$LINENO"; then :
16239 lt_aix_libpath_sed
='
16240 /Import File Strings/,/^$/ {
16246 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16247 # Check for a 64-bit object if we didn't find anything.
16248 if test -z "$aix_libpath"; then
16249 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16252 rm -f core conftest.err conftest.
$ac_objext \
16253 conftest
$ac_exeext conftest.
$ac_ext
16254 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16256 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16257 # Warning - without using the other run time loading flags,
16258 # -berok will link without error, but may produce a broken library.
16259 no_undefined_flag
=' ${wl}-bernotok'
16260 allow_undefined_flag
=' ${wl}-berok'
16261 if test "$with_gnu_ld" = yes; then
16262 # We only use this code for GNU lds that support --whole-archive.
16263 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16265 # Exported symbols can be pulled into shared objects from archives
16266 whole_archive_flag_spec
='$convenience'
16268 archive_cmds_need_lc
=yes
16269 # This is similar to how AIX traditionally builds its shared libraries.
16270 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'
16278 # see comment about AmigaOS4 .so support
16279 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16280 archive_expsym_cmds
=''
16283 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)'
16284 hardcode_libdir_flag_spec
='-L$libdir'
16285 hardcode_minus_L
=yes
16291 export_dynamic_flag_spec
=-rdynamic
16294 cygwin
* | mingw
* | pw32
* | cegcc
*)
16295 # When not using gcc, we currently assume that we are using
16296 # Microsoft Visual C++.
16297 # hardcode_libdir_flag_spec is actually meaningless, as there is
16298 # no search path for DLLs.
16299 hardcode_libdir_flag_spec
=' '
16300 allow_undefined_flag
=unsupported
16301 # Tell ltmain to make .lib files, not .a files.
16303 # Tell ltmain to make .dll files, not .so files.
16305 # FIXME: Setting linknames here is a bad hack.
16306 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16307 # The linker will automatically build a .lib file if we build a DLL.
16308 old_archive_from_new_cmds
='true'
16309 # FIXME: Should let the user specify the lib program.
16310 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16311 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16312 enable_shared_with_static_runtimes
=yes
16315 darwin
* | rhapsody
*)
16318 archive_cmds_need_lc
=no
16320 hardcode_automatic
=yes
16321 hardcode_shlibpath_var
=unsupported
16322 if test "$lt_cv_ld_force_load" = "yes"; then
16323 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\"`'
16325 whole_archive_flag_spec
=''
16327 link_all_deplibs
=yes
16328 allow_undefined_flag
="$_lt_dar_allow_undefined"
16329 case $cc_basename in
16330 ifort
*) _lt_dar_can_shared
=yes ;;
16331 *) _lt_dar_can_shared
=$GCC ;;
16333 if test "$_lt_dar_can_shared" = "yes"; then
16334 output_verbose_link_cmd
=func_echo_all
16335 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16336 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16337 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}"
16338 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}"
16347 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16348 hardcode_libdir_flag_spec
='-L$libdir'
16349 hardcode_shlibpath_var
=no
16352 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16353 # support. Future versions do this automatically, but an explicit c++rt0.o
16354 # does not break anything, and helps significantly (at the cost of a little
16357 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16358 hardcode_libdir_flag_spec
='-R$libdir'
16359 hardcode_direct
=yes
16360 hardcode_shlibpath_var
=no
16363 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16365 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16366 hardcode_direct
=yes
16367 hardcode_minus_L
=yes
16368 hardcode_shlibpath_var
=no
16371 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16372 freebsd
* | dragonfly
*)
16373 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16374 hardcode_libdir_flag_spec
='-R$libdir'
16375 hardcode_direct
=yes
16376 hardcode_shlibpath_var
=no
16380 if test "$GCC" = yes; then
16381 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'
16383 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'
16385 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16386 hardcode_libdir_separator
=:
16387 hardcode_direct
=yes
16389 # hardcode_minus_L: Not really in the search PATH,
16390 # but as the default location of the library.
16391 hardcode_minus_L
=yes
16392 export_dynamic_flag_spec
='${wl}-E'
16396 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16397 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16399 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16401 if test "$with_gnu_ld" = no
; then
16402 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16403 hardcode_libdir_flag_spec_ld
='+b $libdir'
16404 hardcode_libdir_separator
=:
16405 hardcode_direct
=yes
16406 hardcode_direct_absolute
=yes
16407 export_dynamic_flag_spec
='${wl}-E'
16408 # hardcode_minus_L: Not really in the search PATH,
16409 # but as the default location of the library.
16410 hardcode_minus_L
=yes
16415 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16418 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16421 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16424 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16430 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16433 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16437 # Older versions of the 11.00 compiler do not understand -b yet
16438 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16440 $as_echo_n "checking if $CC understands -b... " >&6; }
16441 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16442 $as_echo_n "(cached) " >&6
16444 lt_cv_prog_compiler__b
=no
16445 save_LDFLAGS
="$LDFLAGS"
16446 LDFLAGS
="$LDFLAGS -b"
16447 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16448 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16449 # The linker can only warn and ignore the option if not recognized
16450 # So say no if there are warnings
16451 if test -s conftest.err
; then
16452 # Append any errors to the config.log.
16453 cat conftest.err
1>&5
16454 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16455 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16456 if diff conftest.exp conftest.er2
>/dev
/null
; then
16457 lt_cv_prog_compiler__b
=yes
16460 lt_cv_prog_compiler__b
=yes
16464 LDFLAGS
="$save_LDFLAGS"
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16468 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16470 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16471 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16473 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16479 if test "$with_gnu_ld" = no
; then
16480 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16481 hardcode_libdir_separator
=:
16486 hardcode_shlibpath_var
=no
16489 hardcode_direct
=yes
16490 hardcode_direct_absolute
=yes
16491 export_dynamic_flag_spec
='${wl}-E'
16493 # hardcode_minus_L: Not really in the search PATH,
16494 # but as the default location of the library.
16495 hardcode_minus_L
=yes
16501 irix5
* | irix6
* | nonstopux
*)
16502 if test "$GCC" = yes; then
16503 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'
16504 # Try to use the -exported_symbol ld option, if it does not
16505 # work, assume that -exports_file does not work either and
16506 # implicitly export all symbols.
16507 save_LDFLAGS
="$LDFLAGS"
16508 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16510 /* end confdefs.h. */
16513 if ac_fn_c_try_link
"$LINENO"; then :
16514 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'
16517 rm -f core conftest.err conftest.
$ac_objext \
16518 conftest
$ac_exeext conftest.
$ac_ext
16519 LDFLAGS
="$save_LDFLAGS"
16521 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'
16522 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'
16524 archive_cmds_need_lc
='no'
16525 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16526 hardcode_libdir_separator
=:
16528 link_all_deplibs
=yes
16532 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16533 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16535 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16537 hardcode_libdir_flag_spec
='-R$libdir'
16538 hardcode_direct
=yes
16539 hardcode_shlibpath_var
=no
16543 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16544 hardcode_direct
=yes
16545 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16546 hardcode_libdir_separator
=:
16547 hardcode_shlibpath_var
=no
16554 if test -f /usr
/libexec
/ld.so
; then
16555 hardcode_direct
=yes
16556 hardcode_shlibpath_var
=no
16557 hardcode_direct_absolute
=yes
16558 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16559 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16560 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16561 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16562 export_dynamic_flag_spec
='${wl}-E'
16565 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16566 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16567 hardcode_libdir_flag_spec
='-R$libdir'
16570 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16571 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16581 hardcode_libdir_flag_spec
='-L$libdir'
16582 hardcode_minus_L
=yes
16583 allow_undefined_flag
=unsupported
16584 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'
16585 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16589 if test "$GCC" = yes; then
16590 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16591 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'
16593 allow_undefined_flag
=' -expect_unresolved \*'
16594 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'
16596 archive_cmds_need_lc
='no'
16597 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16598 hardcode_libdir_separator
=:
16601 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16602 if test "$GCC" = yes; then
16603 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16604 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'
16605 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16607 allow_undefined_flag
=' -expect_unresolved \*'
16608 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'
16609 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~
16610 $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'
16612 # Both c and cxx compiler support -rpath directly
16613 hardcode_libdir_flag_spec
='-rpath $libdir'
16615 archive_cmds_need_lc
='no'
16616 hardcode_libdir_separator
=:
16620 no_undefined_flag
=' -z defs'
16621 if test "$GCC" = yes; then
16623 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16624 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16625 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16627 case `$CC -V 2>&1` in
16630 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16631 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16632 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16636 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16637 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16638 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16642 hardcode_libdir_flag_spec
='-R$libdir'
16643 hardcode_shlibpath_var
=no
16645 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16647 # The compiler driver will combine and reorder linker options,
16648 # but understands `-z linker_flag'. GCC discards it without `$wl',
16649 # but is careful enough not to reorder.
16650 # Supported since Solaris 2.6 (maybe 2.5.1?)
16651 if test "$GCC" = yes; then
16652 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16654 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16658 link_all_deplibs
=yes
16662 if test "x$host_vendor" = xsequent
; then
16663 # Use $CC to link under sequent, because it throws in some extra .o
16664 # files that make .init and .fini sections work.
16665 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16667 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16669 hardcode_libdir_flag_spec
='-L$libdir'
16670 hardcode_direct
=yes
16671 hardcode_minus_L
=yes
16672 hardcode_shlibpath_var
=no
16676 case $host_vendor in
16678 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16679 hardcode_direct
=yes # is this really true???
16682 ## LD is ld it makes a PLAMLIB
16683 ## CC just makes a GrossModule.
16684 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16685 reload_cmds
='$CC -r -o $output$reload_objs'
16689 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16690 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16693 runpath_var
='LD_RUN_PATH'
16694 hardcode_shlibpath_var
=no
16698 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16699 hardcode_shlibpath_var
=no
16700 export_dynamic_flag_spec
='-Bexport'
16704 if test -d /usr
/nec
; then
16705 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16706 hardcode_shlibpath_var
=no
16707 runpath_var
=LD_RUN_PATH
16708 hardcode_runpath_var
=yes
16713 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16714 no_undefined_flag
='${wl}-z,text'
16715 archive_cmds_need_lc
=no
16716 hardcode_shlibpath_var
=no
16717 runpath_var
='LD_RUN_PATH'
16719 if test "$GCC" = yes; then
16720 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16721 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16723 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16724 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16728 sysv5
* | sco3.2v5
* | sco5v6
*)
16729 # Note: We can NOT use -z defs as we might desire, because we do not
16730 # link with -lc, and that would cause any symbols used from libc to
16731 # always be unresolved, which means just about no library would
16732 # ever link correctly. If we're not using GNU ld we use -z text
16733 # though, which does catch some bad symbols but isn't as heavy-handed
16735 no_undefined_flag
='${wl}-z,text'
16736 allow_undefined_flag
='${wl}-z,nodefs'
16737 archive_cmds_need_lc
=no
16738 hardcode_shlibpath_var
=no
16739 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16740 hardcode_libdir_separator
=':'
16741 link_all_deplibs
=yes
16742 export_dynamic_flag_spec
='${wl}-Bexport'
16743 runpath_var
='LD_RUN_PATH'
16745 if test "$GCC" = yes; then
16746 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16747 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16749 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16750 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16755 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16756 hardcode_libdir_flag_spec
='-L$libdir'
16757 hardcode_shlibpath_var
=no
16765 if test x
$host_vendor = xsni
; then
16767 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16768 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16775 $as_echo "$ld_shlibs" >&6; }
16776 test "$ld_shlibs" = no
&& can_build_shared
=no
16778 with_gnu_ld
=$with_gnu_ld
16795 # Do we need to explicitly link libc?
16797 case "x$archive_cmds_need_lc" in
16799 # Assume -lc should be added
16800 archive_cmds_need_lc
=yes
16802 if test "$enable_shared" = yes && test "$GCC" = yes; then
16803 case $archive_cmds in
16805 # FIXME: we may have to deal with multi-command sequences.
16808 # Test whether the compiler implicitly links with -lc since on some
16809 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16810 # to ld, don't add -lc before -lgcc.
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16812 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16813 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16814 $as_echo_n "(cached) " >&6
16817 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16820 (eval $ac_compile) 2>&5
16822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16823 test $ac_status = 0; } 2>conftest.err
; then
16826 libobjs
=conftest.
$ac_objext
16828 wl
=$lt_prog_compiler_wl
16829 pic_flag
=$lt_prog_compiler_pic
16835 lt_save_allow_undefined_flag
=$allow_undefined_flag
16836 allow_undefined_flag
=
16837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16838 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16841 test $ac_status = 0; }
16843 lt_cv_archive_cmds_need_lc
=no
16845 lt_cv_archive_cmds_need_lc
=yes
16847 allow_undefined_flag
=$lt_save_allow_undefined_flag
16849 cat conftest.err
1>&5
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16855 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16856 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17020 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17022 if test "$GCC" = yes; then
17024 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17025 *) lt_awk_arg
="/^libraries:/" ;;
17028 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17029 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17031 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17032 case $lt_search_path_spec in
17034 # if the path contains ";" then we assume it to be the separator
17035 # otherwise default to the standard path separator (i.e. ":") - it is
17036 # assumed that no part of a normal pathname contains ";" but that should
17037 # okay in the real world where ";" in dirpaths is itself problematic.
17038 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17041 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17044 # Ok, now we have the path, separated by spaces, we can step through it
17045 # and add multilib dir if necessary.
17046 lt_tmp_lt_search_path_spec
=
17047 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17048 for lt_sys_path
in $lt_search_path_spec; do
17049 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17050 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17052 test -d "$lt_sys_path" && \
17053 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17056 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17057 BEGIN {RS=" "; FS="/|\n";} {
17060 for (lt_i = NF; lt_i > 0; lt_i--) {
17061 if ($lt_i != "" && $lt_i != ".") {
17062 if ($lt_i == "..") {
17065 if (lt_count == 0) {
17066 lt_foo="/" $lt_i lt_foo;
17073 if (lt_foo != "") { lt_freq[lt_foo]++; }
17074 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17076 # AWK program above erroneously prepends '/' to C:/dos/paths
17079 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17080 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17082 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17084 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17086 library_names_spec
=
17087 libname_spec
='lib$name'
17091 postuninstall_cmds
=
17095 shlibpath_overrides_runpath
=unknown
17097 dynamic_linker
="$host_os ld.so"
17098 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17099 need_lib_prefix
=unknown
17100 hardcode_into_libs
=no
17102 # when you set need_version to no, make sure it does not cause -set_version
17103 # flags to be left without arguments
17104 need_version
=unknown
17109 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17110 shlibpath_var
=LIBPATH
17112 # AIX 3 has no versioning support, so we append a major version to the name.
17113 soname_spec
='${libname}${release}${shared_ext}$major'
17120 hardcode_into_libs
=yes
17121 if test "$host_cpu" = ia64
; then
17122 # AIX 5 supports IA64
17123 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17124 shlibpath_var
=LD_LIBRARY_PATH
17126 # With GCC up to 2.95.x, collect2 would create an import file
17127 # for dependence libraries. The import file would start with
17128 # the line `#! .'. This would cause the generated library to
17129 # depend on `.', always an invalid library. This was fixed in
17130 # development snapshots of GCC prior to 3.0.
17132 aix4 | aix4.
[01] | aix4.
[01].
*)
17133 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17135 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17138 can_build_shared
=no
17142 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17143 # soname into executable. Probably we can add versioning support to
17144 # collect2, so additional links can be useful in future.
17145 if test "$aix_use_runtimelinking" = yes; then
17146 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17147 # instead of lib<name>.a to let people know that these are not
17148 # typical AIX shared libraries.
17149 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17151 # We preserve .a as extension for shared libraries through AIX4.2
17152 # and later when we are not doing run time linking.
17153 library_names_spec
='${libname}${release}.a $libname.a'
17154 soname_spec
='${libname}${release}${shared_ext}$major'
17156 shlibpath_var
=LIBPATH
17163 # Since July 2007 AmigaOS4 officially supports .so libraries.
17164 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17165 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17168 library_names_spec
='$libname.ixlibrary $libname.a'
17169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17170 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'
17176 library_names_spec
='${libname}${shared_ext}'
17177 dynamic_linker
="$host_os ld.so"
17178 shlibpath_var
=LIBRARY_PATH
17184 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17185 soname_spec
='${libname}${release}${shared_ext}$major'
17186 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17187 shlibpath_var
=LD_LIBRARY_PATH
17188 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17189 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17190 # the default ld.so.conf also contains /usr/contrib/lib and
17191 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17192 # libtool to hard-code these into programs
17195 cygwin
* | mingw
* | pw32
* | cegcc
*)
17196 version_type
=windows
17201 case $GCC,$host_os in
17202 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17203 library_names_spec
='$libname.dll.a'
17204 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17205 postinstall_cmds
='base_file=`basename \${file}`~
17206 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17207 dldir=$destdir/`dirname \$dlpath`~
17208 test -d \$dldir || mkdir -p \$dldir~
17209 $install_prog $dir/$dlname \$dldir/$dlname~
17210 chmod a+x \$dldir/$dlname~
17211 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17212 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17214 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17215 dlpath=$dir/\$dldll~
17217 shlibpath_overrides_runpath
=yes
17221 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17222 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17224 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17227 # MinGW DLLs use traditional 'lib' prefix
17228 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17231 # pw32 DLLs use 'pw' prefix rather than 'lib'
17232 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17238 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17241 dynamic_linker
='Win32 ld.exe'
17242 # FIXME: first we should search . and the directory the executable is in
17246 darwin
* | rhapsody
*)
17247 dynamic_linker
="$host_os dyld"
17248 version_type
=darwin
17251 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17252 soname_spec
='${libname}${release}${major}$shared_ext'
17253 shlibpath_overrides_runpath
=yes
17254 shlibpath_var
=DYLD_LIBRARY_PATH
17255 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17257 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17258 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17265 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17266 soname_spec
='${libname}${release}${shared_ext}$major'
17267 shlibpath_var
=LD_LIBRARY_PATH
17270 freebsd
* | dragonfly
*)
17271 # DragonFly does not have aout. When/if they implement a new
17272 # versioning mechanism, adjust this.
17273 if test -x /usr
/bin
/objformat
; then
17274 objformat
=`/usr/bin/objformat`
17277 freebsd
[23].
*) objformat
=aout
;;
17278 *) objformat
=elf
;;
17281 version_type
=freebsd-
$objformat
17282 case $version_type in
17284 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17289 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17293 shlibpath_var
=LD_LIBRARY_PATH
17296 shlibpath_overrides_runpath
=yes
17298 freebsd3.
[01]* | freebsdelf3.
[01]*)
17299 shlibpath_overrides_runpath
=yes
17300 hardcode_into_libs
=yes
17302 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17303 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17304 shlibpath_overrides_runpath
=no
17305 hardcode_into_libs
=yes
17307 *) # from 4.6 on, and DragonFly
17308 shlibpath_overrides_runpath
=yes
17309 hardcode_into_libs
=yes
17318 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17319 soname_spec
='${libname}${release}${shared_ext}$major'
17320 shlibpath_var
=LD_LIBRARY_PATH
17321 hardcode_into_libs
=yes
17328 dynamic_linker
="$host_os runtime_loader"
17329 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17330 soname_spec
='${libname}${release}${shared_ext}$major'
17331 shlibpath_var
=LIBRARY_PATH
17332 shlibpath_overrides_runpath
=yes
17333 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17334 hardcode_into_libs
=yes
17337 hpux9
* | hpux10
* | hpux11
*)
17338 # Give a soname corresponding to the major version so that dld.sl refuses to
17339 # link against other versions.
17346 hardcode_into_libs
=yes
17347 dynamic_linker
="$host_os dld.so"
17348 shlibpath_var
=LD_LIBRARY_PATH
17349 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17350 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17351 soname_spec
='${libname}${release}${shared_ext}$major'
17352 if test "X$HPUX_IA64_MODE" = X32
; then
17353 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17355 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17357 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17361 hardcode_into_libs
=yes
17362 dynamic_linker
="$host_os dld.sl"
17363 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17364 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17365 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17366 soname_spec
='${libname}${release}${shared_ext}$major'
17367 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17368 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17372 dynamic_linker
="$host_os dld.sl"
17373 shlibpath_var
=SHLIB_PATH
17374 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17375 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17376 soname_spec
='${libname}${release}${shared_ext}$major'
17379 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17380 postinstall_cmds
='chmod 555 $lib'
17381 # or fails outright, so override atomically:
17382 install_override_mode
=555
17389 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17390 soname_spec
='${libname}${release}${shared_ext}$major'
17391 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17392 shlibpath_var
=LD_LIBRARY_PATH
17393 shlibpath_overrides_runpath
=no
17394 hardcode_into_libs
=yes
17397 irix5
* | irix6
* | nonstopux
*)
17399 nonstopux
*) version_type
=nonstopux
;;
17401 if test "$lt_cv_prog_gnu_ld" = yes; then
17409 soname_spec
='${libname}${release}${shared_ext}$major'
17410 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17412 irix5
* | nonstopux
*)
17413 libsuff
= shlibsuff
=
17416 case $LD in # libtool.m4 will add one of these switches to LD
17417 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17418 libsuff
= shlibsuff
= libmagic
=32-bit;;
17419 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17420 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17421 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17422 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17423 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17427 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17428 shlibpath_overrides_runpath
=no
17429 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17430 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17431 hardcode_into_libs
=yes
17434 # No shared lib support for Linux oldld, aout, or coff.
17435 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17439 # This must be Linux ELF.
17440 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17444 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17445 soname_spec
='${libname}${release}${shared_ext}$major'
17446 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17447 shlibpath_var
=LD_LIBRARY_PATH
17448 shlibpath_overrides_runpath
=no
17450 # Some binutils ld are patched to set DT_RUNPATH
17451 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17452 $as_echo_n "(cached) " >&6
17454 lt_cv_shlibpath_overrides_runpath
=no
17455 save_LDFLAGS
=$LDFLAGS
17456 save_libdir
=$libdir
17457 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17458 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17460 /* end confdefs.h. */
17470 if ac_fn_c_try_link
"$LINENO"; then :
17471 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17472 lt_cv_shlibpath_overrides_runpath
=yes
17475 rm -f core conftest.err conftest.
$ac_objext \
17476 conftest
$ac_exeext conftest.
$ac_ext
17477 LDFLAGS
=$save_LDFLAGS
17478 libdir
=$save_libdir
17482 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17484 # This implies no fast_install, which is unacceptable.
17485 # Some rework will be needed to allow for fast_install
17486 # before this can be enabled.
17487 hardcode_into_libs
=yes
17489 # Append ld.so.conf contents to the search path
17490 if test -f /etc
/ld.so.conf
; then
17491 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' ' '`
17492 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17495 # We used to test for /lib/ld.so.1 and disable shared libraries on
17496 # powerpc, because MkLinux only supported shared libraries with the
17497 # GNU dynamic linker. Since this was broken with cross compilers,
17498 # most powerpc-linux boxes support dynamic linking these days and
17499 # people can always --disable-shared, the test was removed, and we
17500 # assume the GNU/Linux dynamic linker is in use.
17501 dynamic_linker
='GNU/Linux ld.so'
17508 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17509 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17510 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17511 dynamic_linker
='NetBSD (a.out) ld.so'
17513 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17514 soname_spec
='${libname}${release}${shared_ext}$major'
17515 dynamic_linker
='NetBSD ld.elf_so'
17517 shlibpath_var
=LD_LIBRARY_PATH
17518 shlibpath_overrides_runpath
=yes
17519 hardcode_into_libs
=yes
17524 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17525 shlibpath_var
=LD_LIBRARY_PATH
17526 shlibpath_overrides_runpath
=yes
17533 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17534 soname_spec
='${libname}${release}${shared_ext}$major'
17535 shlibpath_var
=LD_LIBRARY_PATH
17536 shlibpath_overrides_runpath
=no
17537 hardcode_into_libs
=yes
17538 dynamic_linker
='ldqnx.so'
17543 sys_lib_dlsearch_path_spec
="/usr/lib"
17545 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17547 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17548 *) need_version
=no
;;
17550 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17551 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17552 shlibpath_var
=LD_LIBRARY_PATH
17553 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17555 openbsd2.
[89] | openbsd2.
[89].
*)
17556 shlibpath_overrides_runpath
=no
17559 shlibpath_overrides_runpath
=yes
17563 shlibpath_overrides_runpath
=yes
17568 libname_spec
='$name'
17571 library_names_spec
='$libname${shared_ext} $libname.a'
17572 dynamic_linker
='OS/2 ld.exe'
17573 shlibpath_var
=LIBPATH
17576 osf3
* | osf4
* | osf5
*)
17580 soname_spec
='${libname}${release}${shared_ext}$major'
17581 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17582 shlibpath_var
=LD_LIBRARY_PATH
17583 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17584 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17595 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17596 soname_spec
='${libname}${release}${shared_ext}$major'
17597 shlibpath_var
=LD_LIBRARY_PATH
17598 shlibpath_overrides_runpath
=yes
17599 hardcode_into_libs
=yes
17600 # ldd complains unless libraries are executable
17601 postinstall_cmds
='chmod +x $lib'
17606 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17607 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17608 shlibpath_var
=LD_LIBRARY_PATH
17609 shlibpath_overrides_runpath
=yes
17610 if test "$with_gnu_ld" = yes; then
17618 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17619 soname_spec
='${libname}${release}${shared_ext}$major'
17620 shlibpath_var
=LD_LIBRARY_PATH
17621 case $host_vendor in
17623 shlibpath_overrides_runpath
=no
17625 runpath_var
=LD_RUN_PATH
17633 shlibpath_overrides_runpath
=no
17634 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17640 if test -d /usr
/nec
;then
17642 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17643 soname_spec
='$libname${shared_ext}.$major'
17644 shlibpath_var
=LD_LIBRARY_PATH
17648 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17649 version_type
=freebsd-elf
17652 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17653 soname_spec
='${libname}${release}${shared_ext}$major'
17654 shlibpath_var
=LD_LIBRARY_PATH
17655 shlibpath_overrides_runpath
=yes
17656 hardcode_into_libs
=yes
17657 if test "$with_gnu_ld" = yes; then
17658 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17660 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17663 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17667 sys_lib_dlsearch_path_spec
='/usr/lib'
17671 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17675 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17676 shlibpath_var
=LD_LIBRARY_PATH
17677 shlibpath_overrides_runpath
=no
17678 hardcode_into_libs
=yes
17683 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17684 soname_spec
='${libname}${release}${shared_ext}$major'
17685 shlibpath_var
=LD_LIBRARY_PATH
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17693 $as_echo "$dynamic_linker" >&6; }
17694 test "$dynamic_linker" = no
&& can_build_shared
=no
17696 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17697 if test "$GCC" = yes; then
17698 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17701 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17702 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17704 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17705 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17800 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17802 if test -n "$hardcode_libdir_flag_spec" ||
17803 test -n "$runpath_var" ||
17804 test "X$hardcode_automatic" = "Xyes" ; then
17806 # We can hardcode non-existent directories.
17807 if test "$hardcode_direct" != no
&&
17808 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17809 # have to relink, otherwise we might link with an installed library
17810 # when we should be linking with a yet-to-be-installed one
17811 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17812 test "$hardcode_minus_L" != no
; then
17813 # Linking always hardcodes the temporary library directory.
17814 hardcode_action
=relink
17816 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17817 hardcode_action
=immediate
17820 # We cannot hardcode anything, or else we can only hardcode existing
17822 hardcode_action
=unsupported
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17825 $as_echo "$hardcode_action" >&6; }
17827 if test "$hardcode_action" = relink ||
17828 test "$inherit_rpath" = yes; then
17829 # Fast installation is not supported
17830 enable_fast_install
=no
17831 elif test "$shlibpath_overrides_runpath" = yes ||
17832 test "$enable_shared" = no
; then
17833 # Fast installation is not necessary
17834 enable_fast_install
=needless
17842 if test "x$enable_dlopen" != xyes
; then
17843 enable_dlopen
=unknown
17844 enable_dlopen_self
=unknown
17845 enable_dlopen_self_static
=unknown
17852 lt_cv_dlopen
="load_add_on"
17854 lt_cv_dlopen_self
=yes
17857 mingw
* | pw32
* | cegcc
*)
17858 lt_cv_dlopen
="LoadLibrary"
17863 lt_cv_dlopen
="dlopen"
17868 # if libdl is installed we need to link against it
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17870 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17871 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17872 $as_echo_n "(cached) " >&6
17874 ac_check_lib_save_LIBS
=$LIBS
17876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17877 /* end confdefs.h. */
17879 /* Override any GCC internal prototype to avoid an error.
17880 Use char because int might match the return type of a GCC
17881 builtin and then its argument prototype would still apply. */
17894 if ac_fn_c_try_link
"$LINENO"; then :
17895 ac_cv_lib_dl_dlopen
=yes
17897 ac_cv_lib_dl_dlopen
=no
17899 rm -f core conftest.err conftest.
$ac_objext \
17900 conftest
$ac_exeext conftest.
$ac_ext
17901 LIBS
=$ac_check_lib_save_LIBS
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17904 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17905 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17906 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17909 lt_cv_dlopen
="dyld"
17911 lt_cv_dlopen_self
=yes
17918 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17919 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17920 lt_cv_dlopen
="shl_load"
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17923 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17924 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17925 $as_echo_n "(cached) " >&6
17927 ac_check_lib_save_LIBS
=$LIBS
17929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17930 /* end confdefs.h. */
17932 /* Override any GCC internal prototype to avoid an error.
17933 Use char because int might match the return type of a GCC
17934 builtin and then its argument prototype would still apply. */
17942 return shl_load ();
17947 if ac_fn_c_try_link
"$LINENO"; then :
17948 ac_cv_lib_dld_shl_load
=yes
17950 ac_cv_lib_dld_shl_load
=no
17952 rm -f core conftest.err conftest.
$ac_objext \
17953 conftest
$ac_exeext conftest.
$ac_ext
17954 LIBS
=$ac_check_lib_save_LIBS
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17957 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17958 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17959 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17961 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17962 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17963 lt_cv_dlopen
="dlopen"
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17966 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17968 $as_echo_n "(cached) " >&6
17970 ac_check_lib_save_LIBS
=$LIBS
17972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17973 /* end confdefs.h. */
17975 /* Override any GCC internal prototype to avoid an error.
17976 Use char because int might match the return type of a GCC
17977 builtin and then its argument prototype would still apply. */
17990 if ac_fn_c_try_link
"$LINENO"; then :
17991 ac_cv_lib_dl_dlopen
=yes
17993 ac_cv_lib_dl_dlopen
=no
17995 rm -f core conftest.err conftest.
$ac_objext \
17996 conftest
$ac_exeext conftest.
$ac_ext
17997 LIBS
=$ac_check_lib_save_LIBS
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18000 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18001 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18002 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18005 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18006 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18007 $as_echo_n "(cached) " >&6
18009 ac_check_lib_save_LIBS
=$LIBS
18010 LIBS
="-lsvld $LIBS"
18011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18012 /* end confdefs.h. */
18014 /* Override any GCC internal prototype to avoid an error.
18015 Use char because int might match the return type of a GCC
18016 builtin and then its argument prototype would still apply. */
18029 if ac_fn_c_try_link
"$LINENO"; then :
18030 ac_cv_lib_svld_dlopen
=yes
18032 ac_cv_lib_svld_dlopen
=no
18034 rm -f core conftest.err conftest.
$ac_objext \
18035 conftest
$ac_exeext conftest.
$ac_ext
18036 LIBS
=$ac_check_lib_save_LIBS
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18039 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18040 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18041 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18044 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18045 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18046 $as_echo_n "(cached) " >&6
18048 ac_check_lib_save_LIBS
=$LIBS
18050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18051 /* end confdefs.h. */
18053 /* Override any GCC internal prototype to avoid an error.
18054 Use char because int might match the return type of a GCC
18055 builtin and then its argument prototype would still apply. */
18063 return dld_link ();
18068 if ac_fn_c_try_link
"$LINENO"; then :
18069 ac_cv_lib_dld_dld_link
=yes
18071 ac_cv_lib_dld_dld_link
=no
18073 rm -f core conftest.err conftest.
$ac_objext \
18074 conftest
$ac_exeext conftest.
$ac_ext
18075 LIBS
=$ac_check_lib_save_LIBS
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18078 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18079 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18080 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18101 if test "x$lt_cv_dlopen" != xno
; then
18107 case $lt_cv_dlopen in
18109 save_CPPFLAGS
="$CPPFLAGS"
18110 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18112 save_LDFLAGS
="$LDFLAGS"
18113 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18116 LIBS
="$lt_cv_dlopen_libs $LIBS"
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18119 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18120 if test "${lt_cv_dlopen_self+set}" = set; then :
18121 $as_echo_n "(cached) " >&6
18123 if test "$cross_compiling" = yes; then :
18124 lt_cv_dlopen_self
=cross
18126 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18127 lt_status
=$lt_dlunknown
18128 cat > conftest.
$ac_ext <<_LT_EOF
18129 #line 18129 "configure"
18130 #include "confdefs.h"
18139 # define LT_DLGLOBAL RTLD_GLOBAL
18142 # define LT_DLGLOBAL DL_GLOBAL
18144 # define LT_DLGLOBAL 0
18148 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18149 find out it does not work in some platform. */
18150 #ifndef LT_DLLAZY_OR_NOW
18152 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18155 # define LT_DLLAZY_OR_NOW DL_LAZY
18158 # define LT_DLLAZY_OR_NOW RTLD_NOW
18161 # define LT_DLLAZY_OR_NOW DL_NOW
18163 # define LT_DLLAZY_OR_NOW 0
18170 /* When -fvisbility=hidden is used, assume the code has been annotated
18171 correspondingly for the symbols needed. */
18172 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18173 void fnord () __attribute__((visibility("default")));
18176 void fnord () { int i=42; }
18179 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18180 int status = $lt_dlunknown;
18184 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18187 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18188 else puts (dlerror ());
18190 /* dlclose (self); */
18198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18199 (eval $ac_link) 2>&5
18201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18202 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18203 (.
/conftest
; exit; ) >&5 2>/dev
/null
18205 case x
$lt_status in
18206 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18207 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18208 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18211 # compilation failed
18212 lt_cv_dlopen_self
=no
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18220 $as_echo "$lt_cv_dlopen_self" >&6; }
18222 if test "x$lt_cv_dlopen_self" = xyes
; then
18223 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18225 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18226 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18227 $as_echo_n "(cached) " >&6
18229 if test "$cross_compiling" = yes; then :
18230 lt_cv_dlopen_self_static
=cross
18232 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18233 lt_status
=$lt_dlunknown
18234 cat > conftest.
$ac_ext <<_LT_EOF
18235 #line 18235 "configure"
18236 #include "confdefs.h"
18245 # define LT_DLGLOBAL RTLD_GLOBAL
18248 # define LT_DLGLOBAL DL_GLOBAL
18250 # define LT_DLGLOBAL 0
18254 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18255 find out it does not work in some platform. */
18256 #ifndef LT_DLLAZY_OR_NOW
18258 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18261 # define LT_DLLAZY_OR_NOW DL_LAZY
18264 # define LT_DLLAZY_OR_NOW RTLD_NOW
18267 # define LT_DLLAZY_OR_NOW DL_NOW
18269 # define LT_DLLAZY_OR_NOW 0
18276 /* When -fvisbility=hidden is used, assume the code has been annotated
18277 correspondingly for the symbols needed. */
18278 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18279 void fnord () __attribute__((visibility("default")));
18282 void fnord () { int i=42; }
18285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18286 int status = $lt_dlunknown;
18290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18293 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18294 else puts (dlerror ());
18296 /* dlclose (self); */
18304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18305 (eval $ac_link) 2>&5
18307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18308 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18309 (.
/conftest
; exit; ) >&5 2>/dev
/null
18311 case x
$lt_status in
18312 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18313 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18314 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18317 # compilation failed
18318 lt_cv_dlopen_self_static
=no
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18326 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18329 CPPFLAGS
="$save_CPPFLAGS"
18330 LDFLAGS
="$save_LDFLAGS"
18335 case $lt_cv_dlopen_self in
18336 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18337 *) enable_dlopen_self
=unknown
;;
18340 case $lt_cv_dlopen_self_static in
18341 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18342 *) enable_dlopen_self_static
=unknown
;;
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18365 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18366 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18367 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18368 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18370 $as_echo "yes" >&6; }
18372 # FIXME - insert some real tests, host_os isn't really good enough
18375 if test -n "$STRIP" ; then
18376 striplib
="$STRIP -x"
18377 old_striplib
="$STRIP -S"
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18379 $as_echo "yes" >&6; }
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18382 $as_echo "no" >&6; }
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18387 $as_echo "no" >&6; }
18403 # Report which library types will actually be built
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18405 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18407 $as_echo "$can_build_shared" >&6; }
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18410 $as_echo_n "checking whether to build shared libraries... " >&6; }
18411 test "$can_build_shared" = "no" && enable_shared
=no
18413 # On AIX, shared libraries and static libraries use the same namespace, and
18414 # are all built from PIC.
18417 test "$enable_shared" = yes && enable_static
=no
18418 if test -n "$RANLIB"; then
18419 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18420 postinstall_cmds
='$RANLIB $lib'
18425 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18426 test "$enable_shared" = yes && enable_static
=no
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18431 $as_echo "$enable_shared" >&6; }
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18434 $as_echo_n "checking whether to build static libraries... " >&6; }
18435 # Make sure either enable_shared or enable_static is yes.
18436 test "$enable_shared" = yes || enable_static
=yes
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18438 $as_echo "$enable_static" >&6; }
18445 ac_cpp
='$CPP $CPPFLAGS'
18446 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18447 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18448 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18452 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18453 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18454 (test "X$CXX" != "Xg++"))) ; then
18456 ac_cpp
='$CXXCPP $CPPFLAGS'
18457 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18458 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18459 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18461 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18462 if test -z "$CXXCPP"; then
18463 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18464 $as_echo_n "(cached) " >&6
18466 # Double quotes because CXXCPP needs to be expanded
18467 for CXXCPP
in "$CXX -E" "/lib/cpp"
18469 ac_preproc_ok
=false
18470 for ac_cxx_preproc_warn_flag
in '' yes
18472 # Use a header file that comes with gcc, so configuring glibc
18473 # with a fresh cross-compiler works.
18474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18475 # <limits.h> exists even on freestanding compilers.
18476 # On the NeXT, cc -E runs the code through the compiler's parser,
18477 # not just through cpp. "Syntax error" is here to catch this case.
18478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18479 /* end confdefs.h. */
18481 # include <limits.h>
18483 # include <assert.h>
18487 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18490 # Broken: fails on valid input.
18493 rm -f conftest.err conftest.
$ac_ext
18495 # OK, works on sane cases. Now check whether nonexistent headers
18496 # can be detected and how.
18497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18498 /* end confdefs.h. */
18499 #include <ac_nonexistent.h>
18501 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18502 # Broken: success on invalid input.
18505 # Passes both tests.
18509 rm -f conftest.err conftest.
$ac_ext
18512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18513 rm -f conftest.err conftest.
$ac_ext
18514 if $ac_preproc_ok; then :
18519 ac_cv_prog_CXXCPP
=$CXXCPP
18522 CXXCPP
=$ac_cv_prog_CXXCPP
18524 ac_cv_prog_CXXCPP
=$CXXCPP
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18527 $as_echo "$CXXCPP" >&6; }
18528 ac_preproc_ok
=false
18529 for ac_cxx_preproc_warn_flag
in '' yes
18531 # Use a header file that comes with gcc, so configuring glibc
18532 # with a fresh cross-compiler works.
18533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18534 # <limits.h> exists even on freestanding compilers.
18535 # On the NeXT, cc -E runs the code through the compiler's parser,
18536 # not just through cpp. "Syntax error" is here to catch this case.
18537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18538 /* end confdefs.h. */
18540 # include <limits.h>
18542 # include <assert.h>
18546 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18549 # Broken: fails on valid input.
18552 rm -f conftest.err conftest.
$ac_ext
18554 # OK, works on sane cases. Now check whether nonexistent headers
18555 # can be detected and how.
18556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18557 /* end confdefs.h. */
18558 #include <ac_nonexistent.h>
18560 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18561 # Broken: success on invalid input.
18564 # Passes both tests.
18568 rm -f conftest.err conftest.
$ac_ext
18571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18572 rm -f conftest.err conftest.
$ac_ext
18573 if $ac_preproc_ok; then :
18576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18578 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18579 See \`config.log' for more details." "$LINENO" 5; }
18583 ac_cpp
='$CPP $CPPFLAGS'
18584 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18585 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18586 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18589 _lt_caught_CXX_error
=yes
18593 ac_cpp
='$CXXCPP $CPPFLAGS'
18594 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18595 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18596 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18598 archive_cmds_need_lc_CXX
=no
18599 allow_undefined_flag_CXX
=
18600 always_export_symbols_CXX
=no
18601 archive_expsym_cmds_CXX
=
18602 compiler_needs_object_CXX
=no
18603 export_dynamic_flag_spec_CXX
=
18604 hardcode_direct_CXX
=no
18605 hardcode_direct_absolute_CXX
=no
18606 hardcode_libdir_flag_spec_CXX
=
18607 hardcode_libdir_flag_spec_ld_CXX
=
18608 hardcode_libdir_separator_CXX
=
18609 hardcode_minus_L_CXX
=no
18610 hardcode_shlibpath_var_CXX
=unsupported
18611 hardcode_automatic_CXX
=no
18612 inherit_rpath_CXX
=no
18614 module_expsym_cmds_CXX
=
18615 link_all_deplibs_CXX
=unknown
18616 old_archive_cmds_CXX
=$old_archive_cmds
18617 reload_flag_CXX
=$reload_flag
18618 reload_cmds_CXX
=$reload_cmds
18619 no_undefined_flag_CXX
=
18620 whole_archive_flag_spec_CXX
=
18621 enable_shared_with_static_runtimes_CXX
=no
18623 # Source file extension for C++ test sources.
18626 # Object file extension for compiled C++ test sources.
18630 # No sense in running all these tests if we already determined that
18631 # the CXX compiler isn't working. Some variables (like enable_shared)
18632 # are currently assumed to apply to all compilers on this platform,
18633 # and will be corrupted by setting them based on a non-working compiler.
18634 if test "$_lt_caught_CXX_error" != yes; then
18635 # Code to be used in simple compile tests
18636 lt_simple_compile_test_code
="int some_variable = 0;"
18638 # Code to be used in simple link tests
18639 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18641 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18648 # If no C compiler was specified, use CC.
18651 # If no C compiler flags were specified, use CFLAGS.
18652 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18654 # Allow CC to be a program name with arguments.
18658 # save warnings/boilerplate of simple test code
18659 ac_outfile
=conftest.
$ac_objext
18660 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18661 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18662 _lt_compiler_boilerplate
=`cat conftest.err`
18665 ac_outfile
=conftest.
$ac_objext
18666 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18667 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18668 _lt_linker_boilerplate
=`cat conftest.err`
18672 # Allow CC to be a program name with arguments.
18677 lt_save_with_gnu_ld
=$with_gnu_ld
18678 lt_save_path_LD
=$lt_cv_path_LD
18679 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18680 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18682 $as_unset lt_cv_prog_gnu_ld
18684 if test -n "${lt_cv_path_LDCXX+set}"; then
18685 lt_cv_path_LD
=$lt_cv_path_LDCXX
18687 $as_unset lt_cv_path_LD
18689 test -z "${LDCXX+set}" || LD
=$LDCXX
18693 for cc_temp
in $compiler""; do
18695 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18696 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18701 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18704 if test -n "$compiler"; then
18705 # We don't want -fno-exception when compiling C++ code, so set the
18706 # no_builtin_flag separately
18707 if test "$GXX" = yes; then
18708 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18710 lt_prog_compiler_no_builtin_flag_CXX
=
18713 if test "$GXX" = yes; then
18714 # Set up default GNU C++ configuration
18718 # Check whether --with-gnu-ld was given.
18719 if test "${with_gnu_ld+set}" = set; then :
18720 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18726 if test "$GCC" = yes; then
18727 # Check if gcc -print-prog-name=ld gives a path.
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18729 $as_echo_n "checking for ld used by $CC... " >&6; }
18732 # gcc leaves a trailing carriage return which upsets mingw
18733 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18735 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18738 # Accept absolute paths.
18740 re_direlt
='/[^/][^/]*/\.\./'
18741 # Canonicalize the pathname of ld
18742 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18743 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18744 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18746 test -z "$LD" && LD
="$ac_prog"
18749 # If it fails, then pretend we aren't using GCC.
18753 # If it is relative, then search for the first ld in PATH.
18754 with_gnu_ld
=unknown
18757 elif test "$with_gnu_ld" = yes; then
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18759 $as_echo_n "checking for GNU ld... " >&6; }
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18762 $as_echo_n "checking for non-GNU ld... " >&6; }
18764 if test "${lt_cv_path_LD+set}" = set; then :
18765 $as_echo_n "(cached) " >&6
18767 if test -z "$LD"; then
18768 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18769 for ac_dir
in $PATH; do
18771 test -z "$ac_dir" && ac_dir
=.
18772 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18773 lt_cv_path_LD
="$ac_dir/$ac_prog"
18774 # Check to see if the program is GNU ld. I'd rather use --version,
18775 # but apparently some variants of GNU ld only accept -v.
18776 # Break only if it was the GNU/non-GNU ld that we prefer.
18777 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18778 *GNU
* |
*'with BFD'*)
18779 test "$with_gnu_ld" != no
&& break
18782 test "$with_gnu_ld" != yes && break
18789 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18793 LD
="$lt_cv_path_LD"
18794 if test -n "$LD"; then
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18796 $as_echo "$LD" >&6; }
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18799 $as_echo "no" >&6; }
18801 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18803 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18804 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18805 $as_echo_n "(cached) " >&6
18807 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18808 case `$LD -v 2>&1 </dev/null` in
18809 *GNU
* |
*'with BFD'*)
18810 lt_cv_prog_gnu_ld
=yes
18813 lt_cv_prog_gnu_ld
=no
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18818 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18819 with_gnu_ld
=$lt_cv_prog_gnu_ld
18827 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18828 # archiving commands below assume that GNU ld is being used.
18829 if test "$with_gnu_ld" = yes; then
18830 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18831 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'
18833 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18834 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18836 # If archive_cmds runs LD, not CC, wlarc should be empty
18837 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18838 # investigate it a little bit more. (MM)
18841 # ancient GNU ld didn't support --whole-archive et. al.
18842 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18843 $GREP 'no-whole-archive' > /dev
/null
; then
18844 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18846 whole_archive_flag_spec_CXX
=
18852 # A generic and very simple default shared library creation
18853 # command for GNU C++ for the case where it uses the native
18854 # linker, instead of GNU ld. If possible, this setting should
18855 # overridden to take advantage of the native linker features on
18856 # the platform it is being used on.
18857 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18860 # Commands to make compiler produce verbose output that lists
18861 # what "hidden" libraries, object files and flags are used when
18862 # linking a shared library.
18863 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18871 # PORTME: fill in a description of your system's C++ link characteristics
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18873 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18877 # FIXME: insert proper C++ library support
18881 if test "$host_cpu" = ia64
; then
18882 # On IA64, the linker does run time linking by default, so we don't
18883 # have to do anything special.
18884 aix_use_runtimelinking
=no
18885 exp_sym_flag
='-Bexport'
18888 aix_use_runtimelinking
=no
18890 # Test if we are trying to use run time linking or normal
18891 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18892 # need to do runtime linking.
18893 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18894 for ld_flag
in $LDFLAGS; do
18897 aix_use_runtimelinking
=yes
18905 exp_sym_flag
='-bexport'
18906 no_entry_flag
='-bnoentry'
18909 # When large executables or shared objects are built, AIX ld can
18910 # have problems creating the table of contents. If linking a library
18911 # or program results in "error TOC overflow" add -mminimal-toc to
18912 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18913 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18915 archive_cmds_CXX
=''
18916 hardcode_direct_CXX
=yes
18917 hardcode_direct_absolute_CXX
=yes
18918 hardcode_libdir_separator_CXX
=':'
18919 link_all_deplibs_CXX
=yes
18920 file_list_spec_CXX
='${wl}-f,'
18922 if test "$GXX" = yes; then
18923 case $host_os in aix4.
[012]|aix4.
[012].
*)
18924 # We only want to do this on AIX 4.2 and lower, the check
18925 # below for broken collect2 doesn't work under 4.3+
18926 collect2name
=`${CC} -print-prog-name=collect2`
18927 if test -f "$collect2name" &&
18928 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18930 # We have reworked collect2
18933 # We have old collect2
18934 hardcode_direct_CXX
=unsupported
18935 # It fails to find uninstalled libraries when the uninstalled
18936 # path is not listed in the libpath. Setting hardcode_minus_L
18937 # to unsupported forces relinking
18938 hardcode_minus_L_CXX
=yes
18939 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18940 hardcode_libdir_separator_CXX
=
18943 shared_flag
='-shared'
18944 if test "$aix_use_runtimelinking" = yes; then
18945 shared_flag
="$shared_flag "'${wl}-G'
18949 if test "$host_cpu" = ia64
; then
18950 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18951 # chokes on -Wl,-G. The following line is correct:
18954 if test "$aix_use_runtimelinking" = yes; then
18955 shared_flag
='${wl}-G'
18957 shared_flag
='${wl}-bM:SRE'
18962 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18963 # It seems that -bexpall does not export symbols beginning with
18964 # underscore (_), so it is better to generate a list of symbols to
18966 always_export_symbols_CXX
=yes
18967 if test "$aix_use_runtimelinking" = yes; then
18968 # Warning - without using the other runtime loading flags (-brtl),
18969 # -berok will link without error, but may produce a broken library.
18970 allow_undefined_flag_CXX
='-berok'
18971 # Determine the default libpath from the value encoded in an empty
18973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18974 /* end confdefs.h. */
18984 if ac_fn_cxx_try_link
"$LINENO"; then :
18986 lt_aix_libpath_sed
='
18987 /Import File Strings/,/^$/ {
18993 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18994 # Check for a 64-bit object if we didn't find anything.
18995 if test -z "$aix_libpath"; then
18996 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18999 rm -f core conftest.err conftest.
$ac_objext \
19000 conftest
$ac_exeext conftest.
$ac_ext
19001 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19003 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19005 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"
19007 if test "$host_cpu" = ia64
; then
19008 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19009 allow_undefined_flag_CXX
="-z nodefs"
19010 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"
19012 # Determine the default libpath from the value encoded in an
19013 # empty executable.
19014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19015 /* end confdefs.h. */
19025 if ac_fn_cxx_try_link
"$LINENO"; then :
19027 lt_aix_libpath_sed
='
19028 /Import File Strings/,/^$/ {
19034 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19035 # Check for a 64-bit object if we didn't find anything.
19036 if test -z "$aix_libpath"; then
19037 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19040 rm -f core conftest.err conftest.
$ac_objext \
19041 conftest
$ac_exeext conftest.
$ac_ext
19042 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19044 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19045 # Warning - without using the other run time loading flags,
19046 # -berok will link without error, but may produce a broken library.
19047 no_undefined_flag_CXX
=' ${wl}-bernotok'
19048 allow_undefined_flag_CXX
=' ${wl}-berok'
19049 if test "$with_gnu_ld" = yes; then
19050 # We only use this code for GNU lds that support --whole-archive.
19051 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19053 # Exported symbols can be pulled into shared objects from archives
19054 whole_archive_flag_spec_CXX
='$convenience'
19056 archive_cmds_need_lc_CXX
=yes
19057 # This is similar to how AIX traditionally builds its shared
19059 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'
19065 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19066 allow_undefined_flag_CXX
=unsupported
19067 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19068 # support --undefined. This deserves some investigation. FIXME
19069 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19076 case $cc_basename in
19078 # FIXME: insert proper C++ library support
19084 cygwin
* | mingw
* | pw32
* | cegcc
*)
19085 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19086 # as there is no search path for DLLs.
19087 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19088 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19089 allow_undefined_flag_CXX
=unsupported
19090 always_export_symbols_CXX
=no
19091 enable_shared_with_static_runtimes_CXX
=yes
19093 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19094 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'
19095 # If the export-symbols file already is a .def file (1st line
19096 # is EXPORTS), use it as is; otherwise, prepend...
19097 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19098 cp $export_symbols $output_objdir/$soname.def;
19100 echo EXPORTS > $output_objdir/$soname.def;
19101 cat $export_symbols >> $output_objdir/$soname.def;
19103 $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'
19108 darwin
* | rhapsody
*)
19111 archive_cmds_need_lc_CXX
=no
19112 hardcode_direct_CXX
=no
19113 hardcode_automatic_CXX
=yes
19114 hardcode_shlibpath_var_CXX
=unsupported
19115 if test "$lt_cv_ld_force_load" = "yes"; then
19116 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\"`'
19118 whole_archive_flag_spec_CXX
=''
19120 link_all_deplibs_CXX
=yes
19121 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19122 case $cc_basename in
19123 ifort
*) _lt_dar_can_shared
=yes ;;
19124 *) _lt_dar_can_shared
=$GCC ;;
19126 if test "$_lt_dar_can_shared" = "yes"; then
19127 output_verbose_link_cmd
=func_echo_all
19128 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}"
19129 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19130 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}"
19131 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}"
19132 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19133 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}"
19134 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}"
19144 case $cc_basename in
19146 # FIXME: insert proper C++ library support
19150 # Green Hills C++ Compiler
19151 # FIXME: insert proper C++ library support
19155 # FIXME: insert proper C++ library support
19162 # C++ shared libraries reported to be fairly broken before
19168 archive_cmds_need_lc_CXX
=no
19171 freebsd
* | dragonfly
*)
19172 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19181 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19182 link_all_deplibs_CXX
=yes
19186 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19187 hardcode_libdir_separator_CXX
=:
19188 export_dynamic_flag_spec_CXX
='${wl}-E'
19189 hardcode_direct_CXX
=yes
19190 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19191 # but as the default
19192 # location of the library.
19194 case $cc_basename in
19196 # FIXME: insert proper C++ library support
19200 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'
19201 # Commands to make compiler produce verbose output that lists
19202 # what "hidden" libraries, object files and flags are used when
19203 # linking a shared library.
19205 # There doesn't appear to be a way to prevent this compiler from
19206 # explicitly linking system object files so we need to strip them
19207 # from the output so that they don't get included in the library
19209 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"'
19212 if test "$GXX" = yes; then
19213 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'
19215 # FIXME: insert proper C++ library support
19223 if test $with_gnu_ld = no
; then
19224 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19225 hardcode_libdir_separator_CXX
=:
19231 export_dynamic_flag_spec_CXX
='${wl}-E'
19237 hardcode_direct_CXX
=no
19238 hardcode_shlibpath_var_CXX
=no
19241 hardcode_direct_CXX
=yes
19242 hardcode_direct_absolute_CXX
=yes
19243 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19244 # but as the default
19245 # location of the library.
19249 case $cc_basename in
19251 # FIXME: insert proper C++ library support
19257 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19260 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19263 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19266 # Commands to make compiler produce verbose output that lists
19267 # what "hidden" libraries, object files and flags are used when
19268 # linking a shared library.
19270 # There doesn't appear to be a way to prevent this compiler from
19271 # explicitly linking system object files so we need to strip them
19272 # from the output so that they don't get included in the library
19274 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"'
19277 if test "$GXX" = yes; then
19278 if test $with_gnu_ld = no
; then
19281 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19284 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19287 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'
19292 # FIXME: insert proper C++ library support
19300 hardcode_direct_CXX
=no
19301 hardcode_shlibpath_var_CXX
=no
19302 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19303 export_dynamic_flag_spec_CXX
='${wl}-E'
19304 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19305 # Instead, shared libraries are loaded at an image base (0x10000000 by
19306 # default) and relocated if they conflict, which is a slow very memory
19307 # consuming and fragmenting process. To avoid this, we pick a random,
19308 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19309 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19310 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'
19311 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'
19314 case $cc_basename in
19317 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'
19319 # Archives containing C++ object files must be created using
19320 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19321 # necessary to make sure instantiated templates are included
19323 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19326 if test "$GXX" = yes; then
19327 if test "$with_gnu_ld" = no
; then
19328 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'
19330 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'
19333 link_all_deplibs_CXX
=yes
19336 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19337 hardcode_libdir_separator_CXX
=:
19338 inherit_rpath_CXX
=yes
19341 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19342 case $cc_basename in
19344 # Kuck and Associates, Inc. (KAI) C++ Compiler
19346 # KCC will only create a shared library if the output file
19347 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19348 # to its proper name (with version) after linking.
19349 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'
19350 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'
19351 # Commands to make compiler produce verbose output that lists
19352 # what "hidden" libraries, object files and flags are used when
19353 # linking a shared library.
19355 # There doesn't appear to be a way to prevent this compiler from
19356 # explicitly linking system object files so we need to strip them
19357 # from the output so that they don't get included in the library
19359 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"'
19361 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19362 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19364 # Archives containing C++ object files must be created using
19365 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19366 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19371 # version 8.0 and above of icpc choke on multiply defined symbols
19372 # if we add $predep_objects and $postdep_objects, however 7.1 and
19373 # earlier do not add the objects themselves.
19374 case `$CC -V 2>&1` in
19376 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19377 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'
19379 *) # Version 8.0 or newer
19382 ia64
*) tmp_idyn
=' -i_dynamic';;
19384 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19385 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'
19388 archive_cmds_need_lc_CXX
=no
19389 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19390 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19391 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19394 # Portland Group C++ compiler
19396 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19397 prelink_cmds_CXX
='tpldir=Template.dir~
19399 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19400 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19401 old_archive_cmds_CXX
='tpldir=Template.dir~
19403 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19404 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19406 archive_cmds_CXX
='tpldir=Template.dir~
19408 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19409 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19410 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19412 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19413 $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'
19415 *) # Version 6 and above use weak symbols
19416 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19417 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'
19421 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19422 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19423 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'
19427 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19428 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'
19430 runpath_var
=LD_RUN_PATH
19431 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19432 hardcode_libdir_separator_CXX
=:
19434 # Commands to make compiler produce verbose output that lists
19435 # what "hidden" libraries, object files and flags are used when
19436 # linking a shared library.
19438 # There doesn't appear to be a way to prevent this compiler from
19439 # explicitly linking system object files so we need to strip them
19440 # from the output so that they don't get included in the library
19442 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'
19444 xl
* | mpixl
* | bgxl
*)
19445 # IBM XL 8.0 on PPC, with GNU ld
19446 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19447 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19448 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19449 if test "x$supports_anon_versioning" = xyes
; then
19450 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19451 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19452 echo "local: *; };" >> $output_objdir/$libname.ver~
19453 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19457 case `$CC -V 2>&1 | sed 5q` in
19460 no_undefined_flag_CXX
=' -zdefs'
19461 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19462 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'
19463 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19464 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'
19465 compiler_needs_object_CXX
=yes
19467 # Not sure whether something based on
19468 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19470 output_verbose_link_cmd
='func_echo_all'
19472 # Archives containing C++ object files must be created using
19473 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19474 # necessary to make sure instantiated templates are included
19476 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19484 # FIXME: insert proper C++ library support
19489 # FIXME: insert proper C++ library support
19494 case $cc_basename in
19496 # FIXME: insert proper C++ library support
19500 # FIXME: insert proper C++ library support
19507 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19508 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19510 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19511 hardcode_direct_CXX
=yes
19512 hardcode_shlibpath_var_CXX
=no
19514 # Workaround some broken pre-1.5 toolchains
19515 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19523 # C++ shared libraries are fairly broken
19528 if test -f /usr
/libexec
/ld.so
; then
19529 hardcode_direct_CXX
=yes
19530 hardcode_shlibpath_var_CXX
=no
19531 hardcode_direct_absolute_CXX
=yes
19532 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19533 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19534 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19535 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19536 export_dynamic_flag_spec_CXX
='${wl}-E'
19537 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19539 output_verbose_link_cmd
=func_echo_all
19545 osf3
* | osf4
* | osf5
*)
19546 case $cc_basename in
19548 # Kuck and Associates, Inc. (KAI) C++ Compiler
19550 # KCC will only create a shared library if the output file
19551 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19552 # to its proper name (with version) after linking.
19553 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'
19555 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19556 hardcode_libdir_separator_CXX
=:
19558 # Archives containing C++ object files must be created using
19559 # the KAI C++ compiler.
19561 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19562 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19566 # Rational C++ 2.4.1
19567 # FIXME: insert proper C++ library support
19573 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19574 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'
19575 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19578 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19579 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'
19580 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19581 echo "-hidden">> $lib.exp~
19582 $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~
19584 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19588 hardcode_libdir_separator_CXX
=:
19590 # Commands to make compiler produce verbose output that lists
19591 # what "hidden" libraries, object files and flags are used when
19592 # linking a shared library.
19594 # There doesn't appear to be a way to prevent this compiler from
19595 # explicitly linking system object files so we need to strip them
19596 # from the output so that they don't get included in the library
19598 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"'
19601 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19602 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19605 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'
19608 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'
19612 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19613 hardcode_libdir_separator_CXX
=:
19615 # Commands to make compiler produce verbose output that lists
19616 # what "hidden" libraries, object files and flags are used when
19617 # linking a shared library.
19618 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19621 # FIXME: insert proper C++ library support
19629 # FIXME: insert proper C++ library support
19634 case $cc_basename in
19637 # FIXME: insert proper C++ library support
19642 # FIXME: insert proper C++ library support
19646 # FIXME: insert proper C++ library support
19653 case $cc_basename in
19655 # Sun C++ 4.2, 5.x and Centerline C++
19656 archive_cmds_need_lc_CXX
=yes
19657 no_undefined_flag_CXX
=' -zdefs'
19658 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19659 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19660 $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'
19662 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19663 hardcode_shlibpath_var_CXX
=no
19665 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19667 # The compiler driver will combine and reorder linker options,
19668 # but understands `-z linker_flag'.
19669 # Supported since Solaris 2.6 (maybe 2.5.1?)
19670 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19673 link_all_deplibs_CXX
=yes
19675 output_verbose_link_cmd
='func_echo_all'
19677 # Archives containing C++ object files must be created using
19678 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19679 # necessary to make sure instantiated templates are included
19681 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19684 # Green Hills C++ Compiler
19685 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19687 # The C++ compiler must be used to create the archive.
19688 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19691 # GNU C++ compiler with Solaris linker
19692 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19693 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19694 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19695 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19696 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19697 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19699 # Commands to make compiler produce verbose output that lists
19700 # what "hidden" libraries, object files and flags are used when
19701 # linking a shared library.
19702 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19704 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19706 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19707 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19708 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19710 # Commands to make compiler produce verbose output that lists
19711 # what "hidden" libraries, object files and flags are used when
19712 # linking a shared library.
19713 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19716 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19718 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19720 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19728 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19729 no_undefined_flag_CXX
='${wl}-z,text'
19730 archive_cmds_need_lc_CXX
=no
19731 hardcode_shlibpath_var_CXX
=no
19732 runpath_var
='LD_RUN_PATH'
19734 case $cc_basename in
19736 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19737 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19740 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19741 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19746 sysv5
* | sco3.2v5
* | sco5v6
*)
19747 # Note: We can NOT use -z defs as we might desire, because we do not
19748 # link with -lc, and that would cause any symbols used from libc to
19749 # always be unresolved, which means just about no library would
19750 # ever link correctly. If we're not using GNU ld we use -z text
19751 # though, which does catch some bad symbols but isn't as heavy-handed
19753 no_undefined_flag_CXX
='${wl}-z,text'
19754 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19755 archive_cmds_need_lc_CXX
=no
19756 hardcode_shlibpath_var_CXX
=no
19757 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19758 hardcode_libdir_separator_CXX
=':'
19759 link_all_deplibs_CXX
=yes
19760 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19761 runpath_var
='LD_RUN_PATH'
19763 case $cc_basename in
19765 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19766 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19767 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19768 '"$old_archive_cmds_CXX"
19769 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19770 '"$reload_cmds_CXX"
19773 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19774 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19780 case $cc_basename in
19782 # NonStop-UX NCC 3.20
19783 # FIXME: insert proper C++ library support
19787 # FIXME: insert proper C++ library support
19794 # FIXME: insert proper C++ library support
19799 # FIXME: insert proper C++ library support
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19805 $as_echo "$ld_shlibs_CXX" >&6; }
19806 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19812 ## There is no encapsulation within the following macros, do not change
19813 ## the running order or otherwise move them around unless you know exactly
19814 ## what you are doing...
19815 # Dependencies to place before and after the object being linked:
19816 predep_objects_CXX
=
19817 postdep_objects_CXX
=
19820 compiler_lib_search_path_CXX
=
19822 cat > conftest.
$ac_ext <<_LT_EOF
19826 Foo (void) { a = 0; }
19832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19833 (eval $ac_compile) 2>&5
19835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19836 test $ac_status = 0; }; then
19837 # Parse the compiler output and extract the necessary
19838 # objects, libraries and library flags.
19840 # Sentinel used to keep track of whether or not we are before
19841 # the conftest object file.
19842 pre_test_object_deps_done
=no
19844 for p
in `eval "$output_verbose_link_cmd"`; do
19848 # Some compilers place space between "-{L,R}" and the path.
19849 # Remove the space.
19850 if test $p = "-L" ||
19851 test $p = "-R"; then
19858 if test "$pre_test_object_deps_done" = no
; then
19861 # Internal compiler library paths should come after those
19862 # provided the user. The postdeps already come after the
19863 # user supplied libs so there is no need to process them.
19864 if test -z "$compiler_lib_search_path_CXX"; then
19865 compiler_lib_search_path_CXX
="${prev}${p}"
19867 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19870 # The "-l" case would never come before the object being
19871 # linked, so don't bother handling this case.
19874 if test -z "$postdeps_CXX"; then
19875 postdeps_CXX
="${prev}${p}"
19877 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19883 # This assumes that the test object file only shows up
19884 # once in the compiler output.
19885 if test "$p" = "conftest.$objext"; then
19886 pre_test_object_deps_done
=yes
19890 if test "$pre_test_object_deps_done" = no
; then
19891 if test -z "$predep_objects_CXX"; then
19892 predep_objects_CXX
="$p"
19894 predep_objects_CXX
="$predep_objects_CXX $p"
19897 if test -z "$postdep_objects_CXX"; then
19898 postdep_objects_CXX
="$p"
19900 postdep_objects_CXX
="$postdep_objects_CXX $p"
19905 *) ;; # Ignore the rest.
19913 echo "libtool.m4: error: problem compiling CXX test program"
19916 $RM -f confest.
$objext
19918 # PORTME: override above test on systems where it is broken
19921 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19922 # hack all around it, let's just trust "g++" to DTRT.
19923 predep_objects_CXX
=
19924 postdep_objects_CXX
=
19929 case `$CC -V 2>&1 | sed 5q` in
19933 # The more standards-conforming stlport4 library is
19934 # incompatible with the Cstd library. Avoid specifying
19935 # it if it's in CXXFLAGS. Ignore libCrun as
19936 # -library=stlport4 depends on it.
19937 case " $CXX $CXXFLAGS " in
19938 *" -library=stlport4 "*)
19939 solaris_use_stlport4
=yes
19943 if test "$solaris_use_stlport4" != yes; then
19944 postdeps_CXX
='-library=Cstd -library=Crun'
19951 case $cc_basename in
19953 # The more standards-conforming stlport4 library is
19954 # incompatible with the Cstd library. Avoid specifying
19955 # it if it's in CXXFLAGS. Ignore libCrun as
19956 # -library=stlport4 depends on it.
19957 case " $CXX $CXXFLAGS " in
19958 *" -library=stlport4 "*)
19959 solaris_use_stlport4
=yes
19963 # Adding this requires a known-good setup of shared libraries for
19964 # Sun compiler versions before 5.6, else PIC objects from an old
19965 # archive will be linked into the output, leading to subtle bugs.
19966 if test "$solaris_use_stlport4" != yes; then
19967 postdeps_CXX
='-library=Cstd -library=Crun'
19975 case " $postdeps_CXX " in
19976 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19978 compiler_lib_search_dirs_CXX
=
19979 if test -n "${compiler_lib_search_path_CXX}"; then
19980 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20013 lt_prog_compiler_wl_CXX
=
20014 lt_prog_compiler_pic_CXX
=
20015 lt_prog_compiler_static_CXX
=
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20018 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20020 # C++ specific cases for pic, static, wl, etc.
20021 if test "$GXX" = yes; then
20022 lt_prog_compiler_wl_CXX
='-Wl,'
20023 lt_prog_compiler_static_CXX
='-static'
20027 # All AIX code is PIC.
20028 if test "$host_cpu" = ia64
; then
20029 # AIX 5 now supports IA64 processor
20030 lt_prog_compiler_static_CXX
='-Bstatic'
20032 lt_prog_compiler_pic_CXX
='-fPIC'
20038 # see comment about AmigaOS4 .so support
20039 lt_prog_compiler_pic_CXX
='-fPIC'
20042 # FIXME: we need at least 68020 code to build shared libraries, but
20043 # adding the `-m68020' flag to GCC prevents building anything better,
20045 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20050 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20051 # PIC is the default for these OSes.
20053 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20054 # This hack is so that the source file can tell whether it is being
20055 # built for inclusion in a dll (and should export symbols for example).
20056 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20057 # (--disable-auto-import) libraries
20058 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20060 darwin
* | rhapsody
*)
20061 # PIC is the default on this platform
20062 # Common symbols not allowed in MH_DYLIB files
20063 lt_prog_compiler_pic_CXX
='-fno-common'
20066 # DJGPP does not support shared libraries at all
20067 lt_prog_compiler_pic_CXX
=
20070 # PIC is the default for Haiku.
20071 # The "-static" flag exists, but is broken.
20072 lt_prog_compiler_static_CXX
=
20075 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20076 # Instead, we relocate shared libraries at runtime.
20079 if test -d /usr
/nec
; then
20080 lt_prog_compiler_pic_CXX
=-Kconform_pic
20084 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20085 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20086 # sets the default TLS model and affects inlining.
20091 lt_prog_compiler_pic_CXX
='-fPIC'
20096 # QNX uses GNU C++, but need to define -shared option too, otherwise
20097 # it will coredump.
20098 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20101 lt_prog_compiler_pic_CXX
='-fPIC'
20107 # All AIX code is PIC.
20108 if test "$host_cpu" = ia64
; then
20109 # AIX 5 now supports IA64 processor
20110 lt_prog_compiler_static_CXX
='-Bstatic'
20112 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20116 case $cc_basename in
20118 # Green Hills C++ Compiler
20119 # _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"
20124 case $cc_basename in
20126 lt_prog_compiler_pic_CXX
='-KPIC'
20129 # Green Hills C++ Compiler
20130 lt_prog_compiler_pic_CXX
='-pic'
20136 freebsd
* | dragonfly
*)
20137 # FreeBSD uses GNU C++
20139 hpux9
* | hpux10
* | hpux11
*)
20140 case $cc_basename in
20142 lt_prog_compiler_wl_CXX
='-Wl,'
20143 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20144 if test "$host_cpu" != ia64
; then
20145 lt_prog_compiler_pic_CXX
='+Z'
20149 lt_prog_compiler_wl_CXX
='-Wl,'
20150 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20156 lt_prog_compiler_pic_CXX
='+Z'
20165 # This is c89, which is MS Visual C++ (no shared libs)
20166 # Anyone wants to do a port?
20168 irix5
* | irix6
* | nonstopux
*)
20169 case $cc_basename in
20171 lt_prog_compiler_wl_CXX
='-Wl,'
20172 lt_prog_compiler_static_CXX
='-non_shared'
20173 # CC pic flag -KPIC is the default.
20179 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20180 case $cc_basename in
20183 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20184 lt_prog_compiler_pic_CXX
='-fPIC'
20187 # old Intel C++ for x86_64 which still supported -KPIC.
20188 lt_prog_compiler_wl_CXX
='-Wl,'
20189 lt_prog_compiler_pic_CXX
='-KPIC'
20190 lt_prog_compiler_static_CXX
='-static'
20193 # Intel C++, used to be incompatible with GCC.
20194 # ICC 10 doesn't accept -KPIC any more.
20195 lt_prog_compiler_wl_CXX
='-Wl,'
20196 lt_prog_compiler_pic_CXX
='-fPIC'
20197 lt_prog_compiler_static_CXX
='-static'
20200 # Portland Group C++ compiler
20201 lt_prog_compiler_wl_CXX
='-Wl,'
20202 lt_prog_compiler_pic_CXX
='-fpic'
20203 lt_prog_compiler_static_CXX
='-Bstatic'
20207 # Make sure the PIC flag is empty. It appears that all Alpha
20208 # Linux and Compaq Tru64 Unix objects are PIC.
20209 lt_prog_compiler_pic_CXX
=
20210 lt_prog_compiler_static_CXX
='-non_shared'
20212 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20213 # IBM XL 8.0, 9.0 on PPC and BlueGene
20214 lt_prog_compiler_wl_CXX
='-Wl,'
20215 lt_prog_compiler_pic_CXX
='-qpic'
20216 lt_prog_compiler_static_CXX
='-qstaticlink'
20219 case `$CC -V 2>&1 | sed 5q` in
20222 lt_prog_compiler_pic_CXX
='-KPIC'
20223 lt_prog_compiler_static_CXX
='-Bstatic'
20224 lt_prog_compiler_wl_CXX
='-Qoption ld '
20235 case $cc_basename in
20237 lt_prog_compiler_pic_CXX
='-W c,exportall'
20246 # QNX uses GNU C++, but need to define -shared option too, otherwise
20247 # it will coredump.
20248 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20250 osf3
* | osf4
* | osf5
*)
20251 case $cc_basename in
20253 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20256 # Rational C++ 2.4.1
20257 lt_prog_compiler_pic_CXX
='-pic'
20260 # Digital/Compaq C++
20261 lt_prog_compiler_wl_CXX
='-Wl,'
20262 # Make sure the PIC flag is empty. It appears that all Alpha
20263 # Linux and Compaq Tru64 Unix objects are PIC.
20264 lt_prog_compiler_pic_CXX
=
20265 lt_prog_compiler_static_CXX
='-non_shared'
20274 case $cc_basename in
20276 # Sun C++ 4.2, 5.x and Centerline C++
20277 lt_prog_compiler_pic_CXX
='-KPIC'
20278 lt_prog_compiler_static_CXX
='-Bstatic'
20279 lt_prog_compiler_wl_CXX
='-Qoption ld '
20282 # Green Hills C++ Compiler
20283 lt_prog_compiler_pic_CXX
='-PIC'
20290 case $cc_basename in
20293 lt_prog_compiler_pic_CXX
='-pic'
20294 lt_prog_compiler_static_CXX
='-Bstatic'
20298 lt_prog_compiler_pic_CXX
='-pic'
20304 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20305 case $cc_basename in
20307 lt_prog_compiler_wl_CXX
='-Wl,'
20308 lt_prog_compiler_pic_CXX
='-KPIC'
20309 lt_prog_compiler_static_CXX
='-Bstatic'
20314 case $cc_basename in
20316 # NonStop-UX NCC 3.20
20317 lt_prog_compiler_pic_CXX
='-KPIC'
20326 lt_prog_compiler_can_build_shared_CXX
=no
20332 # For platforms which do not support PIC, -DPIC is meaningless:
20334 lt_prog_compiler_pic_CXX
=
20337 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20341 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20346 # Check to make sure the PIC flag actually works.
20348 if test -n "$lt_prog_compiler_pic_CXX"; then
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20350 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20351 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20352 $as_echo_n "(cached) " >&6
20354 lt_cv_prog_compiler_pic_works_CXX
=no
20355 ac_outfile
=conftest.
$ac_objext
20356 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20357 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20358 # Insert the option either (1) after the last *FLAGS variable, or
20359 # (2) before a word containing "conftest.", or (3) at the end.
20360 # Note that $ac_compile itself does not contain backslashes and begins
20361 # with a dollar sign (not a hyphen), so the echo should work correctly.
20362 # The option is referenced via a variable to avoid confusing sed.
20363 lt_compile
=`echo "$ac_compile" | $SED \
20364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20366 -e 's:$: $lt_compiler_flag:'`
20367 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20368 (eval "$lt_compile" 2>conftest.err
)
20370 cat conftest.err
>&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 if (exit $ac_status) && test -s "$ac_outfile"; then
20373 # The compiler can only warn and ignore the option if not recognized
20374 # So say no if there are warnings other than the usual output.
20375 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20376 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20377 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20378 lt_cv_prog_compiler_pic_works_CXX
=yes
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20385 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20387 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20388 case $lt_prog_compiler_pic_CXX in
20390 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20393 lt_prog_compiler_pic_CXX
=
20394 lt_prog_compiler_can_build_shared_CXX
=no
20402 # Check to make sure the static flag actually works.
20404 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20406 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20407 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20408 $as_echo_n "(cached) " >&6
20410 lt_cv_prog_compiler_static_works_CXX
=no
20411 save_LDFLAGS
="$LDFLAGS"
20412 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20413 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20414 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20415 # The linker can only warn and ignore the option if not recognized
20416 # So say no if there are warnings
20417 if test -s conftest.err
; then
20418 # Append any errors to the config.log.
20419 cat conftest.err
1>&5
20420 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20421 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20422 if diff conftest.exp conftest.er2
>/dev
/null
; then
20423 lt_cv_prog_compiler_static_works_CXX
=yes
20426 lt_cv_prog_compiler_static_works_CXX
=yes
20430 LDFLAGS
="$save_LDFLAGS"
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20434 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20436 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20439 lt_prog_compiler_static_CXX
=
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20446 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20447 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20448 $as_echo_n "(cached) " >&6
20450 lt_cv_prog_compiler_c_o_CXX
=no
20451 $RM -r conftest
2>/dev
/null
20455 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20457 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20458 # Insert the option either (1) after the last *FLAGS variable, or
20459 # (2) before a word containing "conftest.", or (3) at the end.
20460 # Note that $ac_compile itself does not contain backslashes and begins
20461 # with a dollar sign (not a hyphen), so the echo should work correctly.
20462 lt_compile
=`echo "$ac_compile" | $SED \
20463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20465 -e 's:$: $lt_compiler_flag:'`
20466 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20467 (eval "$lt_compile" 2>out
/conftest.err
)
20469 cat out
/conftest.err
>&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20473 # The compiler can only warn and ignore the option if not recognized
20474 # So say no if there are warnings
20475 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20476 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20477 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20478 lt_cv_prog_compiler_c_o_CXX
=yes
20483 # SGI C++ compiler will create directory out/ii_files/ for
20484 # template instantiation
20485 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20486 $RM out
/* && rmdir out
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20493 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20498 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20499 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20500 $as_echo_n "(cached) " >&6
20502 lt_cv_prog_compiler_c_o_CXX
=no
20503 $RM -r conftest
2>/dev
/null
20507 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20509 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20510 # Insert the option either (1) after the last *FLAGS variable, or
20511 # (2) before a word containing "conftest.", or (3) at the end.
20512 # Note that $ac_compile itself does not contain backslashes and begins
20513 # with a dollar sign (not a hyphen), so the echo should work correctly.
20514 lt_compile
=`echo "$ac_compile" | $SED \
20515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20517 -e 's:$: $lt_compiler_flag:'`
20518 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20519 (eval "$lt_compile" 2>out
/conftest.err
)
20521 cat out
/conftest.err
>&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20525 # The compiler can only warn and ignore the option if not recognized
20526 # So say no if there are warnings
20527 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20528 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20529 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20530 lt_cv_prog_compiler_c_o_CXX
=yes
20535 # SGI C++ compiler will create directory out/ii_files/ for
20536 # template instantiation
20537 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20538 $RM out
/* && rmdir out
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20545 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20550 hard_links
="nottested"
20551 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20552 # do not overwrite the value of need_locks provided by the user
20553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20554 $as_echo_n "checking if we can lock with hard links... " >&6; }
20557 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20559 ln conftest.a conftest.b
2>&5 || hard_links
=no
20560 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20562 $as_echo "$hard_links" >&6; }
20563 if test "$hard_links" = no
; then
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20565 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20575 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20577 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20580 # If we're using GNU nm, then we don't want the "-C" option.
20581 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20582 # Also, AIX nm treats weak defined symbols like other global defined
20583 # symbols, whereas GNU nm marks them as "W".
20584 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20585 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'
20587 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'
20591 export_symbols_cmds_CXX
="$ltdll_cmds"
20593 cygwin
* | mingw
* | cegcc
*)
20594 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'
20597 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20600 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20603 $as_echo "$ld_shlibs_CXX" >&6; }
20604 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20606 with_gnu_ld_CXX
=$with_gnu_ld
20614 # Do we need to explicitly link libc?
20616 case "x$archive_cmds_need_lc_CXX" in
20618 # Assume -lc should be added
20619 archive_cmds_need_lc_CXX
=yes
20621 if test "$enable_shared" = yes && test "$GCC" = yes; then
20622 case $archive_cmds_CXX in
20624 # FIXME: we may have to deal with multi-command sequences.
20627 # Test whether the compiler implicitly links with -lc since on some
20628 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20629 # to ld, don't add -lc before -lgcc.
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20631 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20632 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20633 $as_echo_n "(cached) " >&6
20636 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20639 (eval $ac_compile) 2>&5
20641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20642 test $ac_status = 0; } 2>conftest.err
; then
20645 libobjs
=conftest.
$ac_objext
20647 wl
=$lt_prog_compiler_wl_CXX
20648 pic_flag
=$lt_prog_compiler_pic_CXX
20654 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20655 allow_undefined_flag_CXX
=
20656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20657 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20660 test $ac_status = 0; }
20662 lt_cv_archive_cmds_need_lc_CXX
=no
20664 lt_cv_archive_cmds_need_lc_CXX
=yes
20666 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20668 cat conftest.err
1>&5
20673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20674 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20675 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20746 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20748 library_names_spec
=
20749 libname_spec
='lib$name'
20753 postuninstall_cmds
=
20757 shlibpath_overrides_runpath
=unknown
20759 dynamic_linker
="$host_os ld.so"
20760 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20761 need_lib_prefix
=unknown
20762 hardcode_into_libs
=no
20764 # when you set need_version to no, make sure it does not cause -set_version
20765 # flags to be left without arguments
20766 need_version
=unknown
20771 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20772 shlibpath_var
=LIBPATH
20774 # AIX 3 has no versioning support, so we append a major version to the name.
20775 soname_spec
='${libname}${release}${shared_ext}$major'
20782 hardcode_into_libs
=yes
20783 if test "$host_cpu" = ia64
; then
20784 # AIX 5 supports IA64
20785 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20786 shlibpath_var
=LD_LIBRARY_PATH
20788 # With GCC up to 2.95.x, collect2 would create an import file
20789 # for dependence libraries. The import file would start with
20790 # the line `#! .'. This would cause the generated library to
20791 # depend on `.', always an invalid library. This was fixed in
20792 # development snapshots of GCC prior to 3.0.
20794 aix4 | aix4.
[01] | aix4.
[01].
*)
20795 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20797 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20800 can_build_shared
=no
20804 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20805 # soname into executable. Probably we can add versioning support to
20806 # collect2, so additional links can be useful in future.
20807 if test "$aix_use_runtimelinking" = yes; then
20808 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20809 # instead of lib<name>.a to let people know that these are not
20810 # typical AIX shared libraries.
20811 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20813 # We preserve .a as extension for shared libraries through AIX4.2
20814 # and later when we are not doing run time linking.
20815 library_names_spec
='${libname}${release}.a $libname.a'
20816 soname_spec
='${libname}${release}${shared_ext}$major'
20818 shlibpath_var
=LIBPATH
20825 # Since July 2007 AmigaOS4 officially supports .so libraries.
20826 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20827 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20830 library_names_spec
='$libname.ixlibrary $libname.a'
20831 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20832 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'
20838 library_names_spec
='${libname}${shared_ext}'
20839 dynamic_linker
="$host_os ld.so"
20840 shlibpath_var
=LIBRARY_PATH
20846 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20847 soname_spec
='${libname}${release}${shared_ext}$major'
20848 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20849 shlibpath_var
=LD_LIBRARY_PATH
20850 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20851 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20852 # the default ld.so.conf also contains /usr/contrib/lib and
20853 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20854 # libtool to hard-code these into programs
20857 cygwin
* | mingw
* | pw32
* | cegcc
*)
20858 version_type
=windows
20863 case $GCC,$host_os in
20864 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20865 library_names_spec
='$libname.dll.a'
20866 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20867 postinstall_cmds
='base_file=`basename \${file}`~
20868 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20869 dldir=$destdir/`dirname \$dlpath`~
20870 test -d \$dldir || mkdir -p \$dldir~
20871 $install_prog $dir/$dlname \$dldir/$dlname~
20872 chmod a+x \$dldir/$dlname~
20873 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20874 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20876 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20877 dlpath=$dir/\$dldll~
20879 shlibpath_overrides_runpath
=yes
20883 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20884 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20888 # MinGW DLLs use traditional 'lib' prefix
20889 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20892 # pw32 DLLs use 'pw' prefix rather than 'lib'
20893 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20899 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20902 dynamic_linker
='Win32 ld.exe'
20903 # FIXME: first we should search . and the directory the executable is in
20907 darwin
* | rhapsody
*)
20908 dynamic_linker
="$host_os dyld"
20909 version_type
=darwin
20912 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20913 soname_spec
='${libname}${release}${major}$shared_ext'
20914 shlibpath_overrides_runpath
=yes
20915 shlibpath_var
=DYLD_LIBRARY_PATH
20916 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20918 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20925 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20926 soname_spec
='${libname}${release}${shared_ext}$major'
20927 shlibpath_var
=LD_LIBRARY_PATH
20930 freebsd
* | dragonfly
*)
20931 # DragonFly does not have aout. When/if they implement a new
20932 # versioning mechanism, adjust this.
20933 if test -x /usr
/bin
/objformat
; then
20934 objformat
=`/usr/bin/objformat`
20937 freebsd
[23].
*) objformat
=aout
;;
20938 *) objformat
=elf
;;
20941 version_type
=freebsd-
$objformat
20942 case $version_type in
20944 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20949 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20953 shlibpath_var
=LD_LIBRARY_PATH
20956 shlibpath_overrides_runpath
=yes
20958 freebsd3.
[01]* | freebsdelf3.
[01]*)
20959 shlibpath_overrides_runpath
=yes
20960 hardcode_into_libs
=yes
20962 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20963 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20964 shlibpath_overrides_runpath
=no
20965 hardcode_into_libs
=yes
20967 *) # from 4.6 on, and DragonFly
20968 shlibpath_overrides_runpath
=yes
20969 hardcode_into_libs
=yes
20978 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20979 soname_spec
='${libname}${release}${shared_ext}$major'
20980 shlibpath_var
=LD_LIBRARY_PATH
20981 hardcode_into_libs
=yes
20988 dynamic_linker
="$host_os runtime_loader"
20989 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20990 soname_spec
='${libname}${release}${shared_ext}$major'
20991 shlibpath_var
=LIBRARY_PATH
20992 shlibpath_overrides_runpath
=yes
20993 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20994 hardcode_into_libs
=yes
20997 hpux9
* | hpux10
* | hpux11
*)
20998 # Give a soname corresponding to the major version so that dld.sl refuses to
20999 # link against other versions.
21006 hardcode_into_libs
=yes
21007 dynamic_linker
="$host_os dld.so"
21008 shlibpath_var
=LD_LIBRARY_PATH
21009 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21010 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21011 soname_spec
='${libname}${release}${shared_ext}$major'
21012 if test "X$HPUX_IA64_MODE" = X32
; then
21013 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21015 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21017 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21021 hardcode_into_libs
=yes
21022 dynamic_linker
="$host_os dld.sl"
21023 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21024 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21025 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21026 soname_spec
='${libname}${release}${shared_ext}$major'
21027 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21028 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21032 dynamic_linker
="$host_os dld.sl"
21033 shlibpath_var
=SHLIB_PATH
21034 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21035 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21036 soname_spec
='${libname}${release}${shared_ext}$major'
21039 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21040 postinstall_cmds
='chmod 555 $lib'
21041 # or fails outright, so override atomically:
21042 install_override_mode
=555
21049 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21050 soname_spec
='${libname}${release}${shared_ext}$major'
21051 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21052 shlibpath_var
=LD_LIBRARY_PATH
21053 shlibpath_overrides_runpath
=no
21054 hardcode_into_libs
=yes
21057 irix5
* | irix6
* | nonstopux
*)
21059 nonstopux
*) version_type
=nonstopux
;;
21061 if test "$lt_cv_prog_gnu_ld" = yes; then
21069 soname_spec
='${libname}${release}${shared_ext}$major'
21070 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21072 irix5
* | nonstopux
*)
21073 libsuff
= shlibsuff
=
21076 case $LD in # libtool.m4 will add one of these switches to LD
21077 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21078 libsuff
= shlibsuff
= libmagic
=32-bit;;
21079 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21080 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21081 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21082 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21083 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21087 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21088 shlibpath_overrides_runpath
=no
21089 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21090 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21091 hardcode_into_libs
=yes
21094 # No shared lib support for Linux oldld, aout, or coff.
21095 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21099 # This must be Linux ELF.
21100 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21104 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21105 soname_spec
='${libname}${release}${shared_ext}$major'
21106 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21107 shlibpath_var
=LD_LIBRARY_PATH
21108 shlibpath_overrides_runpath
=no
21110 # Some binutils ld are patched to set DT_RUNPATH
21111 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21112 $as_echo_n "(cached) " >&6
21114 lt_cv_shlibpath_overrides_runpath
=no
21115 save_LDFLAGS
=$LDFLAGS
21116 save_libdir
=$libdir
21117 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21118 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21120 /* end confdefs.h. */
21130 if ac_fn_cxx_try_link
"$LINENO"; then :
21131 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21132 lt_cv_shlibpath_overrides_runpath
=yes
21135 rm -f core conftest.err conftest.
$ac_objext \
21136 conftest
$ac_exeext conftest.
$ac_ext
21137 LDFLAGS
=$save_LDFLAGS
21138 libdir
=$save_libdir
21142 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21144 # This implies no fast_install, which is unacceptable.
21145 # Some rework will be needed to allow for fast_install
21146 # before this can be enabled.
21147 hardcode_into_libs
=yes
21149 # Append ld.so.conf contents to the search path
21150 if test -f /etc
/ld.so.conf
; then
21151 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' ' '`
21152 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21155 # We used to test for /lib/ld.so.1 and disable shared libraries on
21156 # powerpc, because MkLinux only supported shared libraries with the
21157 # GNU dynamic linker. Since this was broken with cross compilers,
21158 # most powerpc-linux boxes support dynamic linking these days and
21159 # people can always --disable-shared, the test was removed, and we
21160 # assume the GNU/Linux dynamic linker is in use.
21161 dynamic_linker
='GNU/Linux ld.so'
21168 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21169 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21170 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21171 dynamic_linker
='NetBSD (a.out) ld.so'
21173 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21174 soname_spec
='${libname}${release}${shared_ext}$major'
21175 dynamic_linker
='NetBSD ld.elf_so'
21177 shlibpath_var
=LD_LIBRARY_PATH
21178 shlibpath_overrides_runpath
=yes
21179 hardcode_into_libs
=yes
21184 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21185 shlibpath_var
=LD_LIBRARY_PATH
21186 shlibpath_overrides_runpath
=yes
21193 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21194 soname_spec
='${libname}${release}${shared_ext}$major'
21195 shlibpath_var
=LD_LIBRARY_PATH
21196 shlibpath_overrides_runpath
=no
21197 hardcode_into_libs
=yes
21198 dynamic_linker
='ldqnx.so'
21203 sys_lib_dlsearch_path_spec
="/usr/lib"
21205 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21207 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21208 *) need_version
=no
;;
21210 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21211 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21212 shlibpath_var
=LD_LIBRARY_PATH
21213 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21215 openbsd2.
[89] | openbsd2.
[89].
*)
21216 shlibpath_overrides_runpath
=no
21219 shlibpath_overrides_runpath
=yes
21223 shlibpath_overrides_runpath
=yes
21228 libname_spec
='$name'
21231 library_names_spec
='$libname${shared_ext} $libname.a'
21232 dynamic_linker
='OS/2 ld.exe'
21233 shlibpath_var
=LIBPATH
21236 osf3
* | osf4
* | osf5
*)
21240 soname_spec
='${libname}${release}${shared_ext}$major'
21241 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21242 shlibpath_var
=LD_LIBRARY_PATH
21243 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21244 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21255 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21256 soname_spec
='${libname}${release}${shared_ext}$major'
21257 shlibpath_var
=LD_LIBRARY_PATH
21258 shlibpath_overrides_runpath
=yes
21259 hardcode_into_libs
=yes
21260 # ldd complains unless libraries are executable
21261 postinstall_cmds
='chmod +x $lib'
21266 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21267 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21268 shlibpath_var
=LD_LIBRARY_PATH
21269 shlibpath_overrides_runpath
=yes
21270 if test "$with_gnu_ld" = yes; then
21278 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21279 soname_spec
='${libname}${release}${shared_ext}$major'
21280 shlibpath_var
=LD_LIBRARY_PATH
21281 case $host_vendor in
21283 shlibpath_overrides_runpath
=no
21285 runpath_var
=LD_RUN_PATH
21293 shlibpath_overrides_runpath
=no
21294 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21300 if test -d /usr
/nec
;then
21302 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21303 soname_spec
='$libname${shared_ext}.$major'
21304 shlibpath_var
=LD_LIBRARY_PATH
21308 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21309 version_type
=freebsd-elf
21312 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21313 soname_spec
='${libname}${release}${shared_ext}$major'
21314 shlibpath_var
=LD_LIBRARY_PATH
21315 shlibpath_overrides_runpath
=yes
21316 hardcode_into_libs
=yes
21317 if test "$with_gnu_ld" = yes; then
21318 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21320 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21323 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21327 sys_lib_dlsearch_path_spec
='/usr/lib'
21331 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21335 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21336 shlibpath_var
=LD_LIBRARY_PATH
21337 shlibpath_overrides_runpath
=no
21338 hardcode_into_libs
=yes
21343 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21344 soname_spec
='${libname}${release}${shared_ext}$major'
21345 shlibpath_var
=LD_LIBRARY_PATH
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21353 $as_echo "$dynamic_linker" >&6; }
21354 test "$dynamic_linker" = no
&& can_build_shared
=no
21356 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21357 if test "$GCC" = yes; then
21358 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21361 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21362 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21364 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21365 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21406 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21407 hardcode_action_CXX
=
21408 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21409 test -n "$runpath_var_CXX" ||
21410 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21412 # We can hardcode non-existent directories.
21413 if test "$hardcode_direct_CXX" != no
&&
21414 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21415 # have to relink, otherwise we might link with an installed library
21416 # when we should be linking with a yet-to-be-installed one
21417 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21418 test "$hardcode_minus_L_CXX" != no
; then
21419 # Linking always hardcodes the temporary library directory.
21420 hardcode_action_CXX
=relink
21422 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21423 hardcode_action_CXX
=immediate
21426 # We cannot hardcode anything, or else we can only hardcode existing
21428 hardcode_action_CXX
=unsupported
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21431 $as_echo "$hardcode_action_CXX" >&6; }
21433 if test "$hardcode_action_CXX" = relink ||
21434 test "$inherit_rpath_CXX" = yes; then
21435 # Fast installation is not supported
21436 enable_fast_install
=no
21437 elif test "$shlibpath_overrides_runpath" = yes ||
21438 test "$enable_shared" = no
; then
21439 # Fast installation is not necessary
21440 enable_fast_install
=needless
21449 fi # test -n "$compiler"
21455 with_gnu_ld
=$lt_save_with_gnu_ld
21456 lt_cv_path_LDCXX
=$lt_cv_path_LD
21457 lt_cv_path_LD
=$lt_save_path_LD
21458 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21459 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21460 fi # test "$_lt_caught_CXX_error" != yes
21463 ac_cpp
='$CPP $CPPFLAGS'
21464 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21465 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21466 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21483 # Only expand once:
21489 # Identify the assembler which will work hand-in-glove with the newly
21490 # built GCC, so that we can examine its features. This is the assembler
21491 # which will be driven by the driver program.
21493 # If build != host, and we aren't building gas in-tree, we identify a
21494 # build->target assembler and hope that it will have the same features
21495 # as the host->target assembler we'll be using.
21496 gcc_cv_gas_major_version
=
21497 gcc_cv_gas_minor_version
=
21498 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21500 if test "${gcc_cv_as+set}" = set; then :
21504 if test -x "$DEFAULT_ASSEMBLER"; then
21505 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21506 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21507 && test -f ..
/gas
/Makefile \
21508 && test x
$build = x
$host; then
21509 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21510 elif test -x as
$build_exeext; then
21511 # Build using assembler in the current directory.
21512 gcc_cv_as
=.
/as
$build_exeext
21513 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21514 gcc_cv_as
="$AS_FOR_TARGET"
21516 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21517 set dummy
$AS_FOR_TARGET; ac_word
=$2
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21519 $as_echo_n "checking for $ac_word... " >&6; }
21520 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21521 $as_echo_n "(cached) " >&6
21525 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21529 for as_dir
in $PATH
21532 test -z "$as_dir" && as_dir
=.
21533 for ac_exec_ext
in '' $ac_executable_extensions; do
21534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21535 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21546 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21547 if test -n "$gcc_cv_as"; then
21548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21549 $as_echo "$gcc_cv_as" >&6; }
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21552 $as_echo "no" >&6; }
21559 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21561 case "$ORIGINAL_AS_FOR_TARGET" in
21562 .
/as | .
/as
$build_exeext) ;;
21563 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21568 $as_echo_n "checking what assembler to use... " >&6; }
21569 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21570 # Single tree build which includes gas. We want to prefer it
21571 # over whatever linker top-level may have detected, since
21572 # we'll use what we're building after installation anyway.
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21574 $as_echo "newly built gas" >&6; }
21576 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21577 for f
in $gcc_cv_as_bfd_srcdir/configure \
21578 $gcc_cv_as_gas_srcdir/configure \
21579 $gcc_cv_as_gas_srcdir/configure.
in \
21580 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21581 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21582 if test x
$gcc_cv_gas_version != x
; then
21586 case $gcc_cv_gas_version in
21588 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21590 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21591 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21592 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21593 case $gcc_cv_gas_patch_version in
21594 "") gcc_cv_gas_patch_version
="0" ;;
21596 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21597 + $gcc_cv_gas_minor_version \) \* 1000 \
21598 + $gcc_cv_gas_patch_version`
21600 in_tree_gas_is_elf
=no
21601 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21602 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21603 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21605 in_tree_gas_is_elf
=yes
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21609 $as_echo "$gcc_cv_as" >&6; }
21614 # Check whether --enable-ld was given.
21615 if test "${enable_ld+set}" = set; then :
21616 enableval
=$enable_ld; case "${enableval}" in
21624 # Check whether --enable-gold was given.
21625 if test "${enable_gold+set}" = set; then :
21626 enableval
=$enable_gold; case "${enableval}" in
21628 install_gold_as_default
=yes
21631 if test x
${default_ld} != x
; then
21632 install_gold_as_default
=yes
21638 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21642 install_gold_as_default
=no
21646 # Identify the linker which will work hand-in-glove with the newly
21647 # built GCC, so that we can examine its features. This is the linker
21648 # which will be driven by the driver program.
21650 # If build != host, and we aren't building gas in-tree, we identify a
21651 # build->target linker and hope that it will have the same features
21652 # as the host->target linker we'll be using.
21653 gcc_cv_gld_major_version
=
21654 gcc_cv_gld_minor_version
=
21655 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21656 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21657 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21659 if test "${gcc_cv_ld+set}" = set; then :
21663 if test -x "$DEFAULT_LINKER"; then
21664 gcc_cv_ld
="$DEFAULT_LINKER"
21665 elif test $install_gold_as_default = yes \
21666 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21667 && test -f ..
/gold
/Makefile \
21668 && test x
$build = x
$host; then
21669 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21670 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21671 && test -f ..
/ld
/Makefile \
21672 && test x
$build = x
$host; then
21673 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21674 elif test -x collect-ld
$build_exeext; then
21675 # Build using linker in the current directory.
21676 gcc_cv_ld
=.
/collect-ld
$build_exeext
21677 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21678 gcc_cv_ld
="$LD_FOR_TARGET"
21680 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21681 set dummy
$LD_FOR_TARGET; ac_word
=$2
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21683 $as_echo_n "checking for $ac_word... " >&6; }
21684 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21685 $as_echo_n "(cached) " >&6
21689 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21693 for as_dir
in $PATH
21696 test -z "$as_dir" && as_dir
=.
21697 for ac_exec_ext
in '' $ac_executable_extensions; do
21698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21699 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21710 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21711 if test -n "$gcc_cv_ld"; then
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21713 $as_echo "$gcc_cv_ld" >&6; }
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21716 $as_echo "no" >&6; }
21723 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21724 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21725 # if the PLUGIN_LD is set ld-new, just have it as ld
21726 # as that is the installed named.
21727 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21728 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21729 PLUGIN_LD_SUFFIX
=ld
21732 # Check whether --with-plugin-ld was given.
21733 if test "${with_plugin_ld+set}" = set; then :
21734 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21735 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21736 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21742 cat >>confdefs.h
<<_ACEOF
21743 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21747 # Check to see if we are using gold instead of ld
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21749 $as_echo_n "checking whether we are using gold... " >&6; }
21751 if test x
$gcc_cv_ld != x
; then
21752 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21753 |
grep "GNU gold" > /dev
/null
; then
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21758 $as_echo "$ld_is_gold" >&6; }
21760 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21762 case "$ORIGINAL_LD_FOR_TARGET" in
21763 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21764 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21769 $as_echo_n "checking what linker to use... " >&6; }
21770 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21771 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21772 # Single tree build which includes ld. We want to prefer it
21773 # over whatever linker top-level may have detected, since
21774 # we'll use what we're building after installation anyway.
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21776 $as_echo "newly built ld" >&6; }
21778 in_tree_ld_is_elf
=no
21779 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21780 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21781 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21782 in_tree_ld_is_elf
=yes
21783 elif test "$ld_is_gold" = yes; then
21784 in_tree_ld_is_elf
=yes
21786 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
21788 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21789 if test x
$gcc_cv_gld_version != x
; then
21793 case $gcc_cv_gld_version in
21795 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21797 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21798 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21799 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
21800 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21803 $as_echo "$gcc_cv_ld" >&6; }
21805 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21806 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
21807 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
21813 # Figure out what nm we will be using.
21814 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21815 if test "${gcc_cv_nm+set}" = set; then :
21819 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21820 && test -f ..
/binutils
/Makefile \
21821 && test x
$build = x
$host; then
21822 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21823 elif test -x nm
$build_exeext; then
21824 gcc_cv_nm
=.
/nm
$build_exeext
21825 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21826 gcc_cv_nm
="$NM_FOR_TARGET"
21828 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21829 set dummy
$NM_FOR_TARGET; ac_word
=$2
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21831 $as_echo_n "checking for $ac_word... " >&6; }
21832 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21833 $as_echo_n "(cached) " >&6
21837 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21841 for as_dir
in $PATH
21844 test -z "$as_dir" && as_dir
=.
21845 for ac_exec_ext
in '' $ac_executable_extensions; do
21846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21847 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21858 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21859 if test -n "$gcc_cv_nm"; then
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21861 $as_echo "$gcc_cv_nm" >&6; }
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21864 $as_echo "no" >&6; }
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21872 $as_echo_n "checking what nm to use... " >&6; }
21873 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21874 # Single tree build which includes binutils.
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21876 $as_echo "newly built nm" >&6; }
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21880 $as_echo "$gcc_cv_nm" >&6; }
21884 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21886 case "$ORIGINAL_NM_FOR_TARGET" in
21887 .
/nm | .
/nm
$build_exeext) ;;
21888 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21893 # Figure out what objdump we will be using.
21894 if test "${gcc_cv_objdump+set}" = set; then :
21898 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21899 && test -f ..
/binutils
/Makefile \
21900 && test x
$build = x
$host; then
21901 # Single tree build which includes binutils.
21902 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21903 elif test -x objdump
$build_exeext; then
21904 gcc_cv_objdump
=.
/objdump
$build_exeext
21905 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21906 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21908 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21909 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21911 $as_echo_n "checking for $ac_word... " >&6; }
21912 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21913 $as_echo_n "(cached) " >&6
21915 case $gcc_cv_objdump in
21917 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21921 for as_dir
in $PATH
21924 test -z "$as_dir" && as_dir
=.
21925 for ac_exec_ext
in '' $ac_executable_extensions; do
21926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21927 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21938 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21939 if test -n "$gcc_cv_objdump"; then
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21941 $as_echo "$gcc_cv_objdump" >&6; }
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21944 $as_echo "no" >&6; }
21951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21952 $as_echo_n "checking what objdump to use... " >&6; }
21953 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21954 # Single tree build which includes binutils.
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21956 $as_echo "newly built objdump" >&6; }
21957 elif test x
$gcc_cv_objdump = x
; then
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21959 $as_echo "not found" >&6; }
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21962 $as_echo "$gcc_cv_objdump" >&6; }
21965 # Figure out what readelf we will be using.
21966 if test "${gcc_cv_readelf+set}" = set; then :
21970 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21971 && test -f ..
/binutils
/Makefile \
21972 && test x
$build = x
$host; then
21973 # Single tree build which includes binutils.
21974 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21975 elif test -x readelf
$build_exeext; then
21976 gcc_cv_readelf
=.
/readelf
$build_exeext
21978 # Extract the first word of "readelf", so it can be a program name with args.
21979 set dummy readelf
; ac_word
=$2
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21981 $as_echo_n "checking for $ac_word... " >&6; }
21982 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21983 $as_echo_n "(cached) " >&6
21985 case $gcc_cv_readelf in
21987 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21991 for as_dir
in $PATH
21994 test -z "$as_dir" && as_dir
=.
21995 for ac_exec_ext
in '' $ac_executable_extensions; do
21996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21997 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22008 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22009 if test -n "$gcc_cv_readelf"; then
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22011 $as_echo "$gcc_cv_readelf" >&6; }
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22014 $as_echo "no" >&6; }
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22022 $as_echo_n "checking what readelf to use... " >&6; }
22023 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22024 # Single tree build which includes binutils.
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22026 $as_echo "newly built readelf" >&6; }
22027 elif test x
$gcc_cv_readelf = x
; then
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22029 $as_echo "not found" >&6; }
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22032 $as_echo "$gcc_cv_readelf" >&6; }
22035 # Figure out what assembler alignment features are present.
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22037 $as_echo_n "checking assembler flags... " >&6; }
22038 if test "${gcc_cv_as_flags+set}" = set; then :
22039 $as_echo_n "(cached) " >&6
22042 i
[34567]86-*-linux*)
22043 gcc_cv_as_flags
=--32
22045 x86_64-
*-linux-gnux32)
22046 gcc_cv_as_flags
=--x32
22049 gcc_cv_as_flags
=--64
22051 powerpc
*-*-darwin*)
22052 gcc_cv_as_flags
="-arch ppc"
22055 gcc_cv_as_flags
=" "
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22060 $as_echo "$gcc_cv_as_flags" >&6; }
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22063 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22064 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22065 $as_echo_n "(cached) " >&6
22067 gcc_cv_as_balign_and_p2align
=no
22068 if test $in_tree_gas = yes; then
22069 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22070 then gcc_cv_as_balign_and_p2align
=yes
22072 elif test x
$gcc_cv_as != x
; then
22073 $as_echo '.balign 4
22074 .p2align 2' > conftest.s
22075 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22077 (eval $ac_try) 2>&5
22079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22080 test $ac_status = 0; }; }
22082 gcc_cv_as_balign_and_p2align
=yes
22084 echo "configure: failed program was" >&5
22087 rm -f conftest.o conftest.s
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22091 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22092 if test $gcc_cv_as_balign_and_p2align = yes; then
22094 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22099 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22100 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22101 $as_echo_n "(cached) " >&6
22103 gcc_cv_as_max_skip_p2align
=no
22104 if test $in_tree_gas = yes; then
22105 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22106 then gcc_cv_as_max_skip_p2align
=yes
22108 elif test x
$gcc_cv_as != x
; then
22109 $as_echo '.p2align 4,,7' > conftest.s
22110 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22112 (eval $ac_try) 2>&5
22114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22115 test $ac_status = 0; }; }
22117 gcc_cv_as_max_skip_p2align
=yes
22119 echo "configure: failed program was" >&5
22122 rm -f conftest.o conftest.s
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22126 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22127 if test $gcc_cv_as_max_skip_p2align = yes; then
22129 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22134 $as_echo_n "checking assembler for .literal16... " >&6; }
22135 if test "${gcc_cv_as_literal16+set}" = set; then :
22136 $as_echo_n "(cached) " >&6
22138 gcc_cv_as_literal16
=no
22139 if test $in_tree_gas = yes; then
22140 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22141 then gcc_cv_as_literal16
=yes
22143 elif test x
$gcc_cv_as != x
; then
22144 $as_echo '.literal16' > conftest.s
22145 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22147 (eval $ac_try) 2>&5
22149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22150 test $ac_status = 0; }; }
22152 gcc_cv_as_literal16
=yes
22154 echo "configure: failed program was" >&5
22157 rm -f conftest.o conftest.s
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22161 $as_echo "$gcc_cv_as_literal16" >&6; }
22162 if test $gcc_cv_as_literal16 = yes; then
22164 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22169 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22170 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22171 $as_echo_n "(cached) " >&6
22173 gcc_cv_as_subsection_m1
=no
22174 if test $in_tree_gas = yes; then
22175 if test $in_tree_gas_is_elf = yes \
22176 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22177 then gcc_cv_as_subsection_m1
=yes
22179 elif test x
$gcc_cv_as != x
; then
22180 $as_echo 'conftest_label1: .word 0
22182 conftest_label2: .word 0
22183 .previous' > conftest.s
22184 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22186 (eval $ac_try) 2>&5
22188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22189 test $ac_status = 0; }; }
22191 if test x
$gcc_cv_nm != x
; then
22192 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22193 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22194 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22196 else gcc_cv_as_subsection_m1
=yes
22198 rm -f conftest.nm1 conftest.nm2
22201 echo "configure: failed program was" >&5
22204 rm -f conftest.o conftest.s
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22208 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22209 if test $gcc_cv_as_subsection_m1 = yes; then
22211 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22216 $as_echo_n "checking assembler for .weak... " >&6; }
22217 if test "${gcc_cv_as_weak+set}" = set; then :
22218 $as_echo_n "(cached) " >&6
22221 if test $in_tree_gas = yes; then
22222 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22223 then gcc_cv_as_weak
=yes
22225 elif test x
$gcc_cv_as != x
; then
22226 $as_echo ' .weak foobar' > conftest.s
22227 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22229 (eval $ac_try) 2>&5
22231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22232 test $ac_status = 0; }; }
22236 echo "configure: failed program was" >&5
22239 rm -f conftest.o conftest.s
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22243 $as_echo "$gcc_cv_as_weak" >&6; }
22244 if test $gcc_cv_as_weak = yes; then
22246 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22251 $as_echo_n "checking assembler for .weakref... " >&6; }
22252 if test "${gcc_cv_as_weakref+set}" = set; then :
22253 $as_echo_n "(cached) " >&6
22255 gcc_cv_as_weakref
=no
22256 if test $in_tree_gas = yes; then
22257 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22258 then gcc_cv_as_weakref
=yes
22260 elif test x
$gcc_cv_as != x
; then
22261 $as_echo ' .weakref foobar, barfnot' > conftest.s
22262 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22264 (eval $ac_try) 2>&5
22266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22267 test $ac_status = 0; }; }
22269 gcc_cv_as_weakref
=yes
22271 echo "configure: failed program was" >&5
22274 rm -f conftest.o conftest.s
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22278 $as_echo "$gcc_cv_as_weakref" >&6; }
22279 if test $gcc_cv_as_weakref = yes; then
22281 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22286 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22287 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22288 $as_echo_n "(cached) " >&6
22290 gcc_cv_as_nsubspa_comdat
=no
22291 if test $in_tree_gas = yes; then
22292 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22293 then gcc_cv_as_nsubspa_comdat
=yes
22295 elif test x
$gcc_cv_as != x
; then
22296 $as_echo ' .SPACE $TEXT$
22297 .NSUBSPA $CODE$,COMDAT' > conftest.s
22298 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22300 (eval $ac_try) 2>&5
22302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22303 test $ac_status = 0; }; }
22305 gcc_cv_as_nsubspa_comdat
=yes
22307 echo "configure: failed program was" >&5
22310 rm -f conftest.o conftest.s
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22314 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22315 if test $gcc_cv_as_nsubspa_comdat = yes; then
22317 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22321 # .hidden needs to be supported in both the assembler and the linker,
22322 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22323 # This is irritatingly difficult to feature test for; we have to check the
22324 # date string after the version number. If we've got an in-tree
22325 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22327 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22329 $as_echo_n "checking assembler for .hidden... " >&6; }
22330 if test "${gcc_cv_as_hidden+set}" = set; then :
22331 $as_echo_n "(cached) " >&6
22333 gcc_cv_as_hidden
=no
22334 if test $in_tree_gas = yes; then
22335 if test $in_tree_gas_is_elf = yes \
22336 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22337 then gcc_cv_as_hidden
=yes
22339 elif test x
$gcc_cv_as != x
; then
22340 $as_echo ' .hidden foobar
22341 foobar:' > conftest.s
22342 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22344 (eval $ac_try) 2>&5
22346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22347 test $ac_status = 0; }; }
22350 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22351 # STV_HIDDEN, so disable .hidden support if so.
22352 case "${target}" in
22353 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22354 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22355 cat > conftest.s
<<EOF
22360 .set default,hidden
22362 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22363 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22364 grep '\.hidden default' > /dev
/null
; then
22365 gcc_cv_as_hidden
=no
22367 gcc_cv_as_hidden
=yes
22370 # Assume bug is present if objdump is missing.
22371 gcc_cv_as_hidden
=no
22375 gcc_cv_as_hidden
=yes
22379 echo "configure: failed program was" >&5
22382 rm -f conftest.o conftest.s
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22386 $as_echo "$gcc_cv_as_hidden" >&6; }
22388 case "${target}" in
22390 # Darwin as has some visibility support, though with a different syntax.
22391 gcc_cv_as_hidden
=yes
22395 # gnu_indirect_function type is an extension proposed at
22396 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22397 # selection of function implementation
22398 # Check whether --enable-gnu-indirect-function was given.
22399 if test "${enable_gnu_indirect_function+set}" = set; then :
22400 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22402 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22403 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22406 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22410 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22412 cat >>confdefs.h
<<_ACEOF
22413 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22418 if test $in_tree_ld != yes ; then
22419 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22420 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22421 if test x
"$ld_is_gold" = xyes
; then
22422 # GNU gold --version looks like this:
22424 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22426 # We extract the binutils version which is more familiar and specific
22427 # than the gold version.
22428 ld_vers
=`echo $ld_ver | sed -n \
22429 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22431 # GNU ld --version looks like this:
22433 # GNU ld (GNU Binutils) 2.21.51.20110225
22434 ld_vers
=`echo $ld_ver | sed -n \
22435 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22437 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'`
22438 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22439 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22440 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22442 case "${target}" in
22444 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22447 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22448 # /usr/ccs/bin/ld has been configured.
22449 ld_ver
=`$gcc_cv_ld -V 2>&1`
22450 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22451 ld_vers
=`echo $ld_ver | sed -n \
22452 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22453 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22454 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22462 $as_echo_n "checking linker for .hidden support... " >&6; }
22463 if test "${gcc_cv_ld_hidden+set}" = set; then :
22464 $as_echo_n "(cached) " >&6
22466 if test $in_tree_ld = yes ; then
22467 gcc_cv_ld_hidden
=no
22468 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 \
22469 && test $in_tree_ld_is_elf = yes; then
22470 gcc_cv_ld_hidden
=yes
22473 gcc_cv_ld_hidden
=yes
22474 if test x
"$ld_is_gold" = xyes
; then
22476 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22477 case "${target}" in
22478 mmix-knuth-mmixware
)
22479 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22480 gcc_cv_ld_hidden
=no
22483 if test 0"$ld_date" -lt 20020404; then
22484 if test -n "$ld_date"; then
22485 # If there was date string, but was earlier than 2002-04-04, fail
22486 gcc_cv_ld_hidden
=no
22487 elif test -z "$ld_vers"; then
22488 # If there was no date string nor ld version number, something is wrong
22489 gcc_cv_ld_hidden
=no
22491 test -z "$ld_vers_patch" && ld_vers_patch
=0
22492 if test "$ld_vers_major" -lt 2; then
22493 gcc_cv_ld_hidden
=no
22494 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22495 gcc_cv_ld_hidden
="no"
22496 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22497 gcc_cv_ld_hidden
=no
22502 case "${target}" in
22504 # Darwin ld has some visibility support.
22505 gcc_cv_ld_hidden
=yes
22507 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22508 gcc_cv_ld_hidden
=yes
22510 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22511 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22512 # .symbolic was only added in Solaris 9 12/02.
22513 gcc_cv_ld_hidden
=yes
22516 gcc_cv_ld_hidden
=no
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22523 $as_echo "$gcc_cv_ld_hidden" >&6; }
22524 libgcc_visibility
=no
22527 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22528 libgcc_visibility
=yes
22530 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22535 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22536 gcc_cv_ld_ro_rw_mix
=unknown
22537 if test $in_tree_ld = yes ; then
22538 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 \
22539 && test $in_tree_ld_is_elf = yes; then
22540 gcc_cv_ld_ro_rw_mix
=read-write
22542 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22543 echo '.section myfoosect, "a"' > conftest1.s
22544 echo '.section myfoosect, "aw"' > conftest2.s
22545 echo '.byte 1' >> conftest2.s
22546 echo '.section myfoosect, "a"' > conftest3.s
22547 echo '.byte 0' >> conftest3.s
22548 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22549 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22550 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22551 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22552 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22553 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22554 | sed -e '/myfoosect/!d' -e N`
22555 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22556 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22557 gcc_cv_ld_ro_rw_mix
=read-only
22559 gcc_cv_ld_ro_rw_mix
=read-write
22563 rm -f conftest.
* conftest
[123].
*
22565 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22567 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22571 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22573 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22574 case "${target}" in
22577 # Solaris 2 ld -V output looks like this for a regular version:
22579 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22581 # but test versions add stuff at the end:
22583 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22585 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22586 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22587 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22588 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22589 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22590 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22596 # Check whether --enable-initfini-array was given.
22597 if test "${enable_initfini_array+set}" = set; then :
22598 enableval
=$enable_initfini_array;
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22602 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22603 if test "${gcc_cv_initfini_array+set}" = set; then :
22604 $as_echo_n "(cached) " >&6
22606 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22607 case "${target}" in
22609 if test "$cross_compiling" = yes; then :
22610 gcc_cv_initfini_array
=no
22612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22613 /* end confdefs.h. */
22616 #error Not an ELF OS
22618 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22619 if it can be used. */
22621 int main (void) { return x; }
22622 int foo (void) { x = 0; }
22623 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22626 if ac_fn_c_try_run
"$LINENO"; then :
22627 gcc_cv_initfini_array
=yes
22629 gcc_cv_initfini_array
=no
22631 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22632 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22636 gcc_cv_initfini_array
=no
22637 if test $in_tree_ld = yes ; then
22638 if test "$gcc_cv_gld_major_version" -eq 2 \
22639 -a "$gcc_cv_gld_minor_version" -ge 22 \
22640 -o "$gcc_cv_gld_major_version" -gt 2 \
22641 && test $in_tree_ld_is_elf = yes; then
22642 gcc_cv_initfini_array
=yes
22644 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22645 cat > conftest.s
<<\EOF
22646 .section .dtors
,"a",%progbits
22648 .byte
'A', 'A', 'A', 'A'
22649 .section .ctors
,"a",%progbits
22651 .byte
'B', 'B', 'B', 'B'
22652 .section .fini_array
.65530,"a",%progbits
22654 .byte
'C', 'C', 'C', 'C'
22655 .section .init_array
.65530,"a",%progbits
22657 .byte
'D', 'D', 'D', 'D'
22658 .section .dtors
.64528,"a",%progbits
22660 .byte
'E', 'E', 'E', 'E'
22661 .section .ctors
.64528,"a",%progbits
22663 .byte
'F', 'F', 'F', 'F'
22664 .section .fini_array
.01005,"a",%progbits
22666 .byte
'G', 'G', 'G', 'G'
22667 .section .init_array
.01005,"a",%progbits
22669 .byte
'H', 'H', 'H', 'H'
22674 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22675 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22676 && $gcc_cv_objdump -s -j .init_array conftest \
22677 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22678 && $gcc_cv_objdump -s -j .fini_array conftest \
22679 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22680 gcc_cv_initfini_array
=yes
22682 rm -f conftest conftest.
*
22684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22685 /* end confdefs.h. */
22688 # error Not an ELF OS
22690 #include <stdlib.h>
22691 #if defined __GLIBC_PREREQ
22692 # if __GLIBC_PREREQ (2, 4)
22694 # error GLIBC 2.4 required
22697 # if defined __sun__ && defined __svr4__
22698 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22700 # error The C library not known to support .init_array/.fini_array
22705 if ac_fn_c_try_cpp
"$LINENO"; then :
22708 gcc_cv_initfini_array
=no
22710 rm -f conftest.err conftest.
$ac_ext;;
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22714 $as_echo_n "checking cross compile... guessing... " >&6; }
22715 gcc_cv_initfini_array
=no
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22719 $as_echo "$gcc_cv_initfini_array" >&6; }
22720 enable_initfini_array
=$gcc_cv_initfini_array
22724 if test $enable_initfini_array = yes; then
22726 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22730 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22732 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22733 if test "${gcc_cv_as_leb128+set}" = set; then :
22734 $as_echo_n "(cached) " >&6
22736 gcc_cv_as_leb128
=no
22737 if test $in_tree_gas = yes; then
22738 if test $in_tree_gas_is_elf = yes \
22739 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22740 then gcc_cv_as_leb128
=yes
22742 elif test x
$gcc_cv_as != x
; then
22749 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22751 (eval $ac_try) 2>&5
22753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22754 test $ac_status = 0; }; }
22756 # GAS versions before 2.11 do not support uleb128,
22757 # despite appearing to.
22758 # ??? There exists an elf-specific test that will crash
22759 # the assembler. Perhaps it's better to figure out whether
22760 # arbitrary sections are supported and try the test.
22761 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22762 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22763 as_vers
=`echo $as_ver | sed -n \
22764 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22765 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22766 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22767 if test $as_major -eq 2 && test $as_minor -lt 11
22769 else gcc_cv_as_leb128
=yes
22773 echo "configure: failed program was" >&5
22776 rm -f conftest.o conftest.s
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22780 $as_echo "$gcc_cv_as_leb128" >&6; }
22781 if test $gcc_cv_as_leb128 = yes; then
22783 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22787 # Check if we have assembler support for unwind directives.
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22789 $as_echo_n "checking assembler for cfi directives... " >&6; }
22790 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22791 $as_echo_n "(cached) " >&6
22793 gcc_cv_as_cfi_directive
=no
22794 if test x
$gcc_cv_as != x
; then
22800 .cfi_escape 1, 2, 3, 4, 5
22801 .cfi_endproc' > conftest.s
22802 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22804 (eval $ac_try) 2>&5
22806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22807 test $ac_status = 0; }; }
22811 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22812 # read-only and read-write sections, we need to make sure that the
22813 # assembler used emits read-write .eh_frame sections.
22814 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22815 if test "x$gcc_cv_objdump" != x
; then
22816 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22817 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22818 gcc_cv_as_cfi_directive
=no
22821 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22822 # On Solaris/x86, make sure that GCC and gas agree on using
22823 # read-only .eh_frame sections for 64-bit.
22824 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22825 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22826 sed -e /.eh_frame
/!d
-e N | \
22827 grep READONLY
> /dev
/null
; then
22828 gcc_cv_as_cfi_directive
=yes
22830 gcc_cv_as_cfi_directive
=no
22834 gcc_cv_as_cfi_directive
=yes
22839 # no objdump, err on the side of caution
22840 gcc_cv_as_cfi_directive
=no
22843 gcc_cv_as_cfi_directive
=yes
22847 gcc_cv_as_cfi_directive
=yes
22851 echo "configure: failed program was" >&5
22854 rm -f conftest.o conftest.s
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22858 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22860 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22862 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22863 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22864 $as_echo_n "(cached) " >&6
22866 gcc_cv_as_cfi_advance_working
=no
22867 if test x
$gcc_cv_as != x
; then
22870 .cfi_adjust_cfa_offset 64
22872 .cfi_adjust_cfa_offset 128
22873 .cfi_endproc' > conftest.s
22874 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22876 (eval $ac_try) 2>&5
22878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22879 test $ac_status = 0; }; }
22882 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22883 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22884 gcc_cv_as_cfi_advance_working
=yes
22888 echo "configure: failed program was" >&5
22891 rm -f conftest.o conftest.s
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22895 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22898 # no objdump, err on the side of caution
22899 gcc_cv_as_cfi_advance_working
=no
22903 cat >>confdefs.h
<<_ACEOF
22904 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22905 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22911 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22912 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22913 $as_echo_n "(cached) " >&6
22915 gcc_cv_as_cfi_personality_directive
=no
22916 if test x
$gcc_cv_as != x
; then
22919 .cfi_personality 0, symbol
22920 .cfi_endproc' > conftest.s
22921 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22923 (eval $ac_try) 2>&5
22925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22926 test $ac_status = 0; }; }
22928 gcc_cv_as_cfi_personality_directive
=yes
22930 echo "configure: failed program was" >&5
22933 rm -f conftest.o conftest.s
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22937 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22940 cat >>confdefs.h
<<_ACEOF
22941 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22942 then echo 1; else echo 0; fi`
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22947 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22948 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22949 $as_echo_n "(cached) " >&6
22951 gcc_cv_as_cfi_sections_directive
=no
22952 if test x
$gcc_cv_as != x
; then
22954 .cfi_sections .debug_frame, .eh_frame
22956 .cfi_endproc' > conftest.s
22957 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22959 (eval $ac_try) 2>&5
22961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22962 test $ac_status = 0; }; }
22965 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22966 # Need to check that we generated the correct relocation for the
22967 # .debug_frame section. This was fixed for binutils 2.21.
22968 gcc_cv_as_cfi_sections_directive
=no
22969 if test "x$gcc_cv_objdump" != x
; then
22970 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22971 grep secrel
> /dev
/null
; then
22972 gcc_cv_as_cfi_sections_directive
=yes
22977 gcc_cv_as_cfi_sections_directive
=yes
22981 echo "configure: failed program was" >&5
22984 rm -f conftest.o conftest.s
22987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22988 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22992 cat >>confdefs.h
<<_ACEOF
22993 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22994 then echo 1; else echo 0; fi`
22998 # GAS versions up to and including 2.11.0 may mis-optimize
23000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23001 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23002 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23003 $as_echo_n "(cached) " >&6
23005 gcc_cv_as_eh_frame
=no
23006 if test $in_tree_gas = yes; then
23007 if test $in_tree_gas_is_elf = yes \
23008 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23009 then gcc_cv_as_eh_frame
=yes
23011 elif test x
$gcc_cv_as != x
; then
23018 .section .eh_frame,"aw",@progbits
23020 .4byte .LECIE1-.LSCIE1
23034 .4byte .LEFDE1-.LASFDE1
23036 .4byte .LASFDE1-__FRAME_BEGIN__
23043 .LEFDE1:' > conftest.s
23044 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23046 (eval $ac_try) 2>&5
23048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23049 test $ac_status = 0; }; }
23051 cat > conftest.lit
<<EOF
23052 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23053 0010 01000000 12000000 18000000 00000000 ................
23054 0020 08000000 04080000 0044 .........D
23056 cat > conftest.big
<<EOF
23057 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23058 0010 00000001 00000012 00000018 00000000 ................
23059 0020 00000008 04000000 0844 .........D
23061 # If the assembler didn't choke, and we can objdump,
23062 # and we got the correct data, then succeed.
23063 # The text in the here-document typically retains its unix-style line
23064 # endings, while the output of objdump will use host line endings.
23065 # Therefore, use diff -b for the comparisons.
23066 if test x
$gcc_cv_objdump != x \
23067 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23068 |
tail -3 > conftest.got \
23069 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23070 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23072 gcc_cv_as_eh_frame
=yes
23073 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23075 (eval $ac_try) 2>&5
23077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23078 test $ac_status = 0; }; }; then
23079 gcc_cv_as_eh_frame
=buggy
23081 # Uh oh, what do we do now?
23082 gcc_cv_as_eh_frame
=no
23085 echo "configure: failed program was" >&5
23088 rm -f conftest.o conftest.s
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23092 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23095 if test $gcc_cv_as_eh_frame = buggy
; then
23097 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23102 $as_echo_n "checking assembler for section merging support... " >&6; }
23103 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23104 $as_echo_n "(cached) " >&6
23106 gcc_cv_as_shf_merge
=no
23107 if test $in_tree_gas = yes; then
23108 if test $in_tree_gas_is_elf = yes \
23109 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23110 then gcc_cv_as_shf_merge
=yes
23112 elif test x
$gcc_cv_as != x
; then
23113 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23114 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23116 (eval $ac_try) 2>&5
23118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23119 test $ac_status = 0; }; }
23121 gcc_cv_as_shf_merge
=yes
23123 echo "configure: failed program was" >&5
23126 rm -f conftest.o conftest.s
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23130 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23132 if test $gcc_cv_as_shf_merge = no
; then
23133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23134 $as_echo_n "checking assembler for section merging support... " >&6; }
23135 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23136 $as_echo_n "(cached) " >&6
23138 gcc_cv_as_shf_merge
=no
23139 if test $in_tree_gas = yes; then
23140 if test $in_tree_gas_is_elf = yes \
23141 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23142 then gcc_cv_as_shf_merge
=yes
23144 elif test x
$gcc_cv_as != x
; then
23145 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23146 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23148 (eval $ac_try) 2>&5
23150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23151 test $ac_status = 0; }; }
23153 gcc_cv_as_shf_merge
=yes
23155 echo "configure: failed program was" >&5
23158 rm -f conftest.o conftest.s
23161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23162 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23166 cat >>confdefs.h
<<_ACEOF
23167 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23172 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23173 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23174 $as_echo_n "(cached) " >&6
23176 gcc_cv_as_comdat_group
=no
23177 if test $in_tree_gas = yes; then
23178 if test $in_tree_gas_is_elf = yes \
23179 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23180 then gcc_cv_as_comdat_group
=yes
23182 elif test x
$gcc_cv_as != x
; then
23183 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23184 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23186 (eval $ac_try) 2>&5
23188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23189 test $ac_status = 0; }; }
23191 gcc_cv_as_comdat_group
=yes
23193 echo "configure: failed program was" >&5
23196 rm -f conftest.o conftest.s
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23200 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23202 if test $gcc_cv_as_comdat_group = yes; then
23203 gcc_cv_as_comdat_group_percent
=no
23204 gcc_cv_as_comdat_group_group
=no
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23207 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23208 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23209 $as_echo_n "(cached) " >&6
23211 gcc_cv_as_comdat_group_percent
=no
23212 if test $in_tree_gas = yes; then
23213 if test $in_tree_gas_is_elf = yes \
23214 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23215 then gcc_cv_as_comdat_group_percent
=yes
23217 elif test x
$gcc_cv_as != x
; then
23218 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23219 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23221 (eval $ac_try) 2>&5
23223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23224 test $ac_status = 0; }; }
23226 gcc_cv_as_comdat_group_percent
=yes
23228 echo "configure: failed program was" >&5
23231 rm -f conftest.o conftest.s
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23235 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23237 if test $gcc_cv_as_comdat_group_percent = yes; then
23238 gcc_cv_as_comdat_group_group
=no
23240 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23241 gcc_cv_as_comdat_group_group
=no
23243 case "${target}" in
23244 # Sun as uses a completely different syntax.
23246 case "${target}" in
23247 sparc
*-*-solaris2*)
23249 .group foo,".text%foo",#comdat
23250 .section ".text%foo", #alloc,#execinstr,#progbits
23255 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23257 .group foo,.text%foo,#comdat
23258 .section .text%foo, "ax", @progbits
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23265 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23266 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23267 $as_echo_n "(cached) " >&6
23269 gcc_cv_as_comdat_group_group
=no
23270 if test x
$gcc_cv_as != x
; then
23271 $as_echo "$conftest_s" > conftest.s
23272 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23274 (eval $ac_try) 2>&5
23276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23277 test $ac_status = 0; }; }
23279 gcc_cv_as_comdat_group_group
=yes
23281 echo "configure: failed program was" >&5
23284 rm -f conftest.o conftest.s
23287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23288 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23294 if test x
"$ld_is_gold" = xyes
; then
23296 elif test $in_tree_ld = yes ; then
23298 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 \
23299 && test $in_tree_ld_is_elf = yes; then
23302 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23304 if test 0"$ld_date" -lt 20050308; then
23305 if test -n "$ld_date"; then
23306 # If there was date string, but was earlier than 2005-03-08, fail
23308 elif test "$ld_vers_major" -lt 2; then
23310 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23315 case "${target}" in
23316 *-*-solaris2.1
[1-9]*)
23318 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23319 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23322 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23323 # least ld version 1.2267.
23324 if test "$ld_vers_major" -gt 1; then
23326 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23328 elif test "$ld_vers_minor" -ge 2267; then
23333 # Assume linkers other than GNU ld don't support COMDAT group.
23338 # Allow overriding the automatic COMDAT group tests above.
23339 # Check whether --enable-comdat was given.
23340 if test "${enable_comdat+set}" = set; then :
23341 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23344 if test $comdat_group = no
; then
23345 gcc_cv_as_comdat_group
=no
23346 gcc_cv_as_comdat_group_percent
=no
23347 gcc_cv_as_comdat_group_group
=no
23350 cat >>confdefs.h
<<_ACEOF
23351 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23352 || test $gcc_cv_as_comdat_group_percent = yes \
23353 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23358 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23359 if test "${gcc_cv_as_discriminator+set}" = set; then :
23360 $as_echo_n "(cached) " >&6
23362 gcc_cv_as_discriminator
=no
23363 if test $in_tree_gas = yes; then
23364 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23365 then gcc_cv_as_discriminator
=yes
23367 elif test x
$gcc_cv_as != x
; then
23370 .loc 1 1 0 discriminator 1' > conftest.s
23371 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23373 (eval $ac_try) 2>&5
23375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23376 test $ac_status = 0; }; }
23378 gcc_cv_as_discriminator
=yes
23380 echo "configure: failed program was" >&5
23383 rm -f conftest.o conftest.s
23386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23387 $as_echo "$gcc_cv_as_discriminator" >&6; }
23388 if test $gcc_cv_as_discriminator = yes; then
23390 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23394 # Thread-local storage - the check is heavily parameterized.
23402 .section ".tdata","awT",@progbits
23405 ldq $27,__tls_get_addr($29) !literal!1
23406 lda $16,foo($29) !tlsgd!1
23407 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23408 ldq $27,__tls_get_addr($29) !literal!2
23409 lda $16,foo($29) !tlsldm!2
23410 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23411 ldq $1,foo($29) !gotdtprel
23412 ldah $2,foo($29) !dtprelhi
23413 lda $3,foo($2) !dtprello
23414 lda $4,foo($29) !dtprel
23415 ldq $1,foo($29) !gottprel
23416 ldah $2,foo($29) !tprelhi
23417 lda $3,foo($2) !tprello
23418 lda $4,foo($29) !tprel'
23421 tls_as_opt
=--fatal-warnings
23423 cris-
*-*|crisv32-
*-*)
23425 .section ".tdata","awT",@progbits
23432 tls_as_opt
=--fatal-warnings
23436 .section ".tdata","awT",@progbits
23439 call #gettlsoff(x)'
23448 .section ".tdata","awT",@progbits
23452 addil LT%foo-$tls_gdidx$,gp
23453 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23456 addil LT%foo-$tls_ldidx$,gp
23458 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23459 addil LR%foo-$tls_dtpoff$,%ret0
23460 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23462 addil LT%foo-$tls_ieoff$,gp
23463 ldw RT%foo-$tls_ieoff$(%r1),%t2
23466 addil LR%foo-$tls_leoff$,%t1
23467 ldo RR%foo-$tls_leoff$(%r1),%t2'
23470 tls_as_opt
=--fatal-warnings
23474 .section ".tdata","awT",%progbits
23477 .word foo(gottpoff)
23485 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23487 i
[34567]86-*-solaris2.
*)
23489 tga_func
=___tls_get_addr
23491 x86_64-
*-solaris2.1
[0-9]*)
23493 tga_func
=__tls_get_addr
23499 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23501 .section .tdata,"awt",@progbits'
23505 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23509 .section ".tdata","awT",@progbits'
23512 tls_as_opt
="--fatal-warnings"
23514 conftest_s
="$conftest_s
23518 leal foo@tlsgd(,%ebx,1), %eax
23519 leal foo@tlsldm(%ebx), %eax
23520 leal foo@dtpoff(%eax), %edx
23521 movl foo@gottpoff(%ebx), %eax
23522 subl foo@gottpoff(%ebx), %eax
23523 addl foo@gotntpoff(%ebx), %eax
23524 movl foo@indntpoff, %eax
23525 movl \$foo@tpoff, %eax
23526 subl \$foo@tpoff, %eax
23527 leal foo@ntpoff(%ecx), %eax"
23531 .section ".tdata","awT",@progbits
23535 leaq foo@TLSGD(%rip), %rdi
23536 leaq foo@TLSLD(%rip), %rdi
23537 leaq foo@DTPOFF(%rax), %rdx
23538 movq foo@GOTTPOFF(%rip), %rax
23539 movq $foo@TPOFF, %rax'
23542 tls_as_opt
=--fatal-warnings
23546 .section ".tdata","awT",@progbits
23549 addl r16 = @ltoff(@dtpmod(foo#)), gp
23550 addl r17 = @ltoff(@dtprel(foo#)), gp
23551 addl r18 = @ltoff(@tprel(foo#)), gp
23552 addl r19 = @dtprel(foo#), gp
23553 adds r21 = @dtprel(foo#), r13
23554 movl r23 = @dtprel(foo#)
23555 addl r20 = @tprel(foo#), gp
23556 adds r22 = @tprel(foo#), r13
23557 movl r24 = @tprel(foo#)'
23560 tls_as_opt
=--fatal-warnings
23564 .section .tdata,"awT",@progbits
23568 addik r5,r20,x@TLSGD
23569 addik r5,r20,x@TLSLDM'
23572 tls_as_opt
='--fatal-warnings'
23576 .section .tdata,"awT",@progbits
23580 addiu $4, $28, %tlsgd(x)
23581 addiu $4, $28, %tlsldm(x)
23582 lui $4, %dtprel_hi(x)
23583 addiu $4, $4, %dtprel_lo(x)
23584 lw $4, %gottprel(x)($28)
23585 lui $4, %tprel_hi(x)
23586 addiu $4, $4, %tprel_lo(x)'
23589 tls_as_opt
='-32 --fatal-warnings'
23593 .section .tdata,"awT",@progbits
23598 move.l x@TLSGD(%a5),%a0
23599 move.l x@TLSLDM(%a5),%a0
23600 move.l x@TLSLDO(%a5),%a0
23601 move.l x@TLSIE(%a5),%a0
23602 move.l x@TLSLE(%a5),%a0'
23605 tls_as_opt
='--fatal-warnings'
23609 .section ".tdata","awT",@progbits'
23612 tls_as_opt
="--fatal-warnings"
23616 .section ".tdata","awT",%progbits
23620 add x0, x0, #:tlsgd_lo12:x
23625 tls_as_opt
='--fatal-warnings'
23629 .extern __get_tpointer
23647 .section ".tdata","awT",@progbits
23655 addi 3,2,ld0@got@tlsgd
23661 addi 3,2,x1@got@tlsld
23667 addis 9,3,x2@dtprel@ha
23668 addi 9,9,x2@dtprel@l
23671 ld 9,x3@got@dtprel(2)
23677 tls_as_opt
="-a64 --fatal-warnings"
23681 .section ".tdata","awT",@progbits
23689 addi 3,31,ld0@got@tlsgd
23691 addi 3,31,x1@got@tlsld
23694 addis 9,3,x2@dtprel@ha
23695 addi 9,9,x2@dtprel@l
23696 lwz 9,x3@got@tprel(31)
23699 addis 9,2,x2@tprel@ha
23700 addi 9,9,x2@tprel@l'
23703 tls_as_opt
="-a32 --fatal-warnings"
23707 .section ".tdata","awT",@progbits
23714 .long foo@GOTNTPOFF
23715 .long foo@INDNTPOFF
23716 l %r1,foo@GOTNTPOFF(%r12)
23717 l %r1,0(%r1):tls_load:foo
23718 bas %r14,0(%r1,%r13):tls_gdcall:foo
23719 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23722 tls_as_opt
="-m31 --fatal-warnings"
23726 .section ".tdata","awT",@progbits
23733 .quad foo@GOTNTPOFF
23734 lg %r1,foo@GOTNTPOFF(%r12)
23735 larl %r1,foo@INDNTPOFF
23736 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23737 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23740 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23742 sh-
*-* | sh
[34]-*-*)
23744 .section ".tdata","awT",@progbits
23754 tls_as_opt
=--fatal-warnings
23758 sparc
*-sun-solaris2.
*)
23760 tga_func
=__tls_get_addr
23766 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23768 .section ".tdata",#alloc,#write,#tls'
23773 .section ".tdata","awT",@progbits'
23776 tls_as_opt
="-32 --fatal-warnings"
23778 conftest_s
="$conftest_s
23781 sethi %tgd_hi22(foo), %o0
23782 add %o0, %tgd_lo10(foo), %o1
23783 add %l7, %o1, %o0, %tgd_add(foo)
23784 call __tls_get_addr, %tgd_call(foo)
23785 sethi %tldm_hi22(foo), %l1
23786 add %l1, %tldm_lo10(foo), %l2
23787 add %l7, %l2, %o0, %tldm_add(foo)
23788 call __tls_get_addr, %tldm_call(foo)
23789 sethi %tldo_hix22(foo), %l3
23790 xor %l3, %tldo_lox10(foo), %l4
23791 add %o0, %l4, %l5, %tldo_add(foo)
23792 sethi %tie_hi22(foo), %o3
23793 add %o3, %tie_lo10(foo), %o3
23794 ld [%l7 + %o3], %o2, %tie_ld(foo)
23795 add %g7, %o2, %o4, %tie_add(foo)
23796 sethi %tle_hix22(foo), %l1
23797 xor %l1, %tle_lox10(foo), %o5
23798 ld [%g7 + %o5], %o1"
23802 .section ".tdata","awT",@progbits
23805 addli r0, zero, tls_gd(foo)
23806 auli r0, zero, tls_gd_ha16(foo)
23807 addli r0, r0, tls_gd_lo16(foo)
23809 addli r0, zero, tls_ie(foo)
23810 auli r0, r0, tls_ie_ha16(foo)
23811 addli r0, r0, tls_ie_lo16(foo)'
23814 tls_as_opt
="--fatal-warnings"
23818 .section ".tdata","awT",@progbits
23821 shl16insli r0, zero, hw0_last_tls_gd(foo)
23822 shl16insli r0, zero, hw1_last_tls_gd(foo)
23823 shl16insli r0, r0, hw0_tls_gd(foo)
23825 shl16insli r0, zero, hw1_last_tls_ie(foo)
23826 shl16insli r0, r0, hw0_tls_ie(foo)'
23829 tls_as_opt
="--fatal-warnings"
23833 .section ".tdata","awT",@progbits
23836 movi a8, foo@TLSFUNC
23837 movi a10, foo@TLSARG
23838 callx8.tls a8, foo@TLSCALL'
23844 if test "x$enable_tls" = xno
; then
23845 : # TLS explicitly disabled.
23846 elif test "x$enable_tls" = xyes
; then
23847 set_have_as_tls
=yes # TLS explicitly enabled.
23848 elif test -z "$tls_first_major"; then
23849 : # If we don't have a check, assume no support.
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23852 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23853 if test "${gcc_cv_as_tls+set}" = set; then :
23854 $as_echo_n "(cached) " >&6
23857 if test $in_tree_gas = yes; then
23858 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23859 then gcc_cv_as_tls
=yes
23861 elif test x
$gcc_cv_as != x
; then
23862 $as_echo "$conftest_s" > conftest.s
23863 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23865 (eval $ac_try) 2>&5
23867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23868 test $ac_status = 0; }; }
23872 echo "configure: failed program was" >&5
23875 rm -f conftest.o conftest.s
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23879 $as_echo "$gcc_cv_as_tls" >&6; }
23880 if test $gcc_cv_as_tls = yes; then
23881 set_have_as_tls
=yes
23885 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23886 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23887 # Sun style that Sun ld and GCC don't support any longer.
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23890 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23892 # Check ld and ld.so.1 TLS support.
23893 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23894 # Assume all interesting versions of GNU ld have TLS support.
23895 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23899 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23901 min_tls_ld_vers_minor
=374
23903 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23904 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23905 min_tls_ld_vers_minor
=343
23908 if test "$ld_vers_major" -gt 1 || \
23909 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23916 $as_echo "$ld_tls_support" >&6; }
23919 save_LDFLAGS
="$LDFLAGS"
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23924 $as_echo_n "checking library containing $tga_func... " >&6; }
23925 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23926 # (32-bit x86) only lived in libthread, so check for that. Keep
23927 # set_have_as_tls if found, disable if not.
23928 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23930 $as_echo_n "checking for library containing $tga_func... " >&6; }
23931 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23932 $as_echo_n "(cached) " >&6
23934 ac_func_search_save_LIBS
=$LIBS
23935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23936 /* end confdefs.h. */
23938 /* Override any GCC internal prototype to avoid an error.
23939 Use char because int might match the return type of a GCC
23940 builtin and then its argument prototype would still apply. */
23948 return $tga_func ();
23953 for ac_lib
in '' thread
; do
23954 if test -z "$ac_lib"; then
23955 ac_res
="none required"
23958 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23960 if ac_fn_c_try_link
"$LINENO"; then :
23961 eval "$as_ac_Search=\$ac_res"
23963 rm -f core conftest.err conftest.
$ac_objext \
23965 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23969 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23972 eval "$as_ac_Search=no"
23974 rm conftest.
$ac_ext
23975 LIBS
=$ac_func_search_save_LIBS
23977 eval ac_res
=\$
$as_ac_Search
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23979 $as_echo "$ac_res" >&6; }
23980 eval ac_res
=\$
$as_ac_Search
23981 if test "$ac_res" != no
; then :
23982 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23988 # Clear LIBS if we cannot support TLS.
23989 if test $set_have_as_tls = no
; then
23992 # Always define LIB_TLS_SPEC, even without TLS support.
23994 cat >>confdefs.h
<<_ACEOF
23995 #define LIB_TLS_SPEC "$LIBS"
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23999 $as_echo "$LIBS" >&6; }
24002 LDFLAGS
="$save_LDFLAGS"
24005 if test $set_have_as_tls = yes ; then
24007 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24011 # Target-specific assembler checks.
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24014 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24015 gcc_cv_ld_static_dynamic
=no
24016 gcc_cv_ld_static_option
='-Bstatic'
24017 gcc_cv_ld_dynamic_option
='-Bdynamic'
24018 if test $in_tree_ld = yes ; then
24019 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
24020 gcc_cv_ld_static_dynamic
=yes
24022 elif test x
$gcc_cv_ld != x
; then
24023 # Check if linker supports -Bstatic/-Bdynamic option
24024 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
24025 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
24026 gcc_cv_ld_static_dynamic
=yes
24029 # AIX ld uses -b flags
24030 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24031 gcc_cv_ld_static_dynamic
=yes
24032 gcc_cv_ld_static_option
="-bstatic"
24033 gcc_cv_ld_dynamic_option
="-bdynamic"
24035 # HP-UX ld uses -a flags to select between shared and archive.
24037 if test x
"$gnu_ld" = xno
; then
24038 gcc_cv_ld_static_dynamic
=yes
24039 gcc_cv_ld_static_option
="-aarchive_shared"
24040 gcc_cv_ld_dynamic_option
="-adefault"
24043 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24045 gcc_cv_ld_static_dynamic
=yes
24050 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24052 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24055 cat >>confdefs.h
<<_ACEOF
24056 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24060 cat >>confdefs.h
<<_ACEOF
24061 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24066 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24068 if test x
"$demangler_in_ld" = xyes
; then
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24070 $as_echo_n "checking linker --demangle support... " >&6; }
24071 gcc_cv_ld_demangle
=no
24072 if test $in_tree_ld = yes; then
24073 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 \
24074 gcc_cv_ld_demangle
=yes
24076 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24077 # Check if the GNU linker supports --demangle option
24078 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
24079 gcc_cv_ld_demangle
=yes
24082 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24084 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24088 $as_echo "$gcc_cv_ld_demangle" >&6; }
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24092 $as_echo_n "checking linker plugin support... " >&6; }
24093 gcc_cv_lto_plugin
=0
24094 if test -f liblto_plugin.la
; then
24095 save_ld_ver
="$ld_ver"
24096 save_ld_vers_major
="$ld_vers_major"
24097 save_ld_vers_minor
="$ld_vers_minor"
24098 save_ld_is_gold
="$ld_is_gold"
24102 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24104 # FIXME: ld_is_gold?
24105 ld_vers_major
="$gcc_cv_gld_major_version"
24106 ld_vers_minor
="$gcc_cv_gld_minor_version"
24108 # Determine plugin linker version.
24109 # FIXME: Partial duplicate from above, generalize.
24110 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24111 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24112 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24114 ld_vers
=`echo $ld_ver | sed -n \
24115 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24117 ld_vers
=`echo $ld_ver | sed -n \
24118 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24120 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24121 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24125 # Determine plugin support.
24126 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24127 # Require GNU ld or gold 2.21+ for plugin support by default.
24128 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24129 gcc_cv_lto_plugin
=2
24130 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24131 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24132 gcc_cv_lto_plugin
=1
24136 ld_ver
="$save_ld_ver"
24137 ld_vers_major
="$save_ld_vers_major"
24138 ld_vers_minor
="$save_ld_vers_minor"
24139 ld_is_gold
="$save_ld_is_gold"
24142 cat >>confdefs.h
<<_ACEOF
24143 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24147 $as_echo "$gcc_cv_lto_plugin" >&6; }
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24152 $as_echo_n "checking assembler for -mabi option... " >&6; }
24153 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24154 $as_echo_n "(cached) " >&6
24156 gcc_cv_as_aarch64_mabi
=no
24157 if test x
$gcc_cv_as != x
; then
24158 $as_echo '.text' > conftest.s
24159 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -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_aarch64_mabi
=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_aarch64_mabi" >&5
24175 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24177 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24179 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24182 if test x
$with_abi = xilp32
; then
24183 as_fn_error
"Assembler does not support -mabi=ilp32.\
24184 Upgrade the Assembler." "$LINENO" 5
24186 if test x
"$with_multilib_list" = xdefault
; then
24187 TM_MULTILIB_CONFIG
=lp64
24189 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24190 for aarch64_multilib
in ${aarch64_multilibs}; do
24191 case ${aarch64_multilib} in
24193 as_fn_error
"Assembler does not support -mabi=ilp32.\
24194 Upgrade the Assembler." "$LINENO" 5
24204 # All TARGET_ABI_OSF targets.
24205 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24207 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24208 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24209 $as_echo_n "(cached) " >&6
24211 gcc_cv_as_alpha_explicit_relocs
=no
24212 if test $in_tree_gas = yes; then
24213 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24214 then gcc_cv_as_alpha_explicit_relocs
=yes
24216 elif test x
$gcc_cv_as != x
; then
24217 $as_echo ' .set nomacro
24219 extbl $3, $2, $3 !lituse_bytoff!1
24220 ldq $2, a($29) !literal!1
24221 ldq $4, b($29) !literal!2
24222 ldq_u $3, 0($2) !lituse_base!1
24223 ldq $27, f($29) !literal!5
24224 jsr $26, ($27), f !lituse_jsr!5
24225 ldah $29, 0($26) !gpdisp!3
24226 lda $0, c($29) !gprel
24227 ldah $1, d($29) !gprelhigh
24228 lda $1, d($1) !gprellow
24229 lda $29, 0($29) !gpdisp!3' > conftest.s
24230 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24232 (eval $ac_try) 2>&5
24234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24235 test $ac_status = 0; }; }
24237 gcc_cv_as_alpha_explicit_relocs
=yes
24239 echo "configure: failed program was" >&5
24242 rm -f conftest.o conftest.s
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24246 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24247 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24249 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24253 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24254 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24255 $as_echo_n "(cached) " >&6
24257 gcc_cv_as_alpha_jsrdirect_relocs
=no
24258 if test $in_tree_gas = yes; then
24259 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24260 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24262 elif test x
$gcc_cv_as != x
; then
24263 $as_echo ' .set nomacro
24265 ldq $27, a($29) !literal!1
24266 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24267 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24269 (eval $ac_try) 2>&5
24271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24272 test $ac_status = 0; }; }
24274 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24276 echo "configure: failed program was" >&5
24279 rm -f conftest.o conftest.s
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24283 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24284 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24286 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24293 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24294 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24295 $as_echo_n "(cached) " >&6
24297 gcc_cv_as_cris_no_mul_bug
=no
24298 if test $in_tree_gas = yes; then
24299 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24300 then gcc_cv_as_cris_no_mul_bug
=yes
24302 elif test x
$gcc_cv_as != x
; then
24303 $as_echo '.text' > conftest.s
24304 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24306 (eval $ac_try) 2>&5
24308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24309 test $ac_status = 0; }; }
24311 gcc_cv_as_cris_no_mul_bug
=yes
24313 echo "configure: failed program was" >&5
24316 rm -f conftest.o conftest.s
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24320 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24321 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24323 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24330 $as_echo_n "checking assembler for .register... " >&6; }
24331 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24332 $as_echo_n "(cached) " >&6
24334 gcc_cv_as_sparc_register_op
=no
24335 if test x
$gcc_cv_as != x
; then
24336 $as_echo '.register %g2, #scratch' > conftest.s
24337 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24339 (eval $ac_try) 2>&5
24341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24342 test $ac_status = 0; }; }
24344 gcc_cv_as_sparc_register_op
=yes
24346 echo "configure: failed program was" >&5
24349 rm -f conftest.o conftest.s
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24353 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24354 if test $gcc_cv_as_sparc_register_op = yes; then
24356 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24361 $as_echo_n "checking assembler for #nobits... " >&6; }
24362 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24363 $as_echo_n "(cached) " >&6
24365 gcc_cv_as_sparc_nobits
=no
24366 if test x
$gcc_cv_as != x
; then
24367 $as_echo '.section "nobits",#alloc,#write,#nobits
24368 .section "progbits",#alloc,#write,#progbits' > conftest.s
24369 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24371 (eval $ac_try) 2>&5
24373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24374 test $ac_status = 0; }; }
24376 gcc_cv_as_sparc_nobits
=yes
24378 echo "configure: failed program was" >&5
24381 rm -f conftest.o conftest.s
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24385 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24388 cat >>confdefs.h
<<_ACEOF
24389 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24394 $as_echo_n "checking assembler for -relax option... " >&6; }
24395 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24396 $as_echo_n "(cached) " >&6
24398 gcc_cv_as_sparc_relax
=no
24399 if test x
$gcc_cv_as != x
; then
24400 $as_echo '.text' > conftest.s
24401 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24403 (eval $ac_try) 2>&5
24405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24406 test $ac_status = 0; }; }
24408 gcc_cv_as_sparc_relax
=yes
24410 echo "configure: failed program was" >&5
24413 rm -f conftest.o conftest.s
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24417 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24418 if test $gcc_cv_as_sparc_relax = yes; then
24420 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24425 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24426 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24427 $as_echo_n "(cached) " >&6
24429 gcc_cv_as_sparc_gotdata_op
=no
24430 if test x
$gcc_cv_as != x
; then
24436 sethi %gdop_hix22(foo), %g1
24437 xor %g1, %gdop_lox10(foo), %g1
24438 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24439 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24441 (eval $ac_try) 2>&5
24443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24444 test $ac_status = 0; }; }
24446 if test x
$gcc_cv_ld != x \
24447 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24448 if test x
$gcc_cv_objdump != x
; then
24449 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24450 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24451 gcc_cv_as_sparc_gotdata_op
=no
24453 gcc_cv_as_sparc_gotdata_op
=yes
24459 echo "configure: failed program was" >&5
24462 rm -f conftest.o conftest.s
24465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24466 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24467 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24469 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24474 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24475 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24476 $as_echo_n "(cached) " >&6
24478 gcc_cv_as_sparc_ua_pcrel
=no
24479 if test x
$gcc_cv_as != x
; then
24486 .uaword %r_disp32(foo)' > conftest.s
24487 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24489 (eval $ac_try) 2>&5
24491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24492 test $ac_status = 0; }; }
24494 if test x
$gcc_cv_ld != x \
24495 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24496 gcc_cv_as_sparc_ua_pcrel
=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_sparc_ua_pcrel" >&5
24507 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24508 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24510 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24514 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24515 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24516 $as_echo_n "(cached) " >&6
24518 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24519 if test x
$gcc_cv_as != x
; then
24523 .uaword %r_disp32(foo)
24524 .byte 0x32, 0x33, 0x34
24528 .skip 4' > conftest.s
24529 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24531 (eval $ac_try) 2>&5
24533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24534 test $ac_status = 0; }; }
24536 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24537 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24538 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24539 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24540 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24541 |
grep 'DISP32' > /dev
/null
2>&1; then
24544 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24549 echo "configure: failed program was" >&5
24552 rm -f conftest.o conftest.s
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24556 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24557 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24559 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24563 fi # unaligned pcrel relocs
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24566 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24567 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24568 $as_echo_n "(cached) " >&6
24570 gcc_cv_as_sparc_offsetable_lo10
=no
24571 if test x
$gcc_cv_as != x
; then
24573 or %g1, %lo(ab) + 12, %g1
24574 or %g1, %lo(ab + 12), %g1' > conftest.s
24575 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24577 (eval $ac_try) 2>&5
24579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24580 test $ac_status = 0; }; }
24582 if test x
$gcc_cv_objdump != x \
24583 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24584 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24585 gcc_cv_as_sparc_offsetable_lo10
=yes
24588 echo "configure: failed program was" >&5
24591 rm -f conftest.o conftest.s
24594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24595 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24596 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24598 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24603 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24604 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24605 $as_echo_n "(cached) " >&6
24607 gcc_cv_as_sparc_fmaf
=no
24608 if test x
$gcc_cv_as != x
; then
24610 .register %g2, #scratch
24611 .register %g3, #scratch
24613 fmaddd %f0, %f2, %f4, %f6
24614 addxccc %g1, %g2, %g3
24615 fsrl32 %f2, %f4, %f8
24616 fnaddd %f10, %f12, %f14' > conftest.s
24617 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24619 (eval $ac_try) 2>&5
24621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24622 test $ac_status = 0; }; }
24624 gcc_cv_as_sparc_fmaf
=yes
24626 echo "configure: failed program was" >&5
24629 rm -f conftest.o conftest.s
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24633 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24634 if test $gcc_cv_as_sparc_fmaf = yes; then
24636 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24641 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24642 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24643 $as_echo_n "(cached) " >&6
24645 gcc_cv_as_sparc_sparc4
=no
24646 if test x
$gcc_cv_as != x
; then
24648 .register %g2, #scratch
24649 .register %g3, #scratch
24652 1: cwbneg %g2, %g3, 1f
24655 aes_kexpand0 %f4, %f6, %f8
24656 des_round %f38, %f40, %f42, %f44
24657 camellia_f %f54, %f56, %f58, %f60
24658 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24659 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24661 (eval $ac_try) 2>&5
24663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24664 test $ac_status = 0; }; }
24666 gcc_cv_as_sparc_sparc4
=yes
24668 echo "configure: failed program was" >&5
24671 rm -f conftest.o conftest.s
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24675 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24676 if test $gcc_cv_as_sparc_sparc4 = yes; then
24678 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24683 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24684 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24685 $as_echo_n "(cached) " >&6
24687 gcc_cv_as_sparc_leon
=no
24688 if test x
$gcc_cv_as != x
; then
24690 .register %g2, #scratch
24691 .register %g3, #scratch
24695 cas [%g2], %g3, %g1' > conftest.s
24696 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24698 (eval $ac_try) 2>&5
24700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24701 test $ac_status = 0; }; }
24703 gcc_cv_as_sparc_leon
=yes
24705 echo "configure: failed program was" >&5
24708 rm -f conftest.o conftest.s
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24712 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24713 if test $gcc_cv_as_sparc_leon = yes; then
24715 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24720 i
[34567]86-*-* | x86_64-
*-*)
24723 # Full C++ conformance when using a shared libstdc++-v3 requires some
24724 # support from the Cygwin DLL, which in more recent versions exports
24725 # wrappers to aid in interposing and redirecting operators new, delete,
24726 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24727 # are configuring for a version of Cygwin that exports the wrappers.
24728 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24729 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24730 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24731 gcc_ac_cygwin_dll_wrappers
=yes
24733 gcc_ac_cygwin_dll_wrappers
=no
24737 # Can't check presence of libc functions during cross-compile, so
24738 # we just have to assume we're building for an up-to-date target.
24739 gcc_ac_cygwin_dll_wrappers
=yes
24742 cat >>confdefs.h
<<_ACEOF
24743 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24748 cygwin
* | pe | mingw32
* | interix
*)
24749 # Recent binutils allows the three-operand form of ".comm" on PE. This
24750 # definition is used unconditionally to initialise the default state of
24751 # the target option variable that governs usage of the feature.
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24753 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24754 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24755 $as_echo_n "(cached) " >&6
24757 gcc_cv_as_comm_has_align
=no
24758 if test $in_tree_gas = yes; then
24759 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24760 then gcc_cv_as_comm_has_align
=yes
24762 elif test x
$gcc_cv_as != x
; then
24763 $as_echo '.comm foo,1,32' > conftest.s
24764 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24766 (eval $ac_try) 2>&5
24768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24769 test $ac_status = 0; }; }
24771 gcc_cv_as_comm_has_align
=yes
24773 echo "configure: failed program was" >&5
24776 rm -f conftest.o conftest.s
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24780 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24783 cat >>confdefs.h
<<_ACEOF
24784 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24787 # Used for DWARF 2 in PE
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24789 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24790 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24791 $as_echo_n "(cached) " >&6
24793 gcc_cv_as_ix86_pe_secrel32
=no
24794 if test $in_tree_gas = yes; then
24795 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24796 then gcc_cv_as_ix86_pe_secrel32
=yes
24798 elif test x
$gcc_cv_as != x
; then
24802 .secrel32 foo' > conftest.s
24803 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24805 (eval $ac_try) 2>&5
24807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24808 test $ac_status = 0; }; }
24810 if test x
$gcc_cv_ld != x \
24811 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24812 gcc_cv_as_ix86_pe_secrel32
=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_ix86_pe_secrel32" >&5
24823 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24824 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24826 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24829 # Test if the assembler supports the extended form of the .section
24830 # directive that specifies section alignment. LTO support uses this,
24831 # but normally only after installation, so we warn but don't fail the
24832 # configure if LTO is enabled but the assembler does not support it.
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24834 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24835 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24836 $as_echo_n "(cached) " >&6
24838 gcc_cv_as_section_has_align
=no
24839 if test $in_tree_gas = yes; then
24840 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24841 then gcc_cv_as_section_has_align
=yes
24843 elif test x
$gcc_cv_as != x
; then
24844 $as_echo '.section lto_test,"dr0"' > conftest.s
24845 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24847 (eval $ac_try) 2>&5
24849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24850 test $ac_status = 0; }; }
24852 gcc_cv_as_section_has_align
=yes
24854 echo "configure: failed program was" >&5
24857 rm -f conftest.o conftest.s
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24861 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24863 if test x
$gcc_cv_as_section_has_align != xyes
; then
24864 case ",$enable_languages," in
24866 { $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
24867 $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;}
24871 # Test if the assembler supports the section flag 'e' for specifying
24872 # an excluded section.
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24874 $as_echo_n "checking assembler for .section with e... " >&6; }
24875 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24876 $as_echo_n "(cached) " >&6
24878 gcc_cv_as_section_has_e
=no
24879 if test $in_tree_gas = yes; then
24880 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24881 then gcc_cv_as_section_has_e
=yes
24883 elif test x
$gcc_cv_as != x
; then
24884 $as_echo '.section foo1,"e"
24885 .byte 0,0,0,0' > conftest.s
24886 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24888 (eval $ac_try) 2>&5
24890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24891 test $ac_status = 0; }; }
24893 gcc_cv_as_section_has_e
=yes
24895 echo "configure: failed program was" >&5
24898 rm -f conftest.o conftest.s
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24902 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24905 cat >>confdefs.h
<<_ACEOF
24906 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24913 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24914 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24915 $as_echo_n "(cached) " >&6
24917 gcc_cv_as_ix86_filds
=no
24918 if test x
$gcc_cv_as != x
; then
24919 $as_echo 'filds mem; fists mem' > conftest.s
24920 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24922 (eval $ac_try) 2>&5
24924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24925 test $ac_status = 0; }; }
24927 gcc_cv_as_ix86_filds
=yes
24929 echo "configure: failed program was" >&5
24932 rm -f conftest.o conftest.s
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24936 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24937 if test $gcc_cv_as_ix86_filds = yes; then
24939 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24944 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24945 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24946 $as_echo_n "(cached) " >&6
24948 gcc_cv_as_ix86_fildq
=no
24949 if test x
$gcc_cv_as != x
; then
24950 $as_echo 'fildq mem; fistpq mem' > conftest.s
24951 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24953 (eval $ac_try) 2>&5
24955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24956 test $ac_status = 0; }; }
24958 gcc_cv_as_ix86_fildq
=yes
24960 echo "configure: failed program was" >&5
24963 rm -f conftest.o conftest.s
24966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24967 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24968 if test $gcc_cv_as_ix86_fildq = yes; then
24970 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24975 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24976 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24977 $as_echo_n "(cached) " >&6
24979 gcc_cv_as_ix86_cmov_sun_syntax
=no
24980 if test x
$gcc_cv_as != x
; then
24981 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24982 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24984 (eval $ac_try) 2>&5
24986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24987 test $ac_status = 0; }; }
24989 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24991 echo "configure: failed program was" >&5
24994 rm -f conftest.o conftest.s
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24998 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24999 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25001 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25006 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25007 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25008 $as_echo_n "(cached) " >&6
25010 gcc_cv_as_ix86_ffreep
=no
25011 if test x
$gcc_cv_as != x
; then
25012 $as_echo 'ffreep %st(1)' > conftest.s
25013 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25015 (eval $ac_try) 2>&5
25017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25018 test $ac_status = 0; }; }
25020 gcc_cv_as_ix86_ffreep
=yes
25022 echo "configure: failed program was" >&5
25025 rm -f conftest.o conftest.s
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25029 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25030 if test $gcc_cv_as_ix86_ffreep = yes; then
25032 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25037 $as_echo_n "checking assembler for .quad directive... " >&6; }
25038 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25039 $as_echo_n "(cached) " >&6
25041 gcc_cv_as_ix86_quad
=no
25042 if test x
$gcc_cv_as != x
; then
25043 $as_echo '.quad 0' > conftest.s
25044 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25046 (eval $ac_try) 2>&5
25048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25049 test $ac_status = 0; }; }
25051 gcc_cv_as_ix86_quad
=yes
25053 echo "configure: failed program was" >&5
25056 rm -f conftest.o conftest.s
25059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25060 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25061 if test $gcc_cv_as_ix86_quad = yes; then
25063 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25068 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25069 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25070 $as_echo_n "(cached) " >&6
25072 gcc_cv_as_ix86_sahf
=no
25073 if test x
$gcc_cv_as != x
; then
25076 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25078 (eval $ac_try) 2>&5
25080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25081 test $ac_status = 0; }; }
25083 gcc_cv_as_ix86_sahf
=yes
25085 echo "configure: failed program was" >&5
25088 rm -f conftest.o conftest.s
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25092 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25093 if test $gcc_cv_as_ix86_sahf = yes; then
25095 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25100 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25101 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25102 $as_echo_n "(cached) " >&6
25104 gcc_cv_as_ix86_interunit_movq
=no
25105 if test x
$gcc_cv_as != x
; then
25108 movq %rax, %xmm0' > conftest.s
25109 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25111 (eval $ac_try) 2>&5
25113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25114 test $ac_status = 0; }; }
25116 gcc_cv_as_ix86_interunit_movq
=yes
25118 echo "configure: failed program was" >&5
25121 rm -f conftest.o conftest.s
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25125 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25128 cat >>confdefs.h
<<_ACEOF
25129 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25134 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25135 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25136 $as_echo_n "(cached) " >&6
25138 gcc_cv_as_ix86_hle
=no
25139 if test x
$gcc_cv_as != x
; then
25140 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25141 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25143 (eval $ac_try) 2>&5
25145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25146 test $ac_status = 0; }; }
25148 gcc_cv_as_ix86_hle
=yes
25150 echo "configure: failed program was" >&5
25153 rm -f conftest.o conftest.s
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25157 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25158 if test $gcc_cv_as_ix86_hle = yes; then
25160 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25165 $as_echo_n "checking assembler for swap suffix... " >&6; }
25166 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25167 $as_echo_n "(cached) " >&6
25169 gcc_cv_as_ix86_swap
=no
25170 if test x
$gcc_cv_as != x
; then
25171 $as_echo 'movl.s %esp, %ebp' > conftest.s
25172 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25174 (eval $ac_try) 2>&5
25176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25177 test $ac_status = 0; }; }
25179 gcc_cv_as_ix86_swap
=yes
25181 echo "configure: failed program was" >&5
25184 rm -f conftest.o conftest.s
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25188 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25189 if test $gcc_cv_as_ix86_swap = yes; then
25191 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25196 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25197 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25198 $as_echo_n "(cached) " >&6
25200 gcc_cv_as_ix86_diff_sect_delta
=no
25201 if test x
$gcc_cv_as != x
; then
25202 $as_echo '.section .rodata
25208 .L2: nop' > conftest.s
25209 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25211 (eval $ac_try) 2>&5
25213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25214 test $ac_status = 0; }; }
25216 gcc_cv_as_ix86_diff_sect_delta
=yes
25218 echo "configure: failed program was" >&5
25221 rm -f conftest.o conftest.s
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25225 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25226 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25228 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25232 # These two are used unconditionally by i386.[ch]; it is to be defined
25233 # to 1 if the feature is present, 0 otherwise.
25234 as_ix86_gotoff_in_data_opt
=
25235 if test x
$gas = xyes
; then
25236 as_ix86_gotoff_in_data_opt
="--32"
25238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25239 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25240 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25241 $as_echo_n "(cached) " >&6
25243 gcc_cv_as_ix86_gotoff_in_data
=no
25244 if test $in_tree_gas = yes; then
25245 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25246 then gcc_cv_as_ix86_gotoff_in_data
=yes
25248 elif test x
$gcc_cv_as != x
; then
25253 .long .L0@GOTOFF' > conftest.s
25254 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25256 (eval $ac_try) 2>&5
25258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25259 test $ac_status = 0; }; }
25261 gcc_cv_as_ix86_gotoff_in_data
=yes
25263 echo "configure: failed program was" >&5
25266 rm -f conftest.o conftest.s
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25270 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25273 cat >>confdefs.h
<<_ACEOF
25274 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25279 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25280 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25281 $as_echo_n "(cached) " >&6
25283 gcc_cv_as_ix86_rep_lock_prefix
=no
25284 if test x
$gcc_cv_as != x
; then
25285 $as_echo 'rep movsl
25290 lock addl %edi, (%eax,%esi)
25291 lock orl $0, (%esp)' > conftest.s
25292 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25294 (eval $ac_try) 2>&5
25296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25297 test $ac_status = 0; }; }
25299 gcc_cv_as_ix86_rep_lock_prefix
=yes
25301 echo "configure: failed program was" >&5
25304 rm -f conftest.o conftest.s
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25308 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25309 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25311 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25316 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25317 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25318 $as_echo_n "(cached) " >&6
25320 gcc_cv_as_ix86_ud2
=no
25321 if test x
$gcc_cv_as != x
; then
25322 $as_echo 'ud2' > conftest.s
25323 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25325 (eval $ac_try) 2>&5
25327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25328 test $ac_status = 0; }; }
25330 gcc_cv_as_ix86_ud2
=yes
25332 echo "configure: failed program was" >&5
25335 rm -f conftest.o conftest.s
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25339 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25340 if test $gcc_cv_as_ix86_ud2 = yes; then
25342 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25347 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25348 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25349 $as_echo_n "(cached) " >&6
25351 gcc_cv_as_ix86_tlsgdplt
=no
25352 if test x
$gcc_cv_as != x
; then
25353 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25354 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25356 (eval $ac_try) 2>&5
25358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25359 test $ac_status = 0; }; }
25361 if test x
$gcc_cv_ld != x \
25362 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25363 gcc_cv_as_ix86_tlsgdplt
=yes
25367 echo "configure: failed program was" >&5
25370 rm -f conftest.o conftest.s
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25374 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25375 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25377 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25382 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25383 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25384 $as_echo_n "(cached) " >&6
25386 gcc_cv_as_ix86_tlsldmplt
=no
25387 if test x
$gcc_cv_as != x
; then
25389 call tls_ld@tlsldmplt' > conftest.s
25390 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25392 (eval $ac_try) 2>&5
25394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25395 test $ac_status = 0; }; }
25397 if test x
$gcc_cv_ld != x \
25398 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25399 gcc_cv_as_ix86_tlsldmplt
=yes
25403 echo "configure: failed program was" >&5
25406 rm -f conftest.o conftest.s
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25410 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25411 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25413 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25421 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25422 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25423 $as_echo_n "(cached) " >&6
25425 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25426 if test $in_tree_gas = yes; then
25427 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25428 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25430 elif test x
$gcc_cv_as != x
; then
25432 addl r15 = @ltoffx(x#), gp
25434 ld8.mov r16 = [r15], x#' > conftest.s
25435 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25437 (eval $ac_try) 2>&5
25439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25440 test $ac_status = 0; }; }
25442 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25444 echo "configure: failed program was" >&5
25447 rm -f conftest.o conftest.s
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25451 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25452 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25454 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25462 *-*-aix*) conftest_s
=' .machine "pwr5"
25466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25467 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25468 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25469 $as_echo_n "(cached) " >&6
25471 gcc_cv_as_machine_directive
=no
25472 if test x
$gcc_cv_as != x
; then
25473 $as_echo ' .machine ppc7400' > conftest.s
25474 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25476 (eval $ac_try) 2>&5
25478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25479 test $ac_status = 0; }; }
25481 gcc_cv_as_machine_directive
=yes
25483 echo "configure: failed program was" >&5
25486 rm -f conftest.o conftest.s
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25490 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25492 if test x
$gcc_cv_as_machine_directive != xyes
; then
25493 echo "*** This target requires an assembler supporting \".machine\"" >&2
25494 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25495 test x
$build = x
$target && exit 1
25499 *) conftest_s
=' .machine power4
25504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25505 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25506 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25507 $as_echo_n "(cached) " >&6
25509 gcc_cv_as_powerpc_mfcrf
=no
25510 if test $in_tree_gas = yes; then
25511 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25512 then gcc_cv_as_powerpc_mfcrf
=yes
25514 elif test x
$gcc_cv_as != x
; then
25515 $as_echo "$conftest_s" > conftest.s
25516 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25518 (eval $ac_try) 2>&5
25520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25521 test $ac_status = 0; }; }
25523 gcc_cv_as_powerpc_mfcrf
=yes
25525 echo "configure: failed program was" >&5
25528 rm -f conftest.o conftest.s
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25532 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25533 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25535 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25540 *-*-aix*) conftest_s
=' .machine "pwr5"
25543 *) conftest_s
=' .machine power5
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25549 $as_echo_n "checking assembler for popcntb support... " >&6; }
25550 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25551 $as_echo_n "(cached) " >&6
25553 gcc_cv_as_powerpc_popcntb
=no
25554 if test $in_tree_gas = yes; then
25555 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25556 then gcc_cv_as_powerpc_popcntb
=yes
25558 elif test x
$gcc_cv_as != x
; then
25559 $as_echo "$conftest_s" > conftest.s
25560 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25562 (eval $ac_try) 2>&5
25564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25565 test $ac_status = 0; }; }
25567 gcc_cv_as_powerpc_popcntb
=yes
25569 echo "configure: failed program was" >&5
25572 rm -f conftest.o conftest.s
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25576 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25577 if test $gcc_cv_as_powerpc_popcntb = yes; then
25579 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25584 *-*-aix*) conftest_s
=' .machine "pwr5x"
25587 *) conftest_s
=' .machine power5
25592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25593 $as_echo_n "checking assembler for fp round support... " >&6; }
25594 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25595 $as_echo_n "(cached) " >&6
25597 gcc_cv_as_powerpc_fprnd
=no
25598 if test $in_tree_gas = yes; then
25599 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25600 then gcc_cv_as_powerpc_fprnd
=yes
25602 elif test x
$gcc_cv_as != x
; then
25603 $as_echo "$conftest_s" > conftest.s
25604 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25606 (eval $ac_try) 2>&5
25608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25609 test $ac_status = 0; }; }
25611 gcc_cv_as_powerpc_fprnd
=yes
25613 echo "configure: failed program was" >&5
25616 rm -f conftest.o conftest.s
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25620 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25621 if test $gcc_cv_as_powerpc_fprnd = yes; then
25623 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25628 *-*-aix*) conftest_s
=' .machine "pwr6"
25631 *) conftest_s
=' .machine power6
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25637 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25638 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25639 $as_echo_n "(cached) " >&6
25641 gcc_cv_as_powerpc_mfpgpr
=no
25642 if test $in_tree_gas = yes; then
25643 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25644 then gcc_cv_as_powerpc_mfpgpr
=yes
25646 elif test x
$gcc_cv_as != x
; then
25647 $as_echo "$conftest_s" > conftest.s
25648 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25650 (eval $ac_try) 2>&5
25652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25653 test $ac_status = 0; }; }
25655 gcc_cv_as_powerpc_mfpgpr
=yes
25657 echo "configure: failed program was" >&5
25660 rm -f conftest.o conftest.s
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25664 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25665 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25667 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25672 *-*-aix*) conftest_s
=' .csect .text[PR]
25674 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25678 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25679 *) conftest_s
=' .text
25681 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25685 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25686 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25687 $as_echo_n "(cached) " >&6
25689 gcc_cv_as_powerpc_rel16
=no
25690 if test $in_tree_gas = yes; then
25691 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25692 then gcc_cv_as_powerpc_rel16
=yes
25694 elif test x
$gcc_cv_as != x
; then
25695 $as_echo "$conftest_s" > conftest.s
25696 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25698 (eval $ac_try) 2>&5
25700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25701 test $ac_status = 0; }; }
25703 gcc_cv_as_powerpc_rel16
=yes
25705 echo "configure: failed program was" >&5
25708 rm -f conftest.o conftest.s
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25712 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25713 if test $gcc_cv_as_powerpc_rel16 = yes; then
25715 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25720 *-*-aix*) conftest_s
=' .machine "pwr6"
25723 *) conftest_s
=' .machine power6
25728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25729 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25730 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25731 $as_echo_n "(cached) " >&6
25733 gcc_cv_as_powerpc_cmpb
=no
25734 if test $in_tree_gas = yes; then
25735 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25736 then gcc_cv_as_powerpc_cmpb
=yes
25738 elif test x
$gcc_cv_as != x
; then
25739 $as_echo "$conftest_s" > conftest.s
25740 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25742 (eval $ac_try) 2>&5
25744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25745 test $ac_status = 0; }; }
25747 gcc_cv_as_powerpc_cmpb
=yes
25749 echo "configure: failed program was" >&5
25752 rm -f conftest.o conftest.s
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25756 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25757 if test $gcc_cv_as_powerpc_cmpb = yes; then
25759 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25764 *-*-aix*) conftest_s
=' .machine "pwr6"
25767 *) conftest_s
=' .machine power6
25772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25773 $as_echo_n "checking assembler for decimal float support... " >&6; }
25774 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25775 $as_echo_n "(cached) " >&6
25777 gcc_cv_as_powerpc_dfp
=no
25778 if test $in_tree_gas = yes; then
25779 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25780 then gcc_cv_as_powerpc_dfp
=yes
25782 elif test x
$gcc_cv_as != x
; then
25783 $as_echo "$conftest_s" > conftest.s
25784 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25786 (eval $ac_try) 2>&5
25788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25789 test $ac_status = 0; }; }
25791 gcc_cv_as_powerpc_dfp
=yes
25793 echo "configure: failed program was" >&5
25796 rm -f conftest.o conftest.s
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25800 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25801 if test $gcc_cv_as_powerpc_dfp = yes; then
25803 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25808 *-*-aix*) conftest_s
=' .machine "pwr7"
25811 *) conftest_s
=' .machine power7
25816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25817 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25818 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25819 $as_echo_n "(cached) " >&6
25821 gcc_cv_as_powerpc_vsx
=no
25822 if test $in_tree_gas = yes; then
25823 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25824 then gcc_cv_as_powerpc_vsx
=yes
25826 elif test x
$gcc_cv_as != x
; then
25827 $as_echo "$conftest_s" > conftest.s
25828 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -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_powerpc_vsx
=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_powerpc_vsx" >&5
25844 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25845 if test $gcc_cv_as_powerpc_vsx = yes; then
25847 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25852 *-*-aix*) conftest_s
=' .machine "pwr7"
25855 *) conftest_s
=' .machine power7
25860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25861 $as_echo_n "checking assembler for popcntd support... " >&6; }
25862 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25863 $as_echo_n "(cached) " >&6
25865 gcc_cv_as_powerpc_popcntd
=no
25866 if test $in_tree_gas = yes; then
25867 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25868 then gcc_cv_as_powerpc_popcntd
=yes
25870 elif test x
$gcc_cv_as != x
; then
25871 $as_echo "$conftest_s" > conftest.s
25872 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25874 (eval $ac_try) 2>&5
25876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25877 test $ac_status = 0; }; }
25879 gcc_cv_as_powerpc_popcntd
=yes
25881 echo "configure: failed program was" >&5
25884 rm -f conftest.o conftest.s
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25888 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25889 if test $gcc_cv_as_powerpc_popcntd = yes; then
25891 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25896 *-*-aix*) conftest_s
=' .machine "pwr8"
25897 .csect .text[PR]';;
25898 *) conftest_s
=' .machine power8
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25903 $as_echo_n "checking assembler for power8 support... " >&6; }
25904 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25905 $as_echo_n "(cached) " >&6
25907 gcc_cv_as_powerpc_power8
=no
25908 if test $in_tree_gas = yes; then
25909 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25910 then gcc_cv_as_powerpc_power8
=yes
25912 elif test x
$gcc_cv_as != x
; then
25913 $as_echo "$conftest_s" > conftest.s
25914 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25916 (eval $ac_try) 2>&5
25918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25919 test $ac_status = 0; }; }
25921 gcc_cv_as_powerpc_power8
=yes
25923 echo "configure: failed program was" >&5
25926 rm -f conftest.o conftest.s
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25930 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25931 if test $gcc_cv_as_powerpc_power8 = yes; then
25933 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25938 *-*-aix*) conftest_s
=' .csect .text[PR]
25940 *) conftest_s
=' .text
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25945 $as_echo_n "checking assembler for lwsync support... " >&6; }
25946 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25947 $as_echo_n "(cached) " >&6
25949 gcc_cv_as_powerpc_lwsync
=no
25950 if test $in_tree_gas = yes; then
25951 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25952 then gcc_cv_as_powerpc_lwsync
=yes
25954 elif test x
$gcc_cv_as != x
; then
25955 $as_echo "$conftest_s" > conftest.s
25956 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25958 (eval $ac_try) 2>&5
25960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25961 test $ac_status = 0; }; }
25963 gcc_cv_as_powerpc_lwsync
=yes
25965 echo "configure: failed program was" >&5
25968 rm -f conftest.o conftest.s
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25972 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25973 if test $gcc_cv_as_powerpc_lwsync = yes; then
25975 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25980 *-*-aix*) conftest_s
=' .machine "476"
25983 *) conftest_s
=' .machine "476"
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25989 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25990 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25991 $as_echo_n "(cached) " >&6
25993 gcc_cv_as_powerpc_dci
=no
25994 if test $in_tree_gas = yes; then
25995 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25996 then gcc_cv_as_powerpc_dci
=yes
25998 elif test x
$gcc_cv_as != x
; then
25999 $as_echo "$conftest_s" > conftest.s
26000 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26002 (eval $ac_try) 2>&5
26004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26005 test $ac_status = 0; }; }
26007 gcc_cv_as_powerpc_dci
=yes
26009 echo "configure: failed program was" >&5
26012 rm -f conftest.o conftest.s
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26016 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26017 if test $gcc_cv_as_powerpc_dci = yes; then
26019 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26024 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26025 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26026 $as_echo_n "(cached) " >&6
26028 gcc_cv_as_powerpc_gnu_attribute
=no
26029 if test $in_tree_gas = yes; then
26030 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26031 then gcc_cv_as_powerpc_gnu_attribute
=yes
26033 elif test x
$gcc_cv_as != x
; then
26034 $as_echo '.gnu_attribute 4,1' > conftest.s
26035 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26037 (eval $ac_try) 2>&5
26039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26040 test $ac_status = 0; }; }
26042 gcc_cv_as_powerpc_gnu_attribute
=yes
26044 echo "configure: failed program was" >&5
26047 rm -f conftest.o conftest.s
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26051 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26052 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26054 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26059 $as_echo_n "checking assembler for tls marker support... " >&6; }
26060 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26061 $as_echo_n "(cached) " >&6
26063 gcc_cv_as_powerpc_tls_markers
=no
26064 if test $in_tree_gas = yes; then
26065 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26066 then gcc_cv_as_powerpc_tls_markers
=yes
26068 elif test x
$gcc_cv_as != x
; then
26069 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26070 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26072 (eval $ac_try) 2>&5
26074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26075 test $ac_status = 0; }; }
26077 gcc_cv_as_powerpc_tls_markers
=yes
26079 echo "configure: failed program was" >&5
26082 rm -f conftest.o conftest.s
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26086 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26087 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26089 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26096 $as_echo_n "checking assembler for .ref support... " >&6; }
26097 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26098 $as_echo_n "(cached) " >&6
26100 gcc_cv_as_aix_ref
=no
26101 if test $in_tree_gas = yes; then
26102 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26103 then gcc_cv_as_aix_ref
=yes
26105 elif test x
$gcc_cv_as != x
; then
26106 $as_echo ' .csect stuff[rw]
26112 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26114 (eval $ac_try) 2>&5
26116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26117 test $ac_status = 0; }; }
26119 gcc_cv_as_aix_ref
=yes
26121 echo "configure: failed program was" >&5
26124 rm -f conftest.o conftest.s
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26128 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26129 if test $gcc_cv_as_aix_ref = yes; then
26131 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26140 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26141 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26142 $as_echo_n "(cached) " >&6
26144 gcc_cv_as_mips_explicit_relocs
=no
26145 if test $in_tree_gas = yes; then
26146 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26147 then gcc_cv_as_mips_explicit_relocs
=yes
26149 elif test x
$gcc_cv_as != x
; then
26150 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26151 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26153 (eval $ac_try) 2>&5
26155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26156 test $ac_status = 0; }; }
26158 gcc_cv_as_mips_explicit_relocs
=yes
26160 echo "configure: failed program was" >&5
26163 rm -f conftest.o conftest.s
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26167 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26168 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26169 if test x
$target_cpu_default = x
26170 then target_cpu_default
=MASK_EXPLICIT_RELOCS
26171 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26175 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26176 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26177 $as_echo_n "(cached) " >&6
26179 gcc_cv_as_mips_no_shared
=no
26180 if test $in_tree_gas = yes; then
26181 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26182 then gcc_cv_as_mips_no_shared
=yes
26184 elif test x
$gcc_cv_as != x
; then
26185 $as_echo 'nop' > conftest.s
26186 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26188 (eval $ac_try) 2>&5
26190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26191 test $ac_status = 0; }; }
26193 gcc_cv_as_mips_no_shared
=yes
26195 echo "configure: failed program was" >&5
26198 rm -f conftest.o conftest.s
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26202 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26203 if test $gcc_cv_as_mips_no_shared = yes; then
26205 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26210 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26211 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26212 $as_echo_n "(cached) " >&6
26214 gcc_cv_as_mips_gnu_attribute
=no
26215 if test $in_tree_gas = yes; then
26216 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26217 then gcc_cv_as_mips_gnu_attribute
=yes
26219 elif test x
$gcc_cv_as != x
; then
26220 $as_echo '.gnu_attribute 4,1' > conftest.s
26221 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26223 (eval $ac_try) 2>&5
26225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26226 test $ac_status = 0; }; }
26228 gcc_cv_as_mips_gnu_attribute
=yes
26230 echo "configure: failed program was" >&5
26233 rm -f conftest.o conftest.s
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26237 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26238 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26240 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26245 $as_echo_n "checking assembler for .micromips support... " >&6; }
26246 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26247 $as_echo_n "(cached) " >&6
26249 gcc_cv_as_micromips_support
=no
26250 if test x
$gcc_cv_as != x
; then
26251 $as_echo '.set micromips' > conftest.s
26252 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26254 (eval $ac_try) 2>&5
26256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26257 test $ac_status = 0; }; }
26259 gcc_cv_as_micromips_support
=yes
26261 echo "configure: failed program was" >&5
26264 rm -f conftest.o conftest.s
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26268 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26269 if test $gcc_cv_as_micromips_support = yes; then
26271 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26276 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26277 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26278 $as_echo_n "(cached) " >&6
26280 gcc_cv_as_mips_dtprelword
=no
26281 if test $in_tree_gas = yes; then
26282 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26283 then gcc_cv_as_mips_dtprelword
=yes
26285 elif test x
$gcc_cv_as != x
; then
26286 $as_echo '.section .tdata,"awT",@progbits
26290 .dtprelword x+0x8000' > conftest.s
26291 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26293 (eval $ac_try) 2>&5
26295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26296 test $ac_status = 0; }; }
26298 gcc_cv_as_mips_dtprelword
=yes
26300 echo "configure: failed program was" >&5
26303 rm -f conftest.o conftest.s
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26307 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26308 if test $gcc_cv_as_mips_dtprelword = yes; then
26310 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26315 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26316 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26317 $as_echo_n "(cached) " >&6
26319 gcc_cv_as_mips_dspr1_mult
=no
26320 if test x
$gcc_cv_as != x
; then
26321 $as_echo ' .set mips32r2
26329 multu $ac3,$4,$5' > conftest.s
26330 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26332 (eval $ac_try) 2>&5
26334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26335 test $ac_status = 0; }; }
26337 gcc_cv_as_mips_dspr1_mult
=yes
26339 echo "configure: failed program was" >&5
26342 rm -f conftest.o conftest.s
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26346 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26347 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26349 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26354 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26355 gcc_cv_as_ld_jalr_reloc
=no
26356 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26357 if test $in_tree_ld = yes ; then
26358 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 \
26359 && test $in_tree_ld_is_elf = yes; then
26360 gcc_cv_as_ld_jalr_reloc
=yes
26362 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26363 echo ' .ent x' > conftest.s
26364 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26365 echo ' ld $25,%call16(y)($28)' >> conftest.s
26366 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26367 echo '1: jalr $25' >> conftest.s
26368 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26369 echo '1: jalr $25' >> conftest.s
26370 echo ' .end x' >> conftest.s
26371 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26372 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26373 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26374 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26375 gcc_cv_as_ld_jalr_reloc
=yes
26381 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26382 if test x
$target_cpu_default = x
; then
26383 target_cpu_default
=MASK_RELAX_PIC_CALLS
26385 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26389 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26392 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26393 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26394 $as_echo_n "(cached) " >&6
26396 gcc_cv_ld_mips_personality_relaxation
=no
26397 if test $in_tree_ld = yes ; then
26398 if test "$gcc_cv_gld_major_version" -eq 2 \
26399 -a "$gcc_cv_gld_minor_version" -ge 21 \
26400 -o "$gcc_cv_gld_major_version" -gt 2; then
26401 gcc_cv_ld_mips_personality_relaxation
=yes
26403 elif test x
$gcc_cv_as != x \
26404 -a x
$gcc_cv_ld != x \
26405 -a x
$gcc_cv_readelf != x
; then
26406 cat > conftest.s
<<EOF
26408 .cfi_personality 0x80,indirect_ptr
26415 .section .data,"aw",@progbits
26419 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26420 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26421 if $gcc_cv_readelf -d conftest
2>&1 \
26422 |
grep TEXTREL
> /dev
/null
2>&1; then
26424 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26425 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26428 gcc_cv_ld_mips_personality_relaxation
=yes
26432 rm -f conftest.s conftest.o conftest
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26435 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26436 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26438 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26443 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26444 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26445 $as_echo_n "(cached) " >&6
26447 gcc_cv_as_mips_nan
=no
26448 if test x
$gcc_cv_as != x
; then
26449 $as_echo '' > conftest.s
26450 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26452 (eval $ac_try) 2>&5
26454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26455 test $ac_status = 0; }; }
26457 gcc_cv_as_mips_nan
=yes
26459 echo "configure: failed program was" >&5
26462 rm -f conftest.o conftest.s
26465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26466 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26467 if test $gcc_cv_as_mips_nan = yes; then
26469 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26472 if test x
$gcc_cv_as_mips_nan = xno \
26473 && test x
$with_nan != x
; then
26474 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26479 # Mips and HP-UX need the GNU assembler.
26480 # Linux on IA64 might be able to use the Intel assembler.
26483 mips
*-*-* |
*-*-hpux* )
26484 if test x
$gas_flag = xyes \
26485 ||
test x
"$host" != x
"$build" \
26486 ||
test ! -x "$gcc_cv_as" \
26487 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26490 echo "*** This configuration requires the GNU assembler" >&2
26496 # ??? Not all targets support dwarf2 debug_line, even within a version
26497 # of gas. Moreover, we need to emit a valid instruction to trigger any
26498 # info to the output file. So, as supported targets are added to gas 2.11,
26499 # add some instruction here to (also) show we expect this might work.
26500 # ??? Once 2.11 is released, probably need to add first known working
26501 # version to the per-target configury.
26502 case "$cpu_type" in
26503 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26504 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26505 | xstormy16 | xtensa
)
26515 if test x
"$insn" != x
; then
26517 .file 1 \"conftest.s\"
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26521 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26522 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26523 $as_echo_n "(cached) " >&6
26525 gcc_cv_as_dwarf2_debug_line
=no
26526 if test $in_tree_gas = yes; then
26527 if test $in_tree_gas_is_elf = yes \
26528 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26529 then gcc_cv_as_dwarf2_debug_line
=yes
26531 elif test x
$gcc_cv_as != x
; then
26532 $as_echo "$conftest_s" > conftest.s
26533 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26535 (eval $ac_try) 2>&5
26537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26538 test $ac_status = 0; }; }
26540 if test x
$gcc_cv_objdump != x \
26541 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26542 |
grep debug_line
> /dev
/null
2>&1; then
26543 gcc_cv_as_dwarf2_debug_line
=yes
26546 echo "configure: failed program was" >&5
26549 rm -f conftest.o conftest.s
26552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26553 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26556 # The .debug_line file table must be in the exact order that
26557 # we specified the files, since these indices are also used
26558 # by DW_AT_decl_file. Approximate this test by testing if
26559 # the assembler bitches if the same index is assigned twice.
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26561 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26562 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26563 $as_echo_n "(cached) " >&6
26565 gcc_cv_as_dwarf2_file_buggy
=no
26566 if test x
$gcc_cv_as != x
; then
26567 $as_echo ' .file 1 "foo.s"
26568 .file 1 "bar.s"' > conftest.s
26569 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26571 (eval $ac_try) 2>&5
26573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26574 test $ac_status = 0; }; }
26576 gcc_cv_as_dwarf2_file_buggy
=yes
26578 echo "configure: failed program was" >&5
26581 rm -f conftest.o conftest.s
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26585 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26588 if test $gcc_cv_as_dwarf2_debug_line = yes \
26589 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26591 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26596 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26597 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26598 $as_echo_n "(cached) " >&6
26600 gcc_cv_as_gdwarf2_flag
=no
26601 if test $in_tree_gas = yes; then
26602 if test $in_tree_gas_is_elf = yes \
26603 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26604 then gcc_cv_as_gdwarf2_flag
=yes
26606 elif test x
$gcc_cv_as != x
; then
26607 $as_echo "$insn" > conftest.s
26608 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26610 (eval $ac_try) 2>&5
26612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26613 test $ac_status = 0; }; }
26615 gcc_cv_as_gdwarf2_flag
=yes
26617 echo "configure: failed program was" >&5
26620 rm -f conftest.o conftest.s
26623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26624 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26625 if test $gcc_cv_as_gdwarf2_flag = yes; then
26627 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26632 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26633 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26634 $as_echo_n "(cached) " >&6
26636 gcc_cv_as_gstabs_flag
=no
26637 if test $in_tree_gas = yes; then
26638 if test $in_tree_gas_is_elf = yes \
26639 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26640 then gcc_cv_as_gstabs_flag
=yes
26642 elif test x
$gcc_cv_as != x
; then
26643 $as_echo "$insn" > conftest.s
26644 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26646 (eval $ac_try) 2>&5
26648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26649 test $ac_status = 0; }; }
26651 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26652 # and warns about it, but still exits successfully. So check for
26654 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26656 (eval $ac_try) 2>&5
26658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26659 test $ac_status = 0; }; }
26661 else gcc_cv_as_gstabs_flag
=yes
26664 echo "configure: failed program was" >&5
26667 rm -f conftest.o conftest.s
26670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26671 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26672 if test $gcc_cv_as_gstabs_flag = yes; then
26674 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26679 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26680 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26681 $as_echo_n "(cached) " >&6
26683 gcc_cv_as_debug_prefix_map_flag
=no
26684 if test $in_tree_gas = yes; then
26685 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26686 then gcc_cv_as_debug_prefix_map_flag
=yes
26688 elif test x
$gcc_cv_as != x
; then
26689 $as_echo "$insn" > conftest.s
26690 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26692 (eval $ac_try) 2>&5
26694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26695 test $ac_status = 0; }; }
26697 gcc_cv_as_debug_prefix_map_flag
=yes
26699 echo "configure: failed program was" >&5
26702 rm -f conftest.o conftest.s
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26706 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26707 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26709 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26715 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26716 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26717 $as_echo_n "(cached) " >&6
26719 gcc_cv_as_lcomm_with_alignment
=no
26720 if test x
$gcc_cv_as != x
; then
26721 $as_echo '.lcomm bar,4,16' > conftest.s
26722 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26724 (eval $ac_try) 2>&5
26726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26727 test $ac_status = 0; }; }
26729 gcc_cv_as_lcomm_with_alignment
=yes
26731 echo "configure: failed program was" >&5
26734 rm -f conftest.o conftest.s
26737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26738 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26739 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26741 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26745 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26746 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26747 && test "$prefix" != "NONE"; then
26749 cat >>confdefs.h
<<_ACEOF
26750 #define PREFIX_INCLUDE_DIR "$prefix/include"
26755 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26756 if test "x$with_headers" != x
; then
26757 target_header_dir
=$with_headers
26758 elif test "x$with_sysroot" = x
; then
26759 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
26760 elif test "x$with_build_sysroot" != "x"; then
26761 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26762 elif test "x$with_sysroot" = xyes
; then
26763 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26765 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26768 target_header_dir
=${native_system_header_dir}
26771 # Determine the version of glibc, if any, used on the target.
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26773 $as_echo_n "checking for target glibc version... " >&6; }
26775 # Check whether --with-glibc-version was given.
26776 if test "${with_glibc_version+set}" = set; then :
26777 withval
=$with_glibc_version;
26778 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26779 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26780 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26782 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
26786 glibc_version_major
=0
26787 glibc_version_minor
=0
26788 if test -f $target_header_dir/features.h \
26789 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26790 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26791 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26792 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26797 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26799 # Check whether --enable-gnu-unique-object was given.
26800 if test "${enable_gnu_unique_object+set}" = set; then :
26801 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26803 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26804 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26808 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26809 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26810 $as_echo_n "(cached) " >&6
26812 gcc_cv_as_gnu_unique_object
=no
26813 if test $in_tree_gas = yes; then
26814 if test $in_tree_gas_is_elf = yes \
26815 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26816 then gcc_cv_as_gnu_unique_object
=yes
26818 elif test x
$gcc_cv_as != x
; then
26819 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26820 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26822 (eval $ac_try) 2>&5
26824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26825 test $ac_status = 0; }; }
26827 gcc_cv_as_gnu_unique_object
=yes
26829 echo "configure: failed program was" >&5
26832 rm -f conftest.o conftest.s
26835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26836 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26837 if test $gcc_cv_as_gnu_unique_object = yes; then
26838 # We need to unquote above to to use the definition from config.gcc.
26839 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26841 if test $glibc_version_major -gt 2 \
26842 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26843 enable_gnu_unique_object
=yes
26849 if test x
$enable_gnu_unique_object = xyes
; then
26851 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26856 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26857 if test "${gcc_cv_as_line_zero+set}" = set; then :
26858 $as_echo_n "(cached) " >&6
26860 gcc_cv_as_line_zero
=no
26861 if test $in_tree_gas = yes; then
26862 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26863 then gcc_cv_as_line_zero
=yes
26865 elif test "x$gcc_cv_as" != x
; then
26866 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26867 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26869 (eval $ac_try) 2>&5
26871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26872 test $ac_status = 0; }; } &&
26873 test "x`cat conftest.out`" = x
26875 gcc_cv_as_line_zero
=yes
26877 echo "configure: failed program was" >&5
26879 echo "configure: error output was" >&5
26880 cat conftest.out
>&5
26882 rm -f conftest.o conftest.s conftest.out
26885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26886 $as_echo "$gcc_cv_as_line_zero" >&6; }
26887 if test "x$gcc_cv_as_line_zero" = xyes
; then
26889 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26894 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26895 gcc_cv_ld_eh_frame_hdr
=no
26896 if test $in_tree_ld = yes ; then
26897 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 \
26898 && test $in_tree_ld_is_elf = yes; then
26899 gcc_cv_ld_eh_frame_hdr
=yes
26901 elif test x
$gcc_cv_ld != x
; then
26902 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26903 # Check if linker supports --eh-frame-hdr option
26904 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26905 gcc_cv_ld_eh_frame_hdr
=yes
26910 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26911 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26912 gcc_cv_ld_eh_frame_hdr
=yes
26919 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26921 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26925 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26928 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26929 gcc_cv_ld_eh_frame_ciev3
=no
26930 if test $in_tree_ld = yes ; then
26931 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 \
26932 && test $in_tree_ld_is_elf = yes; then
26933 gcc_cv_ld_eh_frame_ciev3
=yes
26935 elif test x
$gcc_cv_ld != x
; then
26936 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26937 gcc_cv_ld_eh_frame_ciev3
=yes
26938 if test 0"$ld_date" -lt 20040513; then
26939 if test -n "$ld_date"; then
26940 # If there was date string, but was earlier than 2004-05-13, fail
26941 gcc_cv_ld_eh_frame_ciev3
=no
26942 elif test "$ld_vers_major" -lt 2; then
26943 gcc_cv_ld_eh_frame_ciev3
=no
26944 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26945 gcc_cv_ld_eh_frame_ciev3
=no
26951 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26952 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
26953 gcc_cv_ld_eh_frame_ciev3
=yes
26960 cat >>confdefs.h
<<_ACEOF
26961 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26965 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26968 $as_echo_n "checking linker position independent executable support... " >&6; }
26970 if test $in_tree_ld = yes ; then
26971 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 \
26972 && test $in_tree_ld_is_elf = yes; then
26975 elif test x
$gcc_cv_ld != x
; then
26976 # Check if linker supports -pie option
26977 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26981 if test x
"$gcc_cv_ld_pie" = xyes
; then
26983 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26987 $as_echo "$gcc_cv_ld_pie" >&6; }
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26990 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26991 gcc_cv_ld_eh_gc_sections
=no
26992 if test $in_tree_ld = yes ; then
26993 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 \
26994 && test $in_tree_ld_is_elf = yes; then
26995 gcc_cv_ld_eh_gc_sections
=yes
26997 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26998 cat > conftest.s
<<EOF
27001 .type _start, @function
27004 .size _start, .-_start
27005 .section .text.foo,"ax",@progbits
27006 .type foo, @function
27010 .section .gcc_except_table.foo,"a",@progbits
27013 .section .eh_frame,"a",@progbits
27016 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27017 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27018 |
grep "gc-sections option ignored" > /dev
/null
; then
27019 gcc_cv_ld_eh_gc_sections
=no
27020 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27021 |
grep gcc_except_table
> /dev
/null
; then
27022 gcc_cv_ld_eh_gc_sections
=yes
27023 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27024 if test x
$gcc_cv_as_comdat_group != xyes
; then
27025 gcc_cv_ld_eh_gc_sections
=no
27026 cat > conftest.s
<<EOF
27029 .type _start, @function
27032 .size _start, .-_start
27033 .section .gnu.linkonce.t.foo,"ax",@progbits
27034 .type foo, @function
27038 .section .gcc_except_table.foo,"a",@progbits
27041 .section .eh_frame,"a",@progbits
27044 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27045 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27046 |
grep "gc-sections option ignored" > /dev
/null
; then
27047 gcc_cv_ld_eh_gc_sections
=no
27048 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27049 |
grep gcc_except_table
> /dev
/null
; then
27050 gcc_cv_ld_eh_gc_sections
=yes
27056 rm -f conftest.s conftest.o conftest
27060 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27061 gcc_cv_ld_eh_gc_sections
=no
27064 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
27066 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27070 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27073 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27074 gcc_cv_ld_eh_gc_sections_bug
=no
27075 if test $in_tree_ld = yes ; then
27076 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 \
27077 && test $in_tree_ld_is_elf = yes; then
27078 gcc_cv_ld_eh_gc_sections_bug
=yes
27080 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
27081 gcc_cv_ld_eh_gc_sections_bug
=yes
27082 cat > conftest.s
<<EOF
27085 .type _start, @function
27088 .size _start, .-_start
27089 .section .text.startup.foo,"ax",@progbits
27090 .type foo, @function
27094 .section .gcc_except_table.foo,"a",@progbits
27097 .section .eh_frame,"a",@progbits
27100 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27101 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27102 |
grep "gc-sections option ignored" > /dev
/null
; then
27104 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27105 |
grep gcc_except_table
> /dev
/null
; then
27106 gcc_cv_ld_eh_gc_sections_bug
=no
27109 rm -f conftest.s conftest.o conftest
27111 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
27113 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27117 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27124 $as_echo_n "checking linker --as-needed support... " >&6; }
27125 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27126 $as_echo_n "(cached) " >&6
27128 gcc_cv_ld_as_needed
=no
27129 gcc_cv_ld_as_needed_option
='--as-needed'
27130 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
27131 if test $in_tree_ld = yes ; then
27132 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 \
27133 && test $in_tree_ld_is_elf = yes; then
27134 gcc_cv_ld_as_needed
=yes
27136 elif test x
$gcc_cv_ld != x
; then
27137 # Check if linker supports --as-needed and --no-as-needed options
27138 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
27139 gcc_cv_ld_as_needed
=yes
27142 # Solaris 2 ld always supports -z ignore/-z record.
27144 gcc_cv_ld_as_needed
=yes
27145 gcc_cv_ld_as_needed_option
="-z ignore"
27146 gcc_cv_ld_no_as_needed_option
="-z record"
27151 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27152 # dl_iterate_phdr, i.e. since Solaris 11.
27154 *-*-solaris2.1
[1-9]*)
27156 i?
86-*-* | x86_64-
*-*)
27157 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27158 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27159 gcc_cv_ld_as_needed
=no
27165 gcc_cv_ld_as_needed
=no
27170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27171 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27172 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
27174 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27177 cat >>confdefs.h
<<_ACEOF
27178 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27182 cat >>confdefs.h
<<_ACEOF
27183 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27188 case "$target:$tm_file" in
27189 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
27192 emul_name
="-melf64lppc"
27195 emul_name
="-melf64ppc"
27198 emul_name
="-melf64ppc_fbsd"
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27202 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27203 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27204 $as_echo_n "(cached) " >&6
27206 gcc_cv_ld_no_dot_syms
=no
27207 if test x
"$ld_is_gold" = xyes
; then
27208 gcc_cv_ld_no_dot_syms
=yes
27209 elif test $in_tree_ld = yes ; then
27210 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
27211 gcc_cv_ld_no_dot_syms
=yes
27213 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27214 cat > conftest1.s
<<EOF
27218 cat > conftest2.s
<<EOF
27219 .section ".opd","aw"
27222 .type foo,@function
27224 .quad .LEfoo,.TOC.@tocbase,0
27230 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27231 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27232 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
27233 gcc_cv_ld_no_dot_syms
=yes
27235 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27240 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27241 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
27243 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27248 $as_echo_n "checking linker large toc support... " >&6; }
27249 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27250 $as_echo_n "(cached) " >&6
27252 gcc_cv_ld_large_toc
=no
27253 if test x
"$ld_is_gold" = xyes
; then
27254 gcc_cv_ld_large_toc
=yes
27255 elif test $in_tree_ld = yes ; then
27256 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
27257 gcc_cv_ld_large_toc
=yes
27259 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27260 cat > conftest.s
<<EOF
27261 .section ".tbss","awT",@nobits
27267 addis 9,13,ie0@got@tprel@ha
27268 ld 9,ie0@got@tprel@l(9)
27270 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27271 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
27272 gcc_cv_ld_large_toc
=yes
27274 rm -f conftest conftest.o conftest.s
27278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27279 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27280 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27282 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27291 $as_echo_n "checking linker large toc support... " >&6; }
27292 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27293 $as_echo_n "(cached) " >&6
27295 gcc_cv_ld_large_toc
=no
27296 if test x
$gcc_cv_as != x
; then
27297 cat > conftest.s
<<EOF
27307 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
27308 gcc_cv_ld_large_toc
=yes
27310 rm -f conftest conftest.o conftest.s
27314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27315 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27316 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27318 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27325 $as_echo_n "checking linker --build-id support... " >&6; }
27326 if test "${gcc_cv_ld_buildid+set}" = set; then :
27327 $as_echo_n "(cached) " >&6
27329 gcc_cv_ld_buildid
=no
27330 if test $in_tree_ld = yes ; then
27331 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27332 "$gcc_cv_gld_minor_version" -ge 18 -o \
27333 "$gcc_cv_gld_major_version" -gt 2 \
27334 && test $in_tree_ld_is_elf = yes; then
27335 gcc_cv_ld_buildid
=yes
27337 elif test x
$gcc_cv_ld != x
; then
27338 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
27339 gcc_cv_ld_buildid
=yes
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27344 $as_echo "$gcc_cv_ld_buildid" >&6; }
27345 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27347 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27351 # Check whether --enable-linker-build-id was given.
27352 if test "${enable_linker_build_id+set}" = set; then :
27353 enableval
=$enable_linker_build_id;
27355 enable_linker_build_id
=no
27359 if test x
"$enable_linker_build_id" = xyes
; then
27360 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27362 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27366 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27370 # In binutils 2.21, GNU ld gained support for new emulations fully
27371 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27373 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27374 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27375 $as_echo_n "(cached) " >&6
27377 gcc_cv_ld_sol2_emulation
=no
27378 if test $in_tree_ld = yes ; then
27379 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27380 "$gcc_cv_gld_minor_version" -ge 21 -o \
27381 "$gcc_cv_gld_major_version" -gt 2 \
27382 && test $in_tree_ld_is_elf = yes; then
27383 gcc_cv_ld_sol2_emulation
=yes
27385 elif test x
$gcc_cv_ld != x
; then
27386 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
27387 grep _sol2
> /dev
/null
; then
27388 gcc_cv_ld_sol2_emulation
=yes
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27393 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27394 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
27396 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27401 $as_echo_n "checking linker --sysroot support... " >&6; }
27402 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27403 $as_echo_n "(cached) " >&6
27405 gcc_cv_ld_sysroot
=no
27406 if test $in_tree_ld = yes ; then
27407 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
27408 gcc_cv_ld_sysroot
=yes
27410 elif test x
$gcc_cv_ld != x
; then
27411 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
27412 gcc_cv_ld_sysroot
=yes
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27417 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27418 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
27420 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27424 # Test for stack protector support in target C library.
27425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27426 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27427 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27428 $as_echo_n "(cached) " >&6
27430 gcc_cv_libc_provides_ssp
=no
27432 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
27433 # glibc 2.4 and later provides __stack_chk_fail and
27434 # either __stack_chk_guard, or TLS access to stack guard canary.
27436 if test $glibc_version_major -gt 2 \
27437 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27438 gcc_cv_libc_provides_ssp
=yes
27441 if test -f $target_header_dir/features.h \
27442 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27443 $target_header_dir/features.h
> /dev
/null
; then
27444 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27445 $target_header_dir/features.h
> /dev
/null
&& \
27446 test -f $target_header_dir/bits
/uClibc_config.h
&& \
27447 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27448 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
27449 gcc_cv_libc_provides_ssp
=yes
27451 # all versions of Bionic support stack protector
27452 elif test -f $target_header_dir/sys
/cdefs.h \
27453 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27454 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
27455 gcc_cv_libc_provides_ssp
=yes
27460 # Avoid complicated tests (see
27461 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27462 # simply assert that glibc does provide this, which is true for all
27463 # realistically usable GNU/Hurd configurations.
27464 gcc_cv_libc_provides_ssp
=yes;;
27465 *-*-darwin* |
*-*-freebsd*)
27466 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27467 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
27468 gcc_cv_libc_provides_ssp
=yes
27470 echo "no __stack_chk_fail on this target"
27474 *) gcc_cv_libc_provides_ssp
=no
;;
27477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27478 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27480 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27482 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27486 # Test for <sys/sdt.h> on the target.
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27489 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27491 if test -f $target_header_dir/sys
/sdt.h
; then
27494 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27498 $as_echo "$have_sys_sdt_h" >&6; }
27500 # Check if TFmode long double should be used by default or not.
27501 # Some glibc targets used DFmode long double, but with glibc 2.4
27502 # and later they can use TFmode.
27504 powerpc
*-*-linux* | \
27505 sparc
*-*-linux* | \
27509 # Check whether --with-long-double-128 was given.
27510 if test "${with_long_double_128+set}" = set; then :
27511 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
27514 if test $glibc_version_major -gt 2 \
27515 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27516 gcc_cv_target_ldbl128
=yes
27519 gcc_cv_target_ldbl128
=no
27520 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27521 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
27522 && gcc_cv_target_ldbl128
=yes
27529 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27531 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27536 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27537 gcc_cv_target_dl_iterate_phdr
=unknown
27539 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27540 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27541 # libdl there, both complicating its use and breaking compatibility
27542 # between Solaris 10 updates.
27543 *-*-solaris2.1
[1-9]*)
27544 # <link.h> needs both a dl_iterate_phdr declaration and support for
27545 # compilation with largefile support.
27546 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27547 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27548 gcc_cv_target_dl_iterate_phdr
=yes
27550 gcc_cv_target_dl_iterate_phdr
=no
27555 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
27557 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27561 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27563 # We no longer support different GC mechanisms. Emit an error if
27564 # the user configures with --with-gc.
27566 # Check whether --with-gc was given.
27567 if test "${with_gc+set}" = set; then :
27568 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27572 # Libraries to use on the host. This will normally be set by the top
27573 # level Makefile. Here we simply capture the value for our Makefile.
27574 if test -z "${HOST_LIBS+set}"; then
27579 # Use the system's zlib library.
27581 zlibinc
="-I\$(srcdir)/../zlib"
27583 # Check whether --with-system-zlib was given.
27584 if test "${with_system_zlib+set}" = set; then :
27585 withval
=$with_system_zlib; zlibdir
=
27594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27595 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27596 # Check whether --enable-maintainer-mode was given.
27597 if test "${enable_maintainer_mode+set}" = set; then :
27598 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27605 $as_echo "$maintainer_mode" >&6; }
27607 if test "$maintainer_mode" = "yes"; then
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27615 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27616 # Check whether --enable-link-mutex was given.
27617 if test "${enable_link_mutex+set}" = set; then :
27618 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27624 $as_echo "$do_link_mutex" >&6; }
27626 if test "$do_link_mutex" = "yes"; then
27629 DO_LINK_MUTEX
=false
27637 # Make empty files to contain the specs and options for each language.
27638 # Then add #include lines to for a compiler that has specs and/or options.
27644 # These (without "all_") are set in each config-lang.in.
27645 # `language' must be a single word so is spelled singularly.
27648 all_outputs
='Makefile'
27649 # List of language makefile fragments.
27650 all_lang_makefrags
=
27651 # Additional files for gengtype
27652 all_gtfiles
="$target_gtfiles"
27654 # These are the languages that are set in --enable-languages,
27655 # and are available in the GCC tree.
27656 all_selected_languages
=
27658 # Add the language fragments.
27659 # Languages are added via two mechanisms. Some information must be
27660 # recorded in makefile variables, these are defined in config-lang.in.
27661 # We accumulate them and plug them into the main Makefile.
27662 # The other mechanism is a set of hooks for each of the main targets
27663 # like `clean', `install', etc.
27665 language_hooks
="Make-hooks"
27667 for lang
in ${srcdir}/*/config-lang.
in
27669 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27671 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27672 if test "x$lang_alias" = x
27674 echo "$lang doesn't set \$language." 1>&2
27677 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27678 subdirs
="$subdirs $subdir"
27680 # $gcc_subdir is where the gcc integration files are to be found
27681 # for a language, both for internal compiler purposes (compiler
27682 # sources implementing front-end to GCC tree converters), and for
27683 # build infrastructure purposes (Make-lang.in, etc.)
27685 # This will be <subdir> (relative to $srcdir) if a line like
27686 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27687 # is found in <langdir>/config-lang.in, and will remain <langdir>
27690 # Except for the language alias (fetched above), the regular
27691 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27692 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27693 # only this and the language alias.
27695 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27696 if [ "$gcc_subdir" = "" ]; then
27697 gcc_subdir
="$subdir"
27700 case ",$enable_languages," in
27702 all_selected_languages
="$all_selected_languages $lang_alias"
27703 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27704 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27715 .
${srcdir}/$gcc_subdir/config-lang.
in
27716 if test "x$language" = x
27718 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27723 case ",$enable_languages," in
27724 *,$lang_alias,*) ;;
27726 for i
in $subdir_requires; do
27727 test -f "${srcdir}/$i/config-lang.in" && continue
27735 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27736 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27737 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27738 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27740 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27741 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27743 all_languages
="$all_languages $language"
27744 all_compilers
="$all_compilers $compilers"
27745 all_outputs
="$all_outputs $outputs"
27746 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27747 case ",$enable_languages," in
27750 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27760 for language
in $all_selected_languages
27762 check_languages
="$check_languages check-$language"
27765 # We link each language in with a set of hooks, reached indirectly via
27766 # lang.${target}. Only do so for selected languages.
27770 target_list
="all.cross start.encap rest.encap tags \
27771 install-common install-man install-info install-pdf install-html dvi \
27772 pdf html uninstall info man srcextra srcman srcinfo \
27773 mostlyclean clean distclean maintainer-clean install-plugin"
27775 for t
in $target_list
27778 for lang
in $all_selected_languages
27782 echo "lang.$t: $x" >> Make-hooks
27786 # Option include files
27789 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27790 option_includes
="option-includes.mk"
27799 echo "dir ." > .gdbinit
27800 echo "dir ${srcdir}" >> .gdbinit
27801 if test x
$gdb_needs_out_file_path = xyes
27803 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27805 if test "x$subdirs" != x
; then
27808 echo "dir ${srcdir}/$s" >> .gdbinit
27811 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27812 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27814 # Put a breakpoint on __asan_report_error to help with debugging buffer
27817 *-fsanitize=address
*)
27818 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27822 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27826 # Find a directory in which to install a shared libgcc.
27828 # Check whether --enable-version-specific-runtime-libs was given.
27829 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27830 enableval
=$enable_version_specific_runtime_libs;
27834 # Substitute configuration variables
27898 if test x
${build} = x
${host} ; then
27899 if test x
${host} = x
${target} ; then
27900 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27902 echo "Links are now set up to build a cross-compiler" 1>&2
27903 echo " from ${host} to ${target}." 1>&2
27906 if test x
${host} = x
${target} ; then
27907 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27908 echo " for ${target}." 1>&2
27910 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27911 echo " from ${host} to ${target}." 1>&2
27923 if test "x${CLOOGLIBS}" != "x" ; then
27925 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27929 # Check for plugin support
27930 # Check whether --enable-plugin was given.
27931 if test "${enable_plugin+set}" = set; then :
27932 enableval
=$enable_plugin; enable_plugin
=$enableval
27934 enable_plugin
=yes; default_plugin
=yes
27942 if test x
$build = x
$host; then
27943 export_sym_check
="nm${exeext} -g"
27944 elif test x
$host = x
$target; then
27945 export_sym_check
="$gcc_cv_nm -g"
27951 if test x
$build = x
$host; then
27952 export_sym_check
="objdump${exeext} -T"
27953 elif test x
$host = x
$target; then
27954 export_sym_check
="$gcc_cv_objdump -T"
27961 if test x
"$enable_plugin" = x
"yes"; then
27963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27964 $as_echo_n "checking for exported symbols... " >&6; }
27965 if test "x$export_sym_check" != x
; then
27966 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27967 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
27968 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
27969 : # No need to use a flag
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27971 $as_echo "yes" >&6; }
27973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27974 $as_echo "yes" >&6; }
27975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27976 $as_echo_n "checking for -rdynamic... " >&6; }
27977 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
27978 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
27979 plugin_rdynamic
=yes
27980 pluginlibs
="-rdynamic"
27985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27986 $as_echo "$plugin_rdynamic" >&6; }
27989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27990 $as_echo "unable to check" >&6; }
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27996 $as_echo_n "checking for library containing dlopen... " >&6; }
27997 if test "${ac_cv_search_dlopen+set}" = set; then :
27998 $as_echo_n "(cached) " >&6
28000 ac_func_search_save_LIBS
=$LIBS
28001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28002 /* end confdefs.h. */
28004 /* Override any GCC internal prototype to avoid an error.
28005 Use char because int might match the return type of a GCC
28006 builtin and then its argument prototype would still apply. */
28019 for ac_lib
in '' dl
; do
28020 if test -z "$ac_lib"; then
28021 ac_res
="none required"
28024 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28026 if ac_fn_c_try_link
"$LINENO"; then :
28027 ac_cv_search_dlopen
=$ac_res
28029 rm -f core conftest.err conftest.
$ac_objext \
28031 if test "${ac_cv_search_dlopen+set}" = set; then :
28035 if test "${ac_cv_search_dlopen+set}" = set; then :
28038 ac_cv_search_dlopen
=no
28040 rm conftest.
$ac_ext
28041 LIBS
=$ac_func_search_save_LIBS
28043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28044 $as_echo "$ac_cv_search_dlopen" >&6; }
28045 ac_res
=$ac_cv_search_dlopen
28046 if test "$ac_res" != no
; then :
28047 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28051 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
28052 pluginlibs
="$pluginlibs -ldl"
28056 # Check that we can build shared objects with -fPIC -shared
28057 saved_LDFLAGS
="$LDFLAGS"
28058 saved_CFLAGS
="$CFLAGS"
28061 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28062 CFLAGS
="$CFLAGS -fPIC"
28063 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
28066 CFLAGS
="$CFLAGS -fPIC"
28067 LDFLAGS
="$LDFLAGS -fPIC -shared"
28070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28071 $as_echo_n "checking for -fPIC -shared... " >&6; }
28072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28073 /* end confdefs.h. */
28083 if ac_fn_c_try_link
"$LINENO"; then :
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28085 $as_echo "yes" >&6; }; have_pic_shared
=yes
28087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28088 $as_echo "no" >&6; }; have_pic_shared
=no
28090 rm -f core conftest.err conftest.
$ac_objext \
28091 conftest
$ac_exeext conftest.
$ac_ext
28092 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
28096 LDFLAGS
="$saved_LDFLAGS"
28097 CFLAGS
="$saved_CFLAGS"
28099 # If plugin support had been requested but not available, fail.
28100 if test x
"$enable_plugin" = x
"no" ; then
28101 if test x
"$default_plugin" != x
"yes"; then
28103 Building GCC with plugin support requires a host that supports
28104 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28111 if test x
"$enable_plugin" = x
"yes"; then
28113 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28118 # Enable --enable-host-shared
28119 # Check whether --enable-host-shared was given.
28120 if test "${enable_host_shared+set}" = set; then :
28121 enableval
=$enable_host_shared; PICFLAG
=-fPIC
28130 # Check whether --enable-libquadmath-support was given.
28131 if test "${enable_libquadmath_support+set}" = set; then :
28132 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
28134 ENABLE_LIBQUADMATH_SUPPORT
=yes
28137 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28139 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28144 # Specify what hash style to use by default.
28146 # Check whether --with-linker-hash-style was given.
28147 if test "${with_linker_hash_style+set}" = set; then :
28148 withval
=$with_linker_hash_style; case x
"$withval" in
28150 LINKER_HASH_STYLE
=sysv
28153 LINKER_HASH_STYLE
=gnu
28156 LINKER_HASH_STYLE
=both
28159 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28163 LINKER_HASH_STYLE
=''
28166 if test x
"${LINKER_HASH_STYLE}" != x
; then
28168 cat >>confdefs.h
<<_ACEOF
28169 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28174 # Configure the subdirectories
28175 # AC_CONFIG_SUBDIRS($subdirs)
28177 # Create the Makefile
28178 # and configure language subdirectories
28179 ac_config_files
="$ac_config_files $all_outputs"
28182 ac_config_commands
="$ac_config_commands default"
28184 cat >confcache
<<\_ACEOF
28185 # This file is a shell script that caches the results of configure
28186 # tests run on this system so they can be shared between configure
28187 # scripts and configure runs, see configure's option --config-cache.
28188 # It is not useful on other systems. If it contains results you don't
28189 # want to keep, you may remove or edit it.
28191 # config.status only pays attention to the cache file if you give it
28192 # the --recheck option to rerun configure.
28194 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28195 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28196 # following values.
28200 # The following way of writing the cache mishandles newlines in values,
28201 # but we know of no workaround that is simple, portable, and efficient.
28202 # So, we kill variables containing newlines.
28203 # Ultrix sh set writes to stderr and can't be redirected directly,
28204 # and sets the high bit in the cache file unless we assign to the vars.
28206 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28207 eval ac_val
=\$
$ac_var
28211 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28212 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28215 _ | IFS | as_nl
) ;; #(
28216 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
28217 *) { eval $ac_var=; unset $ac_var;} ;;
28223 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28224 *${as_nl}ac_space
=\
*)
28225 # `set' does not quote correctly, so add quotes: double-quote
28226 # substitution turns \\\\ into \\, and sed turns \\ into \.
28229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28232 # `set' quotes correctly as required by POSIX, so do not add quotes.
28233 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28242 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28244 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28246 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28247 if test -w "$cache_file"; then
28248 test "x$cache_file" != "x/dev/null" &&
28249 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28250 $as_echo "$as_me: updating cache $cache_file" >&6;}
28251 cat confcache
>$cache_file
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28254 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28259 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28260 # Let make expand exec_prefix.
28261 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28263 DEFS
=-DHAVE_CONFIG_H
28267 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28268 # 1. Remove the extension, and $U if already installed.
28269 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28270 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
28271 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28272 # will be set to the directory where LIBOBJS objects are built.
28273 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28274 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
28276 LIBOBJS
=$ac_libobjs
28278 LTLIBOBJS
=$ac_ltlibobjs
28283 : ${CONFIG_STATUS=./config.status}
28285 ac_clean_files_save
=$ac_clean_files
28286 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
28287 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28288 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28290 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28292 # Generated by $as_me.
28293 # Run this file to recreate the current configuration.
28294 # Compiler output produced by configure, useful for debugging
28295 # configure, is in config.log if it exists.
28298 ac_cs_recheck=false
28301 SHELL=\${CONFIG_SHELL-$SHELL}
28304 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
28305 ## -------------------- ##
28306 ## M4sh Initialization. ##
28307 ## -------------------- ##
28309 # Be more Bourne compatible
28310 DUALCASE
=1; export DUALCASE
# for MKS sh
28311 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
28314 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28315 # is contrary to our usage. Disable this feature.
28316 alias -g '${1+"$@"}'='"$@"'
28317 setopt NO_GLOB_SUBST
28319 case `(set -o) 2>/dev/null` in #(
28331 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28332 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28333 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28334 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28335 # Prefer a ksh shell builtin over an external printf program on Solaris,
28336 # but without wasting forks for bash or zsh.
28337 if test -z "$BASH_VERSION$ZSH_VERSION" \
28338 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28339 as_echo='print
-r --'
28340 as_echo_n='print
-rn --'
28341 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28342 as_echo='printf %s
\n'
28343 as_echo_n='printf %s
'
28345 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28346 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
28347 as_echo_n='/usr
/ucb
/echo -n'
28349 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28350 as_echo_n_body='eval
28354 expr "X$arg" : "X\\(.*\\)$as_nl";
28355 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28357 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
28359 export as_echo_n_body
28360 as_echo_n='sh
-c $as_echo_n_body as_echo
'
28362 export as_echo_body
28363 as_echo='sh
-c $as_echo_body as_echo
'
28366 # The user is always right.
28367 if test "${PATH_SEPARATOR+set}" != set; then
28369 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28370 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28377 # We need space, tab and new line, in precisely that order. Quoting is
28378 # there to prevent editors from complaining about space-tab.
28379 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28380 # splitting by setting IFS to empty value.)
28383 # Find who we are. Look in the path if we contain no directory separator.
28385 *[\\/]* ) as_myself=$0 ;;
28386 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28387 for as_dir in $PATH
28390 test -z "$as_dir" && as_dir=.
28391 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28397 # We did not find ourselves, most probably we were run as `sh COMMAND'
28398 # in which case we are not to be found in the path.
28399 if test "x$as_myself" = x
; then
28402 if test ! -f "$as_myself"; then
28403 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28407 # Unset variables that we do not need and which cause bugs (e.g. in
28408 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28409 # suppresses any "Segmentation fault" message there. '((' could
28410 # trigger a bug in pdksh 5.2.14.
28411 for as_var
in BASH_ENV ENV MAIL MAILPATH
28412 do eval test x\
${$as_var+set} = xset \
28413 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
28426 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
28429 # as_fn_error ERROR [LINENO LOG_FD]
28430 # ---------------------------------
28431 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28432 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28433 # script with status $?, using 1 if that was 0.
28436 as_status
=$?
; test $as_status -eq 0 && as_status
=1
28438 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
28439 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28441 $as_echo "$as_me: error: $1" >&2
28442 as_fn_exit
$as_status
28446 # as_fn_set_status STATUS
28447 # -----------------------
28448 # Set $? to STATUS, without forking.
28449 as_fn_set_status
()
28452 } # as_fn_set_status
28454 # as_fn_exit STATUS
28455 # -----------------
28456 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28460 as_fn_set_status
$1
28466 # Portably unset VAR.
28469 { eval $1=; unset $1;}
28471 as_unset
=as_fn_unset
28472 # as_fn_append VAR VALUE
28473 # ----------------------
28474 # Append the text in VALUE to the end of the definition contained in VAR. Take
28475 # advantage of any shell optimizations that allow amortized linear growth over
28476 # repeated appends, instead of the typical quadratic growth present in naive
28478 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
28479 eval 'as_fn_append ()
28490 # as_fn_arith ARG...
28491 # ------------------
28492 # Perform arithmetic evaluation on the ARGs, and store the result in the
28493 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28494 # must be portable across $(()) and expr.
28495 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
28496 eval 'as_fn_arith ()
28503 as_val
=`expr "$@" || test $? -eq 1`
28508 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28509 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28515 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28516 as_basename
=basename
28521 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28527 as_me
=`$as_basename -- "$0" ||
28528 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28529 X"$0" : 'X\(//\)$' \| \
28530 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28532 sed '/^.*\/\([^/][^/]*\)\/*$/{
28546 # Avoid depending upon Character Ranges.
28547 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28548 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28549 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28550 as_cr_digits
='0123456789'
28551 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28553 ECHO_C
= ECHO_N
= ECHO_T
=
28554 case `echo -n x` in #(((((
28556 case `echo 'xy\c'` in
28557 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28559 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28566 rm -f conf$$ conf$$.exe conf$$.
file
28567 if test -d conf$$.dir
; then
28568 rm -f conf$$.dir
/conf$$.
file
28571 mkdir conf$$.dir
2>/dev
/null
28573 if (echo >conf$$.
file) 2>/dev
/null
; then
28574 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28576 # ... but there are two gotchas:
28577 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28578 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28579 # In both cases, we have to default to `cp -p'.
28580 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28582 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28590 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28591 rmdir conf$$.dir
2>/dev
/null
28596 # Create "$as_dir" as a directory, including parents if necessary.
28601 -*) as_dir
=.
/$as_dir;;
28603 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28607 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28608 *) as_qdir
=$as_dir;;
28610 as_dirs
="'$as_qdir' $as_dirs"
28611 as_dir
=`$as_dirname -- "$as_dir" ||
28612 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28613 X"$as_dir" : 'X\(//\)[^/]' \| \
28614 X"$as_dir" : 'X\(//\)$' \| \
28615 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28616 $as_echo X"$as_dir" |
28617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28621 /^X\(\/\/\)[^/].*/{
28634 test -d "$as_dir" && break
28636 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28637 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28641 if mkdir
-p .
2>/dev
/null
; then
28642 as_mkdir_p
='mkdir -p "$as_dir"'
28644 test -d .
/-p && rmdir .
/-p
28648 if test -x / >/dev
/null
2>&1; then
28649 as_test_x
='test -x'
28651 if ls -dL / >/dev
/null
2>&1; then
28658 if test -d "$1"; then
28664 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28665 ???[sx]*):;;*)false;;esac;fi
28669 as_executable_p
=$as_test_x
28671 # Sed expression to map a string onto a valid CPP name.
28672 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28674 # Sed expression to map a string onto a valid variable name.
28675 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28679 ## ----------------------------------- ##
28680 ## Main body of $CONFIG_STATUS script. ##
28681 ## ----------------------------------- ##
28683 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28686 # Save the log message, to keep $0 and so on meaningful, and to
28687 # report actual input values of CONFIG_FILES etc. instead of their
28688 # values after options handling.
28690 This file was extended by $as_me, which was
28691 generated by GNU Autoconf 2.64. Invocation command line was
28693 CONFIG_FILES = $CONFIG_FILES
28694 CONFIG_HEADERS = $CONFIG_HEADERS
28695 CONFIG_LINKS = $CONFIG_LINKS
28696 CONFIG_COMMANDS = $CONFIG_COMMANDS
28699 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28704 case $ac_config_files in *"
28705 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28708 case $ac_config_headers in *"
28709 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28714 # Files that config.status was made for.
28715 config_files="$ac_config_files"
28716 config_headers="$ac_config_headers"
28717 config_commands="$ac_config_commands"
28721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28723 \`$as_me' instantiates files and other configuration actions
28724 from templates according to the current configuration. Unless the files
28725 and actions are specified as TAGs, all are instantiated by default.
28727 Usage: $0 [OPTION]... [TAG]...
28729 -h, --help print this help, then exit
28730 -V, --version print version number and configuration settings, then exit
28731 -q, --quiet, --silent
28732 do not print progress messages
28733 -d, --debug don't remove temporary files
28734 --recheck update $as_me by reconfiguring in the same conditions
28735 --file=FILE[:TEMPLATE]
28736 instantiate the configuration file FILE
28737 --header=FILE[:TEMPLATE]
28738 instantiate the configuration header FILE
28740 Configuration files:
28743 Configuration headers:
28746 Configuration commands:
28749 Report bugs to the package provider."
28752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28755 configured by $0, generated by GNU Autoconf 2.64,
28756 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28758 Copyright (C) 2009 Free Software Foundation, Inc.
28759 This config.status script is free software; the Free Software Foundation
28760 gives unlimited permission to copy, distribute and modify it."
28765 test -n "\$AWK" || AWK=awk
28768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28769 # The default lists apply if the user does not specify any file.
28775 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28776 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28787 # Handling of the options.
28788 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28790 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28791 $as_echo "$ac_cs_version"; exit ;;
28792 --debug |
--debu |
--deb |
--de |
--d |
-d )
28794 --file |
--fil |
--fi |
--f )
28797 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28799 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28800 ac_need_defaults
=false
;;
28801 --header |
--heade |
--head |
--hea )
28804 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28806 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28807 ac_need_defaults
=false
;;
28809 # Conflict between --help and --header
28810 as_fn_error
"ambiguous option: \`$1'
28811 Try \`$0 --help' for more information.";;
28812 --help |
--hel |
-h )
28813 $as_echo "$ac_cs_usage"; exit ;;
28814 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28815 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28818 # This is an error.
28819 -*) as_fn_error
"unrecognized option: \`$1'
28820 Try \`$0 --help' for more information." ;;
28822 *) as_fn_append ac_config_targets
" $1"
28823 ac_need_defaults
=false
;;
28829 ac_configure_extra_args
=
28831 if $ac_cs_silent; then
28833 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28838 if \$ac_cs_recheck; then
28839 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28841 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28842 CONFIG_SHELL='$SHELL'
28843 export CONFIG_SHELL
28848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28852 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28853 ## Running $as_me. ##
28859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28863 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28864 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28871 # Handling of arguments.
28872 for ac_config_target
in $ac_config_targets
28874 case $ac_config_target in
28875 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28876 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
28877 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
28878 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28879 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28880 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28881 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28882 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28884 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28889 # If the user did not use the arguments to specify the items to instantiate,
28890 # then the envvar interface is used. Set only those that are not.
28891 # We use the long form for the default assignment because of an extremely
28892 # bizarre bug on SunOS 4.1.3.
28893 if $ac_need_defaults; then
28894 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28895 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28896 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28899 # Have a temporary directory for convenience. Make it in the build tree
28900 # simply because there is no reason against having it here, and in addition,
28901 # creating and moving files from /tmp can sometimes cause problems.
28902 # Hook for its removal unless debugging.
28903 # Note that there is a small window in which the directory will not be cleaned:
28904 # after its creation but before its name has been assigned to `$tmp'.
28908 trap 'exit_status=$?
28909 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28911 trap 'as_fn_exit 1' 1 2 13 15
28913 # Create a (secure) tmp directory for tmp files.
28916 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28917 test -n "$tmp" && test -d "$tmp"
28920 tmp
=.
/conf$$
-$RANDOM
28921 (umask 077 && mkdir
"$tmp")
28922 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28924 # Set up the scripts for CONFIG_FILES section.
28925 # No need to generate them if there are no CONFIG_FILES.
28926 # This happens for instance with `./config.status config.h'.
28927 if test -n "$CONFIG_FILES"; then
28929 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28930 ac_cs_awk_getline
=:
28931 ac_cs_awk_pipe_init
=
28932 ac_cs_awk_read_file
='
28933 while ((getline aline < (F[key])) > 0)
28936 ac_cs_awk_pipe_fini
=
28938 ac_cs_awk_getline
=false
28939 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28940 ac_cs_awk_read_file
='
28942 print "cat " F[key] " &&"
28943 '$ac_cs_awk_pipe_init
28944 # The final `:' finishes the AND list.
28945 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28947 ac_cr
=`echo X | tr X '\015'`
28948 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28949 # But we know of no other shell where ac_cr would be empty at this
28950 # point, so we can use a bashism as a fallback.
28951 if test "x$ac_cr" = x
; then
28952 eval ac_cr
=\$
\'\\r
\'
28954 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28955 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28958 ac_cs_awk_cr
=$ac_cr
28961 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28964 # Create commands to substitute file output variables.
28966 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28967 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28968 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28971 } >conf$
$files.sh
&&
28972 . .
/conf$
$files.sh ||
28973 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28974 rm -f conf$
$files.sh
28977 echo "cat >conf$$subs.awk <<_ACEOF" &&
28978 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28980 } >conf$$subs.sh ||
28981 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28982 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28984 for ac_last_try in false false false false false :; do
28985 . ./conf$$subs.sh ||
28986 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28988 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28989 if test $ac_delim_n = $ac_delim_num; then
28991 elif $ac_last_try; then
28992 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28994 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28997 rm -f conf$$subs.sh
28999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29000 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
29004 s/^/S["/; s
/!.
*/"]=/
29014 s/\(.\{148\}\).*/\1/
29016 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29021 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29028 s/\(.\{148\}\).*/\1/
29030 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29034 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29039 ' <conf$$subs.awk | sed '
29044 ' >>$CONFIG_STATUS || ac_write_fail=1
29045 rm -f conf$$subs.awk
29046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29048 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
29049 for (key in S) S_is_set[key] = 1
29051 \$ac_cs_awk_pipe_init
29055 nfields = split(line, field, "@
")
29057 len = length(field[1])
29058 for (i = 2; i < nfields; i++) {
29060 keylen = length(key)
29061 if (S_is_set[key]) {
29063 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29064 len += length(value) + length(field[++i])
29069 if (nfields == 3 && !substed) {
29071 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29072 \$ac_cs_awk_read_file
29078 \$ac_cs_awk_pipe_fini
29081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29082 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29083 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29086 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
29087 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
29090 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29091 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
29092 # trailing colons and then remove the whole line if VPATH becomes empty
29093 # (actually we leave an empty line to preserve line numbers).
29094 if test "x
$srcdir" = x.; then
29095 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29096 s/:*\$(srcdir):*/:/
29097 s/:*\${srcdir}:*/:/
29099 s/^\([^=]*=[ ]*\):*/\1/
29105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29106 fi # test -n "$CONFIG_FILES"
29108 # Set up the scripts for CONFIG_HEADERS section.
29109 # No need to generate them if there are no CONFIG_HEADERS.
29110 # This happens for instance with `./config.status Makefile'.
29111 if test -n "$CONFIG_HEADERS"; then
29112 cat >"$tmp/defines.
awk" <<\_ACAWK ||
29116 # Transform confdefs.h into an awk script `defines.awk', embedded as
29117 # here-document in config.status, that substitutes the proper values into
29118 # config.h.in to produce config.h.
29120 # Create a delimiter string that does not exist in confdefs.h, to ease
29121 # handling of long lines.
29123 for ac_last_try in false false :; do
29124 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
29125 if test -z "$ac_t"; then
29127 elif $ac_last_try; then
29128 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
29130 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29134 # For the awk script, D is an array of macro values keyed by name,
29135 # likewise P contains macro parameters if any. Preserve backslash
29136 # newline sequences.
29138 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29140 s/.\{148\}/&'"$ac_delim"'/g
29143 s/^[ ]*#[ ]*define[ ][ ]*/ /
29150 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
29152 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
29156 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
29157 D["\
1"]=" \
3\\\\\\n
"\\/p
29159 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
29164 s/.\{148\}/&'"$ac_delim"'/g
29169 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
29172 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
29174 ' <confdefs.h | sed '
29175 s/'"$ac_delim"'/"\\\
29176 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29179 for (key in D) D_is_set[key] = 1
29182 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29184 split(line, arg, " ")
29185 if (arg[1] == "#") {
29189 defundef
= substr
(arg
[1], 2)
29192 split(mac1
, mac2
, "(") #)
29194 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
29195 if (D_is_set
[macro
]) {
29196 # Preserve the white space surrounding the "#".
29197 print prefix
"define", macro P
[macro
] D
[macro
]
29200 # Replace #undef with comments. This is necessary, for example,
29201 # in the case of _POSIX_SOURCE, which is predefined and required
29202 # on some systems where configure will not decide to define it.
29203 if (defundef
== "undef") {
29204 print
"/*", prefix defundef
, macro
, "*/"
29212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29213 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
29214 fi # test -n "$CONFIG_HEADERS"
29217 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29222 :[FHLC
]) ac_mode
=$ac_tag; continue;;
29224 case $ac_mode$ac_tag in
29226 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
29227 :[FH
]-) ac_tag
=-:-;;
29228 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
29245 -) ac_f
="$tmp/stdin";;
29246 *) # Look for the file first in the build tree, then in the source tree
29247 # (if the path is not absolute). The absolute path cannot be DOS-style,
29248 # because $ac_f cannot contain `:'.
29252 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
29254 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
29256 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29257 as_fn_append ac_file_inputs
" '$ac_f'"
29260 # Let's still pretend it is `configure' which instantiates (i.e., don't
29261 # use $as_me), people would be surprised to read:
29262 # /* config.h. Generated by config.status. */
29263 configure_input
='Generated from '`
29264 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29266 if test x
"$ac_file" != x-
; then
29267 configure_input
="$ac_file. $configure_input"
29268 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29269 $as_echo "$as_me: creating $ac_file" >&6;}
29271 # Neutralize special characters interpreted by sed in replacement strings.
29272 case $configure_input in #(
29273 *\
&* |
*\|
* |
*\\* )
29274 ac_sed_conf_input
=`$as_echo "$configure_input" |
29275 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29276 *) ac_sed_conf_input
=$configure_input;;
29280 *:-:* |
*:-) cat >"$tmp/stdin" \
29281 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
29286 ac_dir
=`$as_dirname -- "$ac_file" ||
29287 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29288 X"$ac_file" : 'X\(//\)[^/]' \| \
29289 X"$ac_file" : 'X\(//\)$' \| \
29290 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29291 $as_echo X"$ac_file" |
29292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29296 /^X\(\/\/\)[^/].*/{
29309 as_dir
="$ac_dir"; as_fn_mkdir_p
29313 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29315 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29316 # A ".." for each directory in $ac_dir_suffix.
29317 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29318 case $ac_top_builddir_sub in
29319 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29320 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
29323 ac_abs_top_builddir
=$ac_pwd
29324 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
29325 # for backward compatibility:
29326 ac_top_builddir
=$ac_top_build_prefix
29329 .
) # We are building in place.
29331 ac_top_srcdir
=$ac_top_builddir_sub
29332 ac_abs_top_srcdir
=$ac_pwd ;;
29333 [\\/]* | ?
:[\\/]* ) # Absolute name.
29334 ac_srcdir
=$srcdir$ac_dir_suffix;
29335 ac_top_srcdir
=$srcdir
29336 ac_abs_top_srcdir
=$srcdir ;;
29337 *) # Relative name.
29338 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
29339 ac_top_srcdir
=$ac_top_build_prefix$srcdir
29340 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
29342 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
29353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29354 # If the template does not know about datarootdir, expand it.
29355 # FIXME: This hack should be removed a few years after 2.60.
29356 ac_datarootdir_hack
=; ac_datarootdir_seen
=
29367 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29368 *datarootdir
*) ac_datarootdir_seen
=yes;;
29369 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
29370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29371 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29374 ac_datarootdir_hack='
29375 s&@datadir@&$datadir&g
29376 s&@docdir@&$docdir&g
29377 s&@infodir@&$infodir&g
29378 s&@localedir@&$localedir&g
29379 s&@mandir@&$mandir&g
29380 s&\\\${datarootdir}&$datarootdir&g' ;;
29384 # Neutralize VPATH when `$srcdir' = `.'.
29385 # Shell code in configure.ac might set extrasub.
29386 # FIXME: do we really want to maintain this feature?
29387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29388 ac_sed_extra="$ac_vpsub
29391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29393 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
29394 s|@configure_input@|
$ac_sed_conf_input|
;t t
29395 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
29396 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
29397 s
&@srcdir@
&$ac_srcdir&;t t
29398 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
29399 s
&@top_srcdir@
&$ac_top_srcdir&;t t
29400 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
29401 s
&@builddir@
&$ac_builddir&;t t
29402 s
&@abs_builddir@
&$ac_abs_builddir&;t t
29403 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
29404 $ac_datarootdir_hack
29406 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29407 if $ac_cs_awk_getline; then
29408 $AWK -f "$tmp/subs.
awk"
29410 $AWK -f "$tmp/subs.
awk" | $SHELL
29412 || as_fn_error "could not create
$ac_file" "$LINENO" 5
29414 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29415 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
29416 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
29417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
29418 which seems to be undefined. Please make sure it is defined." >&5
29419 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
29420 which seems to be undefined. Please make sure it is defined." >&2;}
29424 -) cat "$tmp/out" && rm -f "$tmp/out";;
29425 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29427 || as_fn_error "could not create $ac_file" "$LINENO" 5
29433 if test x"$ac_file" != x-; then
29435 $as_echo "/* $configure_input */" \
29436 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29437 } >"$tmp/config.h" \
29438 || as_fn_error "could not create $ac_file" "$LINENO" 5
29439 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29440 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29441 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29444 mv "$tmp/config.h" "$ac_file" \
29445 || as_fn_error "could not create $ac_file" "$LINENO" 5
29448 $as_echo "/* $configure_input */" \
29449 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29450 || as_fn_error "could not create -" "$LINENO" 5
29454 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29455 $as_echo "$as_me: executing $ac_file commands" >&6;}
29460 case $ac_file$ac_mode in
29461 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29463 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29464 for lang in $subdirs c-family common
29466 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29468 "as":F) chmod +x as ;;
29469 "collect-ld":F) chmod +x collect-ld ;;
29470 "nm":F) chmod +x nm ;;
29472 case ${CONFIG_HEADERS} in
29473 *auto-host.h:config.in*)
29476 # Make sure all the subdirs exist.
29477 for d in $subdirs doc build common c-family
29479 test -d $d || mkdir $d
29489 ac_clean_files=$ac_clean_files_save
29491 test $ac_write_fail = 0 ||
29492 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29495 # configure is writing to config.log, and then calls config.status.
29496 # config.status does its own redirection, appending to config.log.
29497 # Unfortunately, on DOS this fails, as config.log is still kept open
29498 # by configure, so config.status won't be able to
write to it
; its
29499 # output is simply discarded. So we exec the FD to /dev/null,
29500 # effectively closing config.log, so it can be properly (re)opened and
29501 # appended to by config.status. When coming back to configure, we
29502 # need to make the FD available again.
29503 if test "$no_create" != yes; then
29505 ac_config_status_args
=
29506 test "$silent" = yes &&
29507 ac_config_status_args
="$ac_config_status_args --quiet"
29509 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29511 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29512 # would make configure fail if this is the last instruction.
29513 $ac_cs_success || as_fn_exit $?
29515 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29517 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}